blob: f1f4dd3c77153106829da3181b6b838168110c7c [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Bill Wendlingebc2fc12011-03-08 03:00:02 +00003# Generated by GNU Autoconf 2.60 for llvm 3.0svn.
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
Reid Spencera773bd52006-08-04 18:18:08 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011#
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-'
Bill Wendlingebc2fc12011-03-08 03:00:02 +0000564PACKAGE_VERSION='3.0svn'
565PACKAGE_STRING='llvm 3.0svn'
John Criswell7a73b802003-06-30 21:59:07 +0000566PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
567
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000568ac_unique_file="lib/VMCore/Module.cpp"
John Criswell7a73b802003-06-30 21:59:07 +0000569# Factoring default headers for most tests.
570ac_includes_default="\
571#include <stdio.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000572#if HAVE_SYS_TYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000573# include <sys/types.h>
574#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000575#if HAVE_SYS_STAT_H
John Criswell7a73b802003-06-30 21:59:07 +0000576# include <sys/stat.h>
577#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000578#if STDC_HEADERS
John Criswell7a73b802003-06-30 21:59:07 +0000579# include <stdlib.h>
580# include <stddef.h>
581#else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000582# if HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +0000583# include <stdlib.h>
584# endif
585#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000586#if HAVE_STRING_H
587# if !STDC_HEADERS && HAVE_MEMORY_H
John Criswell7a73b802003-06-30 21:59:07 +0000588# include <memory.h>
589# endif
590# include <string.h>
591#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000592#if HAVE_STRINGS_H
John Criswell7a73b802003-06-30 21:59:07 +0000593# include <strings.h>
594#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000595#if HAVE_INTTYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000596# include <inttypes.h>
Reid Spencera773bd52006-08-04 18:18:08 +0000597#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000598#if HAVE_STDINT_H
Reid Spencera773bd52006-08-04 18:18:08 +0000599# include <stdint.h>
John Criswell7a73b802003-06-30 21:59:07 +0000600#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000601#if HAVE_UNISTD_H
John Criswell7a73b802003-06-30 21:59:07 +0000602# include <unistd.h>
603#endif"
604
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000605ac_subst_vars='SHELL
Torok Edwin871384f2010-01-26 08:50:50 +0000606PATH_SEPARATOR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000607PACKAGE_NAME
608PACKAGE_TARNAME
609PACKAGE_VERSION
610PACKAGE_STRING
611PACKAGE_BUGREPORT
612exec_prefix
613prefix
614program_transform_name
615bindir
616sbindir
617libexecdir
618datarootdir
619datadir
620sysconfdir
621sharedstatedir
622localstatedir
623includedir
624oldincludedir
625docdir
626infodir
627htmldir
628dvidir
629pdfdir
630psdir
631libdir
632localedir
633mandir
634DEFS
635ECHO_C
636ECHO_N
637ECHO_T
638LIBS
639build_alias
640host_alias
641target_alias
642LLVM_COPYRIGHT
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
Bill Wendlingebc2fc12011-03-08 03:00:02 +00001331\`configure' configures llvm 3.0svn 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
Bill Wendlingebc2fc12011-03-08 03:00:02 +00001397 short | recursive ) echo "Configuration of llvm 3.0svn:";;
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
Bill Wendlingebc2fc12011-03-08 03:00:02 +00001554llvm configure 3.0svn
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
Bill Wendlingebc2fc12011-03-08 03:00:02 +00001570It was created by llvm $as_me 3.0svn, 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"
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005120 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5121 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5122 fi
Eric Christopher753f3262010-08-30 18:34:48 +00005123
5124cat >>confdefs.h <<_ACEOF
5125#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005126_ACEOF
5127
5128
5129cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005130#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5131_ACEOF
5132
5133
5134cat >>confdefs.h <<_ACEOF
5135#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005136_ACEOF
5137
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005138 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
Jan Sjödindd54ffd2011-03-09 17:25:46 +00005139
5140cat >>confdefs.h <<_ACEOF
5141#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5142_ACEOF
5143
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005144 fi
Douglas Gregor0711c302009-06-17 00:43:20 +00005145 fi
5146done
5147
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005148# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5149# target feature def files.
Douglas Gregor1555a232009-06-16 20:12:29 +00005150LLVM_ENUM_TARGETS=""
5151LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005152LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005153LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005154for target_to_build in $TARGETS_TO_BUILD; do
5155 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattnere15f2e12010-11-14 19:10:47 +00005156 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach7ac16092010-10-01 22:39:28 +00005157 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5158 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005159 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5160 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5161 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005162 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5163 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5164 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005165done
5166
5167
5168
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005169
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005170
Reid Spencer65c5d752006-11-05 17:08:18 +00005171# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005172if test "${enable_cbe_printf_a+set}" = set; then
Reid Spencer65c5d752006-11-05 17:08:18 +00005173 enableval=$enable_cbe_printf_a;
5174else
5175 enableval=default
5176fi
5177
5178case "$enableval" in
5179 yes) ENABLE_CBE_PRINTF_A=1
5180 ;;
5181 no) ENABLE_CBE_PRINTF_A=0
5182 ;;
5183 default) ENABLE_CBE_PRINTF_A=1
5184 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005185 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5186echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5187 { (exit 1); exit 1; }; } ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005188esac
5189
5190cat >>confdefs.h <<_ACEOF
5191#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5192_ACEOF
5193
5194
Reid Spencera773bd52006-08-04 18:18:08 +00005195
5196# Check whether --with-llvmgccdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005197if test "${with_llvmgccdir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005198 withval=$with_llvmgccdir;
5199else
5200 withval=default
5201fi
5202
5203case "$withval" in
5204 default) WITH_LLVMGCCDIR=default ;;
5205 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005206 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5207echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5208 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005209esac
5210
5211
Devang Patel5d28b882007-12-04 22:54:47 +00005212# Check whether --with-llvmgcc was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005213if test "${with_llvmgcc+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005214 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5215 WITH_LLVMGCCDIR=""
5216fi
5217
5218
5219
5220# Check whether --with-llvmgxx was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005221if test "${with_llvmgxx+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005222 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5223 WITH_LLVMGCCDIR=""
5224fi
5225
Douglas Gregor01746742009-05-11 18:05:52 +00005226
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00005227if test -n "$LLVMGCC"; then
5228 LLVMGCCCOMMAND="$LLVMGCC"
5229fi
5230
5231if test -n "$LLVMGXX"; then
5232 LLVMGXXCOMMAND="$LLVMGXX"
5233fi
Devang Patel5d28b882007-12-04 22:54:47 +00005234
5235if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005236 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5237echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5238 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005239fi
5240
5241if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005242 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5243echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5244 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005245fi
5246
5247
Daniel Dunbar98515672010-02-23 10:00:49 +00005248# Check whether --with-clang was given.
5249if test "${with_clang+set}" = set; then
5250 withval=$with_clang;
5251else
5252 with_clang=default
5253fi
5254
5255
5256
5257# Check whether --with-built-clang was given.
5258if test "${with_built_clang+set}" = set; then
5259 withval=$with_built_clang;
5260else
5261 with_built_clang=check
5262fi
5263
5264
5265{ echo "$as_me:$LINENO: checking clang compiler" >&5
5266echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5267WITH_CLANGPATH=""
5268WITH_BUILT_CLANG=0
5269if test "$with_clang" != "default"; then
5270 WITH_CLANGPATH="$with_clang"
5271 if ! test -x "$WITH_CLANGPATH"; then
5272 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5273echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5274 { (exit 1); exit 1; }; }
5275 fi
5276elif test "$with_built_clang" = "yes"; then
5277 WITH_BUILT_CLANG=1
5278elif test "$with_built_clang" = "no"; then
5279 WITH_BUILT_CLANG=0
5280else
5281 if test "$with_built_clang" != "check"; then
5282 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5283echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5284 { (exit 1); exit 1; }; }
5285 fi
5286
5287 if test -f ${srcdir}/tools/clang/README.txt; then
5288 WITH_BUILT_CLANG=1
5289 fi
5290fi
5291
5292if ! test -z "$WITH_CLANGPATH"; then
5293 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5294echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5295 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5296elif test "$WITH_BUILT_CLANG" = "1"; then
5297 { echo "$as_me:$LINENO: result: built" >&5
5298echo "${ECHO_T}built" >&6; }
5299else
5300 { echo "$as_me:$LINENO: result: none" >&5
5301echo "${ECHO_T}none" >&6; }
5302fi
5303CLANGPATH=$WITH_CLANGPATH
5304
5305CLANGXXPATH=$WITH_CLANGXXPATH
5306
5307ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5308
5309
5310
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005311# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005312if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005313 withval=$with_optimize_option;
5314else
5315 withval=default
5316fi
5317
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005318{ echo "$as_me:$LINENO: checking optimization flags" >&5
5319echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005320case "$withval" in
5321 default)
5322 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005323 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005324 MingW) optimize_option=-O2 ;;
5325 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005326 esac ;;
5327 *) optimize_option="$withval" ;;
5328esac
5329OPTIMIZE_OPTION=$optimize_option
5330
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005331{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5332echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005333
5334
Reid Spencera773bd52006-08-04 18:18:08 +00005335# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005336if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005337 withval=$with_extra_options;
5338else
5339 withval=default
5340fi
5341
5342case "$withval" in
5343 default) EXTRA_OPTIONS= ;;
5344 *) EXTRA_OPTIONS=$withval ;;
5345esac
5346EXTRA_OPTIONS=$EXTRA_OPTIONS
5347
5348
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005349# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005350if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005351 enableval=$enable_bindings;
5352else
5353 enableval=default
5354fi
5355
5356BINDINGS_TO_BUILD=""
5357case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005358 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005359 all ) BINDINGS_TO_BUILD="ocaml" ;;
5360 none | no) BINDINGS_TO_BUILD="" ;;
5361 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5362 case "$a_binding" in
5363 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005364 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5365echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5366 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005367 esac
5368 done
5369 ;;
5370esac
5371
Reid Spencera773bd52006-08-04 18:18:08 +00005372
Gordon Henriksenf0915682007-10-02 16:42:22 +00005373# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005374if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005375 withval=$with_ocaml_libdir;
5376else
5377 withval=auto
5378fi
5379
5380case "$withval" in
5381 auto) with_ocaml_libdir="$withval" ;;
5382 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005383 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5384echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5385 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005386esac
5387
5388
Chandler Carruth6b241162010-10-19 08:21:25 +00005389# Check whether --with-clang-resource-dir was given.
5390if test "${with_clang_resource_dir+set}" = set; then
5391 withval=$with_clang_resource_dir;
5392else
5393 withval=""
5394fi
5395
5396
5397cat >>confdefs.h <<_ACEOF
5398#define CLANG_RESOURCE_DIR "$withval"
5399_ACEOF
5400
5401
5402
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005403# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005404if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005405 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005406else
5407 withval=""
5408fi
5409
5410
5411cat >>confdefs.h <<_ACEOF
5412#define C_INCLUDE_DIRS "$withval"
5413_ACEOF
5414
5415
5416
Rafael Espindola420d23c2009-11-16 19:46:55 +00005417# Check whether --with-cxx-include-root was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005418if test "${with_cxx_include_root+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005419 withval=$with_cxx_include_root;
5420else
5421 withval=""
5422fi
5423
5424
5425cat >>confdefs.h <<_ACEOF
5426#define CXX_INCLUDE_ROOT "$withval"
5427_ACEOF
5428
5429
5430
5431# Check whether --with-cxx-include-arch was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005432if test "${with_cxx_include_arch+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005433 withval=$with_cxx_include_arch;
5434else
5435 withval=""
5436fi
5437
5438
5439cat >>confdefs.h <<_ACEOF
5440#define CXX_INCLUDE_ARCH "$withval"
5441_ACEOF
5442
5443
5444
5445# Check whether --with-cxx-include-32bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005446if test "${with_cxx_include_32bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005447 withval=$with_cxx_include_32bit_dir;
5448else
5449 withval=""
5450fi
5451
5452
5453cat >>confdefs.h <<_ACEOF
5454#define CXX_INCLUDE_32BIT_DIR "$withval"
5455_ACEOF
5456
5457
5458
5459# Check whether --with-cxx-include-64bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005460if test "${with_cxx_include_64bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005461 withval=$with_cxx_include_64bit_dir;
5462else
5463 withval=""
5464fi
5465
5466
5467cat >>confdefs.h <<_ACEOF
5468#define CXX_INCLUDE_64BIT_DIR "$withval"
5469_ACEOF
5470
5471
5472
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005473# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005474if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005475 withval=$with_binutils_include;
5476else
5477 withval=default
5478fi
5479
5480case "$withval" in
5481 default) WITH_BINUTILS_INCDIR=default ;;
5482 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005483 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5484echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5485 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005486esac
5487if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5488 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5489
5490 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5491 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005492 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5493echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5494 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005495 fi
5496fi
5497
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005498# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005499if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005500 enableval=$enable_libffi; case "$enableval" in
5501 yes) llvm_cv_enable_libffi="yes" ;;
5502 no) llvm_cv_enable_libffi="no" ;;
5503 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005504echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5505 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005506 esac
5507else
5508 llvm_cv_enable_libffi=no
5509fi
5510
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005511
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005512
Reid Spencera773bd52006-08-04 18:18:08 +00005513ac_ext=c
5514ac_cpp='$CPP $CPPFLAGS'
5515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5517ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005518{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5519echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005520# On Suns, sometimes $CPP names a directory.
5521if test -n "$CPP" && test -d "$CPP"; then
5522 CPP=
5523fi
5524if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005525 if test "${ac_cv_prog_CPP+set}" = set; then
5526 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005527else
5528 # Double quotes because CPP needs to be expanded
5529 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5530 do
5531 ac_preproc_ok=false
5532for ac_c_preproc_warn_flag in '' yes
5533do
5534 # Use a header file that comes with gcc, so configuring glibc
5535 # with a fresh cross-compiler works.
5536 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5537 # <limits.h> exists even on freestanding compilers.
5538 # On the NeXT, cc -E runs the code through the compiler's parser,
5539 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005540 cat >conftest.$ac_ext <<_ACEOF
5541/* confdefs.h. */
5542_ACEOF
5543cat confdefs.h >>conftest.$ac_ext
5544cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005545/* end confdefs.h. */
5546#ifdef __STDC__
5547# include <limits.h>
5548#else
5549# include <assert.h>
5550#endif
5551 Syntax error
5552_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005553if { (ac_try="$ac_cpp conftest.$ac_ext"
5554case "(($ac_try" in
5555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5556 *) ac_try_echo=$ac_try;;
5557esac
5558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5559 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5560 ac_status=$?
5561 grep -v '^ *+' conftest.er1 >conftest.err
5562 rm -f conftest.er1
5563 cat conftest.err >&5
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); } >/dev/null; then
5566 if test -s conftest.err; then
5567 ac_cpp_err=$ac_c_preproc_warn_flag
5568 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5569 else
5570 ac_cpp_err=
5571 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005572else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005573 ac_cpp_err=yes
5574fi
5575if test -z "$ac_cpp_err"; then
5576 :
5577else
5578 echo "$as_me: failed program was:" >&5
5579sed 's/^/| /' conftest.$ac_ext >&5
5580
Reid Spencera773bd52006-08-04 18:18:08 +00005581 # Broken: fails on valid input.
5582continue
5583fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005584
Reid Spencera773bd52006-08-04 18:18:08 +00005585rm -f conftest.err conftest.$ac_ext
5586
5587 # OK, works on sane cases. Now check whether nonexistent headers
5588 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005589 cat >conftest.$ac_ext <<_ACEOF
5590/* confdefs.h. */
5591_ACEOF
5592cat confdefs.h >>conftest.$ac_ext
5593cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005594/* end confdefs.h. */
5595#include <ac_nonexistent.h>
5596_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005597if { (ac_try="$ac_cpp conftest.$ac_ext"
5598case "(($ac_try" in
5599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5600 *) ac_try_echo=$ac_try;;
5601esac
5602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5603 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5604 ac_status=$?
5605 grep -v '^ *+' conftest.er1 >conftest.err
5606 rm -f conftest.er1
5607 cat conftest.err >&5
5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); } >/dev/null; then
5610 if test -s conftest.err; then
5611 ac_cpp_err=$ac_c_preproc_warn_flag
5612 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5613 else
5614 ac_cpp_err=
5615 fi
5616else
5617 ac_cpp_err=yes
5618fi
5619if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005620 # Broken: success on invalid input.
5621continue
5622else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005623 echo "$as_me: failed program was:" >&5
5624sed 's/^/| /' conftest.$ac_ext >&5
5625
Reid Spencera773bd52006-08-04 18:18:08 +00005626 # Passes both tests.
5627ac_preproc_ok=:
5628break
5629fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005630
Reid Spencera773bd52006-08-04 18:18:08 +00005631rm -f conftest.err conftest.$ac_ext
5632
5633done
5634# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5635rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005636if $ac_preproc_ok; then
Reid Spencera773bd52006-08-04 18:18:08 +00005637 break
5638fi
5639
5640 done
5641 ac_cv_prog_CPP=$CPP
5642
5643fi
5644 CPP=$ac_cv_prog_CPP
5645else
5646 ac_cv_prog_CPP=$CPP
5647fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005648{ echo "$as_me:$LINENO: result: $CPP" >&5
5649echo "${ECHO_T}$CPP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005650ac_preproc_ok=false
5651for ac_c_preproc_warn_flag in '' yes
5652do
5653 # Use a header file that comes with gcc, so configuring glibc
5654 # with a fresh cross-compiler works.
5655 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5656 # <limits.h> exists even on freestanding compilers.
5657 # On the NeXT, cc -E runs the code through the compiler's parser,
5658 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005659 cat >conftest.$ac_ext <<_ACEOF
5660/* confdefs.h. */
5661_ACEOF
5662cat confdefs.h >>conftest.$ac_ext
5663cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005664/* end confdefs.h. */
5665#ifdef __STDC__
5666# include <limits.h>
5667#else
5668# include <assert.h>
5669#endif
5670 Syntax error
5671_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005672if { (ac_try="$ac_cpp conftest.$ac_ext"
5673case "(($ac_try" in
5674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5675 *) ac_try_echo=$ac_try;;
5676esac
5677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5678 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5679 ac_status=$?
5680 grep -v '^ *+' conftest.er1 >conftest.err
5681 rm -f conftest.er1
5682 cat conftest.err >&5
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); } >/dev/null; then
5685 if test -s conftest.err; then
5686 ac_cpp_err=$ac_c_preproc_warn_flag
5687 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5688 else
5689 ac_cpp_err=
5690 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005691else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005692 ac_cpp_err=yes
5693fi
5694if test -z "$ac_cpp_err"; then
5695 :
5696else
5697 echo "$as_me: failed program was:" >&5
5698sed 's/^/| /' conftest.$ac_ext >&5
5699
Reid Spencera773bd52006-08-04 18:18:08 +00005700 # Broken: fails on valid input.
5701continue
5702fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005703
Reid Spencera773bd52006-08-04 18:18:08 +00005704rm -f conftest.err conftest.$ac_ext
5705
5706 # OK, works on sane cases. Now check whether nonexistent headers
5707 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005708 cat >conftest.$ac_ext <<_ACEOF
5709/* confdefs.h. */
5710_ACEOF
5711cat confdefs.h >>conftest.$ac_ext
5712cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005713/* end confdefs.h. */
5714#include <ac_nonexistent.h>
5715_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005716if { (ac_try="$ac_cpp conftest.$ac_ext"
5717case "(($ac_try" in
5718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5719 *) ac_try_echo=$ac_try;;
5720esac
5721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5723 ac_status=$?
5724 grep -v '^ *+' conftest.er1 >conftest.err
5725 rm -f conftest.er1
5726 cat conftest.err >&5
5727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728 (exit $ac_status); } >/dev/null; then
5729 if test -s conftest.err; then
5730 ac_cpp_err=$ac_c_preproc_warn_flag
5731 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5732 else
5733 ac_cpp_err=
5734 fi
5735else
5736 ac_cpp_err=yes
5737fi
5738if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005739 # Broken: success on invalid input.
5740continue
5741else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005742 echo "$as_me: failed program was:" >&5
5743sed 's/^/| /' conftest.$ac_ext >&5
5744
Reid Spencera773bd52006-08-04 18:18:08 +00005745 # Passes both tests.
5746ac_preproc_ok=:
5747break
5748fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005749
Reid Spencera773bd52006-08-04 18:18:08 +00005750rm -f conftest.err conftest.$ac_ext
5751
5752done
5753# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5754rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005755if $ac_preproc_ok; then
5756 :
Reid Spencera773bd52006-08-04 18:18:08 +00005757else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005758 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5759See \`config.log' for more details." >&5
5760echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5761See \`config.log' for more details." >&2;}
5762 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005763fi
5764
5765ac_ext=c
5766ac_cpp='$CPP $CPPFLAGS'
5767ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5768ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5769ac_compiler_gnu=$ac_cv_c_compiler_gnu
5770
5771ac_ext=c
5772ac_cpp='$CPP $CPPFLAGS'
5773ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5774ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5775ac_compiler_gnu=$ac_cv_c_compiler_gnu
5776if test -n "$ac_tool_prefix"; then
5777 for ac_prog in gcc
5778 do
5779 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5780set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005781{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5782echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5783if test "${ac_cv_prog_CC+set}" = set; then
5784 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005785else
5786 if test -n "$CC"; then
5787 ac_cv_prog_CC="$CC" # Let the user override the test.
5788else
5789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5790for as_dir in $PATH
5791do
5792 IFS=$as_save_IFS
5793 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005794 for ac_exec_ext in '' $ac_executable_extensions; do
5795 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 +00005796 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005798 break 2
5799 fi
5800done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005801done
Reid Spencera773bd52006-08-04 18:18:08 +00005802IFS=$as_save_IFS
5803
5804fi
5805fi
5806CC=$ac_cv_prog_CC
5807if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005808 { echo "$as_me:$LINENO: result: $CC" >&5
5809echo "${ECHO_T}$CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005810else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005811 { echo "$as_me:$LINENO: result: no" >&5
5812echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005813fi
5814
5815
5816 test -n "$CC" && break
5817 done
5818fi
5819if test -z "$CC"; then
5820 ac_ct_CC=$CC
5821 for ac_prog in gcc
5822do
5823 # Extract the first word of "$ac_prog", so it can be a program name with args.
5824set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005825{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5827if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5828 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005829else
5830 if test -n "$ac_ct_CC"; then
5831 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5832else
5833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5834for as_dir in $PATH
5835do
5836 IFS=$as_save_IFS
5837 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005838 for ac_exec_ext in '' $ac_executable_extensions; do
5839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005840 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005842 break 2
5843 fi
5844done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005845done
Reid Spencera773bd52006-08-04 18:18:08 +00005846IFS=$as_save_IFS
5847
5848fi
5849fi
5850ac_ct_CC=$ac_cv_prog_ac_ct_CC
5851if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005852 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5853echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005854else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005855 { echo "$as_me:$LINENO: result: no" >&5
5856echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005857fi
5858
5859
5860 test -n "$ac_ct_CC" && break
5861done
5862
5863 if test "x$ac_ct_CC" = x; then
5864 CC=""
5865 else
5866 case $cross_compiling:$ac_tool_warned in
5867yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005868{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5869whose name does not start with the host triplet. If you think this
5870configuration is useful to you, please write to autoconf@gnu.org." >&5
5871echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5872whose name does not start with the host triplet. If you think this
5873configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00005874ac_tool_warned=yes ;;
5875esac
5876 CC=$ac_ct_CC
5877 fi
5878fi
5879
5880
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005881test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5882See \`config.log' for more details." >&5
5883echo "$as_me: error: no acceptable C compiler found in \$PATH
5884See \`config.log' for more details." >&2;}
5885 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005886
5887# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005888echo "$as_me:$LINENO: checking for C compiler version" >&5
5889ac_compiler=`set X $ac_compile; echo $2`
5890{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00005891case "(($ac_try" in
5892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5893 *) ac_try_echo=$ac_try;;
5894esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5896 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00005897 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005898 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); }
5910{ (ac_try="$ac_compiler -V >&5"
5911case "(($ac_try" in
5912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5913 *) ac_try_echo=$ac_try;;
5914esac
5915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5916 (eval "$ac_compiler -V >&5") 2>&5
5917 ac_status=$?
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00005920
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005921{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5922echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5923if test "${ac_cv_c_compiler_gnu+set}" = set; then
5924 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005925else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005926 cat >conftest.$ac_ext <<_ACEOF
5927/* confdefs.h. */
5928_ACEOF
5929cat confdefs.h >>conftest.$ac_ext
5930cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005931/* end confdefs.h. */
5932
5933int
5934main ()
5935{
5936#ifndef __GNUC__
5937 choke me
5938#endif
5939
5940 ;
5941 return 0;
5942}
5943_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005944rm -f conftest.$ac_objext
5945if { (ac_try="$ac_compile"
5946case "(($ac_try" in
5947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5948 *) ac_try_echo=$ac_try;;
5949esac
5950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5951 (eval "$ac_compile") 2>conftest.er1
5952 ac_status=$?
5953 grep -v '^ *+' conftest.er1 >conftest.err
5954 rm -f conftest.er1
5955 cat conftest.err >&5
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); } &&
5958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5959 { (case "(($ac_try" in
5960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5961 *) ac_try_echo=$ac_try;;
5962esac
5963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5964 (eval "$ac_try") 2>&5
5965 ac_status=$?
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); }; } &&
5968 { ac_try='test -s conftest.$ac_objext'
5969 { (case "(($ac_try" in
5970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5971 *) ac_try_echo=$ac_try;;
5972esac
5973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5974 (eval "$ac_try") 2>&5
5975 ac_status=$?
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005978 ac_compiler_gnu=yes
5979else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005980 echo "$as_me: failed program was:" >&5
5981sed 's/^/| /' conftest.$ac_ext >&5
5982
5983 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00005984fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005985
Reid Spencera773bd52006-08-04 18:18:08 +00005986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5987ac_cv_c_compiler_gnu=$ac_compiler_gnu
5988
5989fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005990{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5991echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5992GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00005993ac_test_CFLAGS=${CFLAGS+set}
5994ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005995{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5996echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5997if test "${ac_cv_prog_cc_g+set}" = set; then
5998 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005999else
6000 ac_save_c_werror_flag=$ac_c_werror_flag
6001 ac_c_werror_flag=yes
6002 ac_cv_prog_cc_g=no
6003 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006004 cat >conftest.$ac_ext <<_ACEOF
6005/* confdefs.h. */
6006_ACEOF
6007cat confdefs.h >>conftest.$ac_ext
6008cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006009/* end confdefs.h. */
6010
6011int
6012main ()
6013{
6014
6015 ;
6016 return 0;
6017}
6018_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006019rm -f conftest.$ac_objext
6020if { (ac_try="$ac_compile"
6021case "(($ac_try" in
6022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6023 *) ac_try_echo=$ac_try;;
6024esac
6025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6026 (eval "$ac_compile") 2>conftest.er1
6027 ac_status=$?
6028 grep -v '^ *+' conftest.er1 >conftest.err
6029 rm -f conftest.er1
6030 cat conftest.err >&5
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); } &&
6033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
6043 { ac_try='test -s conftest.$ac_objext'
6044 { (case "(($ac_try" in
6045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6046 *) ac_try_echo=$ac_try;;
6047esac
6048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6049 (eval "$ac_try") 2>&5
6050 ac_status=$?
6051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006053 ac_cv_prog_cc_g=yes
6054else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006055 echo "$as_me: failed program was:" >&5
6056sed 's/^/| /' conftest.$ac_ext >&5
6057
6058 CFLAGS=""
6059 cat >conftest.$ac_ext <<_ACEOF
6060/* confdefs.h. */
6061_ACEOF
6062cat confdefs.h >>conftest.$ac_ext
6063cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006064/* end confdefs.h. */
6065
6066int
6067main ()
6068{
6069
6070 ;
6071 return 0;
6072}
6073_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006074rm -f conftest.$ac_objext
6075if { (ac_try="$ac_compile"
6076case "(($ac_try" in
6077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6078 *) ac_try_echo=$ac_try;;
6079esac
6080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6081 (eval "$ac_compile") 2>conftest.er1
6082 ac_status=$?
6083 grep -v '^ *+' conftest.er1 >conftest.err
6084 rm -f conftest.er1
6085 cat conftest.err >&5
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); } &&
6088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
6098 { ac_try='test -s conftest.$ac_objext'
6099 { (case "(($ac_try" in
6100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6101 *) ac_try_echo=$ac_try;;
6102esac
6103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6104 (eval "$ac_try") 2>&5
6105 ac_status=$?
6106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107 (exit $ac_status); }; }; then
6108 :
Torok Edwin871384f2010-01-26 08:50:50 +00006109else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006110 echo "$as_me: failed program was:" >&5
6111sed 's/^/| /' conftest.$ac_ext >&5
6112
6113 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00006114 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006115 cat >conftest.$ac_ext <<_ACEOF
6116/* confdefs.h. */
6117_ACEOF
6118cat confdefs.h >>conftest.$ac_ext
6119cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006120/* end confdefs.h. */
6121
6122int
6123main ()
6124{
6125
6126 ;
6127 return 0;
6128}
6129_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006130rm -f conftest.$ac_objext
6131if { (ac_try="$ac_compile"
6132case "(($ac_try" in
6133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6134 *) ac_try_echo=$ac_try;;
6135esac
6136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6137 (eval "$ac_compile") 2>conftest.er1
6138 ac_status=$?
6139 grep -v '^ *+' conftest.er1 >conftest.err
6140 rm -f conftest.er1
6141 cat conftest.err >&5
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); } &&
6144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
6154 { ac_try='test -s conftest.$ac_objext'
6155 { (case "(($ac_try" in
6156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6157 *) ac_try_echo=$ac_try;;
6158esac
6159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6160 (eval "$ac_try") 2>&5
6161 ac_status=$?
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006164 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006165else
6166 echo "$as_me: failed program was:" >&5
6167sed 's/^/| /' conftest.$ac_ext >&5
6168
6169
Reid Spencera773bd52006-08-04 18:18:08 +00006170fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006171
Reid Spencera773bd52006-08-04 18:18:08 +00006172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6173fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006174
Reid Spencera773bd52006-08-04 18:18:08 +00006175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6176fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006177
Reid Spencera773bd52006-08-04 18:18:08 +00006178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6179 ac_c_werror_flag=$ac_save_c_werror_flag
6180fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006181{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6182echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006183if test "$ac_test_CFLAGS" = set; then
6184 CFLAGS=$ac_save_CFLAGS
6185elif test $ac_cv_prog_cc_g = yes; then
6186 if test "$GCC" = yes; then
6187 CFLAGS="-g -O2"
6188 else
6189 CFLAGS="-g"
6190 fi
6191else
6192 if test "$GCC" = yes; then
6193 CFLAGS="-O2"
6194 else
6195 CFLAGS=
6196 fi
6197fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006198{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6199echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6200if test "${ac_cv_prog_cc_c89+set}" = set; then
6201 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006202else
6203 ac_cv_prog_cc_c89=no
6204ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006205cat >conftest.$ac_ext <<_ACEOF
6206/* confdefs.h. */
6207_ACEOF
6208cat confdefs.h >>conftest.$ac_ext
6209cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006210/* end confdefs.h. */
6211#include <stdarg.h>
6212#include <stdio.h>
6213#include <sys/types.h>
6214#include <sys/stat.h>
6215/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6216struct buf { int x; };
6217FILE * (*rcsopen) (struct buf *, struct stat *, int);
6218static char *e (p, i)
6219 char **p;
6220 int i;
6221{
6222 return p[i];
6223}
6224static char *f (char * (*g) (char **, int), char **p, ...)
6225{
6226 char *s;
6227 va_list v;
6228 va_start (v,p);
6229 s = g (p, va_arg (v,int));
6230 va_end (v);
6231 return s;
6232}
6233
6234/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6235 function prototypes and stuff, but not '\xHH' hex character constants.
6236 These don't provoke an error unfortunately, instead are silently treated
6237 as 'x'. The following induces an error, until -std is added to get
6238 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6239 array size at least. It's necessary to write '\x00'==0 to get something
6240 that's true only with -std. */
6241int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6242
6243/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6244 inside strings and character constants. */
6245#define FOO(x) 'x'
6246int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6247
6248int test (int i, double x);
6249struct s1 {int (*f) (int a);};
6250struct s2 {int (*f) (double a);};
6251int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6252int argc;
6253char **argv;
6254int
6255main ()
6256{
6257return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6258 ;
6259 return 0;
6260}
6261_ACEOF
6262for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6263 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6264do
6265 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006266 rm -f conftest.$ac_objext
6267if { (ac_try="$ac_compile"
6268case "(($ac_try" in
6269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6270 *) ac_try_echo=$ac_try;;
6271esac
6272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6273 (eval "$ac_compile") 2>conftest.er1
6274 ac_status=$?
6275 grep -v '^ *+' conftest.er1 >conftest.err
6276 rm -f conftest.er1
6277 cat conftest.err >&5
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); } &&
6280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
6290 { ac_try='test -s conftest.$ac_objext'
6291 { (case "(($ac_try" in
6292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6293 *) ac_try_echo=$ac_try;;
6294esac
6295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6296 (eval "$ac_try") 2>&5
6297 ac_status=$?
6298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006300 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006301else
6302 echo "$as_me: failed program was:" >&5
6303sed 's/^/| /' conftest.$ac_ext >&5
6304
6305
Reid Spencera773bd52006-08-04 18:18:08 +00006306fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006307
Reid Spencera773bd52006-08-04 18:18:08 +00006308rm -f core conftest.err conftest.$ac_objext
6309 test "x$ac_cv_prog_cc_c89" != "xno" && break
6310done
6311rm -f conftest.$ac_ext
6312CC=$ac_save_CC
6313
6314fi
6315# AC_CACHE_VAL
6316case "x$ac_cv_prog_cc_c89" in
6317 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006318 { echo "$as_me:$LINENO: result: none needed" >&5
6319echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006320 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006321 { echo "$as_me:$LINENO: result: unsupported" >&5
6322echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006323 *)
6324 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006325 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6326echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006327esac
6328
6329
6330ac_ext=c
6331ac_cpp='$CPP $CPPFLAGS'
6332ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6333ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6334ac_compiler_gnu=$ac_cv_c_compiler_gnu
6335
6336ac_ext=cpp
6337ac_cpp='$CXXCPP $CPPFLAGS'
6338ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6339ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6340ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6341if test -z "$CXX"; then
6342 if test -n "$CCC"; then
6343 CXX=$CCC
6344 else
6345 if test -n "$ac_tool_prefix"; then
6346 for ac_prog in g++
6347 do
6348 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6349set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006350{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6351echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6352if test "${ac_cv_prog_CXX+set}" = set; then
6353 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006354else
6355 if test -n "$CXX"; then
6356 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6357else
6358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6359for as_dir in $PATH
6360do
6361 IFS=$as_save_IFS
6362 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006363 for ac_exec_ext in '' $ac_executable_extensions; do
6364 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 +00006365 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006367 break 2
6368 fi
6369done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006370done
Reid Spencera773bd52006-08-04 18:18:08 +00006371IFS=$as_save_IFS
6372
6373fi
6374fi
6375CXX=$ac_cv_prog_CXX
6376if test -n "$CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006377 { echo "$as_me:$LINENO: result: $CXX" >&5
6378echo "${ECHO_T}$CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006379else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006380 { echo "$as_me:$LINENO: result: no" >&5
6381echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006382fi
6383
6384
6385 test -n "$CXX" && break
6386 done
6387fi
6388if test -z "$CXX"; then
6389 ac_ct_CXX=$CXX
6390 for ac_prog in g++
6391do
6392 # Extract the first word of "$ac_prog", so it can be a program name with args.
6393set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006394{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6396if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6397 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006398else
6399 if test -n "$ac_ct_CXX"; then
6400 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6401else
6402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6403for as_dir in $PATH
6404do
6405 IFS=$as_save_IFS
6406 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006407 for ac_exec_ext in '' $ac_executable_extensions; do
6408 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 +00006409 ac_cv_prog_ac_ct_CXX="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006411 break 2
6412 fi
6413done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006414done
Reid Spencera773bd52006-08-04 18:18:08 +00006415IFS=$as_save_IFS
6416
6417fi
6418fi
6419ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6420if test -n "$ac_ct_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006421 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6422echo "${ECHO_T}$ac_ct_CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006423else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006424 { echo "$as_me:$LINENO: result: no" >&5
6425echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006426fi
6427
6428
6429 test -n "$ac_ct_CXX" && break
6430done
6431
6432 if test "x$ac_ct_CXX" = x; then
6433 CXX="g++"
6434 else
6435 case $cross_compiling:$ac_tool_warned in
6436yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006437{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6438whose name does not start with the host triplet. If you think this
6439configuration is useful to you, please write to autoconf@gnu.org." >&5
6440echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6441whose name does not start with the host triplet. If you think this
6442configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006443ac_tool_warned=yes ;;
6444esac
6445 CXX=$ac_ct_CXX
6446 fi
6447fi
6448
6449 fi
6450fi
6451# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006452echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6453ac_compiler=`set X $ac_compile; echo $2`
6454{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00006455case "(($ac_try" in
6456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6457 *) ac_try_echo=$ac_try;;
6458esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6460 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00006461 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006462 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); }
6474{ (ac_try="$ac_compiler -V >&5"
6475case "(($ac_try" in
6476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6477 *) ac_try_echo=$ac_try;;
6478esac
6479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6480 (eval "$ac_compiler -V >&5") 2>&5
6481 ac_status=$?
6482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00006484
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006485{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6486echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6487if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6488 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006489else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006490 cat >conftest.$ac_ext <<_ACEOF
6491/* confdefs.h. */
6492_ACEOF
6493cat confdefs.h >>conftest.$ac_ext
6494cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006495/* end confdefs.h. */
6496
6497int
6498main ()
6499{
6500#ifndef __GNUC__
6501 choke me
6502#endif
6503
6504 ;
6505 return 0;
6506}
6507_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006508rm -f conftest.$ac_objext
6509if { (ac_try="$ac_compile"
6510case "(($ac_try" in
6511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6512 *) ac_try_echo=$ac_try;;
6513esac
6514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6515 (eval "$ac_compile") 2>conftest.er1
6516 ac_status=$?
6517 grep -v '^ *+' conftest.er1 >conftest.err
6518 rm -f conftest.er1
6519 cat conftest.err >&5
6520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521 (exit $ac_status); } &&
6522 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6523 { (case "(($ac_try" in
6524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6525 *) ac_try_echo=$ac_try;;
6526esac
6527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6528 (eval "$ac_try") 2>&5
6529 ac_status=$?
6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 (exit $ac_status); }; } &&
6532 { ac_try='test -s conftest.$ac_objext'
6533 { (case "(($ac_try" in
6534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6535 *) ac_try_echo=$ac_try;;
6536esac
6537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6538 (eval "$ac_try") 2>&5
6539 ac_status=$?
6540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006542 ac_compiler_gnu=yes
6543else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006544 echo "$as_me: failed program was:" >&5
6545sed 's/^/| /' conftest.$ac_ext >&5
6546
6547 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00006548fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006549
Reid Spencera773bd52006-08-04 18:18:08 +00006550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6551ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6552
6553fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006554{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6555echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6556GXX=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00006557ac_test_CXXFLAGS=${CXXFLAGS+set}
6558ac_save_CXXFLAGS=$CXXFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006559{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6560echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6561if test "${ac_cv_prog_cxx_g+set}" = set; then
6562 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006563else
6564 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6565 ac_cxx_werror_flag=yes
6566 ac_cv_prog_cxx_g=no
6567 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006568 cat >conftest.$ac_ext <<_ACEOF
6569/* confdefs.h. */
6570_ACEOF
6571cat confdefs.h >>conftest.$ac_ext
6572cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006573/* end confdefs.h. */
6574
6575int
6576main ()
6577{
6578
6579 ;
6580 return 0;
6581}
6582_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006583rm -f conftest.$ac_objext
6584if { (ac_try="$ac_compile"
6585case "(($ac_try" in
6586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6587 *) ac_try_echo=$ac_try;;
6588esac
6589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6590 (eval "$ac_compile") 2>conftest.er1
6591 ac_status=$?
6592 grep -v '^ *+' conftest.er1 >conftest.err
6593 rm -f conftest.er1
6594 cat conftest.err >&5
6595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596 (exit $ac_status); } &&
6597 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
6607 { ac_try='test -s conftest.$ac_objext'
6608 { (case "(($ac_try" in
6609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6610 *) ac_try_echo=$ac_try;;
6611esac
6612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6613 (eval "$ac_try") 2>&5
6614 ac_status=$?
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006617 ac_cv_prog_cxx_g=yes
6618else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006619 echo "$as_me: failed program was:" >&5
6620sed 's/^/| /' conftest.$ac_ext >&5
6621
6622 CXXFLAGS=""
6623 cat >conftest.$ac_ext <<_ACEOF
6624/* confdefs.h. */
6625_ACEOF
6626cat confdefs.h >>conftest.$ac_ext
6627cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006628/* end confdefs.h. */
6629
6630int
6631main ()
6632{
6633
6634 ;
6635 return 0;
6636}
6637_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006638rm -f conftest.$ac_objext
6639if { (ac_try="$ac_compile"
6640case "(($ac_try" in
6641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6642 *) ac_try_echo=$ac_try;;
6643esac
6644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6645 (eval "$ac_compile") 2>conftest.er1
6646 ac_status=$?
6647 grep -v '^ *+' conftest.er1 >conftest.err
6648 rm -f conftest.er1
6649 cat conftest.err >&5
6650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651 (exit $ac_status); } &&
6652 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
6662 { ac_try='test -s conftest.$ac_objext'
6663 { (case "(($ac_try" in
6664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6665 *) ac_try_echo=$ac_try;;
6666esac
6667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6668 (eval "$ac_try") 2>&5
6669 ac_status=$?
6670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671 (exit $ac_status); }; }; then
6672 :
Torok Edwin871384f2010-01-26 08:50:50 +00006673else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006674 echo "$as_me: failed program was:" >&5
6675sed 's/^/| /' conftest.$ac_ext >&5
6676
6677 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00006678 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006679 cat >conftest.$ac_ext <<_ACEOF
6680/* confdefs.h. */
6681_ACEOF
6682cat confdefs.h >>conftest.$ac_ext
6683cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006684/* end confdefs.h. */
6685
6686int
6687main ()
6688{
6689
6690 ;
6691 return 0;
6692}
6693_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006694rm -f conftest.$ac_objext
6695if { (ac_try="$ac_compile"
6696case "(($ac_try" in
6697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6698 *) ac_try_echo=$ac_try;;
6699esac
6700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6701 (eval "$ac_compile") 2>conftest.er1
6702 ac_status=$?
6703 grep -v '^ *+' conftest.er1 >conftest.err
6704 rm -f conftest.er1
6705 cat conftest.err >&5
6706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707 (exit $ac_status); } &&
6708 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
6718 { ac_try='test -s conftest.$ac_objext'
6719 { (case "(($ac_try" in
6720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6721 *) ac_try_echo=$ac_try;;
6722esac
6723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6724 (eval "$ac_try") 2>&5
6725 ac_status=$?
6726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006728 ac_cv_prog_cxx_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006729else
6730 echo "$as_me: failed program was:" >&5
6731sed 's/^/| /' conftest.$ac_ext >&5
6732
6733
Reid Spencera773bd52006-08-04 18:18:08 +00006734fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006735
Reid Spencera773bd52006-08-04 18:18:08 +00006736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6737fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006738
Reid Spencera773bd52006-08-04 18:18:08 +00006739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6740fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006741
Reid Spencera773bd52006-08-04 18:18:08 +00006742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6743 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6744fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006745{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6746echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006747if test "$ac_test_CXXFLAGS" = set; then
6748 CXXFLAGS=$ac_save_CXXFLAGS
6749elif test $ac_cv_prog_cxx_g = yes; then
6750 if test "$GXX" = yes; then
6751 CXXFLAGS="-g -O2"
6752 else
6753 CXXFLAGS="-g"
6754 fi
6755else
6756 if test "$GXX" = yes; then
6757 CXXFLAGS="-O2"
6758 else
6759 CXXFLAGS=
6760 fi
6761fi
6762ac_ext=c
6763ac_cpp='$CPP $CPPFLAGS'
6764ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6765ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6766ac_compiler_gnu=$ac_cv_c_compiler_gnu
6767
Reid Spencera773bd52006-08-04 18:18:08 +00006768
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006769{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6770echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6771if test "${lt_cv_path_NM+set}" = set; then
6772 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006773else
6774 if test -n "$NM"; then
6775 # Let the user override the test.
6776 lt_cv_path_NM="$NM"
6777else
6778 lt_nm_to_check="${ac_tool_prefix}nm"
6779 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6780 lt_nm_to_check="$lt_nm_to_check nm"
6781 fi
6782 for lt_tmp_nm in $lt_nm_to_check; do
6783 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6784 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6785 IFS="$lt_save_ifs"
6786 test -z "$ac_dir" && ac_dir=.
6787 tmp_nm="$ac_dir/$lt_tmp_nm"
6788 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6789 # Check to see if the nm accepts a BSD-compat flag.
6790 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6791 # nm: unknown option "B" ignored
6792 # Tru64's nm complains that /dev/null is an invalid object file
6793 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6794 */dev/null* | *'Invalid file or object type'*)
6795 lt_cv_path_NM="$tmp_nm -B"
6796 break
6797 ;;
6798 *)
6799 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6800 */dev/null*)
6801 lt_cv_path_NM="$tmp_nm -p"
6802 break
6803 ;;
6804 *)
6805 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6806 continue # so that we can try to find one that supports BSD flags
6807 ;;
6808 esac
6809 ;;
6810 esac
6811 fi
6812 done
6813 IFS="$lt_save_ifs"
6814 done
6815 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6816fi
6817fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006818{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6819echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006820NM="$lt_cv_path_NM"
6821
6822
6823
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006824{ echo "$as_me:$LINENO: checking for GNU make" >&5
6825echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6826if test "${llvm_cv_gnu_make_command+set}" = set; then
6827 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006828else
6829 llvm_cv_gnu_make_command=''
6830 for a in "$MAKE" make gmake gnumake ; do
6831 if test -z "$a" ; then continue ; fi ;
6832 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6833 then
6834 llvm_cv_gnu_make_command=$a ;
6835 break;
6836 fi
6837 done
6838fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006839{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6840echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006841 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6842 ifGNUmake='' ;
6843 else
6844 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006845 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6846echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00006847 fi
6848
6849
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006850{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6851echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006852LN_S=$as_ln_s
6853if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006854 { echo "$as_me:$LINENO: result: yes" >&5
6855echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006856else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006857 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6858echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006859fi
6860
6861# Extract the first word of "cmp", so it can be a program name with args.
6862set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006863{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6865if test "${ac_cv_path_CMP+set}" = set; then
6866 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006867else
6868 case $CMP in
6869 [\\/]* | ?:[\\/]*)
6870 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6871 ;;
6872 *)
6873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6874for as_dir in $PATH
6875do
6876 IFS=$as_save_IFS
6877 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006878 for ac_exec_ext in '' $ac_executable_extensions; do
6879 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 +00006880 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006882 break 2
6883 fi
6884done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006885done
Reid Spencera773bd52006-08-04 18:18:08 +00006886IFS=$as_save_IFS
6887
6888 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6889 ;;
6890esac
6891fi
6892CMP=$ac_cv_path_CMP
6893if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006894 { echo "$as_me:$LINENO: result: $CMP" >&5
6895echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006896else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006897 { echo "$as_me:$LINENO: result: no" >&5
6898echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006899fi
6900
6901
6902# Extract the first word of "cp", so it can be a program name with args.
6903set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006904{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6906if test "${ac_cv_path_CP+set}" = set; then
6907 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006908else
6909 case $CP in
6910 [\\/]* | ?:[\\/]*)
6911 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6912 ;;
6913 *)
6914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6915for as_dir in $PATH
6916do
6917 IFS=$as_save_IFS
6918 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006919 for ac_exec_ext in '' $ac_executable_extensions; do
6920 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 +00006921 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006923 break 2
6924 fi
6925done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006926done
Reid Spencera773bd52006-08-04 18:18:08 +00006927IFS=$as_save_IFS
6928
6929 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6930 ;;
6931esac
6932fi
6933CP=$ac_cv_path_CP
6934if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006935 { echo "$as_me:$LINENO: result: $CP" >&5
6936echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006937else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006938 { echo "$as_me:$LINENO: result: no" >&5
6939echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006940fi
6941
6942
6943# Extract the first word of "date", so it can be a program name with args.
6944set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006945{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6946echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6947if test "${ac_cv_path_DATE+set}" = set; then
6948 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006949else
6950 case $DATE in
6951 [\\/]* | ?:[\\/]*)
6952 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6953 ;;
6954 *)
6955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6956for as_dir in $PATH
6957do
6958 IFS=$as_save_IFS
6959 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006960 for ac_exec_ext in '' $ac_executable_extensions; do
6961 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 +00006962 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006964 break 2
6965 fi
6966done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006967done
Reid Spencera773bd52006-08-04 18:18:08 +00006968IFS=$as_save_IFS
6969
6970 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6971 ;;
6972esac
6973fi
6974DATE=$ac_cv_path_DATE
6975if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006976 { echo "$as_me:$LINENO: result: $DATE" >&5
6977echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006978else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006979 { echo "$as_me:$LINENO: result: no" >&5
6980echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006981fi
6982
6983
6984# Extract the first word of "find", so it can be a program name with args.
6985set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006986{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6988if test "${ac_cv_path_FIND+set}" = set; then
6989 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006990else
6991 case $FIND in
6992 [\\/]* | ?:[\\/]*)
6993 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6994 ;;
6995 *)
6996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6997for as_dir in $PATH
6998do
6999 IFS=$as_save_IFS
7000 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007001 for ac_exec_ext in '' $ac_executable_extensions; do
7002 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 +00007003 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007005 break 2
7006 fi
7007done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007008done
Reid Spencera773bd52006-08-04 18:18:08 +00007009IFS=$as_save_IFS
7010
7011 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
7012 ;;
7013esac
7014fi
7015FIND=$ac_cv_path_FIND
7016if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007017 { echo "$as_me:$LINENO: result: $FIND" >&5
7018echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007019else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007020 { echo "$as_me:$LINENO: result: no" >&5
7021echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007022fi
7023
7024
7025# Extract the first word of "grep", so it can be a program name with args.
7026set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007027{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7028echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7029if test "${ac_cv_path_GREP+set}" = set; then
7030 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007031else
7032 case $GREP in
7033 [\\/]* | ?:[\\/]*)
7034 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
7035 ;;
7036 *)
7037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7038for as_dir in $PATH
7039do
7040 IFS=$as_save_IFS
7041 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007042 for ac_exec_ext in '' $ac_executable_extensions; do
7043 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 +00007044 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007046 break 2
7047 fi
7048done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007049done
Reid Spencera773bd52006-08-04 18:18:08 +00007050IFS=$as_save_IFS
7051
7052 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
7053 ;;
7054esac
7055fi
7056GREP=$ac_cv_path_GREP
7057if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007058 { echo "$as_me:$LINENO: result: $GREP" >&5
7059echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007060else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007061 { echo "$as_me:$LINENO: result: no" >&5
7062echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007063fi
7064
7065
7066# Extract the first word of "mkdir", so it can be a program name with args.
7067set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007068{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7069echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7070if test "${ac_cv_path_MKDIR+set}" = set; then
7071 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007072else
7073 case $MKDIR in
7074 [\\/]* | ?:[\\/]*)
7075 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7076 ;;
7077 *)
7078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7079for as_dir in $PATH
7080do
7081 IFS=$as_save_IFS
7082 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007083 for ac_exec_ext in '' $ac_executable_extensions; do
7084 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 +00007085 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007087 break 2
7088 fi
7089done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007090done
Reid Spencera773bd52006-08-04 18:18:08 +00007091IFS=$as_save_IFS
7092
7093 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
7094 ;;
7095esac
7096fi
7097MKDIR=$ac_cv_path_MKDIR
7098if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007099 { echo "$as_me:$LINENO: result: $MKDIR" >&5
7100echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007101else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007102 { echo "$as_me:$LINENO: result: no" >&5
7103echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007104fi
7105
7106
7107# Extract the first word of "mv", so it can be a program name with args.
7108set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007109{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7110echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7111if test "${ac_cv_path_MV+set}" = set; then
7112 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007113else
7114 case $MV in
7115 [\\/]* | ?:[\\/]*)
7116 ac_cv_path_MV="$MV" # Let the user override the test with a path.
7117 ;;
7118 *)
7119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7120for as_dir in $PATH
7121do
7122 IFS=$as_save_IFS
7123 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007124 for ac_exec_ext in '' $ac_executable_extensions; do
7125 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 +00007126 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007128 break 2
7129 fi
7130done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007131done
Reid Spencera773bd52006-08-04 18:18:08 +00007132IFS=$as_save_IFS
7133
7134 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7135 ;;
7136esac
7137fi
7138MV=$ac_cv_path_MV
7139if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007140 { echo "$as_me:$LINENO: result: $MV" >&5
7141echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007142else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007143 { echo "$as_me:$LINENO: result: no" >&5
7144echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007145fi
7146
7147
7148if test -n "$ac_tool_prefix"; then
7149 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7150set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007151{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7152echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7153if test "${ac_cv_prog_RANLIB+set}" = set; then
7154 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007155else
7156 if test -n "$RANLIB"; then
7157 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7158else
7159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7160for as_dir in $PATH
7161do
7162 IFS=$as_save_IFS
7163 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007164 for ac_exec_ext in '' $ac_executable_extensions; do
7165 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 +00007166 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007168 break 2
7169 fi
7170done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007171done
Reid Spencera773bd52006-08-04 18:18:08 +00007172IFS=$as_save_IFS
7173
7174fi
7175fi
7176RANLIB=$ac_cv_prog_RANLIB
7177if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007178 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7179echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007180else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007181 { echo "$as_me:$LINENO: result: no" >&5
7182echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007183fi
7184
7185
7186fi
7187if test -z "$ac_cv_prog_RANLIB"; then
7188 ac_ct_RANLIB=$RANLIB
7189 # Extract the first word of "ranlib", so it can be a program name with args.
7190set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007191{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7193if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7194 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007195else
7196 if test -n "$ac_ct_RANLIB"; then
7197 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7198else
7199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7200for as_dir in $PATH
7201do
7202 IFS=$as_save_IFS
7203 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007204 for ac_exec_ext in '' $ac_executable_extensions; do
7205 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 +00007206 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007208 break 2
7209 fi
7210done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007211done
Reid Spencera773bd52006-08-04 18:18:08 +00007212IFS=$as_save_IFS
7213
7214fi
7215fi
7216ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7217if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007218 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7219echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007220else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007221 { echo "$as_me:$LINENO: result: no" >&5
7222echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007223fi
7224
7225 if test "x$ac_ct_RANLIB" = x; then
7226 RANLIB=":"
7227 else
7228 case $cross_compiling:$ac_tool_warned in
7229yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007230{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7231whose name does not start with the host triplet. If you think this
7232configuration is useful to you, please write to autoconf@gnu.org." >&5
7233echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7234whose name does not start with the host triplet. If you think this
7235configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00007236ac_tool_warned=yes ;;
7237esac
7238 RANLIB=$ac_ct_RANLIB
7239 fi
7240else
7241 RANLIB="$ac_cv_prog_RANLIB"
7242fi
7243
Torok Edwin871384f2010-01-26 08:50:50 +00007244if test -n "$ac_tool_prefix"; then
7245 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7246set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007247{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7248echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7249if test "${ac_cv_prog_AR+set}" = set; then
7250 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007251else
7252 if test -n "$AR"; then
7253 ac_cv_prog_AR="$AR" # Let the user override the test.
7254else
7255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7256for as_dir in $PATH
7257do
7258 IFS=$as_save_IFS
7259 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007260 for ac_exec_ext in '' $ac_executable_extensions; do
7261 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 +00007262 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007264 break 2
7265 fi
7266done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007267done
Torok Edwin871384f2010-01-26 08:50:50 +00007268IFS=$as_save_IFS
7269
7270fi
7271fi
7272AR=$ac_cv_prog_AR
7273if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007274 { echo "$as_me:$LINENO: result: $AR" >&5
7275echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007276else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007277 { echo "$as_me:$LINENO: result: no" >&5
7278echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007279fi
7280
7281
7282fi
7283if test -z "$ac_cv_prog_AR"; then
7284 ac_ct_AR=$AR
7285 # Extract the first word of "ar", so it can be a program name with args.
7286set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007287{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7288echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7289if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7290 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007291else
7292 if test -n "$ac_ct_AR"; then
7293 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7294else
7295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7296for as_dir in $PATH
7297do
7298 IFS=$as_save_IFS
7299 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007300 for ac_exec_ext in '' $ac_executable_extensions; do
7301 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 +00007302 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007304 break 2
7305 fi
7306done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007307done
Torok Edwin871384f2010-01-26 08:50:50 +00007308IFS=$as_save_IFS
7309
7310fi
7311fi
7312ac_ct_AR=$ac_cv_prog_ac_ct_AR
7313if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007314 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7315echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007316else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007317 { echo "$as_me:$LINENO: result: no" >&5
7318echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007319fi
7320
7321 if test "x$ac_ct_AR" = x; then
7322 AR="false"
7323 else
7324 case $cross_compiling:$ac_tool_warned in
7325yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007326{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7327whose name does not start with the host triplet. If you think this
7328configuration is useful to you, please write to autoconf@gnu.org." >&5
7329echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7330whose name does not start with the host triplet. If you think this
7331configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00007332ac_tool_warned=yes ;;
7333esac
7334 AR=$ac_ct_AR
7335 fi
7336else
7337 AR="$ac_cv_prog_AR"
7338fi
7339
Reid Spencera773bd52006-08-04 18:18:08 +00007340# Extract the first word of "rm", so it can be a program name with args.
7341set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007342{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7343echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7344if test "${ac_cv_path_RM+set}" = set; then
7345 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007346else
7347 case $RM in
7348 [\\/]* | ?:[\\/]*)
7349 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7350 ;;
7351 *)
7352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7353for as_dir in $PATH
7354do
7355 IFS=$as_save_IFS
7356 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007357 for ac_exec_ext in '' $ac_executable_extensions; do
7358 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 +00007359 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007361 break 2
7362 fi
7363done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007364done
Reid Spencera773bd52006-08-04 18:18:08 +00007365IFS=$as_save_IFS
7366
7367 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7368 ;;
7369esac
7370fi
7371RM=$ac_cv_path_RM
7372if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007373 { echo "$as_me:$LINENO: result: $RM" >&5
7374echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007375else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007376 { echo "$as_me:$LINENO: result: no" >&5
7377echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007378fi
7379
7380
7381# Extract the first word of "sed", so it can be a program name with args.
7382set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007383{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7385if test "${ac_cv_path_SED+set}" = set; then
7386 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007387else
7388 case $SED in
7389 [\\/]* | ?:[\\/]*)
7390 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7391 ;;
7392 *)
7393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7394for as_dir in $PATH
7395do
7396 IFS=$as_save_IFS
7397 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007398 for ac_exec_ext in '' $ac_executable_extensions; do
7399 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 +00007400 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007402 break 2
7403 fi
7404done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007405done
Reid Spencera773bd52006-08-04 18:18:08 +00007406IFS=$as_save_IFS
7407
7408 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7409 ;;
7410esac
7411fi
7412SED=$ac_cv_path_SED
7413if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007414 { echo "$as_me:$LINENO: result: $SED" >&5
7415echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007416else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007417 { echo "$as_me:$LINENO: result: no" >&5
7418echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007419fi
7420
7421
7422# Extract the first word of "tar", so it can be a program name with args.
7423set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007424{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7425echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7426if test "${ac_cv_path_TAR+set}" = set; then
7427 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007428else
7429 case $TAR in
7430 [\\/]* | ?:[\\/]*)
7431 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7432 ;;
7433 *)
7434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7435for as_dir in $PATH
7436do
7437 IFS=$as_save_IFS
7438 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007439 for ac_exec_ext in '' $ac_executable_extensions; do
7440 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 +00007441 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007443 break 2
7444 fi
7445done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007446done
Reid Spencera773bd52006-08-04 18:18:08 +00007447IFS=$as_save_IFS
7448
7449 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7450 ;;
7451esac
7452fi
7453TAR=$ac_cv_path_TAR
7454if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007455 { echo "$as_me:$LINENO: result: $TAR" >&5
7456echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007457else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007458 { echo "$as_me:$LINENO: result: no" >&5
7459echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007460fi
7461
7462
7463# Extract the first word of "pwd", so it can be a program name with args.
7464set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007465{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7467if test "${ac_cv_path_BINPWD+set}" = set; then
7468 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007469else
7470 case $BINPWD in
7471 [\\/]* | ?:[\\/]*)
7472 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7473 ;;
7474 *)
7475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7476for as_dir in $PATH
7477do
7478 IFS=$as_save_IFS
7479 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007480 for ac_exec_ext in '' $ac_executable_extensions; do
7481 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 +00007482 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007484 break 2
7485 fi
7486done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007487done
Reid Spencera773bd52006-08-04 18:18:08 +00007488IFS=$as_save_IFS
7489
7490 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7491 ;;
7492esac
7493fi
7494BINPWD=$ac_cv_path_BINPWD
7495if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007496 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7497echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007498else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007499 { echo "$as_me:$LINENO: result: no" >&5
7500echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007501fi
7502
7503
7504
7505# Extract the first word of "Graphviz", so it can be a program name with args.
7506set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007507{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7508echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7509if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7510 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007511else
7512 case $GRAPHVIZ in
7513 [\\/]* | ?:[\\/]*)
7514 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7515 ;;
7516 *)
7517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7518for as_dir in $PATH
7519do
7520 IFS=$as_save_IFS
7521 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007522 for ac_exec_ext in '' $ac_executable_extensions; do
7523 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 +00007524 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007526 break 2
7527 fi
7528done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007529done
Reid Spencera773bd52006-08-04 18:18:08 +00007530IFS=$as_save_IFS
7531
7532 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7533 ;;
7534esac
7535fi
7536GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7537if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007538 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7539echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007540else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007541 { echo "$as_me:$LINENO: result: no" >&5
7542echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007543fi
7544
7545
7546if test "$GRAPHVIZ" != "echo Graphviz" ; then
7547
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007548cat >>confdefs.h <<\_ACEOF
7549#define HAVE_GRAPHVIZ 1
7550_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007551
Jeff Cohen28783c32007-01-12 18:22:38 +00007552 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007553 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7554 fi
7555
7556cat >>confdefs.h <<_ACEOF
7557#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7558_ACEOF
7559
7560fi
7561# Extract the first word of "dot", so it can be a program name with args.
7562set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007563{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7564echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7565if test "${ac_cv_path_DOT+set}" = set; then
7566 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007567else
7568 case $DOT in
7569 [\\/]* | ?:[\\/]*)
7570 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7571 ;;
7572 *)
7573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7574for as_dir in $PATH
7575do
7576 IFS=$as_save_IFS
7577 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007578 for ac_exec_ext in '' $ac_executable_extensions; do
7579 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 +00007580 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007582 break 2
7583 fi
7584done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007585done
Reid Spencera773bd52006-08-04 18:18:08 +00007586IFS=$as_save_IFS
7587
7588 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7589 ;;
7590esac
7591fi
7592DOT=$ac_cv_path_DOT
7593if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007594 { echo "$as_me:$LINENO: result: $DOT" >&5
7595echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007596else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007597 { echo "$as_me:$LINENO: result: no" >&5
7598echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007599fi
7600
7601
7602if test "$DOT" != "echo dot" ; then
7603
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007604cat >>confdefs.h <<\_ACEOF
7605#define HAVE_DOT 1
7606_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007607
Jeff Cohen28783c32007-01-12 18:22:38 +00007608 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007609 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7610 fi
7611
7612cat >>confdefs.h <<_ACEOF
7613#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7614_ACEOF
7615
7616fi
David Greenef0b9eff2009-07-09 17:16:26 +00007617# Extract the first word of "fdp", so it can be a program name with args.
7618set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007619{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7620echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7621if test "${ac_cv_path_FDP+set}" = set; then
7622 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007623else
7624 case $FDP in
7625 [\\/]* | ?:[\\/]*)
7626 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7627 ;;
7628 *)
7629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7630for as_dir in $PATH
7631do
7632 IFS=$as_save_IFS
7633 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007634 for ac_exec_ext in '' $ac_executable_extensions; do
7635 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 +00007636 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007638 break 2
7639 fi
7640done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007641done
David Greenef0b9eff2009-07-09 17:16:26 +00007642IFS=$as_save_IFS
7643
7644 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7645 ;;
7646esac
7647fi
7648FDP=$ac_cv_path_FDP
7649if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007650 { echo "$as_me:$LINENO: result: $FDP" >&5
7651echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007652else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007653 { echo "$as_me:$LINENO: result: no" >&5
7654echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007655fi
7656
7657
7658if test "$FDP" != "echo fdp" ; then
7659
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007660cat >>confdefs.h <<\_ACEOF
7661#define HAVE_FDP 1
7662_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007663
7664 if test "$llvm_cv_os_type" = "MingW" ; then
7665 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7666 fi
7667
7668cat >>confdefs.h <<_ACEOF
7669#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7670_ACEOF
7671
7672fi
7673# Extract the first word of "neato", so it can be a program name with args.
7674set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007675{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7677if test "${ac_cv_path_NEATO+set}" = set; then
7678 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007679else
7680 case $NEATO in
7681 [\\/]* | ?:[\\/]*)
7682 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7683 ;;
7684 *)
7685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7686for as_dir in $PATH
7687do
7688 IFS=$as_save_IFS
7689 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007690 for ac_exec_ext in '' $ac_executable_extensions; do
7691 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 +00007692 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007694 break 2
7695 fi
7696done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007697done
David Greenef0b9eff2009-07-09 17:16:26 +00007698IFS=$as_save_IFS
7699
7700 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7701 ;;
7702esac
7703fi
7704NEATO=$ac_cv_path_NEATO
7705if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007706 { echo "$as_me:$LINENO: result: $NEATO" >&5
7707echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007708else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007709 { echo "$as_me:$LINENO: result: no" >&5
7710echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007711fi
7712
7713
7714if test "$NEATO" != "echo neato" ; then
7715
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007716cat >>confdefs.h <<\_ACEOF
7717#define HAVE_NEATO 1
7718_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007719
7720 if test "$llvm_cv_os_type" = "MingW" ; then
7721 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7722 fi
7723
7724cat >>confdefs.h <<_ACEOF
7725#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7726_ACEOF
7727
7728fi
7729# Extract the first word of "twopi", so it can be a program name with args.
7730set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007731{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7733if test "${ac_cv_path_TWOPI+set}" = set; then
7734 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007735else
7736 case $TWOPI in
7737 [\\/]* | ?:[\\/]*)
7738 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7739 ;;
7740 *)
7741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7742for as_dir in $PATH
7743do
7744 IFS=$as_save_IFS
7745 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007746 for ac_exec_ext in '' $ac_executable_extensions; do
7747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greenef0b9eff2009-07-09 17:16:26 +00007748 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007750 break 2
7751 fi
7752done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007753done
David Greenef0b9eff2009-07-09 17:16:26 +00007754IFS=$as_save_IFS
7755
7756 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7757 ;;
7758esac
7759fi
7760TWOPI=$ac_cv_path_TWOPI
7761if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007762 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7763echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007764else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007765 { echo "$as_me:$LINENO: result: no" >&5
7766echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007767fi
7768
7769
7770if test "$TWOPI" != "echo twopi" ; then
7771
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007772cat >>confdefs.h <<\_ACEOF
7773#define HAVE_TWOPI 1
7774_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007775
7776 if test "$llvm_cv_os_type" = "MingW" ; then
7777 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7778 fi
7779
7780cat >>confdefs.h <<_ACEOF
7781#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7782_ACEOF
7783
7784fi
7785# Extract the first word of "circo", so it can be a program name with args.
7786set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007787{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7788echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7789if test "${ac_cv_path_CIRCO+set}" = set; then
7790 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007791else
7792 case $CIRCO in
7793 [\\/]* | ?:[\\/]*)
7794 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7795 ;;
7796 *)
7797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7798for as_dir in $PATH
7799do
7800 IFS=$as_save_IFS
7801 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007802 for ac_exec_ext in '' $ac_executable_extensions; do
7803 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 +00007804 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007806 break 2
7807 fi
7808done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007809done
David Greenef0b9eff2009-07-09 17:16:26 +00007810IFS=$as_save_IFS
7811
7812 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7813 ;;
7814esac
7815fi
7816CIRCO=$ac_cv_path_CIRCO
7817if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007818 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7819echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007820else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007821 { echo "$as_me:$LINENO: result: no" >&5
7822echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007823fi
7824
7825
7826if test "$CIRCO" != "echo circo" ; then
7827
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007828cat >>confdefs.h <<\_ACEOF
7829#define HAVE_CIRCO 1
7830_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007831
7832 if test "$llvm_cv_os_type" = "MingW" ; then
7833 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7834 fi
7835
7836cat >>confdefs.h <<_ACEOF
7837#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7838_ACEOF
7839
7840fi
Reid Spencera773bd52006-08-04 18:18:08 +00007841for ac_prog in gv gsview32
7842do
7843 # Extract the first word of "$ac_prog", so it can be a program name with args.
7844set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007845{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7847if test "${ac_cv_path_GV+set}" = set; then
7848 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007849else
7850 case $GV in
7851 [\\/]* | ?:[\\/]*)
7852 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7853 ;;
7854 *)
7855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7856for as_dir in $PATH
7857do
7858 IFS=$as_save_IFS
7859 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007860 for ac_exec_ext in '' $ac_executable_extensions; do
7861 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 +00007862 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007864 break 2
7865 fi
7866done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007867done
Reid Spencera773bd52006-08-04 18:18:08 +00007868IFS=$as_save_IFS
7869
7870 ;;
7871esac
7872fi
7873GV=$ac_cv_path_GV
7874if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007875 { echo "$as_me:$LINENO: result: $GV" >&5
7876echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007877else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007878 { echo "$as_me:$LINENO: result: no" >&5
7879echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007880fi
7881
7882
7883 test -n "$GV" && break
7884done
7885test -n "$GV" || GV="echo gv"
7886
7887if test "$GV" != "echo gv" ; then
7888
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007889cat >>confdefs.h <<\_ACEOF
7890#define HAVE_GV 1
7891_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007892
Jeff Cohen28783c32007-01-12 18:22:38 +00007893 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007894 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7895 fi
7896
7897cat >>confdefs.h <<_ACEOF
7898#define LLVM_PATH_GV "$GV${EXEEXT}"
7899_ACEOF
7900
7901fi
7902# Extract the first word of "dotty", so it can be a program name with args.
7903set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007904{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7906if test "${ac_cv_path_DOTTY+set}" = set; then
7907 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007908else
7909 case $DOTTY in
7910 [\\/]* | ?:[\\/]*)
7911 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7912 ;;
7913 *)
7914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7915for as_dir in $PATH
7916do
7917 IFS=$as_save_IFS
7918 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007919 for ac_exec_ext in '' $ac_executable_extensions; do
7920 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 +00007921 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007923 break 2
7924 fi
7925done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007926done
Reid Spencera773bd52006-08-04 18:18:08 +00007927IFS=$as_save_IFS
7928
7929 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7930 ;;
7931esac
7932fi
7933DOTTY=$ac_cv_path_DOTTY
7934if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007935 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7936echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007937else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007938 { echo "$as_me:$LINENO: result: no" >&5
7939echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007940fi
7941
7942
7943if test "$DOTTY" != "echo dotty" ; then
7944
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007945cat >>confdefs.h <<\_ACEOF
7946#define HAVE_DOTTY 1
7947_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007948
Jeff Cohen28783c32007-01-12 18:22:38 +00007949 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007950 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7951 fi
7952
7953cat >>confdefs.h <<_ACEOF
7954#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7955_ACEOF
7956
7957fi
Dan Gohman48fd5a72010-09-27 16:28:34 +00007958# Extract the first word of "xdot.py", so it can be a program name with args.
7959set dummy xdot.py; ac_word=$2
7960{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7961echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7962if test "${ac_cv_path_XDOT_PY+set}" = set; then
7963 echo $ECHO_N "(cached) $ECHO_C" >&6
7964else
7965 case $XDOT_PY in
7966 [\\/]* | ?:[\\/]*)
7967 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7968 ;;
7969 *)
7970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7971for as_dir in $PATH
7972do
7973 IFS=$as_save_IFS
7974 test -z "$as_dir" && as_dir=.
7975 for ac_exec_ext in '' $ac_executable_extensions; do
7976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7977 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7979 break 2
7980 fi
7981done
7982done
7983IFS=$as_save_IFS
7984
7985 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7986 ;;
7987esac
7988fi
7989XDOT_PY=$ac_cv_path_XDOT_PY
7990if test -n "$XDOT_PY"; then
7991 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7992echo "${ECHO_T}$XDOT_PY" >&6; }
7993else
7994 { echo "$as_me:$LINENO: result: no" >&5
7995echo "${ECHO_T}no" >&6; }
7996fi
7997
7998
7999if test "$XDOT_PY" != "echo xdot.py" ; then
8000
8001cat >>confdefs.h <<\_ACEOF
8002#define HAVE_XDOT_PY 1
8003_ACEOF
8004
8005 if test "$llvm_cv_os_type" = "MingW" ; then
8006 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
8007 fi
8008
8009cat >>confdefs.h <<_ACEOF
8010#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
8011_ACEOF
8012
8013fi
Reid Spencera773bd52006-08-04 18:18:08 +00008014
8015
8016# Extract the first word of "perl", so it can be a program name with args.
8017set dummy perl; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008018{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8019echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8020if test "${ac_cv_path_PERL+set}" = set; then
8021 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008022else
8023 case $PERL in
8024 [\\/]* | ?:[\\/]*)
8025 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
8026 ;;
8027 *)
8028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8029for as_dir in $PATH
8030do
8031 IFS=$as_save_IFS
8032 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008033 for ac_exec_ext in '' $ac_executable_extensions; do
8034 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 +00008035 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008037 break 2
8038 fi
8039done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008040done
Reid Spencera773bd52006-08-04 18:18:08 +00008041IFS=$as_save_IFS
8042
8043 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
8044 ;;
8045esac
8046fi
8047PERL=$ac_cv_path_PERL
8048if test -n "$PERL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008049 { echo "$as_me:$LINENO: result: $PERL" >&5
8050echo "${ECHO_T}$PERL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008051else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008052 { echo "$as_me:$LINENO: result: no" >&5
8053echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008054fi
8055
8056
8057if test "$PERL" != "none"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008058 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
8059echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008060 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008061 { echo "$as_me:$LINENO: result: yes" >&5
8062echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008063 else
8064 PERL=none
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008065 { echo "$as_me:$LINENO: result: not found" >&5
8066echo "${ECHO_T}not found" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008067 fi
8068fi
8069
8070
8071if test x"$PERL" = xnone; then
8072 HAVE_PERL=0
8073
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008074 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
8075echo "$as_me: error: perl is required but was not found, please install it" >&2;}
8076 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00008077else
8078 HAVE_PERL=1
8079
8080fi
8081
8082# Find a good install program. We prefer a C program (faster),
8083# so one script is as good as another. But avoid the broken or
8084# incompatible versions:
8085# SysV /etc/install, /usr/sbin/install
8086# SunOS /usr/etc/install
8087# IRIX /sbin/install
8088# AIX /bin/install
8089# AmigaOS /C/install, which installs bootblocks on floppy discs
8090# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8091# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8092# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8093# OS/2's system install, which has a completely different semantic
8094# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008095{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8096echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008097if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008098if test "${ac_cv_path_install+set}" = set; then
8099 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008100else
8101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8102for as_dir in $PATH
8103do
8104 IFS=$as_save_IFS
8105 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008106 # Account for people who put trailing slashes in PATH elements.
8107case $as_dir/ in
8108 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00008109 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008110 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00008111 /usr/ucb/* ) ;;
8112 *)
8113 # OSF1 and SCO ODT 3.0 have their own names for install.
8114 # Don't use installbsd from OSF since it installs stuff as root
8115 # by default.
8116 for ac_prog in ginstall scoinst install; do
8117 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008118 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 +00008119 if test $ac_prog = install &&
8120 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8121 # AIX install. It has an incompatible calling convention.
8122 :
8123 elif test $ac_prog = install &&
8124 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8125 # program-specific install script used by HP pwplus--don't use.
8126 :
8127 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008128 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8129 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00008130 fi
8131 fi
8132 done
8133 done
8134 ;;
8135esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008136done
Reid Spencera773bd52006-08-04 18:18:08 +00008137IFS=$as_save_IFS
8138
8139
8140fi
8141 if test "${ac_cv_path_install+set}" = set; then
8142 INSTALL=$ac_cv_path_install
8143 else
8144 # As a last resort, use the slow shell script. Don't cache a
8145 # value for INSTALL within a source directory, because that will
8146 # break other packages using the cache if that directory is
8147 # removed, or if the value is a relative name.
8148 INSTALL=$ac_install_sh
8149 fi
8150fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008151{ echo "$as_me:$LINENO: result: $INSTALL" >&5
8152echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008153
8154# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8155# It thinks the first close brace ends the variable substitution.
8156test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8157
8158test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8159
8160test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8161
Eric Christopher2a1a44f2010-07-22 21:13:48 +00008162case "$INSTALL" in
8163 [\\/$]* | ?:[\\/]* ) ;;
8164 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
8165esac
Reid Spencera773bd52006-08-04 18:18:08 +00008166
8167# Extract the first word of "bzip2", so it can be a program name with args.
8168set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008169{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8171if test "${ac_cv_path_BZIP2+set}" = set; then
8172 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008173else
8174 case $BZIP2 in
8175 [\\/]* | ?:[\\/]*)
8176 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8177 ;;
8178 *)
8179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8180for as_dir in $PATH
8181do
8182 IFS=$as_save_IFS
8183 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008184 for ac_exec_ext in '' $ac_executable_extensions; do
8185 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 +00008186 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008188 break 2
8189 fi
8190done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008191done
Reid Spencera773bd52006-08-04 18:18:08 +00008192IFS=$as_save_IFS
8193
Reid Spencera773bd52006-08-04 18:18:08 +00008194 ;;
8195esac
8196fi
8197BZIP2=$ac_cv_path_BZIP2
8198if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008199 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8200echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008201else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008202 { echo "$as_me:$LINENO: result: no" >&5
8203echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008204fi
8205
8206
mike-m68cb3192010-05-06 23:45:43 +00008207# Extract the first word of "cat", so it can be a program name with args.
8208set dummy cat; ac_word=$2
8209{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8210echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8211if test "${ac_cv_path_CAT+set}" = set; then
8212 echo $ECHO_N "(cached) $ECHO_C" >&6
8213else
8214 case $CAT in
8215 [\\/]* | ?:[\\/]*)
8216 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8217 ;;
8218 *)
8219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8220for as_dir in $PATH
8221do
8222 IFS=$as_save_IFS
8223 test -z "$as_dir" && as_dir=.
8224 for ac_exec_ext in '' $ac_executable_extensions; do
8225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8226 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8228 break 2
8229 fi
8230done
8231done
8232IFS=$as_save_IFS
8233
8234 ;;
8235esac
8236fi
8237CAT=$ac_cv_path_CAT
8238if test -n "$CAT"; then
8239 { echo "$as_me:$LINENO: result: $CAT" >&5
8240echo "${ECHO_T}$CAT" >&6; }
8241else
8242 { echo "$as_me:$LINENO: result: no" >&5
8243echo "${ECHO_T}no" >&6; }
8244fi
8245
8246
Reid Spencera773bd52006-08-04 18:18:08 +00008247# Extract the first word of "doxygen", so it can be a program name with args.
8248set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008249{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8250echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8251if test "${ac_cv_path_DOXYGEN+set}" = set; then
8252 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008253else
8254 case $DOXYGEN in
8255 [\\/]* | ?:[\\/]*)
8256 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8257 ;;
8258 *)
8259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8260for as_dir in $PATH
8261do
8262 IFS=$as_save_IFS
8263 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008264 for ac_exec_ext in '' $ac_executable_extensions; do
8265 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 +00008266 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008268 break 2
8269 fi
8270done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008271done
Reid Spencera773bd52006-08-04 18:18:08 +00008272IFS=$as_save_IFS
8273
Reid Spencera773bd52006-08-04 18:18:08 +00008274 ;;
8275esac
8276fi
8277DOXYGEN=$ac_cv_path_DOXYGEN
8278if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008279 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8280echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008281else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008282 { echo "$as_me:$LINENO: result: no" >&5
8283echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008284fi
8285
8286
Reid Spencera773bd52006-08-04 18:18:08 +00008287# Extract the first word of "groff", so it can be a program name with args.
8288set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008289{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8290echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8291if test "${ac_cv_path_GROFF+set}" = set; then
8292 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008293else
8294 case $GROFF in
8295 [\\/]* | ?:[\\/]*)
8296 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8297 ;;
8298 *)
8299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8300for as_dir in $PATH
8301do
8302 IFS=$as_save_IFS
8303 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008304 for ac_exec_ext in '' $ac_executable_extensions; do
8305 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 +00008306 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008308 break 2
8309 fi
8310done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008311done
Reid Spencera773bd52006-08-04 18:18:08 +00008312IFS=$as_save_IFS
8313
Reid Spencera773bd52006-08-04 18:18:08 +00008314 ;;
8315esac
8316fi
8317GROFF=$ac_cv_path_GROFF
8318if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008319 { echo "$as_me:$LINENO: result: $GROFF" >&5
8320echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008321else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008322 { echo "$as_me:$LINENO: result: no" >&5
8323echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008324fi
8325
8326
8327# Extract the first word of "gzip", so it can be a program name with args.
8328set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008329{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8330echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher031d3072010-12-10 01:31:51 +00008331if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008332 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008333else
Eric Christopher031d3072010-12-10 01:31:51 +00008334 case $GZIPBIN in
Reid Spencera773bd52006-08-04 18:18:08 +00008335 [\\/]* | ?:[\\/]*)
Eric Christopher031d3072010-12-10 01:31:51 +00008336 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencera773bd52006-08-04 18:18:08 +00008337 ;;
8338 *)
8339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8340for as_dir in $PATH
8341do
8342 IFS=$as_save_IFS
8343 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008344 for ac_exec_ext in '' $ac_executable_extensions; do
8345 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 +00008346 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008348 break 2
8349 fi
8350done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008351done
Reid Spencera773bd52006-08-04 18:18:08 +00008352IFS=$as_save_IFS
8353
Reid Spencera773bd52006-08-04 18:18:08 +00008354 ;;
8355esac
8356fi
Eric Christopher031d3072010-12-10 01:31:51 +00008357GZIPBIN=$ac_cv_path_GZIPBIN
8358if test -n "$GZIPBIN"; then
8359 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
8360echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008361else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008362 { echo "$as_me:$LINENO: result: no" >&5
8363echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008364fi
8365
8366
8367# Extract the first word of "pod2html", so it can be a program name with args.
8368set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008369{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8370echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8371if test "${ac_cv_path_POD2HTML+set}" = set; then
8372 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008373else
8374 case $POD2HTML in
8375 [\\/]* | ?:[\\/]*)
8376 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8377 ;;
8378 *)
8379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8380for as_dir in $PATH
8381do
8382 IFS=$as_save_IFS
8383 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008384 for ac_exec_ext in '' $ac_executable_extensions; do
8385 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 +00008386 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008388 break 2
8389 fi
8390done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008391done
Reid Spencera773bd52006-08-04 18:18:08 +00008392IFS=$as_save_IFS
8393
Reid Spencera773bd52006-08-04 18:18:08 +00008394 ;;
8395esac
8396fi
8397POD2HTML=$ac_cv_path_POD2HTML
8398if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008399 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8400echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008401else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008402 { echo "$as_me:$LINENO: result: no" >&5
8403echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008404fi
8405
8406
8407# Extract the first word of "pod2man", so it can be a program name with args.
8408set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008409{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8410echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8411if test "${ac_cv_path_POD2MAN+set}" = set; then
8412 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008413else
8414 case $POD2MAN in
8415 [\\/]* | ?:[\\/]*)
8416 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8417 ;;
8418 *)
8419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8420for as_dir in $PATH
8421do
8422 IFS=$as_save_IFS
8423 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008424 for ac_exec_ext in '' $ac_executable_extensions; do
8425 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 +00008426 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008428 break 2
8429 fi
8430done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008431done
Reid Spencera773bd52006-08-04 18:18:08 +00008432IFS=$as_save_IFS
8433
Reid Spencera773bd52006-08-04 18:18:08 +00008434 ;;
8435esac
8436fi
8437POD2MAN=$ac_cv_path_POD2MAN
8438if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008439 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8440echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008441else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008442 { echo "$as_me:$LINENO: result: no" >&5
8443echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008444fi
8445
8446
mike-m68cb3192010-05-06 23:45:43 +00008447# Extract the first word of "pdfroff", so it can be a program name with args.
8448set dummy pdfroff; ac_word=$2
8449{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8450echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8451if test "${ac_cv_path_PDFROFF+set}" = set; then
8452 echo $ECHO_N "(cached) $ECHO_C" >&6
8453else
8454 case $PDFROFF in
8455 [\\/]* | ?:[\\/]*)
8456 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8457 ;;
8458 *)
8459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8460for as_dir in $PATH
8461do
8462 IFS=$as_save_IFS
8463 test -z "$as_dir" && as_dir=.
8464 for ac_exec_ext in '' $ac_executable_extensions; do
8465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8466 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8468 break 2
8469 fi
8470done
8471done
8472IFS=$as_save_IFS
8473
8474 ;;
8475esac
8476fi
8477PDFROFF=$ac_cv_path_PDFROFF
8478if test -n "$PDFROFF"; then
8479 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8480echo "${ECHO_T}$PDFROFF" >&6; }
8481else
8482 { echo "$as_me:$LINENO: result: no" >&5
8483echo "${ECHO_T}no" >&6; }
8484fi
8485
8486
Reid Spencera773bd52006-08-04 18:18:08 +00008487# Extract the first word of "runtest", so it can be a program name with args.
8488set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008489{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8491if test "${ac_cv_path_RUNTEST+set}" = set; then
8492 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008493else
8494 case $RUNTEST in
8495 [\\/]* | ?:[\\/]*)
8496 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8497 ;;
8498 *)
8499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8500for as_dir in $PATH
8501do
8502 IFS=$as_save_IFS
8503 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008504 for ac_exec_ext in '' $ac_executable_extensions; do
8505 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 +00008506 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008508 break 2
8509 fi
8510done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008511done
Reid Spencera773bd52006-08-04 18:18:08 +00008512IFS=$as_save_IFS
8513
Reid Spencera773bd52006-08-04 18:18:08 +00008514 ;;
8515esac
8516fi
8517RUNTEST=$ac_cv_path_RUNTEST
8518if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008519 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8520echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008521else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008522 { echo "$as_me:$LINENO: result: no" >&5
8523echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008524fi
8525
8526
8527
8528no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008529{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8530echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008531
8532# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008533if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008534 withval=$with_tclinclude; with_tclinclude=${withval}
8535else
8536 with_tclinclude=''
8537fi
8538
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008539if test "${ac_cv_path_tclsh+set}" = set; then
8540 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008541else
8542
8543if test x"${with_tclinclude}" != x ; then
8544 if test -f ${with_tclinclude}/tclsh ; then
8545 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8546 elif test -f ${with_tclinclude}/src/tclsh ; then
8547 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8548 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008549 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8550echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8551 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00008552 fi
8553fi
Torok Edwin871384f2010-01-26 08:50:50 +00008554fi
8555
Reid Spencera773bd52006-08-04 18:18:08 +00008556
8557if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008558 { echo "$as_me:$LINENO: result: none" >&5
8559echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008560 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
8561do
8562 # Extract the first word of "$ac_prog", so it can be a program name with args.
8563set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008564{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8565echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8566if test "${ac_cv_path_TCLSH+set}" = set; then
8567 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008568else
8569 case $TCLSH in
8570 [\\/]* | ?:[\\/]*)
8571 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8572 ;;
8573 *)
8574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8575for as_dir in $PATH
8576do
8577 IFS=$as_save_IFS
8578 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008579 for ac_exec_ext in '' $ac_executable_extensions; do
8580 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 +00008581 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008583 break 2
8584 fi
8585done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008586done
Reid Spencera773bd52006-08-04 18:18:08 +00008587IFS=$as_save_IFS
8588
8589 ;;
8590esac
8591fi
8592TCLSH=$ac_cv_path_TCLSH
8593if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008594 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8595echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008596else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008597 { echo "$as_me:$LINENO: result: no" >&5
8598echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008599fi
8600
8601
8602 test -n "$TCLSH" && break
8603done
8604
8605 if test x"${TCLSH}" = x ; then
8606 ac_cv_path_tclsh='';
8607 else
8608 ac_cv_path_tclsh="${TCLSH}";
8609 fi
8610else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008611 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8612echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008613 TCLSH="${ac_cv_path_tclsh}"
8614
8615fi
8616
Reid Spencera773bd52006-08-04 18:18:08 +00008617# Extract the first word of "zip", so it can be a program name with args.
8618set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008619{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8620echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8621if test "${ac_cv_path_ZIP+set}" = set; then
8622 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008623else
8624 case $ZIP in
8625 [\\/]* | ?:[\\/]*)
8626 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8627 ;;
8628 *)
8629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8630for as_dir in $PATH
8631do
8632 IFS=$as_save_IFS
8633 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008634 for ac_exec_ext in '' $ac_executable_extensions; do
8635 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 +00008636 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008638 break 2
8639 fi
8640done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008641done
Reid Spencera773bd52006-08-04 18:18:08 +00008642IFS=$as_save_IFS
8643
Reid Spencera773bd52006-08-04 18:18:08 +00008644 ;;
8645esac
8646fi
8647ZIP=$ac_cv_path_ZIP
8648if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008649 { echo "$as_me:$LINENO: result: $ZIP" >&5
8650echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008651else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008652 { echo "$as_me:$LINENO: result: no" >&5
8653echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008654fi
8655
8656
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008657for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00008658do
8659 # Extract the first word of "$ac_prog", so it can be a program name with args.
8660set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008661{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8662echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8663if test "${ac_cv_path_OCAMLC+set}" = set; then
8664 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008665else
8666 case $OCAMLC in
8667 [\\/]* | ?:[\\/]*)
8668 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8669 ;;
8670 *)
8671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8672for as_dir in $PATH
8673do
8674 IFS=$as_save_IFS
8675 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008676 for ac_exec_ext in '' $ac_executable_extensions; do
8677 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 +00008678 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008680 break 2
8681 fi
8682done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008683done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008684IFS=$as_save_IFS
8685
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008686 ;;
8687esac
8688fi
8689OCAMLC=$ac_cv_path_OCAMLC
8690if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008691 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8692echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008693else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008694 { echo "$as_me:$LINENO: result: no" >&5
8695echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008696fi
8697
8698
Gordon Henriksene7072162008-03-07 18:20:01 +00008699 test -n "$OCAMLC" && break
8700done
8701
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008702for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00008703do
8704 # Extract the first word of "$ac_prog", so it can be a program name with args.
8705set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008706{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8708if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8709 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008710else
8711 case $OCAMLOPT in
8712 [\\/]* | ?:[\\/]*)
8713 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8714 ;;
8715 *)
8716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8717for as_dir in $PATH
8718do
8719 IFS=$as_save_IFS
8720 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008721 for ac_exec_ext in '' $ac_executable_extensions; do
8722 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 +00008723 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008725 break 2
8726 fi
8727done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008728done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008729IFS=$as_save_IFS
8730
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008731 ;;
8732esac
8733fi
8734OCAMLOPT=$ac_cv_path_OCAMLOPT
8735if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008736 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8737echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008738else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008739 { echo "$as_me:$LINENO: result: no" >&5
8740echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008741fi
8742
8743
Gordon Henriksene7072162008-03-07 18:20:01 +00008744 test -n "$OCAMLOPT" && break
8745done
8746
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008747for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00008748do
8749 # Extract the first word of "$ac_prog", so it can be a program name with args.
8750set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008751{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8752echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8753if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8754 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008755else
8756 case $OCAMLDEP in
8757 [\\/]* | ?:[\\/]*)
8758 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8759 ;;
8760 *)
8761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8762for as_dir in $PATH
8763do
8764 IFS=$as_save_IFS
8765 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008766 for ac_exec_ext in '' $ac_executable_extensions; do
8767 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 +00008768 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008770 break 2
8771 fi
8772done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008773done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008774IFS=$as_save_IFS
8775
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008776 ;;
8777esac
8778fi
8779OCAMLDEP=$ac_cv_path_OCAMLDEP
8780if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008781 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8782echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008783else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008784 { echo "$as_me:$LINENO: result: no" >&5
8785echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008786fi
8787
8788
Gordon Henriksene7072162008-03-07 18:20:01 +00008789 test -n "$OCAMLDEP" && break
8790done
8791
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008792for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008793do
8794 # Extract the first word of "$ac_prog", so it can be a program name with args.
8795set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008796{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8798if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8799 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008800else
8801 case $OCAMLDOC in
8802 [\\/]* | ?:[\\/]*)
8803 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8804 ;;
8805 *)
8806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8807for as_dir in $PATH
8808do
8809 IFS=$as_save_IFS
8810 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008811 for ac_exec_ext in '' $ac_executable_extensions; do
8812 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 +00008813 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008815 break 2
8816 fi
8817done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008818done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008819IFS=$as_save_IFS
8820
8821 ;;
8822esac
8823fi
8824OCAMLDOC=$ac_cv_path_OCAMLDOC
8825if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008826 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8827echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008828else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008829 { echo "$as_me:$LINENO: result: no" >&5
8830echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008831fi
8832
8833
8834 test -n "$OCAMLDOC" && break
8835done
8836
Torok Edwincc499a42008-10-22 09:56:27 +00008837for ac_prog in gas as
8838do
8839 # Extract the first word of "$ac_prog", so it can be a program name with args.
8840set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008841{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8843if test "${ac_cv_path_GAS+set}" = set; then
8844 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00008845else
8846 case $GAS in
8847 [\\/]* | ?:[\\/]*)
8848 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8849 ;;
8850 *)
8851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8852for as_dir in $PATH
8853do
8854 IFS=$as_save_IFS
8855 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008856 for ac_exec_ext in '' $ac_executable_extensions; do
8857 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 +00008858 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00008860 break 2
8861 fi
8862done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008863done
Torok Edwincc499a42008-10-22 09:56:27 +00008864IFS=$as_save_IFS
8865
8866 ;;
8867esac
8868fi
8869GAS=$ac_cv_path_GAS
8870if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008871 { echo "$as_me:$LINENO: result: $GAS" >&5
8872echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008873else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008874 { echo "$as_me:$LINENO: result: no" >&5
8875echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008876fi
8877
8878
8879 test -n "$GAS" && break
8880done
8881
Reid Spencera773bd52006-08-04 18:18:08 +00008882
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00008883{ echo "$as_me:$LINENO: checking for linker version" >&5
8884echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8885if test "${llvm_cv_link_version+set}" = set; then
8886 echo $ECHO_N "(cached) $ECHO_C" >&6
8887else
8888
8889 version_string="$(ld -v 2>&1 | head -1)"
8890
8891 # Check for ld64.
8892 if (echo "$version_string" | grep -q "ld64"); then
8893 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8894 else
8895 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8896 fi
8897
8898fi
8899{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8900echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8901
8902cat >>confdefs.h <<_ACEOF
8903#define HOST_LINK_VERSION "$llvm_cv_link_version"
8904_ACEOF
8905
8906
8907
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008908{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8909echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8910if test "${llvm_cv_link_use_r+set}" = set; then
8911 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008912else
8913 ac_ext=c
8914ac_cpp='$CPP $CPPFLAGS'
8915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8917ac_compiler_gnu=$ac_cv_c_compiler_gnu
8918
8919 oldcflags="$CFLAGS"
8920 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008921 cat >conftest.$ac_ext <<_ACEOF
8922/* confdefs.h. */
8923_ACEOF
8924cat confdefs.h >>conftest.$ac_ext
8925cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008926/* end confdefs.h. */
8927
8928int
8929main ()
8930{
Dan Gohman39ed6782010-04-25 00:12:20 +00008931
Reid Spencera773bd52006-08-04 18:18:08 +00008932 ;
8933 return 0;
8934}
8935_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008936rm -f conftest.$ac_objext conftest$ac_exeext
8937if { (ac_try="$ac_link"
8938case "(($ac_try" in
8939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8940 *) ac_try_echo=$ac_try;;
8941esac
8942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8943 (eval "$ac_link") 2>conftest.er1
8944 ac_status=$?
8945 grep -v '^ *+' conftest.er1 >conftest.err
8946 rm -f conftest.er1
8947 cat conftest.err >&5
8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); } &&
8950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
8960 { ac_try='test -s conftest$ac_exeext'
8961 { (case "(($ac_try" in
8962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8963 *) ac_try_echo=$ac_try;;
8964esac
8965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8966 (eval "$ac_try") 2>&5
8967 ac_status=$?
8968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008970 llvm_cv_link_use_r=yes
8971else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008972 echo "$as_me: failed program was:" >&5
8973sed 's/^/| /' conftest.$ac_ext >&5
8974
8975 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00008976fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008977
Bill Wendlingebcceee2009-04-18 11:20:33 +00008978rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008979 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008980 CFLAGS="$oldcflags"
8981 ac_ext=c
8982ac_cpp='$CPP $CPPFLAGS'
8983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8985ac_compiler_gnu=$ac_cv_c_compiler_gnu
8986
8987
8988fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008989{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8990echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008991if test "$llvm_cv_link_use_r" = yes ; then
8992
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008993cat >>confdefs.h <<\_ACEOF
8994#define HAVE_LINK_R 1
8995_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008996
8997 fi
8998
8999
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009000{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
9001echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
9002if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
9003 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009004else
9005 ac_ext=c
9006ac_cpp='$CPP $CPPFLAGS'
9007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9009ac_compiler_gnu=$ac_cv_c_compiler_gnu
9010
9011 oldcflags="$CFLAGS"
9012 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009013 cat >conftest.$ac_ext <<_ACEOF
9014/* confdefs.h. */
9015_ACEOF
9016cat confdefs.h >>conftest.$ac_ext
9017cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009018/* end confdefs.h. */
9019
9020int
9021main ()
9022{
Dan Gohman39ed6782010-04-25 00:12:20 +00009023
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009024 ;
9025 return 0;
9026}
9027_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009028rm -f conftest.$ac_objext conftest$ac_exeext
9029if { (ac_try="$ac_link"
9030case "(($ac_try" in
9031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9032 *) ac_try_echo=$ac_try;;
9033esac
9034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9035 (eval "$ac_link") 2>conftest.er1
9036 ac_status=$?
9037 grep -v '^ *+' conftest.er1 >conftest.err
9038 rm -f conftest.er1
9039 cat conftest.err >&5
9040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041 (exit $ac_status); } &&
9042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
9052 { ac_try='test -s conftest$ac_exeext'
9053 { (case "(($ac_try" in
9054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9055 *) ac_try_echo=$ac_try;;
9056esac
9057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9058 (eval "$ac_try") 2>&5
9059 ac_status=$?
9060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009062 llvm_cv_link_use_export_dynamic=yes
9063else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009064 echo "$as_me: failed program was:" >&5
9065sed 's/^/| /' conftest.$ac_ext >&5
9066
9067 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009068fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009069
Bill Wendlingebcceee2009-04-18 11:20:33 +00009070rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009071 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009072 CFLAGS="$oldcflags"
9073 ac_ext=c
9074ac_cpp='$CPP $CPPFLAGS'
9075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9077ac_compiler_gnu=$ac_cv_c_compiler_gnu
9078
9079
9080fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009081{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
9082echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009083if test "$llvm_cv_link_use_export_dynamic" = yes ; then
9084
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009085cat >>confdefs.h <<\_ACEOF
9086#define HAVE_LINK_EXPORT_DYNAMIC 1
9087_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009088
9089 fi
9090
9091
Dan Gohmanda612d62010-06-01 14:56:56 +00009092{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
9093echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
9094if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00009095 echo $ECHO_N "(cached) $ECHO_C" >&6
9096else
9097 ac_ext=c
9098ac_cpp='$CPP $CPPFLAGS'
9099ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9100ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9101ac_compiler_gnu=$ac_cv_c_compiler_gnu
9102
9103 oldcflags="$CFLAGS"
9104
9105 # The following code is from the autoconf manual,
9106 # "11.13: Limitations of Usual Tools".
9107 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
9108 # Use mktemp if possible; otherwise fall back on mkdir,
9109 # with $RANDOM to make collisions less likely.
9110 : ${TMPDIR=/tmp}
9111 {
9112 tmp=`
9113 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
9114 ` &&
9115 test -n "$tmp" && test -d "$tmp"
9116 } || {
9117 tmp=$TMPDIR/foo$$-$RANDOM
9118 (umask 077 && mkdir "$tmp")
9119 } || exit $?
9120
Dan Gohmanda612d62010-06-01 14:56:56 +00009121 echo "{" > "$tmp/export.map"
9122 echo " global: main;" >> "$tmp/export.map"
9123 echo " local: *;" >> "$tmp/export.map"
9124 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00009125
Dan Gohmanda612d62010-06-01 14:56:56 +00009126 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00009127 cat >conftest.$ac_ext <<_ACEOF
9128/* confdefs.h. */
9129_ACEOF
9130cat confdefs.h >>conftest.$ac_ext
9131cat >>conftest.$ac_ext <<_ACEOF
9132/* end confdefs.h. */
9133
9134int
9135main ()
9136{
Dan Gohman39ed6782010-04-25 00:12:20 +00009137
Dan Gohman391569c2010-04-16 22:59:06 +00009138 ;
9139 return 0;
9140}
9141_ACEOF
9142rm -f conftest.$ac_objext conftest$ac_exeext
9143if { (ac_try="$ac_link"
9144case "(($ac_try" in
9145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9146 *) ac_try_echo=$ac_try;;
9147esac
9148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9149 (eval "$ac_link") 2>conftest.er1
9150 ac_status=$?
9151 grep -v '^ *+' conftest.er1 >conftest.err
9152 rm -f conftest.er1
9153 cat conftest.err >&5
9154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155 (exit $ac_status); } &&
9156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
9166 { ac_try='test -s conftest$ac_exeext'
9167 { (case "(($ac_try" in
9168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9169 *) ac_try_echo=$ac_try;;
9170esac
9171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9172 (eval "$ac_try") 2>&5
9173 ac_status=$?
9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00009176 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00009177else
9178 echo "$as_me: failed program was:" >&5
9179sed 's/^/| /' conftest.$ac_ext >&5
9180
Dan Gohman943005e2010-06-01 16:22:27 +00009181 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00009182fi
9183
9184rm -f core conftest.err conftest.$ac_objext \
9185 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00009186 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00009187 rmdir "$tmp"
9188 CFLAGS="$oldcflags"
9189 ac_ext=c
9190ac_cpp='$CPP $CPPFLAGS'
9191ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9192ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9193ac_compiler_gnu=$ac_cv_c_compiler_gnu
9194
9195
9196fi
Dan Gohmanda612d62010-06-01 14:56:56 +00009197{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9198echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9199if test "$llvm_cv_link_use_version_script" = yes ; then
9200 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00009201
9202 fi
9203
9204
Reid Spencera773bd52006-08-04 18:18:08 +00009205
9206
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009207{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9208echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9209if test "${ac_cv_c_const+set}" = set; then
9210 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009211else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009212 cat >conftest.$ac_ext <<_ACEOF
9213/* confdefs.h. */
9214_ACEOF
9215cat confdefs.h >>conftest.$ac_ext
9216cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009217/* end confdefs.h. */
9218
9219int
9220main ()
9221{
9222/* FIXME: Include the comments suggested by Paul. */
9223#ifndef __cplusplus
9224 /* Ultrix mips cc rejects this. */
9225 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009226 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00009227 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009228 char const *const *ccp;
9229 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00009230 /* NEC SVR4.0.2 mips cc rejects this. */
9231 struct point {int x, y;};
9232 static struct point const zero = {0,0};
9233 /* AIX XL C 1.02.0.0 rejects this.
9234 It does not let you subtract one const X* pointer from another in
9235 an arm of an if-expression whose if-part is not a constant
9236 expression */
9237 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009238 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00009239 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009240 ++ccp;
9241 p = (char**) ccp;
9242 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00009243 { /* SCO 3.2v4 cc rejects this. */
9244 char *t;
9245 char const *s = 0 ? (char *) 0 : (char const *) 0;
9246
9247 *t++ = 0;
9248 if (s) return 0;
9249 }
9250 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9251 int x[] = {25, 17};
9252 const int *foo = &x[0];
9253 ++foo;
9254 }
9255 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9256 typedef const int *iptr;
9257 iptr p = 0;
9258 ++p;
9259 }
9260 { /* AIX XL C 1.02.0.0 rejects this saying
9261 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9262 struct s { int j; const int *ap[3]; };
9263 struct s *b; b->j = 5;
9264 }
9265 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9266 const int foo = 10;
9267 if (!foo) return 0;
9268 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009269 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00009270#endif
9271
9272 ;
9273 return 0;
9274}
9275_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009276rm -f conftest.$ac_objext
9277if { (ac_try="$ac_compile"
9278case "(($ac_try" in
9279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9280 *) ac_try_echo=$ac_try;;
9281esac
9282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9283 (eval "$ac_compile") 2>conftest.er1
9284 ac_status=$?
9285 grep -v '^ *+' conftest.er1 >conftest.err
9286 rm -f conftest.er1
9287 cat conftest.err >&5
9288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289 (exit $ac_status); } &&
9290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
9300 { ac_try='test -s conftest.$ac_objext'
9301 { (case "(($ac_try" in
9302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9303 *) ac_try_echo=$ac_try;;
9304esac
9305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9306 (eval "$ac_try") 2>&5
9307 ac_status=$?
9308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009310 ac_cv_c_const=yes
9311else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009312 echo "$as_me: failed program was:" >&5
9313sed 's/^/| /' conftest.$ac_ext >&5
9314
9315 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00009316fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009317
Reid Spencera773bd52006-08-04 18:18:08 +00009318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9319fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009320{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9321echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009322if test $ac_cv_c_const = no; then
9323
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009324cat >>confdefs.h <<\_ACEOF
9325#define const
9326_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009327
9328fi
9329
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009330
9331
9332
9333
9334
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009335ac_header_dirent=no
9336for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009337 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9338{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9339echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9340if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9341 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009342else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009343 cat >conftest.$ac_ext <<_ACEOF
9344/* confdefs.h. */
9345_ACEOF
9346cat confdefs.h >>conftest.$ac_ext
9347cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009348/* end confdefs.h. */
9349#include <sys/types.h>
9350#include <$ac_hdr>
9351
9352int
9353main ()
9354{
9355if ((DIR *) 0)
9356return 0;
9357 ;
9358 return 0;
9359}
9360_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009361rm -f conftest.$ac_objext
9362if { (ac_try="$ac_compile"
9363case "(($ac_try" in
9364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9365 *) ac_try_echo=$ac_try;;
9366esac
9367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9368 (eval "$ac_compile") 2>conftest.er1
9369 ac_status=$?
9370 grep -v '^ *+' conftest.er1 >conftest.err
9371 rm -f conftest.er1
9372 cat conftest.err >&5
9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 (exit $ac_status); } &&
9375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
9385 { ac_try='test -s conftest.$ac_objext'
9386 { (case "(($ac_try" in
9387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9388 *) ac_try_echo=$ac_try;;
9389esac
9390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9391 (eval "$ac_try") 2>&5
9392 ac_status=$?
9393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009395 eval "$as_ac_Header=yes"
9396else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009397 echo "$as_me: failed program was:" >&5
9398sed 's/^/| /' conftest.$ac_ext >&5
9399
9400 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009401fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009402
Reid Spencera773bd52006-08-04 18:18:08 +00009403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009404fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009405ac_res=`eval echo '${'$as_ac_Header'}'`
9406 { echo "$as_me:$LINENO: result: $ac_res" >&5
9407echo "${ECHO_T}$ac_res" >&6; }
9408if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009409 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009410#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009411_ACEOF
9412
9413ac_header_dirent=$ac_hdr; break
9414fi
9415
9416done
9417# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9418if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009419 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9420echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9421if test "${ac_cv_search_opendir+set}" = set; then
9422 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009423else
9424 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009425cat >conftest.$ac_ext <<_ACEOF
9426/* confdefs.h. */
9427_ACEOF
9428cat confdefs.h >>conftest.$ac_ext
9429cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009430/* end confdefs.h. */
9431
Reid Spencera773bd52006-08-04 18:18:08 +00009432/* Override any GCC internal prototype to avoid an error.
9433 Use char because int might match the return type of a GCC
9434 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009435#ifdef __cplusplus
9436extern "C"
9437#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009438char opendir ();
9439int
9440main ()
9441{
Reid Spencera773bd52006-08-04 18:18:08 +00009442return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009443 ;
9444 return 0;
9445}
9446_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009447for ac_lib in '' dir; do
9448 if test -z "$ac_lib"; then
9449 ac_res="none required"
9450 else
9451 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009452 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00009453 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009454 rm -f conftest.$ac_objext conftest$ac_exeext
9455if { (ac_try="$ac_link"
9456case "(($ac_try" in
9457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9458 *) ac_try_echo=$ac_try;;
9459esac
9460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9461 (eval "$ac_link") 2>conftest.er1
9462 ac_status=$?
9463 grep -v '^ *+' conftest.er1 >conftest.err
9464 rm -f conftest.er1
9465 cat conftest.err >&5
9466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467 (exit $ac_status); } &&
9468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
9478 { ac_try='test -s conftest$ac_exeext'
9479 { (case "(($ac_try" in
9480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9481 *) ac_try_echo=$ac_try;;
9482esac
9483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9484 (eval "$ac_try") 2>&5
9485 ac_status=$?
9486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009488 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009489else
9490 echo "$as_me: failed program was:" >&5
9491sed 's/^/| /' conftest.$ac_ext >&5
9492
9493
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009494fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009495
Bill Wendlingebcceee2009-04-18 11:20:33 +00009496rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009497 conftest$ac_exeext
9498 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009499 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009500fi
John Criswell7a73b802003-06-30 21:59:07 +00009501done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009502if test "${ac_cv_search_opendir+set}" = set; then
9503 :
Reid Spencera773bd52006-08-04 18:18:08 +00009504else
9505 ac_cv_search_opendir=no
9506fi
9507rm conftest.$ac_ext
9508LIBS=$ac_func_search_save_LIBS
9509fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009510{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9511echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009512ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009513if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009514 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00009515
Reid Spencera773bd52006-08-04 18:18:08 +00009516fi
9517
9518else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009519 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9520echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9521if test "${ac_cv_search_opendir+set}" = set; then
9522 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009523else
9524 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009525cat >conftest.$ac_ext <<_ACEOF
9526/* confdefs.h. */
9527_ACEOF
9528cat confdefs.h >>conftest.$ac_ext
9529cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009530/* end confdefs.h. */
9531
9532/* Override any GCC internal prototype to avoid an error.
9533 Use char because int might match the return type of a GCC
9534 builtin and then its argument prototype would still apply. */
9535#ifdef __cplusplus
9536extern "C"
9537#endif
9538char opendir ();
9539int
9540main ()
9541{
9542return opendir ();
9543 ;
9544 return 0;
9545}
9546_ACEOF
9547for ac_lib in '' x; do
9548 if test -z "$ac_lib"; then
9549 ac_res="none required"
9550 else
9551 ac_res=-l$ac_lib
9552 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9553 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009554 rm -f conftest.$ac_objext conftest$ac_exeext
9555if { (ac_try="$ac_link"
9556case "(($ac_try" in
9557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9558 *) ac_try_echo=$ac_try;;
9559esac
9560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9561 (eval "$ac_link") 2>conftest.er1
9562 ac_status=$?
9563 grep -v '^ *+' conftest.er1 >conftest.err
9564 rm -f conftest.er1
9565 cat conftest.err >&5
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); } &&
9568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
9578 { ac_try='test -s conftest$ac_exeext'
9579 { (case "(($ac_try" in
9580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9581 *) ac_try_echo=$ac_try;;
9582esac
9583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9584 (eval "$ac_try") 2>&5
9585 ac_status=$?
9586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009588 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009589else
9590 echo "$as_me: failed program was:" >&5
9591sed 's/^/| /' conftest.$ac_ext >&5
9592
9593
Reid Spencera773bd52006-08-04 18:18:08 +00009594fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009595
Bill Wendlingebcceee2009-04-18 11:20:33 +00009596rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009597 conftest$ac_exeext
9598 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009599 break
9600fi
9601done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009602if test "${ac_cv_search_opendir+set}" = set; then
9603 :
Reid Spencera773bd52006-08-04 18:18:08 +00009604else
9605 ac_cv_search_opendir=no
9606fi
9607rm conftest.$ac_ext
9608LIBS=$ac_func_search_save_LIBS
9609fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009610{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9611echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009612ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009613if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009614 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9615
9616fi
9617
9618fi
John Criswell7a73b802003-06-30 21:59:07 +00009619
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009620
John Criswell7a73b802003-06-30 21:59:07 +00009621for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009622do
9623as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9624if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9625 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9626echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9627if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9628 echo $ECHO_N "(cached) $ECHO_C" >&6
9629fi
9630ac_res=`eval echo '${'$as_ac_Header'}'`
9631 { echo "$as_me:$LINENO: result: $ac_res" >&5
9632echo "${ECHO_T}$ac_res" >&6; }
9633else
9634 # Is the header compilable?
9635{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9636echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9637cat >conftest.$ac_ext <<_ACEOF
9638/* confdefs.h. */
9639_ACEOF
9640cat confdefs.h >>conftest.$ac_ext
9641cat >>conftest.$ac_ext <<_ACEOF
9642/* end confdefs.h. */
9643$ac_includes_default
9644#include <$ac_header>
9645_ACEOF
9646rm -f conftest.$ac_objext
9647if { (ac_try="$ac_compile"
9648case "(($ac_try" in
9649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9650 *) ac_try_echo=$ac_try;;
9651esac
9652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9653 (eval "$ac_compile") 2>conftest.er1
9654 ac_status=$?
9655 grep -v '^ *+' conftest.er1 >conftest.err
9656 rm -f conftest.er1
9657 cat conftest.err >&5
9658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659 (exit $ac_status); } &&
9660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
9670 { ac_try='test -s conftest.$ac_objext'
9671 { (case "(($ac_try" in
9672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9673 *) ac_try_echo=$ac_try;;
9674esac
9675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9676 (eval "$ac_try") 2>&5
9677 ac_status=$?
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); }; }; then
9680 ac_header_compiler=yes
9681else
9682 echo "$as_me: failed program was:" >&5
9683sed 's/^/| /' conftest.$ac_ext >&5
9684
9685 ac_header_compiler=no
9686fi
9687
9688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9689{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9690echo "${ECHO_T}$ac_header_compiler" >&6; }
9691
9692# Is the header present?
9693{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9694echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9695cat >conftest.$ac_ext <<_ACEOF
9696/* confdefs.h. */
9697_ACEOF
9698cat confdefs.h >>conftest.$ac_ext
9699cat >>conftest.$ac_ext <<_ACEOF
9700/* end confdefs.h. */
9701#include <$ac_header>
9702_ACEOF
9703if { (ac_try="$ac_cpp conftest.$ac_ext"
9704case "(($ac_try" in
9705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9706 *) ac_try_echo=$ac_try;;
9707esac
9708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9709 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9710 ac_status=$?
9711 grep -v '^ *+' conftest.er1 >conftest.err
9712 rm -f conftest.er1
9713 cat conftest.err >&5
9714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715 (exit $ac_status); } >/dev/null; then
9716 if test -s conftest.err; then
9717 ac_cpp_err=$ac_c_preproc_warn_flag
9718 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9719 else
9720 ac_cpp_err=
9721 fi
9722else
9723 ac_cpp_err=yes
9724fi
9725if test -z "$ac_cpp_err"; then
9726 ac_header_preproc=yes
9727else
9728 echo "$as_me: failed program was:" >&5
9729sed 's/^/| /' conftest.$ac_ext >&5
9730
9731 ac_header_preproc=no
9732fi
9733
9734rm -f conftest.err conftest.$ac_ext
9735{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9736echo "${ECHO_T}$ac_header_preproc" >&6; }
9737
9738# So? What about this header?
9739case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9740 yes:no: )
9741 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9742echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9743 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9744echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9745 ac_header_preproc=yes
9746 ;;
9747 no:yes:* )
9748 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9749echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9750 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9751echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9752 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9753echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9754 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9755echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9757echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9758 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9759echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9760 ( cat <<\_ASBOX
9761## ----------------------------------- ##
9762## Report this to llvmbugs@cs.uiuc.edu ##
9763## ----------------------------------- ##
9764_ASBOX
9765 ) | sed "s/^/$as_me: WARNING: /" >&2
9766 ;;
9767esac
9768{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9769echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9770if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9771 echo $ECHO_N "(cached) $ECHO_C" >&6
9772else
9773 eval "$as_ac_Header=\$ac_header_preproc"
9774fi
9775ac_res=`eval echo '${'$as_ac_Header'}'`
9776 { echo "$as_me:$LINENO: result: $ac_res" >&5
9777echo "${ECHO_T}$ac_res" >&6; }
9778
9779fi
9780if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00009781 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009782#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00009783_ACEOF
9784
9785fi
9786
9787done
9788
Reid Spencera773bd52006-08-04 18:18:08 +00009789# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009790if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009791 enableval=$enable_ltdl_install;
9792fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009793
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009794
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009795
9796
9797if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009798 INSTALL_LTDL_TRUE=
9799 INSTALL_LTDL_FALSE='#'
9800else
9801 INSTALL_LTDL_TRUE='#'
9802 INSTALL_LTDL_FALSE=
9803fi
9804
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009805
9806
9807if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009808 CONVENIENCE_LTDL_TRUE=
9809 CONVENIENCE_LTDL_FALSE='#'
9810else
9811 CONVENIENCE_LTDL_TRUE='#'
9812 CONVENIENCE_LTDL_FALSE=
9813fi
9814
9815
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009816{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9817echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009818library_names_spec=
9819libname_spec='lib$name'
9820soname_spec=
9821shrext_cmds=".so"
9822postinstall_cmds=
9823postuninstall_cmds=
9824finish_cmds=
9825finish_eval=
9826shlibpath_var=
9827shlibpath_overrides_runpath=unknown
9828version_type=none
9829dynamic_linker="$host_os ld.so"
9830sys_lib_dlsearch_path_spec="/lib /usr/lib"
9831if test "$GCC" = yes; then
9832 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9833 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9834 # if the path contains ";" then we assume it to be the separator
9835 # otherwise default to the standard path separator (i.e. ":") - it is
9836 # assumed that no part of a normal pathname contains ";" but that should
9837 # okay in the real world where ";" in dirpaths is itself problematic.
9838 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9839 else
9840 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9841 fi
9842else
9843 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9844fi
9845need_lib_prefix=unknown
9846hardcode_into_libs=no
9847
9848# when you set need_version to no, make sure it does not cause -set_version
9849# flags to be left without arguments
9850need_version=unknown
9851
9852case $host_os in
9853aix3*)
9854 version_type=linux
9855 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9856 shlibpath_var=LIBPATH
9857
9858 # AIX 3 has no versioning support, so we append a major version to the name.
9859 soname_spec='${libname}${release}${shared_ext}$major'
9860 ;;
9861
9862aix4* | aix5*)
9863 version_type=linux
9864 need_lib_prefix=no
9865 need_version=no
9866 hardcode_into_libs=yes
9867 if test "$host_cpu" = ia64; then
9868 # AIX 5 supports IA64
9869 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9870 shlibpath_var=LD_LIBRARY_PATH
9871 else
9872 # With GCC up to 2.95.x, collect2 would create an import file
9873 # for dependence libraries. The import file would start with
9874 # the line `#! .'. This would cause the generated library to
9875 # depend on `.', always an invalid library. This was fixed in
9876 # development snapshots of GCC prior to 3.0.
9877 case $host_os in
9878 aix4 | aix4.[01] | aix4.[01].*)
9879 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9880 echo ' yes '
9881 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9882 :
9883 else
9884 can_build_shared=no
9885 fi
9886 ;;
9887 esac
9888 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9889 # soname into executable. Probably we can add versioning support to
9890 # collect2, so additional links can be useful in future.
9891 if test "$aix_use_runtimelinking" = yes; then
9892 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9893 # instead of lib<name>.a to let people know that these are not
9894 # typical AIX shared libraries.
9895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9896 else
9897 # We preserve .a as extension for shared libraries through AIX4.2
9898 # and later when we are not doing run time linking.
9899 library_names_spec='${libname}${release}.a $libname.a'
9900 soname_spec='${libname}${release}${shared_ext}$major'
9901 fi
9902 shlibpath_var=LIBPATH
9903 fi
9904 ;;
9905
9906amigaos*)
9907 library_names_spec='$libname.ixlibrary $libname.a'
9908 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9909 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'
9910 ;;
9911
9912beos*)
9913 library_names_spec='${libname}${shared_ext}'
9914 dynamic_linker="$host_os ld.so"
9915 shlibpath_var=LIBRARY_PATH
9916 ;;
9917
9918bsdi[45]*)
9919 version_type=linux
9920 need_version=no
9921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9922 soname_spec='${libname}${release}${shared_ext}$major'
9923 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9924 shlibpath_var=LD_LIBRARY_PATH
9925 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9926 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9927 # the default ld.so.conf also contains /usr/contrib/lib and
9928 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9929 # libtool to hard-code these into programs
9930 ;;
9931
9932cygwin* | mingw* | pw32*)
9933 version_type=windows
9934 shrext_cmds=".dll"
9935 need_version=no
9936 need_lib_prefix=no
9937
9938 case $GCC,$host_os in
9939 yes,cygwin* | yes,mingw* | yes,pw32*)
9940 library_names_spec='$libname.dll.a'
9941 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9942 postinstall_cmds='base_file=`basename \${file}`~
9943 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9944 dldir=$destdir/`dirname \$dlpath`~
9945 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009946 $install_prog $dir/$dlname \$dldir/$dlname~
9947 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009948 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9949 dlpath=$dir/\$dldll~
9950 $rm \$dlpath'
9951 shlibpath_overrides_runpath=yes
9952
9953 case $host_os in
9954 cygwin*)
9955 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9956 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9957 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9958 ;;
9959 mingw*)
9960 # MinGW DLLs use traditional 'lib' prefix
9961 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9962 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9963 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9964 # It is most probably a Windows format PATH printed by
9965 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9966 # path with ; separators, and with drive letters. We can handle the
9967 # drive letters (cygwin fileutils understands them), so leave them,
9968 # especially as we might pass files found there to a mingw objdump,
9969 # which wouldn't understand a cygwinified path. Ahh.
9970 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9971 else
9972 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9973 fi
9974 ;;
9975 pw32*)
9976 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009977 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 +00009978 ;;
9979 esac
9980 ;;
9981
9982 *)
9983 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9984 ;;
9985 esac
9986 dynamic_linker='Win32 ld.exe'
9987 # FIXME: first we should search . and the directory the executable is in
9988 shlibpath_var=PATH
9989 ;;
9990
9991darwin* | rhapsody*)
9992 dynamic_linker="$host_os dyld"
9993 version_type=darwin
9994 need_lib_prefix=no
9995 need_version=no
9996 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9997 soname_spec='${libname}${release}${major}$shared_ext'
9998 shlibpath_overrides_runpath=yes
9999 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000010000 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010001 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10002 if test "$GCC" = yes; then
10003 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"`
10004 else
10005 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10006 fi
10007 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10008 ;;
10009
10010dgux*)
10011 version_type=linux
10012 need_lib_prefix=no
10013 need_version=no
10014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10015 soname_spec='${libname}${release}${shared_ext}$major'
10016 shlibpath_var=LD_LIBRARY_PATH
10017 ;;
10018
10019freebsd1*)
10020 dynamic_linker=no
10021 ;;
10022
10023kfreebsd*-gnu)
10024 version_type=linux
10025 need_lib_prefix=no
10026 need_version=no
10027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10028 soname_spec='${libname}${release}${shared_ext}$major'
10029 shlibpath_var=LD_LIBRARY_PATH
10030 shlibpath_overrides_runpath=no
10031 hardcode_into_libs=yes
10032 dynamic_linker='GNU ld.so'
10033 ;;
10034
Reid Spencera773bd52006-08-04 18:18:08 +000010035freebsd* | dragonfly*)
10036 # DragonFly does not have aout. When/if they implement a new
10037 # versioning mechanism, adjust this.
10038 if test -x /usr/bin/objformat; then
10039 objformat=`/usr/bin/objformat`
10040 else
10041 case $host_os in
10042 freebsd[123]*) objformat=aout ;;
10043 *) objformat=elf ;;
10044 esac
10045 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010046 version_type=freebsd-$objformat
10047 case $version_type in
10048 freebsd-elf*)
10049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10050 need_version=no
10051 need_lib_prefix=no
10052 ;;
10053 freebsd-*)
10054 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10055 need_version=yes
10056 ;;
10057 esac
10058 shlibpath_var=LD_LIBRARY_PATH
10059 case $host_os in
10060 freebsd2*)
10061 shlibpath_overrides_runpath=yes
10062 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010063 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010064 shlibpath_overrides_runpath=yes
10065 hardcode_into_libs=yes
10066 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010067 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10068 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010069 shlibpath_overrides_runpath=no
10070 hardcode_into_libs=yes
10071 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010072 freebsd*) # from 4.6 on
10073 shlibpath_overrides_runpath=yes
10074 hardcode_into_libs=yes
10075 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010076 esac
10077 ;;
10078
10079gnu*)
10080 version_type=linux
10081 need_lib_prefix=no
10082 need_version=no
10083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10084 soname_spec='${libname}${release}${shared_ext}$major'
10085 shlibpath_var=LD_LIBRARY_PATH
10086 hardcode_into_libs=yes
10087 ;;
10088
10089hpux9* | hpux10* | hpux11*)
10090 # Give a soname corresponding to the major version so that dld.sl refuses to
10091 # link against other versions.
10092 version_type=sunos
10093 need_lib_prefix=no
10094 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000010095 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010096 ia64*)
10097 shrext_cmds='.so'
10098 hardcode_into_libs=yes
10099 dynamic_linker="$host_os dld.so"
10100 shlibpath_var=LD_LIBRARY_PATH
10101 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10103 soname_spec='${libname}${release}${shared_ext}$major'
10104 if test "X$HPUX_IA64_MODE" = X32; then
10105 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10106 else
10107 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10108 fi
10109 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10110 ;;
10111 hppa*64*)
10112 shrext_cmds='.sl'
10113 hardcode_into_libs=yes
10114 dynamic_linker="$host_os dld.sl"
10115 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10116 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10120 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10121 ;;
10122 *)
10123 shrext_cmds='.sl'
10124 dynamic_linker="$host_os dld.sl"
10125 shlibpath_var=SHLIB_PATH
10126 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10128 soname_spec='${libname}${release}${shared_ext}$major'
10129 ;;
10130 esac
10131 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10132 postinstall_cmds='chmod 555 $lib'
10133 ;;
10134
Reid Spencera773bd52006-08-04 18:18:08 +000010135interix3*)
10136 version_type=linux
10137 need_lib_prefix=no
10138 need_version=no
10139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10140 soname_spec='${libname}${release}${shared_ext}$major'
10141 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10142 shlibpath_var=LD_LIBRARY_PATH
10143 shlibpath_overrides_runpath=no
10144 hardcode_into_libs=yes
10145 ;;
10146
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010147irix5* | irix6* | nonstopux*)
10148 case $host_os in
10149 nonstopux*) version_type=nonstopux ;;
10150 *)
10151 if test "$lt_cv_prog_gnu_ld" = yes; then
10152 version_type=linux
10153 else
10154 version_type=irix
10155 fi ;;
10156 esac
10157 need_lib_prefix=no
10158 need_version=no
10159 soname_spec='${libname}${release}${shared_ext}$major'
10160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10161 case $host_os in
10162 irix5* | nonstopux*)
10163 libsuff= shlibsuff=
10164 ;;
10165 *)
10166 case $LD in # libtool.m4 will add one of these switches to LD
10167 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10168 libsuff= shlibsuff= libmagic=32-bit;;
10169 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10170 libsuff=32 shlibsuff=N32 libmagic=N32;;
10171 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10172 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10173 *) libsuff= shlibsuff= libmagic=never-match;;
10174 esac
10175 ;;
10176 esac
10177 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10178 shlibpath_overrides_runpath=no
10179 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10180 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10181 hardcode_into_libs=yes
10182 ;;
10183
10184# No shared lib support for Linux oldld, aout, or coff.
10185linux*oldld* | linux*aout* | linux*coff*)
10186 dynamic_linker=no
10187 ;;
10188
10189# This must be Linux ELF.
10190linux*)
10191 version_type=linux
10192 need_lib_prefix=no
10193 need_version=no
10194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10195 soname_spec='${libname}${release}${shared_ext}$major'
10196 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10197 shlibpath_var=LD_LIBRARY_PATH
10198 shlibpath_overrides_runpath=no
10199 # This implies no fast_install, which is unacceptable.
10200 # Some rework will be needed to allow for fast_install
10201 # before this can be enabled.
10202 hardcode_into_libs=yes
10203
10204 # Append ld.so.conf contents to the search path
10205 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000010206 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 +000010207 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10208 fi
10209
10210 # We used to test for /lib/ld.so.1 and disable shared libraries on
10211 # powerpc, because MkLinux only supported shared libraries with the
10212 # GNU dynamic linker. Since this was broken with cross compilers,
10213 # most powerpc-linux boxes support dynamic linking these days and
10214 # people can always --disable-shared, the test was removed, and we
10215 # assume the GNU/Linux dynamic linker is in use.
10216 dynamic_linker='GNU/Linux ld.so'
10217 ;;
10218
10219knetbsd*-gnu)
10220 version_type=linux
10221 need_lib_prefix=no
10222 need_version=no
10223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10224 soname_spec='${libname}${release}${shared_ext}$major'
10225 shlibpath_var=LD_LIBRARY_PATH
10226 shlibpath_overrides_runpath=no
10227 hardcode_into_libs=yes
10228 dynamic_linker='GNU ld.so'
10229 ;;
10230
10231netbsd*)
10232 version_type=sunos
10233 need_lib_prefix=no
10234 need_version=no
10235 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10237 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10238 dynamic_linker='NetBSD (a.out) ld.so'
10239 else
10240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10241 soname_spec='${libname}${release}${shared_ext}$major'
10242 dynamic_linker='NetBSD ld.elf_so'
10243 fi
10244 shlibpath_var=LD_LIBRARY_PATH
10245 shlibpath_overrides_runpath=yes
10246 hardcode_into_libs=yes
10247 ;;
10248
10249newsos6)
10250 version_type=linux
10251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10252 shlibpath_var=LD_LIBRARY_PATH
10253 shlibpath_overrides_runpath=yes
10254 ;;
10255
10256nto-qnx*)
10257 version_type=linux
10258 need_lib_prefix=no
10259 need_version=no
10260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10261 soname_spec='${libname}${release}${shared_ext}$major'
10262 shlibpath_var=LD_LIBRARY_PATH
10263 shlibpath_overrides_runpath=yes
10264 ;;
10265
10266openbsd*)
10267 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000010268 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010269 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000010270 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10271 case $host_os in
10272 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10273 *) need_version=no ;;
10274 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10276 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10277 shlibpath_var=LD_LIBRARY_PATH
10278 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10279 case $host_os in
10280 openbsd2.[89] | openbsd2.[89].*)
10281 shlibpath_overrides_runpath=no
10282 ;;
10283 *)
10284 shlibpath_overrides_runpath=yes
10285 ;;
10286 esac
10287 else
10288 shlibpath_overrides_runpath=yes
10289 fi
10290 ;;
10291
10292os2*)
10293 libname_spec='$name'
10294 shrext_cmds=".dll"
10295 need_lib_prefix=no
10296 library_names_spec='$libname${shared_ext} $libname.a'
10297 dynamic_linker='OS/2 ld.exe'
10298 shlibpath_var=LIBPATH
10299 ;;
10300
10301osf3* | osf4* | osf5*)
10302 version_type=osf
10303 need_lib_prefix=no
10304 need_version=no
10305 soname_spec='${libname}${release}${shared_ext}$major'
10306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10307 shlibpath_var=LD_LIBRARY_PATH
10308 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10309 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10310 ;;
10311
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010312solaris*)
10313 version_type=linux
10314 need_lib_prefix=no
10315 need_version=no
10316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10317 soname_spec='${libname}${release}${shared_ext}$major'
10318 shlibpath_var=LD_LIBRARY_PATH
10319 shlibpath_overrides_runpath=yes
10320 hardcode_into_libs=yes
10321 # ldd complains unless libraries are executable
10322 postinstall_cmds='chmod +x $lib'
10323 ;;
10324
10325sunos4*)
10326 version_type=sunos
10327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10328 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10329 shlibpath_var=LD_LIBRARY_PATH
10330 shlibpath_overrides_runpath=yes
10331 if test "$with_gnu_ld" = yes; then
10332 need_lib_prefix=no
10333 fi
10334 need_version=yes
10335 ;;
10336
Reid Spencera773bd52006-08-04 18:18:08 +000010337sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010338 version_type=linux
10339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10340 soname_spec='${libname}${release}${shared_ext}$major'
10341 shlibpath_var=LD_LIBRARY_PATH
10342 case $host_vendor in
10343 sni)
10344 shlibpath_overrides_runpath=no
10345 need_lib_prefix=no
10346 export_dynamic_flag_spec='${wl}-Blargedynsym'
10347 runpath_var=LD_RUN_PATH
10348 ;;
10349 siemens)
10350 need_lib_prefix=no
10351 ;;
10352 motorola)
10353 need_lib_prefix=no
10354 need_version=no
10355 shlibpath_overrides_runpath=no
10356 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10357 ;;
10358 esac
10359 ;;
10360
10361sysv4*MP*)
10362 if test -d /usr/nec ;then
10363 version_type=linux
10364 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10365 soname_spec='$libname${shared_ext}.$major'
10366 shlibpath_var=LD_LIBRARY_PATH
10367 fi
10368 ;;
10369
Reid Spencera773bd52006-08-04 18:18:08 +000010370sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10371 version_type=freebsd-elf
10372 need_lib_prefix=no
10373 need_version=no
10374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10375 soname_spec='${libname}${release}${shared_ext}$major'
10376 shlibpath_var=LD_LIBRARY_PATH
10377 hardcode_into_libs=yes
10378 if test "$with_gnu_ld" = yes; then
10379 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10380 shlibpath_overrides_runpath=no
10381 else
10382 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10383 shlibpath_overrides_runpath=yes
10384 case $host_os in
10385 sco3.2v5*)
10386 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10387 ;;
10388 esac
10389 fi
10390 sys_lib_dlsearch_path_spec='/usr/lib'
10391 ;;
10392
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010393uts4*)
10394 version_type=linux
10395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10396 soname_spec='${libname}${release}${shared_ext}$major'
10397 shlibpath_var=LD_LIBRARY_PATH
10398 ;;
10399
10400*)
10401 dynamic_linker=no
10402 ;;
10403esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010404{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10405echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010406test "$dynamic_linker" = no && can_build_shared=no
10407
Reid Spencera773bd52006-08-04 18:18:08 +000010408variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10409if test "$GCC" = yes; then
10410 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10411fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010412
Reid Spencera773bd52006-08-04 18:18:08 +000010413
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010414{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10415echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10416if test "${libltdl_cv_shlibext+set}" = set; then
10417 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010418else
10419
10420module=yes
10421eval libltdl_cv_shlibext=$shrext_cmds
10422
10423fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010424{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10425echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010426if test -n "$libltdl_cv_shlibext"; then
10427
10428cat >>confdefs.h <<_ACEOF
10429#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10430_ACEOF
10431
10432fi
10433
10434
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010435{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10436echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10437if test "${libltdl_cv_shlibpath_var+set}" = set; then
10438 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010439else
10440 libltdl_cv_shlibpath_var="$shlibpath_var"
10441fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010442{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10443echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010444if test -n "$libltdl_cv_shlibpath_var"; then
10445
10446cat >>confdefs.h <<_ACEOF
10447#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10448_ACEOF
10449
10450fi
10451
10452
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010453{ echo "$as_me:$LINENO: checking for the default library search path" >&5
10454echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10455if test "${libltdl_cv_sys_search_path+set}" = set; then
10456 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010457else
10458 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10459fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010460{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10461echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010462if test -n "$libltdl_cv_sys_search_path"; then
10463 sys_search_path=
10464 for dir in $libltdl_cv_sys_search_path; do
10465 if test -z "$sys_search_path"; then
10466 sys_search_path="$dir"
10467 else
10468 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10469 fi
10470 done
10471
10472cat >>confdefs.h <<_ACEOF
10473#define LTDL_SYSSEARCHPATH "$sys_search_path"
10474_ACEOF
10475
10476fi
10477
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010478{ echo "$as_me:$LINENO: checking for objdir" >&5
10479echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10480if test "${libltdl_cv_objdir+set}" = set; then
10481 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010482else
10483 libltdl_cv_objdir="$objdir"
10484 if test -n "$objdir"; then
10485 :
10486 else
10487 rm -f .libs 2>/dev/null
10488 mkdir .libs 2>/dev/null
10489 if test -d .libs; then
10490 libltdl_cv_objdir=.libs
10491 else
10492 # MS-DOS does not allow filenames that begin with a dot.
10493 libltdl_cv_objdir=_libs
10494 fi
10495 rmdir .libs 2>/dev/null
10496 fi
10497
10498fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010499{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10500echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010501
10502cat >>confdefs.h <<_ACEOF
10503#define LTDL_OBJDIR "$libltdl_cv_objdir/"
10504_ACEOF
10505
10506
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010507
10508
10509
10510
10511# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010512{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10513echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10514if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10515 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010516else
10517
10518# These are sane defaults that work on at least a few old systems.
10519# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10520
10521# Character class describing NM global symbol codes.
10522symcode='[BCDEGRST]'
10523
10524# Regexp to match symbols that can be accessed directly from C.
10525sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10526
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010527# Transform an extracted symbol line into a proper C declaration
10528lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10529
10530# Transform an extracted symbol line into symbol name and symbol address
10531lt_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'"
10532
10533# Define system-specific variables.
10534case $host_os in
10535aix*)
10536 symcode='[BCDT]'
10537 ;;
10538cygwin* | mingw* | pw32*)
10539 symcode='[ABCDGISTW]'
10540 ;;
10541hpux*) # Its linker distinguishes data from code symbols
10542 if test "$host_cpu" = ia64; then
10543 symcode='[ABCDEGRST]'
10544 fi
10545 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10546 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'"
10547 ;;
10548linux*)
10549 if test "$host_cpu" = ia64; then
10550 symcode='[ABCDGIRSTW]'
10551 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10552 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'"
10553 fi
10554 ;;
10555irix* | nonstopux*)
10556 symcode='[BCDEGRST]'
10557 ;;
10558osf*)
10559 symcode='[BCDEGQRST]'
10560 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010561solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010562 symcode='[BDRT]'
10563 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010564sco3.2v5*)
10565 symcode='[DT]'
10566 ;;
10567sysv4.2uw2*)
10568 symcode='[DT]'
10569 ;;
10570sysv5* | sco5v6* | unixware* | OpenUNIX*)
10571 symcode='[ABDT]'
10572 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010573sysv4)
10574 symcode='[DFNSTU]'
10575 ;;
10576esac
10577
10578# Handle CRLF in mingw tool chain
10579opt_cr=
10580case $build_os in
10581mingw*)
10582 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10583 ;;
10584esac
10585
10586# If we're using GNU nm, then use its standard symbol codes.
10587case `$NM -V 2>&1` in
10588*GNU* | *'with BFD'*)
10589 symcode='[ABCDGIRSTW]' ;;
10590esac
10591
10592# Try without a prefix undercore, then with it.
10593for ac_symprfx in "" "_"; do
10594
Reid Spencera773bd52006-08-04 18:18:08 +000010595 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10596 symxfrm="\\1 $ac_symprfx\\2 \\2"
10597
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010598 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000010599 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 +000010600
10601 # Check to see that the pipe works correctly.
10602 pipe_works=no
10603
10604 rm -f conftest*
10605 cat > conftest.$ac_ext <<EOF
10606#ifdef __cplusplus
10607extern "C" {
10608#endif
10609char nm_test_var;
10610void nm_test_func(){}
10611#ifdef __cplusplus
10612}
10613#endif
10614int main(){nm_test_var='a';nm_test_func();return(0);}
10615EOF
10616
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010618 (eval $ac_compile) 2>&5
10619 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010622 # Now try to grab the symbols.
10623 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010624 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 +000010625 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10626 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10628 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010629 # Try sorting and uniquifying the output.
10630 if sort "$nlist" | uniq > "$nlist"T; then
10631 mv -f "$nlist"T "$nlist"
10632 else
10633 rm -f "$nlist"T
10634 fi
10635
10636 # Make sure that we snagged all the symbols we need.
10637 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10638 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10639 cat <<EOF > conftest.$ac_ext
10640#ifdef __cplusplus
10641extern "C" {
10642#endif
10643
10644EOF
10645 # Now generate the symbol file.
10646 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10647
10648 cat <<EOF >> conftest.$ac_ext
10649#if defined (__STDC__) && __STDC__
10650# define lt_ptr_t void *
10651#else
10652# define lt_ptr_t char *
10653# define const
10654#endif
10655
10656/* The mapping between symbol names and symbols. */
10657const struct {
10658 const char *name;
10659 lt_ptr_t address;
10660}
10661lt_preloaded_symbols[] =
10662{
10663EOF
10664 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10665 cat <<\EOF >> conftest.$ac_ext
10666 {0, (lt_ptr_t) 0}
10667};
10668
10669#ifdef __cplusplus
10670}
10671#endif
10672EOF
10673 # Now try linking the two files.
10674 mv conftest.$ac_objext conftstm.$ac_objext
10675 lt_save_LIBS="$LIBS"
10676 lt_save_CFLAGS="$CFLAGS"
10677 LIBS="conftstm.$ac_objext"
10678 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010680 (eval $ac_link) 2>&5
10681 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010684 pipe_works=yes
10685 fi
10686 LIBS="$lt_save_LIBS"
10687 CFLAGS="$lt_save_CFLAGS"
10688 else
10689 echo "cannot find nm_test_func in $nlist" >&5
10690 fi
10691 else
10692 echo "cannot find nm_test_var in $nlist" >&5
10693 fi
10694 else
10695 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10696 fi
10697 else
10698 echo "$progname: failed program was:" >&5
10699 cat conftest.$ac_ext >&5
10700 fi
10701 rm -f conftest* conftst*
10702
10703 # Do not use the global_symbol_pipe unless it works.
10704 if test "$pipe_works" = yes; then
10705 break
10706 else
10707 lt_cv_sys_global_symbol_pipe=
10708 fi
10709done
10710
10711fi
10712
10713if test -z "$lt_cv_sys_global_symbol_pipe"; then
10714 lt_cv_sys_global_symbol_to_cdecl=
10715fi
10716if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010717 { echo "$as_me:$LINENO: result: failed" >&5
10718echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010719else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010720 { echo "$as_me:$LINENO: result: ok" >&5
10721echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010722fi
10723
10724
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010725{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10726echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10727if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10728 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010729else
10730 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10731 libltdl_cv_preloaded_symbols=yes
10732 else
10733 libltdl_cv_preloaded_symbols=no
10734 fi
10735
10736fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010737{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10738echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010739if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10740
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010741cat >>confdefs.h <<\_ACEOF
10742#define HAVE_PRELOADED_SYMBOLS 1
10743_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010744
10745fi
10746
10747LIBADD_DL=
10748
10749ac_ext=c
10750ac_cpp='$CPP $CPPFLAGS'
10751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10753ac_compiler_gnu=$ac_cv_c_compiler_gnu
10754
10755
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010756{ echo "$as_me:$LINENO: checking for shl_load" >&5
10757echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10758if test "${ac_cv_func_shl_load+set}" = set; then
10759 echo $ECHO_N "(cached) $ECHO_C" >&6
10760else
10761 cat >conftest.$ac_ext <<_ACEOF
10762/* confdefs.h. */
10763_ACEOF
10764cat confdefs.h >>conftest.$ac_ext
10765cat >>conftest.$ac_ext <<_ACEOF
10766/* end confdefs.h. */
10767/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10769#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010770
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010771/* System header to define __stub macros and hopefully few prototypes,
10772 which can conflict with char shl_load (); below.
10773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10774 <limits.h> exists even on freestanding compilers. */
10775
10776#ifdef __STDC__
10777# include <limits.h>
10778#else
10779# include <assert.h>
10780#endif
10781
10782#undef shl_load
10783
10784/* Override any GCC internal prototype to avoid an error.
10785 Use char because int might match the return type of a GCC
10786 builtin and then its argument prototype would still apply. */
10787#ifdef __cplusplus
10788extern "C"
10789#endif
10790char shl_load ();
10791/* The GNU C library defines this for functions which it implements
10792 to always fail with ENOSYS. Some functions are actually named
10793 something starting with __ and the normal name is an alias. */
10794#if defined __stub_shl_load || defined __stub___shl_load
10795choke me
10796#endif
10797
10798int
10799main ()
10800{
10801return shl_load ();
10802 ;
10803 return 0;
10804}
10805_ACEOF
10806rm -f conftest.$ac_objext conftest$ac_exeext
10807if { (ac_try="$ac_link"
10808case "(($ac_try" in
10809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10810 *) ac_try_echo=$ac_try;;
10811esac
10812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10813 (eval "$ac_link") 2>conftest.er1
10814 ac_status=$?
10815 grep -v '^ *+' conftest.er1 >conftest.err
10816 rm -f conftest.er1
10817 cat conftest.err >&5
10818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819 (exit $ac_status); } &&
10820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
10830 { ac_try='test -s conftest$ac_exeext'
10831 { (case "(($ac_try" in
10832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10833 *) ac_try_echo=$ac_try;;
10834esac
10835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10836 (eval "$ac_try") 2>&5
10837 ac_status=$?
10838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839 (exit $ac_status); }; }; then
10840 ac_cv_func_shl_load=yes
10841else
10842 echo "$as_me: failed program was:" >&5
10843sed 's/^/| /' conftest.$ac_ext >&5
10844
10845 ac_cv_func_shl_load=no
10846fi
10847
10848rm -f core conftest.err conftest.$ac_objext \
10849 conftest$ac_exeext conftest.$ac_ext
10850fi
10851{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10852echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10853if test $ac_cv_func_shl_load = yes; then
10854
10855cat >>confdefs.h <<\_ACEOF
10856#define HAVE_SHL_LOAD 1
10857_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010858
10859else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010860 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10861echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10862if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10863 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010864else
10865 ac_check_lib_save_LIBS=$LIBS
10866LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010867cat >conftest.$ac_ext <<_ACEOF
10868/* confdefs.h. */
10869_ACEOF
10870cat confdefs.h >>conftest.$ac_ext
10871cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010872/* end confdefs.h. */
10873
Reid Spencera773bd52006-08-04 18:18:08 +000010874/* Override any GCC internal prototype to avoid an error.
10875 Use char because int might match the return type of a GCC
10876 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010877#ifdef __cplusplus
10878extern "C"
10879#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010880char shl_load ();
10881int
10882main ()
10883{
Reid Spencera773bd52006-08-04 18:18:08 +000010884return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010885 ;
10886 return 0;
10887}
10888_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010889rm -f conftest.$ac_objext conftest$ac_exeext
10890if { (ac_try="$ac_link"
10891case "(($ac_try" in
10892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10893 *) ac_try_echo=$ac_try;;
10894esac
10895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10896 (eval "$ac_link") 2>conftest.er1
10897 ac_status=$?
10898 grep -v '^ *+' conftest.er1 >conftest.err
10899 rm -f conftest.er1
10900 cat conftest.err >&5
10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902 (exit $ac_status); } &&
10903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
10913 { ac_try='test -s conftest$ac_exeext'
10914 { (case "(($ac_try" in
10915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10916 *) ac_try_echo=$ac_try;;
10917esac
10918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10919 (eval "$ac_try") 2>&5
10920 ac_status=$?
10921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010923 ac_cv_lib_dld_shl_load=yes
10924else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010925 echo "$as_me: failed program was:" >&5
10926sed 's/^/| /' conftest.$ac_ext >&5
10927
10928 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010929fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010930
Bill Wendlingebcceee2009-04-18 11:20:33 +000010931rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010932 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010933LIBS=$ac_check_lib_save_LIBS
10934fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010935{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10936echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10937if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010938
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010939cat >>confdefs.h <<\_ACEOF
10940#define HAVE_SHL_LOAD 1
10941_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010942
10943 LIBADD_DL="$LIBADD_DL -ldld"
10944else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010945 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10946echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10947if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10948 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010949else
10950 ac_check_lib_save_LIBS=$LIBS
10951LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010952cat >conftest.$ac_ext <<_ACEOF
10953/* confdefs.h. */
10954_ACEOF
10955cat confdefs.h >>conftest.$ac_ext
10956cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010957/* end confdefs.h. */
10958
Reid Spencera773bd52006-08-04 18:18:08 +000010959/* Override any GCC internal prototype to avoid an error.
10960 Use char because int might match the return type of a GCC
10961 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010962#ifdef __cplusplus
10963extern "C"
10964#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010965char dlopen ();
10966int
10967main ()
10968{
Reid Spencera773bd52006-08-04 18:18:08 +000010969return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010970 ;
10971 return 0;
10972}
10973_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010974rm -f conftest.$ac_objext conftest$ac_exeext
10975if { (ac_try="$ac_link"
10976case "(($ac_try" in
10977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10978 *) ac_try_echo=$ac_try;;
10979esac
10980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10981 (eval "$ac_link") 2>conftest.er1
10982 ac_status=$?
10983 grep -v '^ *+' conftest.er1 >conftest.err
10984 rm -f conftest.er1
10985 cat conftest.err >&5
10986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987 (exit $ac_status); } &&
10988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
10998 { ac_try='test -s conftest$ac_exeext'
10999 { (case "(($ac_try" in
11000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11001 *) ac_try_echo=$ac_try;;
11002esac
11003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11004 (eval "$ac_try") 2>&5
11005 ac_status=$?
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011008 ac_cv_lib_dl_dlopen=yes
11009else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011010 echo "$as_me: failed program was:" >&5
11011sed 's/^/| /' conftest.$ac_ext >&5
11012
11013 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011014fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011015
Bill Wendlingebcceee2009-04-18 11:20:33 +000011016rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011017 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011018LIBS=$ac_check_lib_save_LIBS
11019fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011020{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11021echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11022if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011023
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011024cat >>confdefs.h <<\_ACEOF
11025#define HAVE_LIBDL 1
11026_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011027
11028 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
11029else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011030 cat >conftest.$ac_ext <<_ACEOF
11031/* confdefs.h. */
11032_ACEOF
11033cat confdefs.h >>conftest.$ac_ext
11034cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011035/* end confdefs.h. */
11036#if HAVE_DLFCN_H
11037# include <dlfcn.h>
11038#endif
11039
11040int
11041main ()
11042{
11043dlopen(0, 0);
11044 ;
11045 return 0;
11046}
11047_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011048rm -f conftest.$ac_objext conftest$ac_exeext
11049if { (ac_try="$ac_link"
11050case "(($ac_try" in
11051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11052 *) ac_try_echo=$ac_try;;
11053esac
11054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11055 (eval "$ac_link") 2>conftest.er1
11056 ac_status=$?
11057 grep -v '^ *+' conftest.er1 >conftest.err
11058 rm -f conftest.er1
11059 cat conftest.err >&5
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); } &&
11062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11072 { ac_try='test -s conftest$ac_exeext'
11073 { (case "(($ac_try" in
11074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11075 *) ac_try_echo=$ac_try;;
11076esac
11077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11078 (eval "$ac_try") 2>&5
11079 ac_status=$?
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011082
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011083cat >>confdefs.h <<\_ACEOF
11084#define HAVE_LIBDL 1
11085_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011086 libltdl_cv_func_dlopen="yes"
11087else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011088 echo "$as_me: failed program was:" >&5
11089sed 's/^/| /' conftest.$ac_ext >&5
11090
11091 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11092echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11093if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11094 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011095else
11096 ac_check_lib_save_LIBS=$LIBS
11097LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011098cat >conftest.$ac_ext <<_ACEOF
11099/* confdefs.h. */
11100_ACEOF
11101cat confdefs.h >>conftest.$ac_ext
11102cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011103/* end confdefs.h. */
11104
Reid Spencera773bd52006-08-04 18:18:08 +000011105/* Override any GCC internal prototype to avoid an error.
11106 Use char because int might match the return type of a GCC
11107 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011108#ifdef __cplusplus
11109extern "C"
11110#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011111char dlopen ();
11112int
11113main ()
11114{
Reid Spencera773bd52006-08-04 18:18:08 +000011115return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011116 ;
11117 return 0;
11118}
11119_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011120rm -f conftest.$ac_objext conftest$ac_exeext
11121if { (ac_try="$ac_link"
11122case "(($ac_try" in
11123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11124 *) ac_try_echo=$ac_try;;
11125esac
11126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11127 (eval "$ac_link") 2>conftest.er1
11128 ac_status=$?
11129 grep -v '^ *+' conftest.er1 >conftest.err
11130 rm -f conftest.er1
11131 cat conftest.err >&5
11132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133 (exit $ac_status); } &&
11134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11144 { ac_try='test -s conftest$ac_exeext'
11145 { (case "(($ac_try" in
11146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11147 *) ac_try_echo=$ac_try;;
11148esac
11149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11150 (eval "$ac_try") 2>&5
11151 ac_status=$?
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011154 ac_cv_lib_svld_dlopen=yes
11155else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011156 echo "$as_me: failed program was:" >&5
11157sed 's/^/| /' conftest.$ac_ext >&5
11158
11159 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011160fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011161
Bill Wendlingebcceee2009-04-18 11:20:33 +000011162rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011163 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011164LIBS=$ac_check_lib_save_LIBS
11165fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011166{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11167echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11168if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011169
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011170cat >>confdefs.h <<\_ACEOF
11171#define HAVE_LIBDL 1
11172_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011173
11174 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
11175else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011176 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11177echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11178if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11179 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011180else
11181 ac_check_lib_save_LIBS=$LIBS
11182LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011183cat >conftest.$ac_ext <<_ACEOF
11184/* confdefs.h. */
11185_ACEOF
11186cat confdefs.h >>conftest.$ac_ext
11187cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011188/* end confdefs.h. */
11189
Reid Spencera773bd52006-08-04 18:18:08 +000011190/* Override any GCC internal prototype to avoid an error.
11191 Use char because int might match the return type of a GCC
11192 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011193#ifdef __cplusplus
11194extern "C"
11195#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011196char dld_link ();
11197int
11198main ()
11199{
Reid Spencera773bd52006-08-04 18:18:08 +000011200return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011201 ;
11202 return 0;
11203}
11204_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011205rm -f conftest.$ac_objext conftest$ac_exeext
11206if { (ac_try="$ac_link"
11207case "(($ac_try" in
11208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11209 *) ac_try_echo=$ac_try;;
11210esac
11211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11212 (eval "$ac_link") 2>conftest.er1
11213 ac_status=$?
11214 grep -v '^ *+' conftest.er1 >conftest.err
11215 rm -f conftest.er1
11216 cat conftest.err >&5
11217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218 (exit $ac_status); } &&
11219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11229 { ac_try='test -s conftest$ac_exeext'
11230 { (case "(($ac_try" in
11231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11232 *) ac_try_echo=$ac_try;;
11233esac
11234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11235 (eval "$ac_try") 2>&5
11236 ac_status=$?
11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011239 ac_cv_lib_dld_dld_link=yes
11240else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011241 echo "$as_me: failed program was:" >&5
11242sed 's/^/| /' conftest.$ac_ext >&5
11243
11244 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011245fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011246
Bill Wendlingebcceee2009-04-18 11:20:33 +000011247rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011248 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011249LIBS=$ac_check_lib_save_LIBS
11250fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011251{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11252echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11253if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011254
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011255cat >>confdefs.h <<\_ACEOF
11256#define HAVE_DLD 1
11257_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011258
11259 LIBADD_DL="$LIBADD_DL -ldld"
11260else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011261 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11262echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11263if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11264 echo $ECHO_N "(cached) $ECHO_C" >&6
11265else
11266 cat >conftest.$ac_ext <<_ACEOF
11267/* confdefs.h. */
11268_ACEOF
11269cat confdefs.h >>conftest.$ac_ext
11270cat >>conftest.$ac_ext <<_ACEOF
11271/* end confdefs.h. */
11272/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11274#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011275
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011276/* System header to define __stub macros and hopefully few prototypes,
11277 which can conflict with char _dyld_func_lookup (); below.
11278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11279 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011280
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011281#ifdef __STDC__
11282# include <limits.h>
11283#else
11284# include <assert.h>
11285#endif
11286
11287#undef _dyld_func_lookup
11288
11289/* Override any GCC internal prototype to avoid an error.
11290 Use char because int might match the return type of a GCC
11291 builtin and then its argument prototype would still apply. */
11292#ifdef __cplusplus
11293extern "C"
11294#endif
11295char _dyld_func_lookup ();
11296/* The GNU C library defines this for functions which it implements
11297 to always fail with ENOSYS. Some functions are actually named
11298 something starting with __ and the normal name is an alias. */
11299#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11300choke me
11301#endif
11302
11303int
11304main ()
11305{
11306return _dyld_func_lookup ();
11307 ;
11308 return 0;
11309}
11310_ACEOF
11311rm -f conftest.$ac_objext conftest$ac_exeext
11312if { (ac_try="$ac_link"
11313case "(($ac_try" in
11314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11315 *) ac_try_echo=$ac_try;;
11316esac
11317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11318 (eval "$ac_link") 2>conftest.er1
11319 ac_status=$?
11320 grep -v '^ *+' conftest.er1 >conftest.err
11321 rm -f conftest.er1
11322 cat conftest.err >&5
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); } &&
11325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11335 { ac_try='test -s conftest$ac_exeext'
11336 { (case "(($ac_try" in
11337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11338 *) ac_try_echo=$ac_try;;
11339esac
11340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11341 (eval "$ac_try") 2>&5
11342 ac_status=$?
11343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344 (exit $ac_status); }; }; then
11345 ac_cv_func__dyld_func_lookup=yes
11346else
11347 echo "$as_me: failed program was:" >&5
11348sed 's/^/| /' conftest.$ac_ext >&5
11349
11350 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011351fi
Reid Spencera773bd52006-08-04 18:18:08 +000011352
Bill Wendlingebcceee2009-04-18 11:20:33 +000011353rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011354 conftest$ac_exeext conftest.$ac_ext
11355fi
11356{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11357echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11358if test $ac_cv_func__dyld_func_lookup = yes; then
11359
11360cat >>confdefs.h <<\_ACEOF
11361#define HAVE_DYLD 1
11362_ACEOF
11363
11364fi
11365
11366
11367fi
11368
11369
11370fi
11371
11372
11373fi
11374
11375rm -f core conftest.err conftest.$ac_objext \
11376 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011377
11378fi
11379
11380
11381fi
11382
11383
11384fi
11385
11386
11387if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11388then
11389 lt_save_LIBS="$LIBS"
11390 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011391
11392for ac_func in dlerror
11393do
11394as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11395{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11396echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11397if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11398 echo $ECHO_N "(cached) $ECHO_C" >&6
11399else
11400 cat >conftest.$ac_ext <<_ACEOF
11401/* confdefs.h. */
11402_ACEOF
11403cat confdefs.h >>conftest.$ac_ext
11404cat >>conftest.$ac_ext <<_ACEOF
11405/* end confdefs.h. */
11406/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11407 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11408#define $ac_func innocuous_$ac_func
11409
11410/* System header to define __stub macros and hopefully few prototypes,
11411 which can conflict with char $ac_func (); below.
11412 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11413 <limits.h> exists even on freestanding compilers. */
11414
11415#ifdef __STDC__
11416# include <limits.h>
11417#else
11418# include <assert.h>
11419#endif
11420
11421#undef $ac_func
11422
11423/* Override any GCC internal prototype to avoid an error.
11424 Use char because int might match the return type of a GCC
11425 builtin and then its argument prototype would still apply. */
11426#ifdef __cplusplus
11427extern "C"
11428#endif
11429char $ac_func ();
11430/* The GNU C library defines this for functions which it implements
11431 to always fail with ENOSYS. Some functions are actually named
11432 something starting with __ and the normal name is an alias. */
11433#if defined __stub_$ac_func || defined __stub___$ac_func
11434choke me
11435#endif
11436
11437int
11438main ()
11439{
11440return $ac_func ();
11441 ;
11442 return 0;
11443}
11444_ACEOF
11445rm -f conftest.$ac_objext conftest$ac_exeext
11446if { (ac_try="$ac_link"
11447case "(($ac_try" in
11448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11449 *) ac_try_echo=$ac_try;;
11450esac
11451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11452 (eval "$ac_link") 2>conftest.er1
11453 ac_status=$?
11454 grep -v '^ *+' conftest.er1 >conftest.err
11455 rm -f conftest.er1
11456 cat conftest.err >&5
11457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458 (exit $ac_status); } &&
11459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11469 { ac_try='test -s conftest$ac_exeext'
11470 { (case "(($ac_try" in
11471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11472 *) ac_try_echo=$ac_try;;
11473esac
11474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11475 (eval "$ac_try") 2>&5
11476 ac_status=$?
11477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478 (exit $ac_status); }; }; then
11479 eval "$as_ac_var=yes"
11480else
11481 echo "$as_me: failed program was:" >&5
11482sed 's/^/| /' conftest.$ac_ext >&5
11483
11484 eval "$as_ac_var=no"
11485fi
11486
11487rm -f core conftest.err conftest.$ac_objext \
11488 conftest$ac_exeext conftest.$ac_ext
11489fi
11490ac_res=`eval echo '${'$as_ac_var'}'`
11491 { echo "$as_me:$LINENO: result: $ac_res" >&5
11492echo "${ECHO_T}$ac_res" >&6; }
11493if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011494 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011495#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011496_ACEOF
11497
11498fi
11499done
11500
11501 LIBS="$lt_save_LIBS"
11502fi
11503ac_ext=c
11504ac_cpp='$CPP $CPPFLAGS'
11505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11507ac_compiler_gnu=$ac_cv_c_compiler_gnu
11508
11509
11510
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011511{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11512echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11513if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11514 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011515else
11516 ac_cv_sys_symbol_underscore=no
11517 cat > conftest.$ac_ext <<EOF
11518void nm_test_func(){}
11519int main(){nm_test_func;return 0;}
11520EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011522 (eval $ac_compile) 2>&5
11523 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011526 # Now try to grab the symbols.
11527 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011528 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 +000011529 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11530 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011533 # See whether the symbols have a leading underscore.
11534 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11535 ac_cv_sys_symbol_underscore=yes
11536 else
11537 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11538 :
11539 else
11540 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11541 fi
11542 fi
11543 else
11544 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11545 fi
11546 else
11547 echo "configure: failed program was:" >&5
11548 cat conftest.c >&5
11549 fi
11550 rm -rf conftest*
11551
11552fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011553{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11554echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011555
11556
11557if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11558 if test x"$libltdl_cv_func_dlopen" = xyes ||
11559 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011560 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11561echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11562if test "${libltdl_cv_need_uscore+set}" = set; then
11563 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011564else
11565 libltdl_cv_need_uscore=unknown
11566 save_LIBS="$LIBS"
11567 LIBS="$LIBS $LIBADD_DL"
11568 if test "$cross_compiling" = yes; then :
11569 libltdl_cv_need_uscore=cross
11570else
11571 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11572 lt_status=$lt_dlunknown
11573 cat > conftest.$ac_ext <<EOF
Jan Sjödin6e70cc12011-03-14 22:12:35 +000011574#line 11574 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011575#include "confdefs.h"
11576
11577#if HAVE_DLFCN_H
11578#include <dlfcn.h>
11579#endif
11580
11581#include <stdio.h>
11582
11583#ifdef RTLD_GLOBAL
11584# define LT_DLGLOBAL RTLD_GLOBAL
11585#else
11586# ifdef DL_GLOBAL
11587# define LT_DLGLOBAL DL_GLOBAL
11588# else
11589# define LT_DLGLOBAL 0
11590# endif
11591#endif
11592
11593/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11594 find out it does not work in some platform. */
11595#ifndef LT_DLLAZY_OR_NOW
11596# ifdef RTLD_LAZY
11597# define LT_DLLAZY_OR_NOW RTLD_LAZY
11598# else
11599# ifdef DL_LAZY
11600# define LT_DLLAZY_OR_NOW DL_LAZY
11601# else
11602# ifdef RTLD_NOW
11603# define LT_DLLAZY_OR_NOW RTLD_NOW
11604# else
11605# ifdef DL_NOW
11606# define LT_DLLAZY_OR_NOW DL_NOW
11607# else
11608# define LT_DLLAZY_OR_NOW 0
11609# endif
11610# endif
11611# endif
11612# endif
11613#endif
11614
11615#ifdef __cplusplus
11616extern "C" void exit (int);
11617#endif
11618
11619void fnord() { int i=42;}
11620int main ()
11621{
11622 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11623 int status = $lt_dlunknown;
11624
11625 if (self)
11626 {
11627 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11628 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11629 /* dlclose (self); */
11630 }
Reid Spencera773bd52006-08-04 18:18:08 +000011631 else
11632 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011633
11634 exit (status);
11635}
11636EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011638 (eval $ac_link) 2>&5
11639 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000011642 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011643 lt_status=$?
11644 case x$lt_status in
11645 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11646 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011647 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011648 esac
11649 else :
11650 # compilation failed
11651
11652 fi
11653fi
11654rm -fr conftest*
11655
11656 LIBS="$save_LIBS"
11657
11658fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011659{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11660echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011661 fi
11662fi
11663
11664if test x"$libltdl_cv_need_uscore" = xyes; then
11665
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011666cat >>confdefs.h <<\_ACEOF
11667#define NEED_USCORE 1
11668_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011669
11670fi
11671
11672
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011673{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11674echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11675if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11676 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011677else
11678 # PORTME does your system automatically load deplibs for dlopen?
11679 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11680 # For now, we just catch OSes we know something about -- in the
11681 # future, we'll try test this programmatically.
11682 libltdl_cv_sys_dlopen_deplibs=unknown
11683 case "$host_os" in
11684 aix3*|aix4.1.*|aix4.2.*)
11685 # Unknown whether this is true for these versions of AIX, but
11686 # we want this `case' here to explicitly catch those versions.
11687 libltdl_cv_sys_dlopen_deplibs=unknown
11688 ;;
11689 aix[45]*)
11690 libltdl_cv_sys_dlopen_deplibs=yes
11691 ;;
11692 darwin*)
11693 # Assuming the user has installed a libdl from somewhere, this is true
11694 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11695 libltdl_cv_sys_dlopen_deplibs=yes
11696 ;;
11697 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11698 # GNU and its variants, using gnu ld.so (Glibc)
11699 libltdl_cv_sys_dlopen_deplibs=yes
11700 ;;
11701 hpux10*|hpux11*)
11702 libltdl_cv_sys_dlopen_deplibs=yes
11703 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011704 interix*)
11705 libltdl_cv_sys_dlopen_deplibs=yes
11706 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011707 irix[12345]*|irix6.[01]*)
11708 # Catch all versions of IRIX before 6.2, and indicate that we don't
11709 # know how it worked for any of those versions.
11710 libltdl_cv_sys_dlopen_deplibs=unknown
11711 ;;
11712 irix*)
11713 # The case above catches anything before 6.2, and it's known that
11714 # at 6.2 and later dlopen does load deplibs.
11715 libltdl_cv_sys_dlopen_deplibs=yes
11716 ;;
11717 netbsd*)
11718 libltdl_cv_sys_dlopen_deplibs=yes
11719 ;;
11720 openbsd*)
11721 libltdl_cv_sys_dlopen_deplibs=yes
11722 ;;
11723 osf[1234]*)
11724 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11725 # it did *not* use an RPATH in a shared library to find objects the
Chris Lattner7a2bdde2011-04-15 05:18:47 +000011726 # library depends on, so we explicitly say `no'.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011727 libltdl_cv_sys_dlopen_deplibs=no
11728 ;;
11729 osf5.0|osf5.0a|osf5.1)
11730 # dlopen *does* load deplibs and with the right loader patch applied
11731 # it even uses RPATH in a shared library to search for shared objects
11732 # that the library depends on, but there's no easy way to know if that
11733 # patch is installed. Since this is the case, all we can really
11734 # say is unknown -- it depends on the patch being installed. If
11735 # it is, this changes to `yes'. Without it, it would be `no'.
11736 libltdl_cv_sys_dlopen_deplibs=unknown
11737 ;;
11738 osf*)
11739 # the two cases above should catch all versions of osf <= 5.1. Read
11740 # the comments above for what we know about them.
11741 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11742 # is used to find them so we can finally say `yes'.
11743 libltdl_cv_sys_dlopen_deplibs=yes
11744 ;;
11745 solaris*)
11746 libltdl_cv_sys_dlopen_deplibs=yes
11747 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011748 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11749 libltdl_cv_sys_dlopen_deplibs=yes
11750 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011751 esac
11752
11753fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011754{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11755echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011756if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11757
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011758cat >>confdefs.h <<\_ACEOF
11759#define LTDL_DLOPEN_DEPLIBS 1
11760_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011761
11762fi
11763
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011764
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011765for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011766do
11767as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11768if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11769 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11770echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11771if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11772 echo $ECHO_N "(cached) $ECHO_C" >&6
11773fi
11774ac_res=`eval echo '${'$as_ac_Header'}'`
11775 { echo "$as_me:$LINENO: result: $ac_res" >&5
11776echo "${ECHO_T}$ac_res" >&6; }
11777else
11778 # Is the header compilable?
11779{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11780echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11781cat >conftest.$ac_ext <<_ACEOF
11782/* confdefs.h. */
11783_ACEOF
11784cat confdefs.h >>conftest.$ac_ext
11785cat >>conftest.$ac_ext <<_ACEOF
11786/* end confdefs.h. */
11787$ac_includes_default
11788#include <$ac_header>
11789_ACEOF
11790rm -f conftest.$ac_objext
11791if { (ac_try="$ac_compile"
11792case "(($ac_try" in
11793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11794 *) ac_try_echo=$ac_try;;
11795esac
11796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11797 (eval "$ac_compile") 2>conftest.er1
11798 ac_status=$?
11799 grep -v '^ *+' conftest.er1 >conftest.err
11800 rm -f conftest.er1
11801 cat conftest.err >&5
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); } &&
11804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11814 { ac_try='test -s conftest.$ac_objext'
11815 { (case "(($ac_try" in
11816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11817 *) ac_try_echo=$ac_try;;
11818esac
11819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11820 (eval "$ac_try") 2>&5
11821 ac_status=$?
11822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823 (exit $ac_status); }; }; then
11824 ac_header_compiler=yes
11825else
11826 echo "$as_me: failed program was:" >&5
11827sed 's/^/| /' conftest.$ac_ext >&5
11828
11829 ac_header_compiler=no
11830fi
11831
11832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11833{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11834echo "${ECHO_T}$ac_header_compiler" >&6; }
11835
11836# Is the header present?
11837{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11838echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11839cat >conftest.$ac_ext <<_ACEOF
11840/* confdefs.h. */
11841_ACEOF
11842cat confdefs.h >>conftest.$ac_ext
11843cat >>conftest.$ac_ext <<_ACEOF
11844/* end confdefs.h. */
11845#include <$ac_header>
11846_ACEOF
11847if { (ac_try="$ac_cpp conftest.$ac_ext"
11848case "(($ac_try" in
11849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11850 *) ac_try_echo=$ac_try;;
11851esac
11852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11853 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11854 ac_status=$?
11855 grep -v '^ *+' conftest.er1 >conftest.err
11856 rm -f conftest.er1
11857 cat conftest.err >&5
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); } >/dev/null; then
11860 if test -s conftest.err; then
11861 ac_cpp_err=$ac_c_preproc_warn_flag
11862 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11863 else
11864 ac_cpp_err=
11865 fi
11866else
11867 ac_cpp_err=yes
11868fi
11869if test -z "$ac_cpp_err"; then
11870 ac_header_preproc=yes
11871else
11872 echo "$as_me: failed program was:" >&5
11873sed 's/^/| /' conftest.$ac_ext >&5
11874
11875 ac_header_preproc=no
11876fi
11877
11878rm -f conftest.err conftest.$ac_ext
11879{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11880echo "${ECHO_T}$ac_header_preproc" >&6; }
11881
11882# So? What about this header?
11883case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11884 yes:no: )
11885 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11886echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11888echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11889 ac_header_preproc=yes
11890 ;;
11891 no:yes:* )
11892 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11893echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11894 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11895echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11896 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11897echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11898 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11899echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11901echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11902 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11903echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11904 ( cat <<\_ASBOX
11905## ----------------------------------- ##
11906## Report this to llvmbugs@cs.uiuc.edu ##
11907## ----------------------------------- ##
11908_ASBOX
11909 ) | sed "s/^/$as_me: WARNING: /" >&2
11910 ;;
11911esac
11912{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11913echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11914if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11915 echo $ECHO_N "(cached) $ECHO_C" >&6
11916else
11917 eval "$as_ac_Header=\$ac_header_preproc"
11918fi
11919ac_res=`eval echo '${'$as_ac_Header'}'`
11920 { echo "$as_me:$LINENO: result: $ac_res" >&5
11921echo "${ECHO_T}$ac_res" >&6; }
11922
11923fi
11924if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011925 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011926#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011927_ACEOF
11928
11929fi
11930
11931done
11932
11933
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011934{ echo "$as_me:$LINENO: checking for error_t" >&5
11935echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11936if test "${ac_cv_type_error_t+set}" = set; then
11937 echo $ECHO_N "(cached) $ECHO_C" >&6
11938else
11939 cat >conftest.$ac_ext <<_ACEOF
11940/* confdefs.h. */
11941_ACEOF
11942cat confdefs.h >>conftest.$ac_ext
11943cat >>conftest.$ac_ext <<_ACEOF
11944/* end confdefs.h. */
11945#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011946# include <argz.h>
11947#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011948
11949typedef error_t ac__type_new_;
11950int
11951main ()
11952{
11953if ((ac__type_new_ *) 0)
11954 return 0;
11955if (sizeof (ac__type_new_))
11956 return 0;
11957 ;
11958 return 0;
11959}
11960_ACEOF
11961rm -f conftest.$ac_objext
11962if { (ac_try="$ac_compile"
11963case "(($ac_try" in
11964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11965 *) ac_try_echo=$ac_try;;
11966esac
11967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11968 (eval "$ac_compile") 2>conftest.er1
11969 ac_status=$?
11970 grep -v '^ *+' conftest.er1 >conftest.err
11971 rm -f conftest.er1
11972 cat conftest.err >&5
11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); } &&
11975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11985 { ac_try='test -s conftest.$ac_objext'
11986 { (case "(($ac_try" in
11987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11988 *) ac_try_echo=$ac_try;;
11989esac
11990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11991 (eval "$ac_try") 2>&5
11992 ac_status=$?
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); }; }; then
11995 ac_cv_type_error_t=yes
11996else
11997 echo "$as_me: failed program was:" >&5
11998sed 's/^/| /' conftest.$ac_ext >&5
11999
12000 ac_cv_type_error_t=no
12001fi
12002
12003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12004fi
12005{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
12006echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
12007if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012008
12009cat >>confdefs.h <<_ACEOF
12010#define HAVE_ERROR_T 1
12011_ACEOF
12012
12013
12014else
12015
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012016cat >>confdefs.h <<\_ACEOF
12017#define error_t int
12018_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012019
12020fi
12021
12022
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012023
12024
12025
12026
12027
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012028for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012029do
12030as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12031{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12032echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12033if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12034 echo $ECHO_N "(cached) $ECHO_C" >&6
12035else
12036 cat >conftest.$ac_ext <<_ACEOF
12037/* confdefs.h. */
12038_ACEOF
12039cat confdefs.h >>conftest.$ac_ext
12040cat >>conftest.$ac_ext <<_ACEOF
12041/* end confdefs.h. */
12042/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12044#define $ac_func innocuous_$ac_func
12045
12046/* System header to define __stub macros and hopefully few prototypes,
12047 which can conflict with char $ac_func (); below.
12048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12049 <limits.h> exists even on freestanding compilers. */
12050
12051#ifdef __STDC__
12052# include <limits.h>
12053#else
12054# include <assert.h>
12055#endif
12056
12057#undef $ac_func
12058
12059/* Override any GCC internal prototype to avoid an error.
12060 Use char because int might match the return type of a GCC
12061 builtin and then its argument prototype would still apply. */
12062#ifdef __cplusplus
12063extern "C"
12064#endif
12065char $ac_func ();
12066/* The GNU C library defines this for functions which it implements
12067 to always fail with ENOSYS. Some functions are actually named
12068 something starting with __ and the normal name is an alias. */
12069#if defined __stub_$ac_func || defined __stub___$ac_func
12070choke me
12071#endif
12072
12073int
12074main ()
12075{
12076return $ac_func ();
12077 ;
12078 return 0;
12079}
12080_ACEOF
12081rm -f conftest.$ac_objext conftest$ac_exeext
12082if { (ac_try="$ac_link"
12083case "(($ac_try" in
12084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12085 *) ac_try_echo=$ac_try;;
12086esac
12087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12088 (eval "$ac_link") 2>conftest.er1
12089 ac_status=$?
12090 grep -v '^ *+' conftest.er1 >conftest.err
12091 rm -f conftest.er1
12092 cat conftest.err >&5
12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); } &&
12095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12105 { ac_try='test -s conftest$ac_exeext'
12106 { (case "(($ac_try" in
12107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12108 *) ac_try_echo=$ac_try;;
12109esac
12110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12111 (eval "$ac_try") 2>&5
12112 ac_status=$?
12113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114 (exit $ac_status); }; }; then
12115 eval "$as_ac_var=yes"
12116else
12117 echo "$as_me: failed program was:" >&5
12118sed 's/^/| /' conftest.$ac_ext >&5
12119
12120 eval "$as_ac_var=no"
12121fi
12122
12123rm -f core conftest.err conftest.$ac_objext \
12124 conftest$ac_exeext conftest.$ac_ext
12125fi
12126ac_res=`eval echo '${'$as_ac_var'}'`
12127 { echo "$as_me:$LINENO: result: $ac_res" >&5
12128echo "${ECHO_T}$ac_res" >&6; }
12129if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012130 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012131#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012132_ACEOF
12133
12134fi
12135done
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012156
12157
12158
12159
12160
12161
12162
12163
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012164for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
12165 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012166do
12167as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12168if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12169 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12170echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12171if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12172 echo $ECHO_N "(cached) $ECHO_C" >&6
12173fi
12174ac_res=`eval echo '${'$as_ac_Header'}'`
12175 { echo "$as_me:$LINENO: result: $ac_res" >&5
12176echo "${ECHO_T}$ac_res" >&6; }
12177else
12178 # Is the header compilable?
12179{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12180echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12181cat >conftest.$ac_ext <<_ACEOF
12182/* confdefs.h. */
12183_ACEOF
12184cat confdefs.h >>conftest.$ac_ext
12185cat >>conftest.$ac_ext <<_ACEOF
12186/* end confdefs.h. */
12187$ac_includes_default
12188#include <$ac_header>
12189_ACEOF
12190rm -f conftest.$ac_objext
12191if { (ac_try="$ac_compile"
12192case "(($ac_try" in
12193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12194 *) ac_try_echo=$ac_try;;
12195esac
12196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12197 (eval "$ac_compile") 2>conftest.er1
12198 ac_status=$?
12199 grep -v '^ *+' conftest.er1 >conftest.err
12200 rm -f conftest.er1
12201 cat conftest.err >&5
12202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203 (exit $ac_status); } &&
12204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12214 { ac_try='test -s conftest.$ac_objext'
12215 { (case "(($ac_try" in
12216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12217 *) ac_try_echo=$ac_try;;
12218esac
12219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12220 (eval "$ac_try") 2>&5
12221 ac_status=$?
12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223 (exit $ac_status); }; }; then
12224 ac_header_compiler=yes
12225else
12226 echo "$as_me: failed program was:" >&5
12227sed 's/^/| /' conftest.$ac_ext >&5
12228
12229 ac_header_compiler=no
12230fi
12231
12232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12233{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12234echo "${ECHO_T}$ac_header_compiler" >&6; }
12235
12236# Is the header present?
12237{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12238echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12239cat >conftest.$ac_ext <<_ACEOF
12240/* confdefs.h. */
12241_ACEOF
12242cat confdefs.h >>conftest.$ac_ext
12243cat >>conftest.$ac_ext <<_ACEOF
12244/* end confdefs.h. */
12245#include <$ac_header>
12246_ACEOF
12247if { (ac_try="$ac_cpp conftest.$ac_ext"
12248case "(($ac_try" in
12249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12250 *) ac_try_echo=$ac_try;;
12251esac
12252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12253 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12254 ac_status=$?
12255 grep -v '^ *+' conftest.er1 >conftest.err
12256 rm -f conftest.er1
12257 cat conftest.err >&5
12258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259 (exit $ac_status); } >/dev/null; then
12260 if test -s conftest.err; then
12261 ac_cpp_err=$ac_c_preproc_warn_flag
12262 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12263 else
12264 ac_cpp_err=
12265 fi
12266else
12267 ac_cpp_err=yes
12268fi
12269if test -z "$ac_cpp_err"; then
12270 ac_header_preproc=yes
12271else
12272 echo "$as_me: failed program was:" >&5
12273sed 's/^/| /' conftest.$ac_ext >&5
12274
12275 ac_header_preproc=no
12276fi
12277
12278rm -f conftest.err conftest.$ac_ext
12279{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12280echo "${ECHO_T}$ac_header_preproc" >&6; }
12281
12282# So? What about this header?
12283case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12284 yes:no: )
12285 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12286echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12287 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12288echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12289 ac_header_preproc=yes
12290 ;;
12291 no:yes:* )
12292 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12293echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12294 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12295echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12296 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12297echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12298 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12299echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12300 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12301echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12302 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12303echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12304 ( cat <<\_ASBOX
12305## ----------------------------------- ##
12306## Report this to llvmbugs@cs.uiuc.edu ##
12307## ----------------------------------- ##
12308_ASBOX
12309 ) | sed "s/^/$as_me: WARNING: /" >&2
12310 ;;
12311esac
12312{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12313echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12314if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12315 echo $ECHO_N "(cached) $ECHO_C" >&6
12316else
12317 eval "$as_ac_Header=\$ac_header_preproc"
12318fi
12319ac_res=`eval echo '${'$as_ac_Header'}'`
12320 { echo "$as_me:$LINENO: result: $ac_res" >&5
12321echo "${ECHO_T}$ac_res" >&6; }
12322
12323fi
12324if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012325 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012326#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012327_ACEOF
12328
12329fi
12330
12331done
12332
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012333
12334
12335
12336
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012337for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012338do
12339as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12340if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12341 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12342echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12343if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12344 echo $ECHO_N "(cached) $ECHO_C" >&6
12345fi
12346ac_res=`eval echo '${'$as_ac_Header'}'`
12347 { echo "$as_me:$LINENO: result: $ac_res" >&5
12348echo "${ECHO_T}$ac_res" >&6; }
12349else
12350 # Is the header compilable?
12351{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12352echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12353cat >conftest.$ac_ext <<_ACEOF
12354/* confdefs.h. */
12355_ACEOF
12356cat confdefs.h >>conftest.$ac_ext
12357cat >>conftest.$ac_ext <<_ACEOF
12358/* end confdefs.h. */
12359$ac_includes_default
12360#include <$ac_header>
12361_ACEOF
12362rm -f conftest.$ac_objext
12363if { (ac_try="$ac_compile"
12364case "(($ac_try" in
12365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12366 *) ac_try_echo=$ac_try;;
12367esac
12368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12369 (eval "$ac_compile") 2>conftest.er1
12370 ac_status=$?
12371 grep -v '^ *+' conftest.er1 >conftest.err
12372 rm -f conftest.er1
12373 cat conftest.err >&5
12374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); } &&
12376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12386 { ac_try='test -s conftest.$ac_objext'
12387 { (case "(($ac_try" in
12388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12389 *) ac_try_echo=$ac_try;;
12390esac
12391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12392 (eval "$ac_try") 2>&5
12393 ac_status=$?
12394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12395 (exit $ac_status); }; }; then
12396 ac_header_compiler=yes
12397else
12398 echo "$as_me: failed program was:" >&5
12399sed 's/^/| /' conftest.$ac_ext >&5
12400
12401 ac_header_compiler=no
12402fi
12403
12404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12405{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12406echo "${ECHO_T}$ac_header_compiler" >&6; }
12407
12408# Is the header present?
12409{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12410echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12411cat >conftest.$ac_ext <<_ACEOF
12412/* confdefs.h. */
12413_ACEOF
12414cat confdefs.h >>conftest.$ac_ext
12415cat >>conftest.$ac_ext <<_ACEOF
12416/* end confdefs.h. */
12417#include <$ac_header>
12418_ACEOF
12419if { (ac_try="$ac_cpp conftest.$ac_ext"
12420case "(($ac_try" in
12421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12422 *) ac_try_echo=$ac_try;;
12423esac
12424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12425 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12426 ac_status=$?
12427 grep -v '^ *+' conftest.er1 >conftest.err
12428 rm -f conftest.er1
12429 cat conftest.err >&5
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); } >/dev/null; then
12432 if test -s conftest.err; then
12433 ac_cpp_err=$ac_c_preproc_warn_flag
12434 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12435 else
12436 ac_cpp_err=
12437 fi
12438else
12439 ac_cpp_err=yes
12440fi
12441if test -z "$ac_cpp_err"; then
12442 ac_header_preproc=yes
12443else
12444 echo "$as_me: failed program was:" >&5
12445sed 's/^/| /' conftest.$ac_ext >&5
12446
12447 ac_header_preproc=no
12448fi
12449
12450rm -f conftest.err conftest.$ac_ext
12451{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12452echo "${ECHO_T}$ac_header_preproc" >&6; }
12453
12454# So? What about this header?
12455case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12456 yes:no: )
12457 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12458echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12460echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12461 ac_header_preproc=yes
12462 ;;
12463 no:yes:* )
12464 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12465echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12466 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12467echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12468 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12469echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12470 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12471echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12473echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12474 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12475echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12476 ( cat <<\_ASBOX
12477## ----------------------------------- ##
12478## Report this to llvmbugs@cs.uiuc.edu ##
12479## ----------------------------------- ##
12480_ASBOX
12481 ) | sed "s/^/$as_me: WARNING: /" >&2
12482 ;;
12483esac
12484{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12485echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12486if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12487 echo $ECHO_N "(cached) $ECHO_C" >&6
12488else
12489 eval "$as_ac_Header=\$ac_header_preproc"
12490fi
12491ac_res=`eval echo '${'$as_ac_Header'}'`
12492 { echo "$as_me:$LINENO: result: $ac_res" >&5
12493echo "${ECHO_T}$ac_res" >&6; }
12494
12495fi
12496if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012497 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012498#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012499_ACEOF
12500
12501fi
12502
12503done
12504
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012505
12506
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012507for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012508do
12509as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12510if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12511 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12512echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12513if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12514 echo $ECHO_N "(cached) $ECHO_C" >&6
12515fi
12516ac_res=`eval echo '${'$as_ac_Header'}'`
12517 { echo "$as_me:$LINENO: result: $ac_res" >&5
12518echo "${ECHO_T}$ac_res" >&6; }
12519else
12520 # Is the header compilable?
12521{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12522echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12523cat >conftest.$ac_ext <<_ACEOF
12524/* confdefs.h. */
12525_ACEOF
12526cat confdefs.h >>conftest.$ac_ext
12527cat >>conftest.$ac_ext <<_ACEOF
12528/* end confdefs.h. */
12529$ac_includes_default
12530#include <$ac_header>
12531_ACEOF
12532rm -f conftest.$ac_objext
12533if { (ac_try="$ac_compile"
12534case "(($ac_try" in
12535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12536 *) ac_try_echo=$ac_try;;
12537esac
12538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12539 (eval "$ac_compile") 2>conftest.er1
12540 ac_status=$?
12541 grep -v '^ *+' conftest.er1 >conftest.err
12542 rm -f conftest.er1
12543 cat conftest.err >&5
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); } &&
12546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12556 { ac_try='test -s conftest.$ac_objext'
12557 { (case "(($ac_try" in
12558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12559 *) ac_try_echo=$ac_try;;
12560esac
12561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12562 (eval "$ac_try") 2>&5
12563 ac_status=$?
12564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565 (exit $ac_status); }; }; then
12566 ac_header_compiler=yes
12567else
12568 echo "$as_me: failed program was:" >&5
12569sed 's/^/| /' conftest.$ac_ext >&5
12570
12571 ac_header_compiler=no
12572fi
12573
12574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12575{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12576echo "${ECHO_T}$ac_header_compiler" >&6; }
12577
12578# Is the header present?
12579{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12580echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12581cat >conftest.$ac_ext <<_ACEOF
12582/* confdefs.h. */
12583_ACEOF
12584cat confdefs.h >>conftest.$ac_ext
12585cat >>conftest.$ac_ext <<_ACEOF
12586/* end confdefs.h. */
12587#include <$ac_header>
12588_ACEOF
12589if { (ac_try="$ac_cpp conftest.$ac_ext"
12590case "(($ac_try" in
12591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12592 *) ac_try_echo=$ac_try;;
12593esac
12594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12596 ac_status=$?
12597 grep -v '^ *+' conftest.er1 >conftest.err
12598 rm -f conftest.er1
12599 cat conftest.err >&5
12600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601 (exit $ac_status); } >/dev/null; then
12602 if test -s conftest.err; then
12603 ac_cpp_err=$ac_c_preproc_warn_flag
12604 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12605 else
12606 ac_cpp_err=
12607 fi
12608else
12609 ac_cpp_err=yes
12610fi
12611if test -z "$ac_cpp_err"; then
12612 ac_header_preproc=yes
12613else
12614 echo "$as_me: failed program was:" >&5
12615sed 's/^/| /' conftest.$ac_ext >&5
12616
12617 ac_header_preproc=no
12618fi
12619
12620rm -f conftest.err conftest.$ac_ext
12621{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12622echo "${ECHO_T}$ac_header_preproc" >&6; }
12623
12624# So? What about this header?
12625case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12626 yes:no: )
12627 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12628echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12630echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12631 ac_header_preproc=yes
12632 ;;
12633 no:yes:* )
12634 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12635echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12636 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12637echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12638 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12639echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12640 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12641echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12643echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12644 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12645echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12646 ( cat <<\_ASBOX
12647## ----------------------------------- ##
12648## Report this to llvmbugs@cs.uiuc.edu ##
12649## ----------------------------------- ##
12650_ASBOX
12651 ) | sed "s/^/$as_me: WARNING: /" >&2
12652 ;;
12653esac
12654{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12655echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12656if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12657 echo $ECHO_N "(cached) $ECHO_C" >&6
12658else
12659 eval "$as_ac_Header=\$ac_header_preproc"
12660fi
12661ac_res=`eval echo '${'$as_ac_Header'}'`
12662 { echo "$as_me:$LINENO: result: $ac_res" >&5
12663echo "${ECHO_T}$ac_res" >&6; }
12664
12665fi
12666if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012667 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012668#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012669_ACEOF
12670 break
12671fi
12672
12673done
12674
12675
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012676
12677
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012678for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012679do
12680as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12681{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12682echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12683if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12684 echo $ECHO_N "(cached) $ECHO_C" >&6
12685else
12686 cat >conftest.$ac_ext <<_ACEOF
12687/* confdefs.h. */
12688_ACEOF
12689cat confdefs.h >>conftest.$ac_ext
12690cat >>conftest.$ac_ext <<_ACEOF
12691/* end confdefs.h. */
12692/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12694#define $ac_func innocuous_$ac_func
12695
12696/* System header to define __stub macros and hopefully few prototypes,
12697 which can conflict with char $ac_func (); below.
12698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12699 <limits.h> exists even on freestanding compilers. */
12700
12701#ifdef __STDC__
12702# include <limits.h>
12703#else
12704# include <assert.h>
12705#endif
12706
12707#undef $ac_func
12708
12709/* Override any GCC internal prototype to avoid an error.
12710 Use char because int might match the return type of a GCC
12711 builtin and then its argument prototype would still apply. */
12712#ifdef __cplusplus
12713extern "C"
12714#endif
12715char $ac_func ();
12716/* The GNU C library defines this for functions which it implements
12717 to always fail with ENOSYS. Some functions are actually named
12718 something starting with __ and the normal name is an alias. */
12719#if defined __stub_$ac_func || defined __stub___$ac_func
12720choke me
12721#endif
12722
12723int
12724main ()
12725{
12726return $ac_func ();
12727 ;
12728 return 0;
12729}
12730_ACEOF
12731rm -f conftest.$ac_objext conftest$ac_exeext
12732if { (ac_try="$ac_link"
12733case "(($ac_try" in
12734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12735 *) ac_try_echo=$ac_try;;
12736esac
12737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12738 (eval "$ac_link") 2>conftest.er1
12739 ac_status=$?
12740 grep -v '^ *+' conftest.er1 >conftest.err
12741 rm -f conftest.er1
12742 cat conftest.err >&5
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); } &&
12745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12746 { (case "(($ac_try" in
12747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12748 *) ac_try_echo=$ac_try;;
12749esac
12750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12751 (eval "$ac_try") 2>&5
12752 ac_status=$?
12753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754 (exit $ac_status); }; } &&
12755 { ac_try='test -s conftest$ac_exeext'
12756 { (case "(($ac_try" in
12757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12758 *) ac_try_echo=$ac_try;;
12759esac
12760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12761 (eval "$ac_try") 2>&5
12762 ac_status=$?
12763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); }; }; then
12765 eval "$as_ac_var=yes"
12766else
12767 echo "$as_me: failed program was:" >&5
12768sed 's/^/| /' conftest.$ac_ext >&5
12769
12770 eval "$as_ac_var=no"
12771fi
12772
12773rm -f core conftest.err conftest.$ac_objext \
12774 conftest$ac_exeext conftest.$ac_ext
12775fi
12776ac_res=`eval echo '${'$as_ac_var'}'`
12777 { echo "$as_me:$LINENO: result: $ac_res" >&5
12778echo "${ECHO_T}$ac_res" >&6; }
12779if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012780 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012781#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012782_ACEOF
12783 break
12784fi
12785done
12786
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012787
12788
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012789for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012790do
12791as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12792{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12793echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12794if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12795 echo $ECHO_N "(cached) $ECHO_C" >&6
12796else
12797 cat >conftest.$ac_ext <<_ACEOF
12798/* confdefs.h. */
12799_ACEOF
12800cat confdefs.h >>conftest.$ac_ext
12801cat >>conftest.$ac_ext <<_ACEOF
12802/* end confdefs.h. */
12803/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12804 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12805#define $ac_func innocuous_$ac_func
12806
12807/* System header to define __stub macros and hopefully few prototypes,
12808 which can conflict with char $ac_func (); below.
12809 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12810 <limits.h> exists even on freestanding compilers. */
12811
12812#ifdef __STDC__
12813# include <limits.h>
12814#else
12815# include <assert.h>
12816#endif
12817
12818#undef $ac_func
12819
12820/* Override any GCC internal prototype to avoid an error.
12821 Use char because int might match the return type of a GCC
12822 builtin and then its argument prototype would still apply. */
12823#ifdef __cplusplus
12824extern "C"
12825#endif
12826char $ac_func ();
12827/* The GNU C library defines this for functions which it implements
12828 to always fail with ENOSYS. Some functions are actually named
12829 something starting with __ and the normal name is an alias. */
12830#if defined __stub_$ac_func || defined __stub___$ac_func
12831choke me
12832#endif
12833
12834int
12835main ()
12836{
12837return $ac_func ();
12838 ;
12839 return 0;
12840}
12841_ACEOF
12842rm -f conftest.$ac_objext conftest$ac_exeext
12843if { (ac_try="$ac_link"
12844case "(($ac_try" in
12845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12846 *) ac_try_echo=$ac_try;;
12847esac
12848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12849 (eval "$ac_link") 2>conftest.er1
12850 ac_status=$?
12851 grep -v '^ *+' conftest.er1 >conftest.err
12852 rm -f conftest.er1
12853 cat conftest.err >&5
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); } &&
12856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12866 { ac_try='test -s conftest$ac_exeext'
12867 { (case "(($ac_try" in
12868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12869 *) ac_try_echo=$ac_try;;
12870esac
12871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12872 (eval "$ac_try") 2>&5
12873 ac_status=$?
12874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12875 (exit $ac_status); }; }; then
12876 eval "$as_ac_var=yes"
12877else
12878 echo "$as_me: failed program was:" >&5
12879sed 's/^/| /' conftest.$ac_ext >&5
12880
12881 eval "$as_ac_var=no"
12882fi
12883
12884rm -f core conftest.err conftest.$ac_objext \
12885 conftest$ac_exeext conftest.$ac_ext
12886fi
12887ac_res=`eval echo '${'$as_ac_var'}'`
12888 { echo "$as_me:$LINENO: result: $ac_res" >&5
12889echo "${ECHO_T}$ac_res" >&6; }
12890if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012891 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012892#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012893_ACEOF
12894 break
12895fi
12896done
12897
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012898
12899
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012900for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012901do
12902as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12903{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12904echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12905if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12906 echo $ECHO_N "(cached) $ECHO_C" >&6
12907else
12908 cat >conftest.$ac_ext <<_ACEOF
12909/* confdefs.h. */
12910_ACEOF
12911cat confdefs.h >>conftest.$ac_ext
12912cat >>conftest.$ac_ext <<_ACEOF
12913/* end confdefs.h. */
12914/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12916#define $ac_func innocuous_$ac_func
12917
12918/* System header to define __stub macros and hopefully few prototypes,
12919 which can conflict with char $ac_func (); below.
12920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12921 <limits.h> exists even on freestanding compilers. */
12922
12923#ifdef __STDC__
12924# include <limits.h>
12925#else
12926# include <assert.h>
12927#endif
12928
12929#undef $ac_func
12930
12931/* Override any GCC internal prototype to avoid an error.
12932 Use char because int might match the return type of a GCC
12933 builtin and then its argument prototype would still apply. */
12934#ifdef __cplusplus
12935extern "C"
12936#endif
12937char $ac_func ();
12938/* The GNU C library defines this for functions which it implements
12939 to always fail with ENOSYS. Some functions are actually named
12940 something starting with __ and the normal name is an alias. */
12941#if defined __stub_$ac_func || defined __stub___$ac_func
12942choke me
12943#endif
12944
12945int
12946main ()
12947{
12948return $ac_func ();
12949 ;
12950 return 0;
12951}
12952_ACEOF
12953rm -f conftest.$ac_objext conftest$ac_exeext
12954if { (ac_try="$ac_link"
12955case "(($ac_try" in
12956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12957 *) ac_try_echo=$ac_try;;
12958esac
12959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12960 (eval "$ac_link") 2>conftest.er1
12961 ac_status=$?
12962 grep -v '^ *+' conftest.er1 >conftest.err
12963 rm -f conftest.er1
12964 cat conftest.err >&5
12965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966 (exit $ac_status); } &&
12967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12977 { ac_try='test -s conftest$ac_exeext'
12978 { (case "(($ac_try" in
12979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12980 *) ac_try_echo=$ac_try;;
12981esac
12982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12983 (eval "$ac_try") 2>&5
12984 ac_status=$?
12985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986 (exit $ac_status); }; }; then
12987 eval "$as_ac_var=yes"
12988else
12989 echo "$as_me: failed program was:" >&5
12990sed 's/^/| /' conftest.$ac_ext >&5
12991
12992 eval "$as_ac_var=no"
12993fi
12994
12995rm -f core conftest.err conftest.$ac_objext \
12996 conftest$ac_exeext conftest.$ac_ext
12997fi
12998ac_res=`eval echo '${'$as_ac_var'}'`
12999 { echo "$as_me:$LINENO: result: $ac_res" >&5
13000echo "${ECHO_T}$ac_res" >&6; }
13001if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013002 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013003#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013004_ACEOF
13005 break
13006fi
13007done
13008
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013009
13010
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013011for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013012do
13013as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13014{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13015echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13016if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13017 echo $ECHO_N "(cached) $ECHO_C" >&6
13018else
13019 cat >conftest.$ac_ext <<_ACEOF
13020/* confdefs.h. */
13021_ACEOF
13022cat confdefs.h >>conftest.$ac_ext
13023cat >>conftest.$ac_ext <<_ACEOF
13024/* end confdefs.h. */
13025/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13026 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13027#define $ac_func innocuous_$ac_func
13028
13029/* System header to define __stub macros and hopefully few prototypes,
13030 which can conflict with char $ac_func (); below.
13031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13032 <limits.h> exists even on freestanding compilers. */
13033
13034#ifdef __STDC__
13035# include <limits.h>
13036#else
13037# include <assert.h>
13038#endif
13039
13040#undef $ac_func
13041
13042/* Override any GCC internal prototype to avoid an error.
13043 Use char because int might match the return type of a GCC
13044 builtin and then its argument prototype would still apply. */
13045#ifdef __cplusplus
13046extern "C"
13047#endif
13048char $ac_func ();
13049/* The GNU C library defines this for functions which it implements
13050 to always fail with ENOSYS. Some functions are actually named
13051 something starting with __ and the normal name is an alias. */
13052#if defined __stub_$ac_func || defined __stub___$ac_func
13053choke me
13054#endif
13055
13056int
13057main ()
13058{
13059return $ac_func ();
13060 ;
13061 return 0;
13062}
13063_ACEOF
13064rm -f conftest.$ac_objext conftest$ac_exeext
13065if { (ac_try="$ac_link"
13066case "(($ac_try" in
13067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13068 *) ac_try_echo=$ac_try;;
13069esac
13070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13071 (eval "$ac_link") 2>conftest.er1
13072 ac_status=$?
13073 grep -v '^ *+' conftest.er1 >conftest.err
13074 rm -f conftest.er1
13075 cat conftest.err >&5
13076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077 (exit $ac_status); } &&
13078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13088 { ac_try='test -s conftest$ac_exeext'
13089 { (case "(($ac_try" in
13090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13091 *) ac_try_echo=$ac_try;;
13092esac
13093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13094 (eval "$ac_try") 2>&5
13095 ac_status=$?
13096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097 (exit $ac_status); }; }; then
13098 eval "$as_ac_var=yes"
13099else
13100 echo "$as_me: failed program was:" >&5
13101sed 's/^/| /' conftest.$ac_ext >&5
13102
13103 eval "$as_ac_var=no"
13104fi
13105
13106rm -f core conftest.err conftest.$ac_objext \
13107 conftest$ac_exeext conftest.$ac_ext
13108fi
13109ac_res=`eval echo '${'$as_ac_var'}'`
13110 { echo "$as_me:$LINENO: result: $ac_res" >&5
13111echo "${ECHO_T}$ac_res" >&6; }
13112if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013113 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013114#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013115_ACEOF
13116
13117fi
13118done
13119
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013120
13121
13122
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013123for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013124do
13125as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13126{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13127echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13128if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13129 echo $ECHO_N "(cached) $ECHO_C" >&6
13130else
13131 cat >conftest.$ac_ext <<_ACEOF
13132/* confdefs.h. */
13133_ACEOF
13134cat confdefs.h >>conftest.$ac_ext
13135cat >>conftest.$ac_ext <<_ACEOF
13136/* end confdefs.h. */
13137/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13138 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13139#define $ac_func innocuous_$ac_func
13140
13141/* System header to define __stub macros and hopefully few prototypes,
13142 which can conflict with char $ac_func (); below.
13143 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13144 <limits.h> exists even on freestanding compilers. */
13145
13146#ifdef __STDC__
13147# include <limits.h>
13148#else
13149# include <assert.h>
13150#endif
13151
13152#undef $ac_func
13153
13154/* Override any GCC internal prototype to avoid an error.
13155 Use char because int might match the return type of a GCC
13156 builtin and then its argument prototype would still apply. */
13157#ifdef __cplusplus
13158extern "C"
13159#endif
13160char $ac_func ();
13161/* The GNU C library defines this for functions which it implements
13162 to always fail with ENOSYS. Some functions are actually named
13163 something starting with __ and the normal name is an alias. */
13164#if defined __stub_$ac_func || defined __stub___$ac_func
13165choke me
13166#endif
13167
13168int
13169main ()
13170{
13171return $ac_func ();
13172 ;
13173 return 0;
13174}
13175_ACEOF
13176rm -f conftest.$ac_objext conftest$ac_exeext
13177if { (ac_try="$ac_link"
13178case "(($ac_try" in
13179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13180 *) ac_try_echo=$ac_try;;
13181esac
13182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13183 (eval "$ac_link") 2>conftest.er1
13184 ac_status=$?
13185 grep -v '^ *+' conftest.er1 >conftest.err
13186 rm -f conftest.er1
13187 cat conftest.err >&5
13188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189 (exit $ac_status); } &&
13190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13200 { ac_try='test -s conftest$ac_exeext'
13201 { (case "(($ac_try" in
13202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13203 *) ac_try_echo=$ac_try;;
13204esac
13205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13206 (eval "$ac_try") 2>&5
13207 ac_status=$?
13208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209 (exit $ac_status); }; }; then
13210 eval "$as_ac_var=yes"
13211else
13212 echo "$as_me: failed program was:" >&5
13213sed 's/^/| /' conftest.$ac_ext >&5
13214
13215 eval "$as_ac_var=no"
13216fi
13217
13218rm -f core conftest.err conftest.$ac_objext \
13219 conftest$ac_exeext conftest.$ac_ext
13220fi
13221ac_res=`eval echo '${'$as_ac_var'}'`
13222 { echo "$as_me:$LINENO: result: $ac_res" >&5
13223echo "${ECHO_T}$ac_res" >&6; }
13224if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013225 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013226#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013227_ACEOF
13228
13229fi
13230done
13231
13232
Douglas Gregor01746742009-05-11 18:05:52 +000013233
Reid Spencer7931a782004-12-27 06:15:02 +000013234if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000013235 LLVMGCC="llvm-gcc${EXEEXT}"
13236 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013237 LLVMGCCCOMMAND="$LLVMGCC"
13238 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013239 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13240
13241 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13242
Reid Spencerc84492c2005-06-02 22:34:49 +000013243 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13244set dummy $LLVMGCC; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013245{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13246echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13247if test "${ac_cv_path_LLVMGCC+set}" = set; then
13248 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013249else
13250 case $LLVMGCC in
13251 [\\/]* | ?:[\\/]*)
13252 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13253 ;;
13254 *)
13255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13256for as_dir in $PATH
13257do
13258 IFS=$as_save_IFS
13259 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013260 for ac_exec_ext in '' $ac_executable_extensions; do
13261 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 +000013262 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000013264 break 2
13265 fi
13266done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013267done
Reid Spencera773bd52006-08-04 18:18:08 +000013268IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000013269
Reid Spencer59473af2004-12-25 07:31:29 +000013270 ;;
13271esac
13272fi
13273LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000013274if test -n "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013275 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13276echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013277else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013278 { echo "$as_me:$LINENO: result: no" >&5
13279echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013280fi
13281
Reid Spencera773bd52006-08-04 18:18:08 +000013282
Reid Spencerc84492c2005-06-02 22:34:49 +000013283 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13284set dummy $LLVMGXX; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013285{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13286echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13287if test "${ac_cv_path_LLVMGXX+set}" = set; then
13288 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013289else
13290 case $LLVMGXX in
13291 [\\/]* | ?:[\\/]*)
13292 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13293 ;;
13294 *)
13295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13296for as_dir in $PATH
13297do
13298 IFS=$as_save_IFS
13299 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013300 for ac_exec_ext in '' $ac_executable_extensions; do
13301 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 +000013302 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000013304 break 2
13305 fi
13306done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013307done
Reid Spencera773bd52006-08-04 18:18:08 +000013308IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000013309
Reid Spencer59473af2004-12-25 07:31:29 +000013310 ;;
13311esac
13312fi
13313LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000013314if test -n "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013315 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13316echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013317else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013318 { echo "$as_me:$LINENO: result: no" >&5
13319echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013320fi
13321
Reid Spencera773bd52006-08-04 18:18:08 +000013322
Reid Spencer59473af2004-12-25 07:31:29 +000013323else
Devang Patel5d28b882007-12-04 22:54:47 +000013324 if test -z "$LLVMGCC"; then
13325 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013326 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000013327 fi
13328 if test -z "$LLVMGXX"; then
13329 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013330 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000013331 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013332
Reid Spencer59473af2004-12-25 07:31:29 +000013333 LLVMGCC=$LLVMGCC
13334
13335 LLVMGXX=$LLVMGXX
13336
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013337 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13338
13339 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13340
Reid Spencer59473af2004-12-25 07:31:29 +000013341fi
13342
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013343
Daniel Dunbar98515672010-02-23 10:00:49 +000013344# Check whether --with-llvmcc was given.
13345if test "${with_llvmcc+set}" = set; then
13346 withval=$with_llvmcc;
13347else
13348 with_llvmcc=check
13349fi
13350
13351{ echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13352echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13353if test "$with_llvmcc" != "check"; then
13354 if (test "$with_llvmcc" != "llvm-gcc" &&
13355 test "$with_llvmcc" != "clang" &&
13356 test "$with_llvmcc" != "none"); then
13357 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13358echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13359 { (exit 1); exit 1; }; }
13360 fi
13361 WITH_LLVMCC="$with_llvmcc"
13362elif test -n "$LLVMGCC"; then
13363 WITH_LLVMCC=llvm-gcc
13364elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13365 WITH_LLVMCC=clang
13366else
13367 WITH_LLVMCC=none
13368fi
13369{ echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13370echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13371LLVMCC_OPTION=$WITH_LLVMCC
13372
13373
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013374{ echo "$as_me:$LINENO: checking tool compatibility" >&5
13375echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013376
Reid Spencer86901802004-12-08 23:07:27 +000013377ICC=no
13378IXX=no
13379case $CC in
13380 icc*|icpc*)
13381 ICC=yes
13382 IXX=yes
13383 ;;
13384 *)
13385 ;;
13386esac
13387
Duraid Madina937c60a2006-02-15 07:57:42 +000013388if test "$GCC" != "yes" && test "$ICC" != "yes"
13389then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013390 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13391echo "$as_me: error: gcc|icc required but not found" >&2;}
13392 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000013393fi
13394
13395if test "$GXX" != "yes" && test "$IXX" != "yes"
13396then
Eric Christopher73e36da2010-12-08 02:02:14 +000013397 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
13398echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013399 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000013400fi
13401
Reid Spencer86901802004-12-08 23:07:27 +000013402if test "$GCC" = "yes"
13403then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013404 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000013405#if !defined(__GNUC__) || __GNUC__ < 3
13406#error Unsupported GCC version
13407#endif
13408
13409_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013410rm -f conftest.$ac_objext
13411if { (ac_try="$ac_compile"
13412case "(($ac_try" in
13413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13414 *) ac_try_echo=$ac_try;;
13415esac
13416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13417 (eval "$ac_compile") 2>conftest.er1
13418 ac_status=$?
13419 grep -v '^ *+' conftest.er1 >conftest.err
13420 rm -f conftest.er1
13421 cat conftest.err >&5
13422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423 (exit $ac_status); } &&
13424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13434 { ac_try='test -s conftest.$ac_objext'
13435 { (case "(($ac_try" in
13436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13437 *) ac_try_echo=$ac_try;;
13438esac
13439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13440 (eval "$ac_try") 2>&5
13441 ac_status=$?
13442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443 (exit $ac_status); }; }; then
13444 :
Chris Lattner399c7c72008-02-05 19:43:53 +000013445else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013446 echo "$as_me: failed program was:" >&5
13447sed 's/^/| /' conftest.$ac_ext >&5
13448
13449 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13450echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13451 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000013452fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013453
Chris Lattner399c7c72008-02-05 19:43:53 +000013454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013455fi
13456
13457if test -z "$llvm_cv_gnu_make_command"
13458then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013459 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13460echo "$as_me: error: GNU Make required but not found" >&2;}
13461 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013462fi
13463
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013464{ echo "$as_me:$LINENO: result: ok" >&5
13465echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013466
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013467{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
13468echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013469NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13470
13471NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13472
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013473{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13474echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013475
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000013476
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013477
13478{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
13479echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13480if test "${ac_cv_lib_m_sin+set}" = set; then
13481 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000013482else
13483 ac_check_lib_save_LIBS=$LIBS
13484LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013485cat >conftest.$ac_ext <<_ACEOF
13486/* confdefs.h. */
13487_ACEOF
13488cat confdefs.h >>conftest.$ac_ext
13489cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000013490/* end confdefs.h. */
13491
Reid Spencera773bd52006-08-04 18:18:08 +000013492/* Override any GCC internal prototype to avoid an error.
13493 Use char because int might match the return type of a GCC
13494 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000013495#ifdef __cplusplus
13496extern "C"
13497#endif
Reid Spencer3484a992006-01-19 08:31:08 +000013498char sin ();
13499int
13500main ()
13501{
Reid Spencera773bd52006-08-04 18:18:08 +000013502return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000013503 ;
13504 return 0;
13505}
13506_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013507rm -f conftest.$ac_objext conftest$ac_exeext
13508if { (ac_try="$ac_link"
13509case "(($ac_try" in
13510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13511 *) ac_try_echo=$ac_try;;
13512esac
13513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13514 (eval "$ac_link") 2>conftest.er1
13515 ac_status=$?
13516 grep -v '^ *+' conftest.er1 >conftest.err
13517 rm -f conftest.er1
13518 cat conftest.err >&5
13519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 (exit $ac_status); } &&
13521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13531 { ac_try='test -s conftest$ac_exeext'
13532 { (case "(($ac_try" in
13533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13534 *) ac_try_echo=$ac_try;;
13535esac
13536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13537 (eval "$ac_try") 2>&5
13538 ac_status=$?
13539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000013541 ac_cv_lib_m_sin=yes
13542else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013543 echo "$as_me: failed program was:" >&5
13544sed 's/^/| /' conftest.$ac_ext >&5
13545
13546 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000013547fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013548
Bill Wendlingebcceee2009-04-18 11:20:33 +000013549rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013550 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000013551LIBS=$ac_check_lib_save_LIBS
13552fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013553{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13554echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13555if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000013556 cat >>confdefs.h <<_ACEOF
13557#define HAVE_LIBM 1
13558_ACEOF
13559
13560 LIBS="-lm $LIBS"
13561
13562fi
13563
Jeff Cohen28783c32007-01-12 18:22:38 +000013564if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013565
13566{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13567echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13568if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13569 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013570else
13571 ac_check_lib_save_LIBS=$LIBS
13572LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013573cat >conftest.$ac_ext <<_ACEOF
13574/* confdefs.h. */
13575_ACEOF
13576cat confdefs.h >>conftest.$ac_ext
13577cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013578/* end confdefs.h. */
13579
Reid Spencer48fdf912006-06-01 19:03:21 +000013580
Reid Spencer484fc8e2006-06-01 16:55:59 +000013581int
13582main ()
13583{
Reid Spencera773bd52006-08-04 18:18:08 +000013584return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013585 ;
13586 return 0;
13587}
13588_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013589rm -f conftest.$ac_objext conftest$ac_exeext
13590if { (ac_try="$ac_link"
13591case "(($ac_try" in
13592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13593 *) ac_try_echo=$ac_try;;
13594esac
13595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13596 (eval "$ac_link") 2>conftest.er1
13597 ac_status=$?
13598 grep -v '^ *+' conftest.er1 >conftest.err
13599 rm -f conftest.er1
13600 cat conftest.err >&5
13601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602 (exit $ac_status); } &&
13603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13613 { ac_try='test -s conftest$ac_exeext'
13614 { (case "(($ac_try" in
13615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13616 *) ac_try_echo=$ac_try;;
13617esac
13618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13619 (eval "$ac_try") 2>&5
13620 ac_status=$?
13621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013623 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013624else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013625 echo "$as_me: failed program was:" >&5
13626sed 's/^/| /' conftest.$ac_ext >&5
13627
13628 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013629fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013630
Bill Wendlingebcceee2009-04-18 11:20:33 +000013631rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013632 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013633LIBS=$ac_check_lib_save_LIBS
13634fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013635{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13636echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13637if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013638 cat >>confdefs.h <<_ACEOF
13639#define HAVE_LIBIMAGEHLP 1
13640_ACEOF
13641
13642 LIBS="-limagehlp $LIBS"
13643
13644fi
13645
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013646
13647{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13648echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13649if test "${ac_cv_lib_psapi_main+set}" = set; then
13650 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013651else
13652 ac_check_lib_save_LIBS=$LIBS
13653LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013654cat >conftest.$ac_ext <<_ACEOF
13655/* confdefs.h. */
13656_ACEOF
13657cat confdefs.h >>conftest.$ac_ext
13658cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013659/* end confdefs.h. */
13660
Reid Spencer48fdf912006-06-01 19:03:21 +000013661
Reid Spencer484fc8e2006-06-01 16:55:59 +000013662int
13663main ()
13664{
Reid Spencera773bd52006-08-04 18:18:08 +000013665return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013666 ;
13667 return 0;
13668}
13669_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013670rm -f conftest.$ac_objext conftest$ac_exeext
13671if { (ac_try="$ac_link"
13672case "(($ac_try" in
13673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13674 *) ac_try_echo=$ac_try;;
13675esac
13676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13677 (eval "$ac_link") 2>conftest.er1
13678 ac_status=$?
13679 grep -v '^ *+' conftest.er1 >conftest.err
13680 rm -f conftest.er1
13681 cat conftest.err >&5
13682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13683 (exit $ac_status); } &&
13684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13694 { ac_try='test -s conftest$ac_exeext'
13695 { (case "(($ac_try" in
13696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13697 *) ac_try_echo=$ac_try;;
13698esac
13699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13700 (eval "$ac_try") 2>&5
13701 ac_status=$?
13702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013704 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013705else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013706 echo "$as_me: failed program was:" >&5
13707sed 's/^/| /' conftest.$ac_ext >&5
13708
13709 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013710fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013711
Bill Wendlingebcceee2009-04-18 11:20:33 +000013712rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013713 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013714LIBS=$ac_check_lib_save_LIBS
13715fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013716{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13717echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13718if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013719 cat >>confdefs.h <<_ACEOF
13720#define HAVE_LIBPSAPI 1
13721_ACEOF
13722
13723 LIBS="-lpsapi $LIBS"
13724
13725fi
13726
13727fi
Reid Spencer22177fe2005-07-12 15:24:20 +000013728
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013729{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13730echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13731if test "${ac_cv_search_dlopen+set}" = set; then
13732 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013733else
13734 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013735cat >conftest.$ac_ext <<_ACEOF
13736/* confdefs.h. */
13737_ACEOF
13738cat confdefs.h >>conftest.$ac_ext
13739cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013740/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013741
Reid Spencera773bd52006-08-04 18:18:08 +000013742/* Override any GCC internal prototype to avoid an error.
13743 Use char because int might match the return type of a GCC
13744 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013745#ifdef __cplusplus
13746extern "C"
13747#endif
John Criswell7a73b802003-06-30 21:59:07 +000013748char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013749int
13750main ()
13751{
Reid Spencera773bd52006-08-04 18:18:08 +000013752return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013753 ;
13754 return 0;
13755}
13756_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013757for ac_lib in '' dl; do
13758 if test -z "$ac_lib"; then
13759 ac_res="none required"
13760 else
13761 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013762 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013763 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013764 rm -f conftest.$ac_objext conftest$ac_exeext
13765if { (ac_try="$ac_link"
13766case "(($ac_try" in
13767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13768 *) ac_try_echo=$ac_try;;
13769esac
13770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13771 (eval "$ac_link") 2>conftest.er1
13772 ac_status=$?
13773 grep -v '^ *+' conftest.er1 >conftest.err
13774 rm -f conftest.er1
13775 cat conftest.err >&5
13776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13777 (exit $ac_status); } &&
13778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13788 { ac_try='test -s conftest$ac_exeext'
13789 { (case "(($ac_try" in
13790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13791 *) ac_try_echo=$ac_try;;
13792esac
13793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13794 (eval "$ac_try") 2>&5
13795 ac_status=$?
13796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013798 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013799else
13800 echo "$as_me: failed program was:" >&5
13801sed 's/^/| /' conftest.$ac_ext >&5
13802
13803
John Criswell7a73b802003-06-30 21:59:07 +000013804fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013805
Bill Wendlingebcceee2009-04-18 11:20:33 +000013806rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013807 conftest$ac_exeext
13808 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013809 break
John Criswell7a73b802003-06-30 21:59:07 +000013810fi
Reid Spencera773bd52006-08-04 18:18:08 +000013811done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013812if test "${ac_cv_search_dlopen+set}" = set; then
13813 :
Reid Spencera773bd52006-08-04 18:18:08 +000013814else
13815 ac_cv_search_dlopen=no
13816fi
13817rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013818LIBS=$ac_func_search_save_LIBS
13819fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013820{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13821echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013822ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013823if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013824 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013825
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013826cat >>confdefs.h <<\_ACEOF
13827#define HAVE_DLOPEN 1
13828_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013829
13830else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013831 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13832echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000013833fi
13834
13835
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013836if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013837 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13838echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13839if test "${ac_cv_search_ffi_call+set}" = set; then
13840 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013841else
Nick Lewycky267fddb2009-04-13 04:26:27 +000013842 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013843cat >conftest.$ac_ext <<_ACEOF
13844/* confdefs.h. */
13845_ACEOF
13846cat confdefs.h >>conftest.$ac_ext
13847cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013848/* end confdefs.h. */
13849
13850/* Override any GCC internal prototype to avoid an error.
13851 Use char because int might match the return type of a GCC
13852 builtin and then its argument prototype would still apply. */
13853#ifdef __cplusplus
13854extern "C"
13855#endif
13856char ffi_call ();
13857int
13858main ()
13859{
13860return ffi_call ();
13861 ;
13862 return 0;
13863}
13864_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013865for ac_lib in '' ffi; do
13866 if test -z "$ac_lib"; then
13867 ac_res="none required"
13868 else
13869 ac_res=-l$ac_lib
13870 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13871 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013872 rm -f conftest.$ac_objext conftest$ac_exeext
13873if { (ac_try="$ac_link"
13874case "(($ac_try" in
13875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13876 *) ac_try_echo=$ac_try;;
13877esac
13878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13879 (eval "$ac_link") 2>conftest.er1
13880 ac_status=$?
13881 grep -v '^ *+' conftest.er1 >conftest.err
13882 rm -f conftest.er1
13883 cat conftest.err >&5
13884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885 (exit $ac_status); } &&
13886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13896 { ac_try='test -s conftest$ac_exeext'
13897 { (case "(($ac_try" in
13898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13899 *) ac_try_echo=$ac_try;;
13900esac
13901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13902 (eval "$ac_try") 2>&5
13903 ac_status=$?
13904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13905 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013906 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013907else
13908 echo "$as_me: failed program was:" >&5
13909sed 's/^/| /' conftest.$ac_ext >&5
13910
13911
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013912fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013913
Bill Wendlingebcceee2009-04-18 11:20:33 +000013914rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013915 conftest$ac_exeext
13916 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013917 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013918fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000013919done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013920if test "${ac_cv_search_ffi_call+set}" = set; then
13921 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000013922else
13923 ac_cv_search_ffi_call=no
13924fi
13925rm conftest.$ac_ext
13926LIBS=$ac_func_search_save_LIBS
13927fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013928{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13929echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000013930ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013931if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013932 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13933
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013934cat >>confdefs.h <<\_ACEOF
13935#define HAVE_FFI_CALL 1
13936_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013937
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013938else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000013939 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13940echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13941 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013942fi
13943
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013944fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013945
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013946{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13947echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13948if test "${ac_cv_search_mallinfo+set}" = set; then
13949 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013950else
13951 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013952cat >conftest.$ac_ext <<_ACEOF
13953/* confdefs.h. */
13954_ACEOF
13955cat confdefs.h >>conftest.$ac_ext
13956cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013957/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013958
Reid Spencera773bd52006-08-04 18:18:08 +000013959/* Override any GCC internal prototype to avoid an error.
13960 Use char because int might match the return type of a GCC
13961 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013962#ifdef __cplusplus
13963extern "C"
13964#endif
John Criswell7a73b802003-06-30 21:59:07 +000013965char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013966int
13967main ()
13968{
Reid Spencera773bd52006-08-04 18:18:08 +000013969return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013970 ;
13971 return 0;
13972}
13973_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013974for ac_lib in '' malloc; do
13975 if test -z "$ac_lib"; then
13976 ac_res="none required"
13977 else
13978 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013979 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013980 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013981 rm -f conftest.$ac_objext conftest$ac_exeext
13982if { (ac_try="$ac_link"
13983case "(($ac_try" in
13984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13985 *) ac_try_echo=$ac_try;;
13986esac
13987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13988 (eval "$ac_link") 2>conftest.er1
13989 ac_status=$?
13990 grep -v '^ *+' conftest.er1 >conftest.err
13991 rm -f conftest.er1
13992 cat conftest.err >&5
13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994 (exit $ac_status); } &&
13995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
14005 { ac_try='test -s conftest$ac_exeext'
14006 { (case "(($ac_try" in
14007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14008 *) ac_try_echo=$ac_try;;
14009esac
14010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14011 (eval "$ac_try") 2>&5
14012 ac_status=$?
14013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014015 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014016else
14017 echo "$as_me: failed program was:" >&5
14018sed 's/^/| /' conftest.$ac_ext >&5
14019
14020
John Criswell7a73b802003-06-30 21:59:07 +000014021fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014022
Bill Wendlingebcceee2009-04-18 11:20:33 +000014023rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014024 conftest$ac_exeext
14025 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014026 break
John Criswell7a73b802003-06-30 21:59:07 +000014027fi
Reid Spencera773bd52006-08-04 18:18:08 +000014028done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014029if test "${ac_cv_search_mallinfo+set}" = set; then
14030 :
Reid Spencera773bd52006-08-04 18:18:08 +000014031else
14032 ac_cv_search_mallinfo=no
14033fi
14034rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014035LIBS=$ac_func_search_save_LIBS
14036fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014037{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
14038echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014039ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014040if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014041 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000014042
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014043cat >>confdefs.h <<\_ACEOF
14044#define HAVE_MALLINFO 1
14045_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000014046
14047fi
14048
14049
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000014050if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014051
14052{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
14053echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
14054if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
14055 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000014056else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014057 ac_check_lib_save_LIBS=$LIBS
14058LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014059cat >conftest.$ac_ext <<_ACEOF
14060/* confdefs.h. */
14061_ACEOF
14062cat confdefs.h >>conftest.$ac_ext
14063cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000014064/* end confdefs.h. */
14065
Reid Spencera773bd52006-08-04 18:18:08 +000014066/* Override any GCC internal prototype to avoid an error.
14067 Use char because int might match the return type of a GCC
14068 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000014069#ifdef __cplusplus
14070extern "C"
14071#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000014072char pthread_mutex_init ();
14073int
14074main ()
14075{
Reid Spencera773bd52006-08-04 18:18:08 +000014076return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000014077 ;
14078 return 0;
14079}
14080_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014081rm -f conftest.$ac_objext conftest$ac_exeext
14082if { (ac_try="$ac_link"
14083case "(($ac_try" in
14084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14085 *) ac_try_echo=$ac_try;;
14086esac
14087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14088 (eval "$ac_link") 2>conftest.er1
14089 ac_status=$?
14090 grep -v '^ *+' conftest.er1 >conftest.err
14091 rm -f conftest.er1
14092 cat conftest.err >&5
14093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094 (exit $ac_status); } &&
14095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14096 { (case "(($ac_try" in
14097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14098 *) ac_try_echo=$ac_try;;
14099esac
14100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14101 (eval "$ac_try") 2>&5
14102 ac_status=$?
14103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104 (exit $ac_status); }; } &&
14105 { ac_try='test -s conftest$ac_exeext'
14106 { (case "(($ac_try" in
14107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14108 *) ac_try_echo=$ac_try;;
14109esac
14110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14111 (eval "$ac_try") 2>&5
14112 ac_status=$?
14113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014115 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000014116else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014117 echo "$as_me: failed program was:" >&5
14118sed 's/^/| /' conftest.$ac_ext >&5
14119
14120 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000014121fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014122
Bill Wendlingebcceee2009-04-18 11:20:33 +000014123rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014124 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014125LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000014126fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014127{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
14128echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
14129if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014130 cat >>confdefs.h <<_ACEOF
14131#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000014132_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000014133
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014134 LIBS="-lpthread $LIBS"
14135
Reid Spencer22177fe2005-07-12 15:24:20 +000014136fi
14137
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014138 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
14139echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
14140if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14141 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000014142else
14143 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014144cat >conftest.$ac_ext <<_ACEOF
14145/* confdefs.h. */
14146_ACEOF
14147cat confdefs.h >>conftest.$ac_ext
14148cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000014149/* end confdefs.h. */
14150
Reid Spencera773bd52006-08-04 18:18:08 +000014151/* Override any GCC internal prototype to avoid an error.
14152 Use char because int might match the return type of a GCC
14153 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000014154#ifdef __cplusplus
14155extern "C"
14156#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000014157char pthread_mutex_lock ();
14158int
14159main ()
14160{
Reid Spencera773bd52006-08-04 18:18:08 +000014161return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000014162 ;
14163 return 0;
14164}
14165_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014166for ac_lib in '' pthread; do
14167 if test -z "$ac_lib"; then
14168 ac_res="none required"
14169 else
14170 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000014171 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014172 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014173 rm -f conftest.$ac_objext conftest$ac_exeext
14174if { (ac_try="$ac_link"
14175case "(($ac_try" in
14176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14177 *) ac_try_echo=$ac_try;;
14178esac
14179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14180 (eval "$ac_link") 2>conftest.er1
14181 ac_status=$?
14182 grep -v '^ *+' conftest.er1 >conftest.err
14183 rm -f conftest.er1
14184 cat conftest.err >&5
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); } &&
14187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
14197 { ac_try='test -s conftest$ac_exeext'
14198 { (case "(($ac_try" in
14199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14200 *) ac_try_echo=$ac_try;;
14201esac
14202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14203 (eval "$ac_try") 2>&5
14204 ac_status=$?
14205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014207 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014208else
14209 echo "$as_me: failed program was:" >&5
14210sed 's/^/| /' conftest.$ac_ext >&5
14211
14212
Brian Gaeke5f268f72003-12-05 19:29:01 +000014213fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014214
Bill Wendlingebcceee2009-04-18 11:20:33 +000014215rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014216 conftest$ac_exeext
14217 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014218 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000014219fi
Reid Spencera773bd52006-08-04 18:18:08 +000014220done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014221if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14222 :
Reid Spencera773bd52006-08-04 18:18:08 +000014223else
14224 ac_cv_search_pthread_mutex_lock=no
14225fi
14226rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000014227LIBS=$ac_func_search_save_LIBS
14228fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014229{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14230echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014231ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014232if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014233 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000014234
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014235cat >>confdefs.h <<\_ACEOF
14236#define HAVE_PTHREAD_MUTEX_LOCK 1
14237_ACEOF
John Criswell40468462004-09-24 21:19:06 +000014238
14239fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000014240
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014241 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14242echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14243if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14244 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000014245else
14246 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014247cat >conftest.$ac_ext <<_ACEOF
14248/* confdefs.h. */
14249_ACEOF
14250cat confdefs.h >>conftest.$ac_ext
14251cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000014252/* end confdefs.h. */
14253
14254/* Override any GCC internal prototype to avoid an error.
14255 Use char because int might match the return type of a GCC
14256 builtin and then its argument prototype would still apply. */
14257#ifdef __cplusplus
14258extern "C"
14259#endif
14260char pthread_rwlock_init ();
14261int
14262main ()
14263{
14264return pthread_rwlock_init ();
14265 ;
14266 return 0;
14267}
14268_ACEOF
14269for ac_lib in '' pthread; do
14270 if test -z "$ac_lib"; then
14271 ac_res="none required"
14272 else
14273 ac_res=-l$ac_lib
14274 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14275 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014276 rm -f conftest.$ac_objext conftest$ac_exeext
14277if { (ac_try="$ac_link"
14278case "(($ac_try" in
14279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14280 *) ac_try_echo=$ac_try;;
14281esac
14282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14283 (eval "$ac_link") 2>conftest.er1
14284 ac_status=$?
14285 grep -v '^ *+' conftest.er1 >conftest.err
14286 rm -f conftest.er1
14287 cat conftest.err >&5
14288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289 (exit $ac_status); } &&
14290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
14300 { ac_try='test -s conftest$ac_exeext'
14301 { (case "(($ac_try" in
14302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14303 *) ac_try_echo=$ac_try;;
14304esac
14305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14306 (eval "$ac_try") 2>&5
14307 ac_status=$?
14308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014310 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014311else
14312 echo "$as_me: failed program was:" >&5
14313sed 's/^/| /' conftest.$ac_ext >&5
14314
14315
Owen Andersonde8aed22009-06-16 18:20:20 +000014316fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014317
Owen Andersonde8aed22009-06-16 18:20:20 +000014318rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014319 conftest$ac_exeext
14320 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014321 break
14322fi
14323done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014324if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14325 :
Owen Andersonde8aed22009-06-16 18:20:20 +000014326else
14327 ac_cv_search_pthread_rwlock_init=no
14328fi
14329rm conftest.$ac_ext
14330LIBS=$ac_func_search_save_LIBS
14331fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014332{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14333echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000014334ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014335if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014336 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14337
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014338cat >>confdefs.h <<\_ACEOF
14339#define HAVE_PTHREAD_RWLOCK_INIT 1
14340_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000014341
14342fi
14343
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014344 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14345echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14346if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14347 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000014348else
14349 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014350cat >conftest.$ac_ext <<_ACEOF
14351/* confdefs.h. */
14352_ACEOF
14353cat confdefs.h >>conftest.$ac_ext
14354cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014355/* end confdefs.h. */
14356
14357/* Override any GCC internal prototype to avoid an error.
14358 Use char because int might match the return type of a GCC
14359 builtin and then its argument prototype would still apply. */
14360#ifdef __cplusplus
14361extern "C"
14362#endif
14363char pthread_getspecific ();
14364int
14365main ()
14366{
14367return pthread_getspecific ();
14368 ;
14369 return 0;
14370}
14371_ACEOF
14372for ac_lib in '' pthread; do
14373 if test -z "$ac_lib"; then
14374 ac_res="none required"
14375 else
14376 ac_res=-l$ac_lib
14377 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14378 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014379 rm -f conftest.$ac_objext conftest$ac_exeext
14380if { (ac_try="$ac_link"
14381case "(($ac_try" in
14382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14383 *) ac_try_echo=$ac_try;;
14384esac
14385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14386 (eval "$ac_link") 2>conftest.er1
14387 ac_status=$?
14388 grep -v '^ *+' conftest.er1 >conftest.err
14389 rm -f conftest.er1
14390 cat conftest.err >&5
14391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392 (exit $ac_status); } &&
14393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
14403 { ac_try='test -s conftest$ac_exeext'
14404 { (case "(($ac_try" in
14405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14406 *) ac_try_echo=$ac_try;;
14407esac
14408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14409 (eval "$ac_try") 2>&5
14410 ac_status=$?
14411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014413 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014414else
14415 echo "$as_me: failed program was:" >&5
14416sed 's/^/| /' conftest.$ac_ext >&5
14417
14418
Owen Anderson27fcfe12009-06-25 23:10:26 +000014419fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014420
Owen Anderson27fcfe12009-06-25 23:10:26 +000014421rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014422 conftest$ac_exeext
14423 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014424 break
14425fi
14426done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014427if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14428 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000014429else
14430 ac_cv_search_pthread_getspecific=no
14431fi
14432rm conftest.$ac_ext
14433LIBS=$ac_func_search_save_LIBS
14434fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014435{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14436echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000014437ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014438if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014439 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14440
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014441cat >>confdefs.h <<\_ACEOF
14442#define HAVE_PTHREAD_GETSPECIFIC 1
14443_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014444
14445fi
14446
Reid Spencer0a262ba2005-08-24 10:07:20 +000014447fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000014448
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014449
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014450# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014451if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014452 withval=$with_udis86;
14453 USE_UDIS86=1
14454
14455 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000014456 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014457 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14458 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014459
14460{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14461echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14462if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14463 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014464else
14465 ac_check_lib_save_LIBS=$LIBS
14466LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014467cat >conftest.$ac_ext <<_ACEOF
14468/* confdefs.h. */
14469_ACEOF
14470cat confdefs.h >>conftest.$ac_ext
14471cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014472/* end confdefs.h. */
14473
14474/* Override any GCC internal prototype to avoid an error.
14475 Use char because int might match the return type of a GCC
14476 builtin and then its argument prototype would still apply. */
14477#ifdef __cplusplus
14478extern "C"
14479#endif
14480char ud_init ();
14481int
14482main ()
14483{
14484return ud_init ();
14485 ;
14486 return 0;
14487}
14488_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014489rm -f conftest.$ac_objext conftest$ac_exeext
14490if { (ac_try="$ac_link"
14491case "(($ac_try" in
14492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14493 *) ac_try_echo=$ac_try;;
14494esac
14495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14496 (eval "$ac_link") 2>conftest.er1
14497 ac_status=$?
14498 grep -v '^ *+' conftest.er1 >conftest.err
14499 rm -f conftest.er1
14500 cat conftest.err >&5
14501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502 (exit $ac_status); } &&
14503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
14513 { ac_try='test -s conftest$ac_exeext'
14514 { (case "(($ac_try" in
14515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14516 *) ac_try_echo=$ac_try;;
14517esac
14518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14519 (eval "$ac_try") 2>&5
14520 ac_status=$?
14521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014523 ac_cv_lib_udis86_ud_init=yes
14524else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014525 echo "$as_me: failed program was:" >&5
14526sed 's/^/| /' conftest.$ac_ext >&5
14527
14528 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014529fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014530
Bill Wendlingebcceee2009-04-18 11:20:33 +000014531rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014532 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014533LIBS=$ac_check_lib_save_LIBS
14534fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014535{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14536echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14537if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014538 cat >>confdefs.h <<_ACEOF
14539#define HAVE_LIBUDIS86 1
14540_ACEOF
14541
14542 LIBS="-ludis86 $LIBS"
14543
14544else
14545
14546 echo "Error! You need to have libudis86 around."
14547 exit -1
14548
14549fi
14550
14551
14552else
14553 USE_UDIS86=0
14554
14555fi
14556
14557
14558cat >>confdefs.h <<_ACEOF
14559#define USE_UDIS86 $USE_UDIS86
14560_ACEOF
14561
14562
14563
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014564# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014565if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014566 withval=$with_oprofile;
14567 USE_OPROFILE=1
14568
14569 case "$withval" in
14570 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014571 no) llvm_cv_oppath=
14572 USE_OPROFILE=0
14573 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014574 *) llvm_cv_oppath="${withval}/lib/oprofile"
14575 CPPFLAGS="-I${withval}/include";;
14576 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014577 if test -n "$llvm_cv_oppath" ; then
14578 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014579 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14580echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14581if test "${ac_cv_search_bfd_init+set}" = set; then
14582 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014583else
14584 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014585cat >conftest.$ac_ext <<_ACEOF
14586/* confdefs.h. */
14587_ACEOF
14588cat confdefs.h >>conftest.$ac_ext
14589cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014590/* end confdefs.h. */
14591
14592/* Override any GCC internal prototype to avoid an error.
14593 Use char because int might match the return type of a GCC
14594 builtin and then its argument prototype would still apply. */
14595#ifdef __cplusplus
14596extern "C"
14597#endif
14598char bfd_init ();
14599int
14600main ()
14601{
14602return bfd_init ();
14603 ;
14604 return 0;
14605}
14606_ACEOF
14607for ac_lib in '' bfd; do
14608 if test -z "$ac_lib"; then
14609 ac_res="none required"
14610 else
14611 ac_res=-l$ac_lib
14612 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14613 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014614 rm -f conftest.$ac_objext conftest$ac_exeext
14615if { (ac_try="$ac_link"
14616case "(($ac_try" in
14617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14618 *) ac_try_echo=$ac_try;;
14619esac
14620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14621 (eval "$ac_link") 2>conftest.er1
14622 ac_status=$?
14623 grep -v '^ *+' conftest.er1 >conftest.err
14624 rm -f conftest.er1
14625 cat conftest.err >&5
14626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627 (exit $ac_status); } &&
14628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
14638 { ac_try='test -s conftest$ac_exeext'
14639 { (case "(($ac_try" in
14640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14641 *) ac_try_echo=$ac_try;;
14642esac
14643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14644 (eval "$ac_try") 2>&5
14645 ac_status=$?
14646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014648 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014649else
14650 echo "$as_me: failed program was:" >&5
14651sed 's/^/| /' conftest.$ac_ext >&5
14652
14653
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014654fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014655
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014656rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014657 conftest$ac_exeext
14658 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014659 break
14660fi
14661done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014662if test "${ac_cv_search_bfd_init+set}" = set; then
14663 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014664else
14665 ac_cv_search_bfd_init=no
14666fi
14667rm conftest.$ac_ext
14668LIBS=$ac_func_search_save_LIBS
14669fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014670{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14671echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014672ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014673if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014674 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14675
14676fi
14677
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014678 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14679echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14680if test "${ac_cv_search_op_open_agent+set}" = set; then
14681 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014682else
14683 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014684cat >conftest.$ac_ext <<_ACEOF
14685/* confdefs.h. */
14686_ACEOF
14687cat confdefs.h >>conftest.$ac_ext
14688cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014689/* end confdefs.h. */
14690
14691/* Override any GCC internal prototype to avoid an error.
14692 Use char because int might match the return type of a GCC
14693 builtin and then its argument prototype would still apply. */
14694#ifdef __cplusplus
14695extern "C"
14696#endif
14697char op_open_agent ();
14698int
14699main ()
14700{
14701return op_open_agent ();
14702 ;
14703 return 0;
14704}
14705_ACEOF
14706for ac_lib in '' opagent; do
14707 if test -z "$ac_lib"; then
14708 ac_res="none required"
14709 else
14710 ac_res=-l$ac_lib
14711 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14712 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014713 rm -f conftest.$ac_objext conftest$ac_exeext
14714if { (ac_try="$ac_link"
14715case "(($ac_try" in
14716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14717 *) ac_try_echo=$ac_try;;
14718esac
14719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14720 (eval "$ac_link") 2>conftest.er1
14721 ac_status=$?
14722 grep -v '^ *+' conftest.er1 >conftest.err
14723 rm -f conftest.er1
14724 cat conftest.err >&5
14725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726 (exit $ac_status); } &&
14727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
14737 { ac_try='test -s conftest$ac_exeext'
14738 { (case "(($ac_try" in
14739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14740 *) ac_try_echo=$ac_try;;
14741esac
14742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14743 (eval "$ac_try") 2>&5
14744 ac_status=$?
14745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014747 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014748else
14749 echo "$as_me: failed program was:" >&5
14750sed 's/^/| /' conftest.$ac_ext >&5
14751
14752
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014753fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014754
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014755rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014756 conftest$ac_exeext
14757 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014758 break
14759fi
14760done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014761if test "${ac_cv_search_op_open_agent+set}" = set; then
14762 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014763else
14764 ac_cv_search_op_open_agent=no
14765fi
14766rm conftest.$ac_ext
14767LIBS=$ac_func_search_save_LIBS
14768fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014769{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14770echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014771ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014772if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014773 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14774
14775else
14776
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014777 echo "Error! You need to have libopagent around."
14778 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014779
14780fi
14781
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014782 if test "${ac_cv_header_opagent_h+set}" = set; then
14783 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14784echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14785if test "${ac_cv_header_opagent_h+set}" = set; then
14786 echo $ECHO_N "(cached) $ECHO_C" >&6
14787fi
14788{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14789echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14790else
14791 # Is the header compilable?
14792{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
14793echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14794cat >conftest.$ac_ext <<_ACEOF
14795/* confdefs.h. */
14796_ACEOF
14797cat confdefs.h >>conftest.$ac_ext
14798cat >>conftest.$ac_ext <<_ACEOF
14799/* end confdefs.h. */
14800$ac_includes_default
14801#include <opagent.h>
14802_ACEOF
14803rm -f conftest.$ac_objext
14804if { (ac_try="$ac_compile"
14805case "(($ac_try" in
14806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14807 *) ac_try_echo=$ac_try;;
14808esac
14809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14810 (eval "$ac_compile") 2>conftest.er1
14811 ac_status=$?
14812 grep -v '^ *+' conftest.er1 >conftest.err
14813 rm -f conftest.er1
14814 cat conftest.err >&5
14815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816 (exit $ac_status); } &&
14817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
14827 { ac_try='test -s conftest.$ac_objext'
14828 { (case "(($ac_try" in
14829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14830 *) ac_try_echo=$ac_try;;
14831esac
14832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14833 (eval "$ac_try") 2>&5
14834 ac_status=$?
14835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836 (exit $ac_status); }; }; then
14837 ac_header_compiler=yes
14838else
14839 echo "$as_me: failed program was:" >&5
14840sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014841
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014842 ac_header_compiler=no
14843fi
14844
14845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14846{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14847echo "${ECHO_T}$ac_header_compiler" >&6; }
14848
14849# Is the header present?
14850{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
14851echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14852cat >conftest.$ac_ext <<_ACEOF
14853/* confdefs.h. */
14854_ACEOF
14855cat confdefs.h >>conftest.$ac_ext
14856cat >>conftest.$ac_ext <<_ACEOF
14857/* end confdefs.h. */
14858#include <opagent.h>
14859_ACEOF
14860if { (ac_try="$ac_cpp conftest.$ac_ext"
14861case "(($ac_try" in
14862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14863 *) ac_try_echo=$ac_try;;
14864esac
14865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14866 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14867 ac_status=$?
14868 grep -v '^ *+' conftest.er1 >conftest.err
14869 rm -f conftest.er1
14870 cat conftest.err >&5
14871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14872 (exit $ac_status); } >/dev/null; then
14873 if test -s conftest.err; then
14874 ac_cpp_err=$ac_c_preproc_warn_flag
14875 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14876 else
14877 ac_cpp_err=
14878 fi
14879else
14880 ac_cpp_err=yes
14881fi
14882if test -z "$ac_cpp_err"; then
14883 ac_header_preproc=yes
14884else
14885 echo "$as_me: failed program was:" >&5
14886sed 's/^/| /' conftest.$ac_ext >&5
14887
14888 ac_header_preproc=no
14889fi
14890
14891rm -f conftest.err conftest.$ac_ext
14892{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14893echo "${ECHO_T}$ac_header_preproc" >&6; }
14894
14895# So? What about this header?
14896case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14897 yes:no: )
14898 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14899echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14900 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14901echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14902 ac_header_preproc=yes
14903 ;;
14904 no:yes:* )
14905 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14906echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14907 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14908echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14909 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14910echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14911 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14912echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14913 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14914echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14915 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14916echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14917 ( cat <<\_ASBOX
14918## ----------------------------------- ##
14919## Report this to llvmbugs@cs.uiuc.edu ##
14920## ----------------------------------- ##
14921_ASBOX
14922 ) | sed "s/^/$as_me: WARNING: /" >&2
14923 ;;
14924esac
14925{ echo "$as_me:$LINENO: checking for opagent.h" >&5
14926echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14927if test "${ac_cv_header_opagent_h+set}" = set; then
14928 echo $ECHO_N "(cached) $ECHO_C" >&6
14929else
14930 ac_cv_header_opagent_h=$ac_header_preproc
14931fi
14932{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14933echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14934
14935fi
14936if test $ac_cv_header_opagent_h = yes; then
14937 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014938else
14939
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014940 echo "Error! You need to have opagent.h around."
14941 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014942
14943fi
14944
14945
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014946 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014947
14948else
14949
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014950 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014951
14952
14953fi
14954
14955
14956cat >>confdefs.h <<_ACEOF
14957#define USE_OPROFILE $USE_OPROFILE
14958_ACEOF
14959
14960
14961
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014962
14963
14964
14965
14966
Reid Spencer59473af2004-12-25 07:31:29 +000014967ac_header_dirent=no
14968for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014969 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14970{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14971echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14972if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14973 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014974else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014975 cat >conftest.$ac_ext <<_ACEOF
14976/* confdefs.h. */
14977_ACEOF
14978cat confdefs.h >>conftest.$ac_ext
14979cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014980/* end confdefs.h. */
14981#include <sys/types.h>
14982#include <$ac_hdr>
14983
14984int
14985main ()
14986{
14987if ((DIR *) 0)
14988return 0;
14989 ;
14990 return 0;
14991}
14992_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014993rm -f conftest.$ac_objext
14994if { (ac_try="$ac_compile"
14995case "(($ac_try" in
14996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14997 *) ac_try_echo=$ac_try;;
14998esac
14999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15000 (eval "$ac_compile") 2>conftest.er1
15001 ac_status=$?
15002 grep -v '^ *+' conftest.er1 >conftest.err
15003 rm -f conftest.er1
15004 cat conftest.err >&5
15005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006 (exit $ac_status); } &&
15007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
15017 { ac_try='test -s conftest.$ac_objext'
15018 { (case "(($ac_try" in
15019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15020 *) ac_try_echo=$ac_try;;
15021esac
15022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15023 (eval "$ac_try") 2>&5
15024 ac_status=$?
15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000015027 eval "$as_ac_Header=yes"
15028else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015029 echo "$as_me: failed program was:" >&5
15030sed 's/^/| /' conftest.$ac_ext >&5
15031
15032 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000015033fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015034
Reid Spencera773bd52006-08-04 18:18:08 +000015035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015036fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015037ac_res=`eval echo '${'$as_ac_Header'}'`
15038 { echo "$as_me:$LINENO: result: $ac_res" >&5
15039echo "${ECHO_T}$ac_res" >&6; }
15040if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015041 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015042#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000015043_ACEOF
15044
15045ac_header_dirent=$ac_hdr; break
15046fi
15047
15048done
15049# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15050if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015051 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15052echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15053if test "${ac_cv_search_opendir+set}" = set; then
15054 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015055else
15056 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015057cat >conftest.$ac_ext <<_ACEOF
15058/* confdefs.h. */
15059_ACEOF
15060cat confdefs.h >>conftest.$ac_ext
15061cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015062/* end confdefs.h. */
15063
Reid Spencera773bd52006-08-04 18:18:08 +000015064/* Override any GCC internal prototype to avoid an error.
15065 Use char because int might match the return type of a GCC
15066 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000015067#ifdef __cplusplus
15068extern "C"
15069#endif
Reid Spencer59473af2004-12-25 07:31:29 +000015070char opendir ();
15071int
15072main ()
15073{
Reid Spencera773bd52006-08-04 18:18:08 +000015074return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000015075 ;
15076 return 0;
15077}
15078_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000015079for ac_lib in '' dir; do
15080 if test -z "$ac_lib"; then
15081 ac_res="none required"
15082 else
15083 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000015084 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000015085 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015086 rm -f conftest.$ac_objext conftest$ac_exeext
15087if { (ac_try="$ac_link"
15088case "(($ac_try" in
15089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15090 *) ac_try_echo=$ac_try;;
15091esac
15092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15093 (eval "$ac_link") 2>conftest.er1
15094 ac_status=$?
15095 grep -v '^ *+' conftest.er1 >conftest.err
15096 rm -f conftest.er1
15097 cat conftest.err >&5
15098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); } &&
15100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
15110 { ac_try='test -s conftest$ac_exeext'
15111 { (case "(($ac_try" in
15112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15113 *) ac_try_echo=$ac_try;;
15114esac
15115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15116 (eval "$ac_try") 2>&5
15117 ac_status=$?
15118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15119 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000015120 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015121else
15122 echo "$as_me: failed program was:" >&5
15123sed 's/^/| /' conftest.$ac_ext >&5
15124
15125
Reid Spencer59473af2004-12-25 07:31:29 +000015126fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015127
Bill Wendlingebcceee2009-04-18 11:20:33 +000015128rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015129 conftest$ac_exeext
15130 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000015131 break
Reid Spencer59473af2004-12-25 07:31:29 +000015132fi
Reid Spencera773bd52006-08-04 18:18:08 +000015133done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015134if test "${ac_cv_search_opendir+set}" = set; then
15135 :
Reid Spencera773bd52006-08-04 18:18:08 +000015136else
15137 ac_cv_search_opendir=no
15138fi
15139rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015140LIBS=$ac_func_search_save_LIBS
15141fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015142{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15143echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000015144ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015145if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015146 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000015147
15148fi
15149
15150else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015151 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15152echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15153if test "${ac_cv_search_opendir+set}" = set; then
15154 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015155else
15156 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015157cat >conftest.$ac_ext <<_ACEOF
15158/* confdefs.h. */
15159_ACEOF
15160cat confdefs.h >>conftest.$ac_ext
15161cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015162/* end confdefs.h. */
15163
Reid Spencera773bd52006-08-04 18:18:08 +000015164/* Override any GCC internal prototype to avoid an error.
15165 Use char because int might match the return type of a GCC
15166 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000015167#ifdef __cplusplus
15168extern "C"
15169#endif
Reid Spencer59473af2004-12-25 07:31:29 +000015170char opendir ();
15171int
15172main ()
15173{
Reid Spencera773bd52006-08-04 18:18:08 +000015174return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000015175 ;
15176 return 0;
15177}
15178_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000015179for ac_lib in '' x; do
15180 if test -z "$ac_lib"; then
15181 ac_res="none required"
15182 else
15183 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000015184 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000015185 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015186 rm -f conftest.$ac_objext conftest$ac_exeext
15187if { (ac_try="$ac_link"
15188case "(($ac_try" in
15189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15190 *) ac_try_echo=$ac_try;;
15191esac
15192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15193 (eval "$ac_link") 2>conftest.er1
15194 ac_status=$?
15195 grep -v '^ *+' conftest.er1 >conftest.err
15196 rm -f conftest.er1
15197 cat conftest.err >&5
15198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199 (exit $ac_status); } &&
15200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
15210 { ac_try='test -s conftest$ac_exeext'
15211 { (case "(($ac_try" in
15212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15213 *) ac_try_echo=$ac_try;;
15214esac
15215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15216 (eval "$ac_try") 2>&5
15217 ac_status=$?
15218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000015220 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015221else
15222 echo "$as_me: failed program was:" >&5
15223sed 's/^/| /' conftest.$ac_ext >&5
15224
15225
Reid Spencer59473af2004-12-25 07:31:29 +000015226fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015227
Bill Wendlingebcceee2009-04-18 11:20:33 +000015228rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015229 conftest$ac_exeext
15230 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000015231 break
Reid Spencer59473af2004-12-25 07:31:29 +000015232fi
Reid Spencera773bd52006-08-04 18:18:08 +000015233done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015234if test "${ac_cv_search_opendir+set}" = set; then
15235 :
Reid Spencera773bd52006-08-04 18:18:08 +000015236else
15237 ac_cv_search_opendir=no
15238fi
15239rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015240LIBS=$ac_func_search_save_LIBS
15241fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015242{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15243echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000015244ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015245if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015246 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000015247
15248fi
15249
15250fi
15251
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015252{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15253echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15254if test "${ac_cv_header_mmap_anon+set}" = set; then
15255 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015256else
15257 ac_ext=c
15258ac_cpp='$CPP $CPPFLAGS'
15259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15261ac_compiler_gnu=$ac_cv_c_compiler_gnu
15262
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015263 cat >conftest.$ac_ext <<_ACEOF
15264/* confdefs.h. */
15265_ACEOF
15266cat confdefs.h >>conftest.$ac_ext
15267cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015268/* end confdefs.h. */
15269#include <sys/mman.h>
15270#include <unistd.h>
15271#include <fcntl.h>
15272int
15273main ()
15274{
15275mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15276 ;
15277 return 0;
15278}
15279_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015280rm -f conftest.$ac_objext
15281if { (ac_try="$ac_compile"
15282case "(($ac_try" in
15283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15284 *) ac_try_echo=$ac_try;;
15285esac
15286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15287 (eval "$ac_compile") 2>conftest.er1
15288 ac_status=$?
15289 grep -v '^ *+' conftest.er1 >conftest.err
15290 rm -f conftest.er1
15291 cat conftest.err >&5
15292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15293 (exit $ac_status); } &&
15294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
15304 { ac_try='test -s conftest.$ac_objext'
15305 { (case "(($ac_try" in
15306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15307 *) ac_try_echo=$ac_try;;
15308esac
15309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15310 (eval "$ac_try") 2>&5
15311 ac_status=$?
15312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000015314 ac_cv_header_mmap_anon=yes
15315else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015316 echo "$as_me: failed program was:" >&5
15317sed 's/^/| /' conftest.$ac_ext >&5
15318
15319 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000015320fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015321
Reid Spencera773bd52006-08-04 18:18:08 +000015322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015323 ac_ext=c
15324ac_cpp='$CPP $CPPFLAGS'
15325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15327ac_compiler_gnu=$ac_cv_c_compiler_gnu
15328
15329
15330fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015331{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15332echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000015333if test "$ac_cv_header_mmap_anon" = yes; then
15334
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015335cat >>confdefs.h <<\_ACEOF
15336#define HAVE_MMAP_ANONYMOUS 1
15337_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015338
15339fi
15340
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015341{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15342echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15343if test "${ac_cv_header_stat_broken+set}" = set; then
15344 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015345else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015346 cat >conftest.$ac_ext <<_ACEOF
15347/* confdefs.h. */
15348_ACEOF
15349cat confdefs.h >>conftest.$ac_ext
15350cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015351/* end confdefs.h. */
15352#include <sys/types.h>
15353#include <sys/stat.h>
15354
Reid Spencera773bd52006-08-04 18:18:08 +000015355#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015356# if S_ISBLK (S_IFDIR)
15357You lose.
15358# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015359#endif
15360
Reid Spencera773bd52006-08-04 18:18:08 +000015361#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015362# if S_ISBLK (S_IFCHR)
15363You lose.
15364# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015365#endif
15366
Reid Spencera773bd52006-08-04 18:18:08 +000015367#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015368# if S_ISLNK (S_IFREG)
15369You lose.
15370# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015371#endif
15372
Reid Spencera773bd52006-08-04 18:18:08 +000015373#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015374# if S_ISSOCK (S_IFREG)
15375You lose.
15376# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015377#endif
15378
15379_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015380if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15381 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000015382 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015383else
15384 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000015385fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015386rm -f conftest*
15387
Reid Spencer59473af2004-12-25 07:31:29 +000015388fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015389{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15390echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000015391if test $ac_cv_header_stat_broken = yes; then
15392
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015393cat >>confdefs.h <<\_ACEOF
15394#define STAT_MACROS_BROKEN 1
15395_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015396
15397fi
15398
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015399{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15400echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15401if test "${ac_cv_header_stdc+set}" = set; then
15402 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015403else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015404 cat >conftest.$ac_ext <<_ACEOF
15405/* confdefs.h. */
15406_ACEOF
15407cat confdefs.h >>conftest.$ac_ext
15408cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015409/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015410#include <stdlib.h>
15411#include <stdarg.h>
15412#include <string.h>
15413#include <float.h>
15414
John Criswell0c38eaf2003-09-10 15:17:25 +000015415int
15416main ()
15417{
15418
15419 ;
15420 return 0;
15421}
John Criswell7a73b802003-06-30 21:59:07 +000015422_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015423rm -f conftest.$ac_objext
15424if { (ac_try="$ac_compile"
15425case "(($ac_try" in
15426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15427 *) ac_try_echo=$ac_try;;
15428esac
15429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15430 (eval "$ac_compile") 2>conftest.er1
15431 ac_status=$?
15432 grep -v '^ *+' conftest.er1 >conftest.err
15433 rm -f conftest.er1
15434 cat conftest.err >&5
15435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436 (exit $ac_status); } &&
15437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
15447 { ac_try='test -s conftest.$ac_objext'
15448 { (case "(($ac_try" in
15449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15450 *) ac_try_echo=$ac_try;;
15451esac
15452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15453 (eval "$ac_try") 2>&5
15454 ac_status=$?
15455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015457 ac_cv_header_stdc=yes
15458else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015459 echo "$as_me: failed program was:" >&5
15460sed 's/^/| /' conftest.$ac_ext >&5
15461
15462 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015463fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015464
Reid Spencera773bd52006-08-04 18:18:08 +000015465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015466
15467if test $ac_cv_header_stdc = yes; then
15468 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015469 cat >conftest.$ac_ext <<_ACEOF
15470/* confdefs.h. */
15471_ACEOF
15472cat confdefs.h >>conftest.$ac_ext
15473cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015474/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015475#include <string.h>
15476
15477_ACEOF
15478if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015479 $EGREP "memchr" >/dev/null 2>&1; then
15480 :
John Criswell7a73b802003-06-30 21:59:07 +000015481else
15482 ac_cv_header_stdc=no
15483fi
15484rm -f conftest*
15485
15486fi
15487
15488if test $ac_cv_header_stdc = yes; then
15489 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015490 cat >conftest.$ac_ext <<_ACEOF
15491/* confdefs.h. */
15492_ACEOF
15493cat confdefs.h >>conftest.$ac_ext
15494cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015495/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015496#include <stdlib.h>
15497
15498_ACEOF
15499if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015500 $EGREP "free" >/dev/null 2>&1; then
15501 :
John Criswell7a73b802003-06-30 21:59:07 +000015502else
15503 ac_cv_header_stdc=no
15504fi
15505rm -f conftest*
15506
15507fi
15508
15509if test $ac_cv_header_stdc = yes; then
15510 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015511 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000015512 :
15513else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015514 cat >conftest.$ac_ext <<_ACEOF
15515/* confdefs.h. */
15516_ACEOF
15517cat confdefs.h >>conftest.$ac_ext
15518cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015519/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015520#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000015521#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000015522#if ((' ' & 0x0FF) == 0x020)
15523# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15524# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15525#else
John Criswell0c38eaf2003-09-10 15:17:25 +000015526# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015527 (('a' <= (c) && (c) <= 'i') \
15528 || ('j' <= (c) && (c) <= 'r') \
15529 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000015530# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15531#endif
15532
15533#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15534int
15535main ()
15536{
15537 int i;
15538 for (i = 0; i < 256; i++)
15539 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000015540 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000015541 return 2;
15542 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000015543}
15544_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015545rm -f conftest$ac_exeext
15546if { (ac_try="$ac_link"
15547case "(($ac_try" in
15548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15549 *) ac_try_echo=$ac_try;;
15550esac
15551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15552 (eval "$ac_link") 2>&5
15553 ac_status=$?
15554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15556 { (case "(($ac_try" in
15557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15558 *) ac_try_echo=$ac_try;;
15559esac
15560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15561 (eval "$ac_try") 2>&5
15562 ac_status=$?
15563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564 (exit $ac_status); }; }; then
15565 :
John Criswell7a73b802003-06-30 21:59:07 +000015566else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015567 echo "$as_me: program exited with status $ac_status" >&5
15568echo "$as_me: failed program was:" >&5
15569sed 's/^/| /' conftest.$ac_ext >&5
15570
15571( exit $ac_status )
15572ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015573fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015574rm -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 +000015575fi
15576
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015577
John Criswell7a73b802003-06-30 21:59:07 +000015578fi
15579fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015580{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15581echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015582if test $ac_cv_header_stdc = yes; then
15583
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015584cat >>confdefs.h <<\_ACEOF
15585#define STDC_HEADERS 1
15586_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015587
15588fi
15589
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015590{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15591echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15592if test "${ac_cv_header_sys_wait_h+set}" = set; then
15593 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015594else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015595 cat >conftest.$ac_ext <<_ACEOF
15596/* confdefs.h. */
15597_ACEOF
15598cat confdefs.h >>conftest.$ac_ext
15599cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015600/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015601#include <sys/types.h>
15602#include <sys/wait.h>
15603#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000015604# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000015605#endif
15606#ifndef WIFEXITED
15607# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15608#endif
15609
John Criswell7a73b802003-06-30 21:59:07 +000015610int
15611main ()
15612{
15613 int s;
15614 wait (&s);
15615 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15616 ;
15617 return 0;
15618}
15619_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015620rm -f conftest.$ac_objext
15621if { (ac_try="$ac_compile"
15622case "(($ac_try" in
15623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15624 *) ac_try_echo=$ac_try;;
15625esac
15626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15627 (eval "$ac_compile") 2>conftest.er1
15628 ac_status=$?
15629 grep -v '^ *+' conftest.er1 >conftest.err
15630 rm -f conftest.er1
15631 cat conftest.err >&5
15632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633 (exit $ac_status); } &&
15634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
15644 { ac_try='test -s conftest.$ac_objext'
15645 { (case "(($ac_try" in
15646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15647 *) ac_try_echo=$ac_try;;
15648esac
15649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15650 (eval "$ac_try") 2>&5
15651 ac_status=$?
15652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015654 ac_cv_header_sys_wait_h=yes
15655else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015656 echo "$as_me: failed program was:" >&5
15657sed 's/^/| /' conftest.$ac_ext >&5
15658
15659 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000015660fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015661
Reid Spencera773bd52006-08-04 18:18:08 +000015662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015663fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015664{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15665echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015666if test $ac_cv_header_sys_wait_h = yes; then
15667
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015668cat >>confdefs.h <<\_ACEOF
15669#define HAVE_SYS_WAIT_H 1
15670_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015671
15672fi
15673
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015674{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15675echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15676if test "${ac_cv_header_time+set}" = set; then
15677 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015678else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015679 cat >conftest.$ac_ext <<_ACEOF
15680/* confdefs.h. */
15681_ACEOF
15682cat confdefs.h >>conftest.$ac_ext
15683cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015684/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015685#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015686#include <sys/time.h>
15687#include <time.h>
15688
15689int
15690main ()
15691{
15692if ((struct tm *) 0)
15693return 0;
15694 ;
15695 return 0;
15696}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015697_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015698rm -f conftest.$ac_objext
15699if { (ac_try="$ac_compile"
15700case "(($ac_try" in
15701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15702 *) ac_try_echo=$ac_try;;
15703esac
15704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15705 (eval "$ac_compile") 2>conftest.er1
15706 ac_status=$?
15707 grep -v '^ *+' conftest.er1 >conftest.err
15708 rm -f conftest.er1
15709 cat conftest.err >&5
15710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15711 (exit $ac_status); } &&
15712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
15722 { ac_try='test -s conftest.$ac_objext'
15723 { (case "(($ac_try" in
15724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15725 *) ac_try_echo=$ac_try;;
15726esac
15727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15728 (eval "$ac_try") 2>&5
15729 ac_status=$?
15730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015732 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015733else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015734 echo "$as_me: failed program was:" >&5
15735sed 's/^/| /' conftest.$ac_ext >&5
15736
15737 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015738fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015739
Reid Spencera773bd52006-08-04 18:18:08 +000015740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015741fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015742{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15743echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015744if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015745
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015746cat >>confdefs.h <<\_ACEOF
15747#define TIME_WITH_SYS_TIME 1
15748_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015749
15750fi
15751
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015752
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015753
15754
15755
15756
15757
15758
Reid Spencer59473af2004-12-25 07:31:29 +000015759for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015760do
15761as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15762if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15763 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15764echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15765if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15766 echo $ECHO_N "(cached) $ECHO_C" >&6
15767fi
15768ac_res=`eval echo '${'$as_ac_Header'}'`
15769 { echo "$as_me:$LINENO: result: $ac_res" >&5
15770echo "${ECHO_T}$ac_res" >&6; }
15771else
15772 # Is the header compilable?
15773{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15774echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15775cat >conftest.$ac_ext <<_ACEOF
15776/* confdefs.h. */
15777_ACEOF
15778cat confdefs.h >>conftest.$ac_ext
15779cat >>conftest.$ac_ext <<_ACEOF
15780/* end confdefs.h. */
15781$ac_includes_default
15782#include <$ac_header>
15783_ACEOF
15784rm -f conftest.$ac_objext
15785if { (ac_try="$ac_compile"
15786case "(($ac_try" in
15787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15788 *) ac_try_echo=$ac_try;;
15789esac
15790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15791 (eval "$ac_compile") 2>conftest.er1
15792 ac_status=$?
15793 grep -v '^ *+' conftest.er1 >conftest.err
15794 rm -f conftest.er1
15795 cat conftest.err >&5
15796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797 (exit $ac_status); } &&
15798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
15808 { ac_try='test -s conftest.$ac_objext'
15809 { (case "(($ac_try" in
15810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15811 *) ac_try_echo=$ac_try;;
15812esac
15813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15814 (eval "$ac_try") 2>&5
15815 ac_status=$?
15816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817 (exit $ac_status); }; }; then
15818 ac_header_compiler=yes
15819else
15820 echo "$as_me: failed program was:" >&5
15821sed 's/^/| /' conftest.$ac_ext >&5
15822
15823 ac_header_compiler=no
15824fi
15825
15826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15827{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15828echo "${ECHO_T}$ac_header_compiler" >&6; }
15829
15830# Is the header present?
15831{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15832echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15833cat >conftest.$ac_ext <<_ACEOF
15834/* confdefs.h. */
15835_ACEOF
15836cat confdefs.h >>conftest.$ac_ext
15837cat >>conftest.$ac_ext <<_ACEOF
15838/* end confdefs.h. */
15839#include <$ac_header>
15840_ACEOF
15841if { (ac_try="$ac_cpp conftest.$ac_ext"
15842case "(($ac_try" in
15843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15844 *) ac_try_echo=$ac_try;;
15845esac
15846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15848 ac_status=$?
15849 grep -v '^ *+' conftest.er1 >conftest.err
15850 rm -f conftest.er1
15851 cat conftest.err >&5
15852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15853 (exit $ac_status); } >/dev/null; then
15854 if test -s conftest.err; then
15855 ac_cpp_err=$ac_c_preproc_warn_flag
15856 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15857 else
15858 ac_cpp_err=
15859 fi
15860else
15861 ac_cpp_err=yes
15862fi
15863if test -z "$ac_cpp_err"; then
15864 ac_header_preproc=yes
15865else
15866 echo "$as_me: failed program was:" >&5
15867sed 's/^/| /' conftest.$ac_ext >&5
15868
15869 ac_header_preproc=no
15870fi
15871
15872rm -f conftest.err conftest.$ac_ext
15873{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15874echo "${ECHO_T}$ac_header_preproc" >&6; }
15875
15876# So? What about this header?
15877case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15878 yes:no: )
15879 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15880echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15881 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15882echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15883 ac_header_preproc=yes
15884 ;;
15885 no:yes:* )
15886 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15887echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15888 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15889echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15890 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15891echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15892 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15893echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15895echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15896 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15897echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15898 ( cat <<\_ASBOX
15899## ----------------------------------- ##
15900## Report this to llvmbugs@cs.uiuc.edu ##
15901## ----------------------------------- ##
15902_ASBOX
15903 ) | sed "s/^/$as_me: WARNING: /" >&2
15904 ;;
15905esac
15906{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15907echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15908if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15909 echo $ECHO_N "(cached) $ECHO_C" >&6
15910else
15911 eval "$as_ac_Header=\$ac_header_preproc"
15912fi
15913ac_res=`eval echo '${'$as_ac_Header'}'`
15914 { echo "$as_me:$LINENO: result: $ac_res" >&5
15915echo "${ECHO_T}$ac_res" >&6; }
15916
15917fi
15918if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015919 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015920#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015921_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015922
15923fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015924
Reid Spencer59473af2004-12-25 07:31:29 +000015925done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015926
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015927
15928
15929
15930
15931
15932
Douglas Gregor071d73d2009-05-18 17:21:34 +000015933for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015934do
15935as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15936if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15937 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15938echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15939if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15940 echo $ECHO_N "(cached) $ECHO_C" >&6
15941fi
15942ac_res=`eval echo '${'$as_ac_Header'}'`
15943 { echo "$as_me:$LINENO: result: $ac_res" >&5
15944echo "${ECHO_T}$ac_res" >&6; }
15945else
15946 # Is the header compilable?
15947{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15948echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15949cat >conftest.$ac_ext <<_ACEOF
15950/* confdefs.h. */
15951_ACEOF
15952cat confdefs.h >>conftest.$ac_ext
15953cat >>conftest.$ac_ext <<_ACEOF
15954/* end confdefs.h. */
15955$ac_includes_default
15956#include <$ac_header>
15957_ACEOF
15958rm -f conftest.$ac_objext
15959if { (ac_try="$ac_compile"
15960case "(($ac_try" in
15961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15962 *) ac_try_echo=$ac_try;;
15963esac
15964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15965 (eval "$ac_compile") 2>conftest.er1
15966 ac_status=$?
15967 grep -v '^ *+' conftest.er1 >conftest.err
15968 rm -f conftest.er1
15969 cat conftest.err >&5
15970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15971 (exit $ac_status); } &&
15972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
15982 { ac_try='test -s conftest.$ac_objext'
15983 { (case "(($ac_try" in
15984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15985 *) ac_try_echo=$ac_try;;
15986esac
15987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15988 (eval "$ac_try") 2>&5
15989 ac_status=$?
15990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15991 (exit $ac_status); }; }; then
15992 ac_header_compiler=yes
15993else
15994 echo "$as_me: failed program was:" >&5
15995sed 's/^/| /' conftest.$ac_ext >&5
15996
15997 ac_header_compiler=no
15998fi
15999
16000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16001{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16002echo "${ECHO_T}$ac_header_compiler" >&6; }
16003
16004# Is the header present?
16005{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16006echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16007cat >conftest.$ac_ext <<_ACEOF
16008/* confdefs.h. */
16009_ACEOF
16010cat confdefs.h >>conftest.$ac_ext
16011cat >>conftest.$ac_ext <<_ACEOF
16012/* end confdefs.h. */
16013#include <$ac_header>
16014_ACEOF
16015if { (ac_try="$ac_cpp conftest.$ac_ext"
16016case "(($ac_try" in
16017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16018 *) ac_try_echo=$ac_try;;
16019esac
16020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16021 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16022 ac_status=$?
16023 grep -v '^ *+' conftest.er1 >conftest.err
16024 rm -f conftest.er1
16025 cat conftest.err >&5
16026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16027 (exit $ac_status); } >/dev/null; then
16028 if test -s conftest.err; then
16029 ac_cpp_err=$ac_c_preproc_warn_flag
16030 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16031 else
16032 ac_cpp_err=
16033 fi
16034else
16035 ac_cpp_err=yes
16036fi
16037if test -z "$ac_cpp_err"; then
16038 ac_header_preproc=yes
16039else
16040 echo "$as_me: failed program was:" >&5
16041sed 's/^/| /' conftest.$ac_ext >&5
16042
16043 ac_header_preproc=no
16044fi
16045
16046rm -f conftest.err conftest.$ac_ext
16047{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16048echo "${ECHO_T}$ac_header_preproc" >&6; }
16049
16050# So? What about this header?
16051case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16052 yes:no: )
16053 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16054echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16056echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16057 ac_header_preproc=yes
16058 ;;
16059 no:yes:* )
16060 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16061echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16062 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16063echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16064 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16065echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16066 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16067echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16069echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16070 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16071echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16072 ( cat <<\_ASBOX
16073## ----------------------------------- ##
16074## Report this to llvmbugs@cs.uiuc.edu ##
16075## ----------------------------------- ##
16076_ASBOX
16077 ) | sed "s/^/$as_me: WARNING: /" >&2
16078 ;;
16079esac
16080{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16081echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16082if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16083 echo $ECHO_N "(cached) $ECHO_C" >&6
16084else
16085 eval "$as_ac_Header=\$ac_header_preproc"
16086fi
16087ac_res=`eval echo '${'$as_ac_Header'}'`
16088 { echo "$as_me:$LINENO: result: $ac_res" >&5
16089echo "${ECHO_T}$ac_res" >&6; }
16090
16091fi
16092if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000016093 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016094#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000016095_ACEOF
16096
16097fi
16098
16099done
16100
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016101
16102
Douglas Gregor071d73d2009-05-18 17:21:34 +000016103for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016104do
16105as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16106if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16107 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16108echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16109if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16110 echo $ECHO_N "(cached) $ECHO_C" >&6
16111fi
16112ac_res=`eval echo '${'$as_ac_Header'}'`
16113 { echo "$as_me:$LINENO: result: $ac_res" >&5
16114echo "${ECHO_T}$ac_res" >&6; }
16115else
16116 # Is the header compilable?
16117{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16118echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16119cat >conftest.$ac_ext <<_ACEOF
16120/* confdefs.h. */
16121_ACEOF
16122cat confdefs.h >>conftest.$ac_ext
16123cat >>conftest.$ac_ext <<_ACEOF
16124/* end confdefs.h. */
16125$ac_includes_default
16126#include <$ac_header>
16127_ACEOF
16128rm -f conftest.$ac_objext
16129if { (ac_try="$ac_compile"
16130case "(($ac_try" in
16131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16132 *) ac_try_echo=$ac_try;;
16133esac
16134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16135 (eval "$ac_compile") 2>conftest.er1
16136 ac_status=$?
16137 grep -v '^ *+' conftest.er1 >conftest.err
16138 rm -f conftest.er1
16139 cat conftest.err >&5
16140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16141 (exit $ac_status); } &&
16142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
16152 { ac_try='test -s conftest.$ac_objext'
16153 { (case "(($ac_try" in
16154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16155 *) ac_try_echo=$ac_try;;
16156esac
16157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16158 (eval "$ac_try") 2>&5
16159 ac_status=$?
16160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161 (exit $ac_status); }; }; then
16162 ac_header_compiler=yes
16163else
16164 echo "$as_me: failed program was:" >&5
16165sed 's/^/| /' conftest.$ac_ext >&5
16166
16167 ac_header_compiler=no
16168fi
16169
16170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16171{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16172echo "${ECHO_T}$ac_header_compiler" >&6; }
16173
16174# Is the header present?
16175{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16176echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16177cat >conftest.$ac_ext <<_ACEOF
16178/* confdefs.h. */
16179_ACEOF
16180cat confdefs.h >>conftest.$ac_ext
16181cat >>conftest.$ac_ext <<_ACEOF
16182/* end confdefs.h. */
16183#include <$ac_header>
16184_ACEOF
16185if { (ac_try="$ac_cpp conftest.$ac_ext"
16186case "(($ac_try" in
16187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16188 *) ac_try_echo=$ac_try;;
16189esac
16190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16191 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16192 ac_status=$?
16193 grep -v '^ *+' conftest.er1 >conftest.err
16194 rm -f conftest.er1
16195 cat conftest.err >&5
16196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197 (exit $ac_status); } >/dev/null; then
16198 if test -s conftest.err; then
16199 ac_cpp_err=$ac_c_preproc_warn_flag
16200 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16201 else
16202 ac_cpp_err=
16203 fi
16204else
16205 ac_cpp_err=yes
16206fi
16207if test -z "$ac_cpp_err"; then
16208 ac_header_preproc=yes
16209else
16210 echo "$as_me: failed program was:" >&5
16211sed 's/^/| /' conftest.$ac_ext >&5
16212
16213 ac_header_preproc=no
16214fi
16215
16216rm -f conftest.err conftest.$ac_ext
16217{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16218echo "${ECHO_T}$ac_header_preproc" >&6; }
16219
16220# So? What about this header?
16221case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16222 yes:no: )
16223 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16224echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16225 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16226echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16227 ac_header_preproc=yes
16228 ;;
16229 no:yes:* )
16230 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16231echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16232 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16233echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16234 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16235echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16236 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16237echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16239echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16240 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16241echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16242 ( cat <<\_ASBOX
16243## ----------------------------------- ##
16244## Report this to llvmbugs@cs.uiuc.edu ##
16245## ----------------------------------- ##
16246_ASBOX
16247 ) | sed "s/^/$as_me: WARNING: /" >&2
16248 ;;
16249esac
16250{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16251echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16252if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16253 echo $ECHO_N "(cached) $ECHO_C" >&6
16254else
16255 eval "$as_ac_Header=\$ac_header_preproc"
16256fi
16257ac_res=`eval echo '${'$as_ac_Header'}'`
16258 { echo "$as_me:$LINENO: result: $ac_res" >&5
16259echo "${ECHO_T}$ac_res" >&6; }
16260
16261fi
16262if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000016263 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016264#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000016265_ACEOF
16266
16267fi
16268
16269done
Reid Spencer59473af2004-12-25 07:31:29 +000016270
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016271
16272
16273
16274
Daniel Dunbar3e462932011-02-03 02:40:02 +000016275
16276for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016277do
16278as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16279if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16280 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16281echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16282if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16283 echo $ECHO_N "(cached) $ECHO_C" >&6
16284fi
16285ac_res=`eval echo '${'$as_ac_Header'}'`
16286 { echo "$as_me:$LINENO: result: $ac_res" >&5
16287echo "${ECHO_T}$ac_res" >&6; }
16288else
16289 # Is the header compilable?
16290{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16291echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16292cat >conftest.$ac_ext <<_ACEOF
16293/* confdefs.h. */
16294_ACEOF
16295cat confdefs.h >>conftest.$ac_ext
16296cat >>conftest.$ac_ext <<_ACEOF
16297/* end confdefs.h. */
16298$ac_includes_default
16299#include <$ac_header>
16300_ACEOF
16301rm -f conftest.$ac_objext
16302if { (ac_try="$ac_compile"
16303case "(($ac_try" in
16304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16305 *) ac_try_echo=$ac_try;;
16306esac
16307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16308 (eval "$ac_compile") 2>conftest.er1
16309 ac_status=$?
16310 grep -v '^ *+' conftest.er1 >conftest.err
16311 rm -f conftest.er1
16312 cat conftest.err >&5
16313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16314 (exit $ac_status); } &&
16315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16316 { (case "(($ac_try" in
16317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16318 *) ac_try_echo=$ac_try;;
16319esac
16320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16321 (eval "$ac_try") 2>&5
16322 ac_status=$?
16323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324 (exit $ac_status); }; } &&
16325 { ac_try='test -s conftest.$ac_objext'
16326 { (case "(($ac_try" in
16327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16328 *) ac_try_echo=$ac_try;;
16329esac
16330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16331 (eval "$ac_try") 2>&5
16332 ac_status=$?
16333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334 (exit $ac_status); }; }; then
16335 ac_header_compiler=yes
16336else
16337 echo "$as_me: failed program was:" >&5
16338sed 's/^/| /' conftest.$ac_ext >&5
16339
16340 ac_header_compiler=no
16341fi
16342
16343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16344{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16345echo "${ECHO_T}$ac_header_compiler" >&6; }
16346
16347# Is the header present?
16348{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16349echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16350cat >conftest.$ac_ext <<_ACEOF
16351/* confdefs.h. */
16352_ACEOF
16353cat confdefs.h >>conftest.$ac_ext
16354cat >>conftest.$ac_ext <<_ACEOF
16355/* end confdefs.h. */
16356#include <$ac_header>
16357_ACEOF
16358if { (ac_try="$ac_cpp conftest.$ac_ext"
16359case "(($ac_try" in
16360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16361 *) ac_try_echo=$ac_try;;
16362esac
16363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16364 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16365 ac_status=$?
16366 grep -v '^ *+' conftest.er1 >conftest.err
16367 rm -f conftest.er1
16368 cat conftest.err >&5
16369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16370 (exit $ac_status); } >/dev/null; then
16371 if test -s conftest.err; then
16372 ac_cpp_err=$ac_c_preproc_warn_flag
16373 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16374 else
16375 ac_cpp_err=
16376 fi
16377else
16378 ac_cpp_err=yes
16379fi
16380if test -z "$ac_cpp_err"; then
16381 ac_header_preproc=yes
16382else
16383 echo "$as_me: failed program was:" >&5
16384sed 's/^/| /' conftest.$ac_ext >&5
16385
16386 ac_header_preproc=no
16387fi
16388
16389rm -f conftest.err conftest.$ac_ext
16390{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16391echo "${ECHO_T}$ac_header_preproc" >&6; }
16392
16393# So? What about this header?
16394case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16395 yes:no: )
16396 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16397echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16399echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16400 ac_header_preproc=yes
16401 ;;
16402 no:yes:* )
16403 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16404echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16405 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16406echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16407 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16408echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16409 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16410echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16411 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16412echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16413 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16414echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16415 ( cat <<\_ASBOX
16416## ----------------------------------- ##
16417## Report this to llvmbugs@cs.uiuc.edu ##
16418## ----------------------------------- ##
16419_ASBOX
16420 ) | sed "s/^/$as_me: WARNING: /" >&2
16421 ;;
16422esac
16423{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16424echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16425if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16426 echo $ECHO_N "(cached) $ECHO_C" >&6
16427else
16428 eval "$as_ac_Header=\$ac_header_preproc"
16429fi
16430ac_res=`eval echo '${'$as_ac_Header'}'`
16431 { echo "$as_me:$LINENO: result: $ac_res" >&5
16432echo "${ECHO_T}$ac_res" >&6; }
16433
16434fi
16435if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016436 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016437#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000016438_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000016439
16440fi
John Criswell7ed43ad2004-07-19 16:12:29 +000016441
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016442done
16443
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016444
16445
16446
16447
Douglas Gregor01746742009-05-11 18:05:52 +000016448for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016449do
16450as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16451if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16452 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16453echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16454if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16455 echo $ECHO_N "(cached) $ECHO_C" >&6
16456fi
16457ac_res=`eval echo '${'$as_ac_Header'}'`
16458 { echo "$as_me:$LINENO: result: $ac_res" >&5
16459echo "${ECHO_T}$ac_res" >&6; }
16460else
16461 # Is the header compilable?
16462{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16463echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16464cat >conftest.$ac_ext <<_ACEOF
16465/* confdefs.h. */
16466_ACEOF
16467cat confdefs.h >>conftest.$ac_ext
16468cat >>conftest.$ac_ext <<_ACEOF
16469/* end confdefs.h. */
16470$ac_includes_default
16471#include <$ac_header>
16472_ACEOF
16473rm -f conftest.$ac_objext
16474if { (ac_try="$ac_compile"
16475case "(($ac_try" in
16476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16477 *) ac_try_echo=$ac_try;;
16478esac
16479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16480 (eval "$ac_compile") 2>conftest.er1
16481 ac_status=$?
16482 grep -v '^ *+' conftest.er1 >conftest.err
16483 rm -f conftest.er1
16484 cat conftest.err >&5
16485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486 (exit $ac_status); } &&
16487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16488 { (case "(($ac_try" in
16489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16490 *) ac_try_echo=$ac_try;;
16491esac
16492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16493 (eval "$ac_try") 2>&5
16494 ac_status=$?
16495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16496 (exit $ac_status); }; } &&
16497 { ac_try='test -s conftest.$ac_objext'
16498 { (case "(($ac_try" in
16499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16500 *) ac_try_echo=$ac_try;;
16501esac
16502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16503 (eval "$ac_try") 2>&5
16504 ac_status=$?
16505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16506 (exit $ac_status); }; }; then
16507 ac_header_compiler=yes
16508else
16509 echo "$as_me: failed program was:" >&5
16510sed 's/^/| /' conftest.$ac_ext >&5
16511
16512 ac_header_compiler=no
16513fi
16514
16515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16516{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16517echo "${ECHO_T}$ac_header_compiler" >&6; }
16518
16519# Is the header present?
16520{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16521echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16522cat >conftest.$ac_ext <<_ACEOF
16523/* confdefs.h. */
16524_ACEOF
16525cat confdefs.h >>conftest.$ac_ext
16526cat >>conftest.$ac_ext <<_ACEOF
16527/* end confdefs.h. */
16528#include <$ac_header>
16529_ACEOF
16530if { (ac_try="$ac_cpp conftest.$ac_ext"
16531case "(($ac_try" in
16532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16533 *) ac_try_echo=$ac_try;;
16534esac
16535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16536 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16537 ac_status=$?
16538 grep -v '^ *+' conftest.er1 >conftest.err
16539 rm -f conftest.er1
16540 cat conftest.err >&5
16541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542 (exit $ac_status); } >/dev/null; then
16543 if test -s conftest.err; then
16544 ac_cpp_err=$ac_c_preproc_warn_flag
16545 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16546 else
16547 ac_cpp_err=
16548 fi
16549else
16550 ac_cpp_err=yes
16551fi
16552if test -z "$ac_cpp_err"; then
16553 ac_header_preproc=yes
16554else
16555 echo "$as_me: failed program was:" >&5
16556sed 's/^/| /' conftest.$ac_ext >&5
16557
16558 ac_header_preproc=no
16559fi
16560
16561rm -f conftest.err conftest.$ac_ext
16562{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16563echo "${ECHO_T}$ac_header_preproc" >&6; }
16564
16565# So? What about this header?
16566case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16567 yes:no: )
16568 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16569echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16571echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16572 ac_header_preproc=yes
16573 ;;
16574 no:yes:* )
16575 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16576echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16577 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16578echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16579 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16580echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16581 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16582echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16584echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16585 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16586echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16587 ( cat <<\_ASBOX
16588## ----------------------------------- ##
16589## Report this to llvmbugs@cs.uiuc.edu ##
16590## ----------------------------------- ##
16591_ASBOX
16592 ) | sed "s/^/$as_me: WARNING: /" >&2
16593 ;;
16594esac
16595{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16596echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16597if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16598 echo $ECHO_N "(cached) $ECHO_C" >&6
16599else
16600 eval "$as_ac_Header=\$ac_header_preproc"
16601fi
16602ac_res=`eval echo '${'$as_ac_Header'}'`
16603 { echo "$as_me:$LINENO: result: $ac_res" >&5
16604echo "${ECHO_T}$ac_res" >&6; }
16605
16606fi
16607if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000016608 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016609#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000016610_ACEOF
16611
16612fi
16613
16614done
16615
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000016616
16617for ac_header in valgrind/valgrind.h
16618do
16619as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16620if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16621 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16622echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16623if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16624 echo $ECHO_N "(cached) $ECHO_C" >&6
16625fi
16626ac_res=`eval echo '${'$as_ac_Header'}'`
16627 { echo "$as_me:$LINENO: result: $ac_res" >&5
16628echo "${ECHO_T}$ac_res" >&6; }
16629else
16630 # Is the header compilable?
16631{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16632echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16633cat >conftest.$ac_ext <<_ACEOF
16634/* confdefs.h. */
16635_ACEOF
16636cat confdefs.h >>conftest.$ac_ext
16637cat >>conftest.$ac_ext <<_ACEOF
16638/* end confdefs.h. */
16639$ac_includes_default
16640#include <$ac_header>
16641_ACEOF
16642rm -f conftest.$ac_objext
16643if { (ac_try="$ac_compile"
16644case "(($ac_try" in
16645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16646 *) ac_try_echo=$ac_try;;
16647esac
16648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16649 (eval "$ac_compile") 2>conftest.er1
16650 ac_status=$?
16651 grep -v '^ *+' conftest.er1 >conftest.err
16652 rm -f conftest.er1
16653 cat conftest.err >&5
16654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655 (exit $ac_status); } &&
16656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16657 { (case "(($ac_try" in
16658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16659 *) ac_try_echo=$ac_try;;
16660esac
16661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16662 (eval "$ac_try") 2>&5
16663 ac_status=$?
16664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16665 (exit $ac_status); }; } &&
16666 { ac_try='test -s conftest.$ac_objext'
16667 { (case "(($ac_try" in
16668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16669 *) ac_try_echo=$ac_try;;
16670esac
16671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16672 (eval "$ac_try") 2>&5
16673 ac_status=$?
16674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); }; }; then
16676 ac_header_compiler=yes
16677else
16678 echo "$as_me: failed program was:" >&5
16679sed 's/^/| /' conftest.$ac_ext >&5
16680
16681 ac_header_compiler=no
16682fi
16683
16684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16685{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16686echo "${ECHO_T}$ac_header_compiler" >&6; }
16687
16688# Is the header present?
16689{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16690echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16691cat >conftest.$ac_ext <<_ACEOF
16692/* confdefs.h. */
16693_ACEOF
16694cat confdefs.h >>conftest.$ac_ext
16695cat >>conftest.$ac_ext <<_ACEOF
16696/* end confdefs.h. */
16697#include <$ac_header>
16698_ACEOF
16699if { (ac_try="$ac_cpp conftest.$ac_ext"
16700case "(($ac_try" in
16701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16702 *) ac_try_echo=$ac_try;;
16703esac
16704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16705 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16706 ac_status=$?
16707 grep -v '^ *+' conftest.er1 >conftest.err
16708 rm -f conftest.er1
16709 cat conftest.err >&5
16710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16711 (exit $ac_status); } >/dev/null; then
16712 if test -s conftest.err; then
16713 ac_cpp_err=$ac_c_preproc_warn_flag
16714 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16715 else
16716 ac_cpp_err=
16717 fi
16718else
16719 ac_cpp_err=yes
16720fi
16721if test -z "$ac_cpp_err"; then
16722 ac_header_preproc=yes
16723else
16724 echo "$as_me: failed program was:" >&5
16725sed 's/^/| /' conftest.$ac_ext >&5
16726
16727 ac_header_preproc=no
16728fi
16729
16730rm -f conftest.err conftest.$ac_ext
16731{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16732echo "${ECHO_T}$ac_header_preproc" >&6; }
16733
16734# So? What about this header?
16735case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16736 yes:no: )
16737 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16738echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16740echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16741 ac_header_preproc=yes
16742 ;;
16743 no:yes:* )
16744 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16745echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16746 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16747echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16748 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16749echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16750 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16751echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16753echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16754 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16755echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16756 ( cat <<\_ASBOX
16757## ----------------------------------- ##
16758## Report this to llvmbugs@cs.uiuc.edu ##
16759## ----------------------------------- ##
16760_ASBOX
16761 ) | sed "s/^/$as_me: WARNING: /" >&2
16762 ;;
16763esac
16764{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16765echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16766if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16767 echo $ECHO_N "(cached) $ECHO_C" >&6
16768else
16769 eval "$as_ac_Header=\$ac_header_preproc"
16770fi
16771ac_res=`eval echo '${'$as_ac_Header'}'`
16772 { echo "$as_me:$LINENO: result: $ac_res" >&5
16773echo "${ECHO_T}$ac_res" >&6; }
16774
16775fi
16776if test `eval echo '${'$as_ac_Header'}'` = yes; then
16777 cat >>confdefs.h <<_ACEOF
16778#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16779_ACEOF
16780
16781fi
16782
16783done
16784
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000016785
16786for ac_header in fenv.h
16787do
16788as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16789if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16790 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16791echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16792if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16793 echo $ECHO_N "(cached) $ECHO_C" >&6
16794fi
16795ac_res=`eval echo '${'$as_ac_Header'}'`
16796 { echo "$as_me:$LINENO: result: $ac_res" >&5
16797echo "${ECHO_T}$ac_res" >&6; }
16798else
16799 # Is the header compilable?
16800{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16801echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16802cat >conftest.$ac_ext <<_ACEOF
16803/* confdefs.h. */
16804_ACEOF
16805cat confdefs.h >>conftest.$ac_ext
16806cat >>conftest.$ac_ext <<_ACEOF
16807/* end confdefs.h. */
16808$ac_includes_default
16809#include <$ac_header>
16810_ACEOF
16811rm -f conftest.$ac_objext
16812if { (ac_try="$ac_compile"
16813case "(($ac_try" in
16814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16815 *) ac_try_echo=$ac_try;;
16816esac
16817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16818 (eval "$ac_compile") 2>conftest.er1
16819 ac_status=$?
16820 grep -v '^ *+' conftest.er1 >conftest.err
16821 rm -f conftest.er1
16822 cat conftest.err >&5
16823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824 (exit $ac_status); } &&
16825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16826 { (case "(($ac_try" in
16827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16828 *) ac_try_echo=$ac_try;;
16829esac
16830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16831 (eval "$ac_try") 2>&5
16832 ac_status=$?
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); }; } &&
16835 { ac_try='test -s conftest.$ac_objext'
16836 { (case "(($ac_try" in
16837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16838 *) ac_try_echo=$ac_try;;
16839esac
16840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16841 (eval "$ac_try") 2>&5
16842 ac_status=$?
16843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844 (exit $ac_status); }; }; then
16845 ac_header_compiler=yes
16846else
16847 echo "$as_me: failed program was:" >&5
16848sed 's/^/| /' conftest.$ac_ext >&5
16849
16850 ac_header_compiler=no
16851fi
16852
16853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16854{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16855echo "${ECHO_T}$ac_header_compiler" >&6; }
16856
16857# Is the header present?
16858{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16859echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16860cat >conftest.$ac_ext <<_ACEOF
16861/* confdefs.h. */
16862_ACEOF
16863cat confdefs.h >>conftest.$ac_ext
16864cat >>conftest.$ac_ext <<_ACEOF
16865/* end confdefs.h. */
16866#include <$ac_header>
16867_ACEOF
16868if { (ac_try="$ac_cpp conftest.$ac_ext"
16869case "(($ac_try" in
16870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16871 *) ac_try_echo=$ac_try;;
16872esac
16873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16875 ac_status=$?
16876 grep -v '^ *+' conftest.er1 >conftest.err
16877 rm -f conftest.er1
16878 cat conftest.err >&5
16879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16880 (exit $ac_status); } >/dev/null; then
16881 if test -s conftest.err; then
16882 ac_cpp_err=$ac_c_preproc_warn_flag
16883 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16884 else
16885 ac_cpp_err=
16886 fi
16887else
16888 ac_cpp_err=yes
16889fi
16890if test -z "$ac_cpp_err"; then
16891 ac_header_preproc=yes
16892else
16893 echo "$as_me: failed program was:" >&5
16894sed 's/^/| /' conftest.$ac_ext >&5
16895
16896 ac_header_preproc=no
16897fi
16898
16899rm -f conftest.err conftest.$ac_ext
16900{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16901echo "${ECHO_T}$ac_header_preproc" >&6; }
16902
16903# So? What about this header?
16904case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16905 yes:no: )
16906 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16907echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16909echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16910 ac_header_preproc=yes
16911 ;;
16912 no:yes:* )
16913 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16914echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16915 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16916echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16917 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16918echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16919 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16920echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16922echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16923 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16924echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16925 ( cat <<\_ASBOX
16926## ----------------------------------- ##
16927## Report this to llvmbugs@cs.uiuc.edu ##
16928## ----------------------------------- ##
16929_ASBOX
16930 ) | sed "s/^/$as_me: WARNING: /" >&2
16931 ;;
16932esac
16933{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16934echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16935if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16936 echo $ECHO_N "(cached) $ECHO_C" >&6
16937else
16938 eval "$as_ac_Header=\$ac_header_preproc"
16939fi
16940ac_res=`eval echo '${'$as_ac_Header'}'`
16941 { echo "$as_me:$LINENO: result: $ac_res" >&5
16942echo "${ECHO_T}$ac_res" >&6; }
16943
16944fi
16945if test `eval echo '${'$as_ac_Header'}'` = yes; then
16946 cat >>confdefs.h <<_ACEOF
16947#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16948_ACEOF
16949
16950fi
16951
16952done
16953
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000016954if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016955
16956for ac_header in pthread.h
16957do
16958as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16959if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16960 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16961echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16962if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16963 echo $ECHO_N "(cached) $ECHO_C" >&6
16964fi
16965ac_res=`eval echo '${'$as_ac_Header'}'`
16966 { echo "$as_me:$LINENO: result: $ac_res" >&5
16967echo "${ECHO_T}$ac_res" >&6; }
16968else
16969 # Is the header compilable?
16970{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16971echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16972cat >conftest.$ac_ext <<_ACEOF
16973/* confdefs.h. */
16974_ACEOF
16975cat confdefs.h >>conftest.$ac_ext
16976cat >>conftest.$ac_ext <<_ACEOF
16977/* end confdefs.h. */
16978$ac_includes_default
16979#include <$ac_header>
16980_ACEOF
16981rm -f conftest.$ac_objext
16982if { (ac_try="$ac_compile"
16983case "(($ac_try" in
16984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16985 *) ac_try_echo=$ac_try;;
16986esac
16987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16988 (eval "$ac_compile") 2>conftest.er1
16989 ac_status=$?
16990 grep -v '^ *+' conftest.er1 >conftest.err
16991 rm -f conftest.er1
16992 cat conftest.err >&5
16993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994 (exit $ac_status); } &&
16995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16996 { (case "(($ac_try" in
16997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16998 *) ac_try_echo=$ac_try;;
16999esac
17000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17001 (eval "$ac_try") 2>&5
17002 ac_status=$?
17003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004 (exit $ac_status); }; } &&
17005 { ac_try='test -s conftest.$ac_objext'
17006 { (case "(($ac_try" in
17007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17008 *) ac_try_echo=$ac_try;;
17009esac
17010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17011 (eval "$ac_try") 2>&5
17012 ac_status=$?
17013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014 (exit $ac_status); }; }; then
17015 ac_header_compiler=yes
17016else
17017 echo "$as_me: failed program was:" >&5
17018sed 's/^/| /' conftest.$ac_ext >&5
17019
17020 ac_header_compiler=no
17021fi
17022
17023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17024{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17025echo "${ECHO_T}$ac_header_compiler" >&6; }
17026
17027# Is the header present?
17028{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17029echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17030cat >conftest.$ac_ext <<_ACEOF
17031/* confdefs.h. */
17032_ACEOF
17033cat confdefs.h >>conftest.$ac_ext
17034cat >>conftest.$ac_ext <<_ACEOF
17035/* end confdefs.h. */
17036#include <$ac_header>
17037_ACEOF
17038if { (ac_try="$ac_cpp conftest.$ac_ext"
17039case "(($ac_try" in
17040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17041 *) ac_try_echo=$ac_try;;
17042esac
17043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17044 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17045 ac_status=$?
17046 grep -v '^ *+' conftest.er1 >conftest.err
17047 rm -f conftest.er1
17048 cat conftest.err >&5
17049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17050 (exit $ac_status); } >/dev/null; then
17051 if test -s conftest.err; then
17052 ac_cpp_err=$ac_c_preproc_warn_flag
17053 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17054 else
17055 ac_cpp_err=
17056 fi
17057else
17058 ac_cpp_err=yes
17059fi
17060if test -z "$ac_cpp_err"; then
17061 ac_header_preproc=yes
17062else
17063 echo "$as_me: failed program was:" >&5
17064sed 's/^/| /' conftest.$ac_ext >&5
17065
17066 ac_header_preproc=no
17067fi
17068
17069rm -f conftest.err conftest.$ac_ext
17070{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17071echo "${ECHO_T}$ac_header_preproc" >&6; }
17072
17073# So? What about this header?
17074case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17075 yes:no: )
17076 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17077echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17079echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17080 ac_header_preproc=yes
17081 ;;
17082 no:yes:* )
17083 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17084echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17085 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17086echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17087 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17088echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17089 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17090echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17091 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17092echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17093 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17094echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17095 ( cat <<\_ASBOX
17096## ----------------------------------- ##
17097## Report this to llvmbugs@cs.uiuc.edu ##
17098## ----------------------------------- ##
17099_ASBOX
17100 ) | sed "s/^/$as_me: WARNING: /" >&2
17101 ;;
17102esac
17103{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17104echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17105if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17106 echo $ECHO_N "(cached) $ECHO_C" >&6
17107else
17108 eval "$as_ac_Header=\$ac_header_preproc"
17109fi
17110ac_res=`eval echo '${'$as_ac_Header'}'`
17111 { echo "$as_me:$LINENO: result: $ac_res" >&5
17112echo "${ECHO_T}$ac_res" >&6; }
17113
17114fi
17115if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000017116 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017117#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000017118_ACEOF
17119 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000017120
17121else
17122 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000017123
17124fi
17125
Reid Spencerbe3e4192007-08-17 05:45:26 +000017126done
Reid Spencer1000b732006-12-01 00:37:14 +000017127
17128else
17129 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000017130
17131fi
Reid Spencer8085cff2005-01-16 02:58:39 +000017132
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000017133if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017134
17135
17136for ac_header in ffi.h ffi/ffi.h
17137do
17138as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17139if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17140 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17141echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17142if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17143 echo $ECHO_N "(cached) $ECHO_C" >&6
17144fi
17145ac_res=`eval echo '${'$as_ac_Header'}'`
17146 { echo "$as_me:$LINENO: result: $ac_res" >&5
17147echo "${ECHO_T}$ac_res" >&6; }
17148else
17149 # Is the header compilable?
17150{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17151echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17152cat >conftest.$ac_ext <<_ACEOF
17153/* confdefs.h. */
17154_ACEOF
17155cat confdefs.h >>conftest.$ac_ext
17156cat >>conftest.$ac_ext <<_ACEOF
17157/* end confdefs.h. */
17158$ac_includes_default
17159#include <$ac_header>
17160_ACEOF
17161rm -f conftest.$ac_objext
17162if { (ac_try="$ac_compile"
17163case "(($ac_try" in
17164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17165 *) ac_try_echo=$ac_try;;
17166esac
17167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17168 (eval "$ac_compile") 2>conftest.er1
17169 ac_status=$?
17170 grep -v '^ *+' conftest.er1 >conftest.err
17171 rm -f conftest.er1
17172 cat conftest.err >&5
17173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174 (exit $ac_status); } &&
17175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17176 { (case "(($ac_try" in
17177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17178 *) ac_try_echo=$ac_try;;
17179esac
17180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17181 (eval "$ac_try") 2>&5
17182 ac_status=$?
17183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17184 (exit $ac_status); }; } &&
17185 { ac_try='test -s conftest.$ac_objext'
17186 { (case "(($ac_try" in
17187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17188 *) ac_try_echo=$ac_try;;
17189esac
17190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17191 (eval "$ac_try") 2>&5
17192 ac_status=$?
17193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17194 (exit $ac_status); }; }; then
17195 ac_header_compiler=yes
17196else
17197 echo "$as_me: failed program was:" >&5
17198sed 's/^/| /' conftest.$ac_ext >&5
17199
17200 ac_header_compiler=no
17201fi
17202
17203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17204{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17205echo "${ECHO_T}$ac_header_compiler" >&6; }
17206
17207# Is the header present?
17208{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17209echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17210cat >conftest.$ac_ext <<_ACEOF
17211/* confdefs.h. */
17212_ACEOF
17213cat confdefs.h >>conftest.$ac_ext
17214cat >>conftest.$ac_ext <<_ACEOF
17215/* end confdefs.h. */
17216#include <$ac_header>
17217_ACEOF
17218if { (ac_try="$ac_cpp conftest.$ac_ext"
17219case "(($ac_try" in
17220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17221 *) ac_try_echo=$ac_try;;
17222esac
17223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17224 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17225 ac_status=$?
17226 grep -v '^ *+' conftest.er1 >conftest.err
17227 rm -f conftest.er1
17228 cat conftest.err >&5
17229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230 (exit $ac_status); } >/dev/null; then
17231 if test -s conftest.err; then
17232 ac_cpp_err=$ac_c_preproc_warn_flag
17233 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17234 else
17235 ac_cpp_err=
17236 fi
17237else
17238 ac_cpp_err=yes
17239fi
17240if test -z "$ac_cpp_err"; then
17241 ac_header_preproc=yes
17242else
17243 echo "$as_me: failed program was:" >&5
17244sed 's/^/| /' conftest.$ac_ext >&5
17245
17246 ac_header_preproc=no
17247fi
17248
17249rm -f conftest.err conftest.$ac_ext
17250{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17251echo "${ECHO_T}$ac_header_preproc" >&6; }
17252
17253# So? What about this header?
17254case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17255 yes:no: )
17256 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17257echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17259echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17260 ac_header_preproc=yes
17261 ;;
17262 no:yes:* )
17263 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17264echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17265 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17266echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17267 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17268echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17269 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17270echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17271 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17272echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17273 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17274echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17275 ( cat <<\_ASBOX
17276## ----------------------------------- ##
17277## Report this to llvmbugs@cs.uiuc.edu ##
17278## ----------------------------------- ##
17279_ASBOX
17280 ) | sed "s/^/$as_me: WARNING: /" >&2
17281 ;;
17282esac
17283{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17284echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17285if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17286 echo $ECHO_N "(cached) $ECHO_C" >&6
17287else
17288 eval "$as_ac_Header=\$ac_header_preproc"
17289fi
17290ac_res=`eval echo '${'$as_ac_Header'}'`
17291 { echo "$as_me:$LINENO: result: $ac_res" >&5
17292echo "${ECHO_T}$ac_res" >&6; }
17293
17294fi
17295if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017296 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017297#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017298_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017299
17300fi
17301
17302done
17303
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000017304fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017305
Nick Lewycky2ab1d862009-01-20 00:52:24 +000017306
Eric Christopher654dee42010-06-22 21:01:04 +000017307for ac_header in CrashReporterClient.h
17308do
17309as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17310if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17311 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17312echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17313if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17314 echo $ECHO_N "(cached) $ECHO_C" >&6
17315fi
17316ac_res=`eval echo '${'$as_ac_Header'}'`
17317 { echo "$as_me:$LINENO: result: $ac_res" >&5
17318echo "${ECHO_T}$ac_res" >&6; }
17319else
17320 # Is the header compilable?
17321{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17322echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17323cat >conftest.$ac_ext <<_ACEOF
17324/* confdefs.h. */
17325_ACEOF
17326cat confdefs.h >>conftest.$ac_ext
17327cat >>conftest.$ac_ext <<_ACEOF
17328/* end confdefs.h. */
17329$ac_includes_default
17330#include <$ac_header>
17331_ACEOF
17332rm -f conftest.$ac_objext
17333if { (ac_try="$ac_compile"
17334case "(($ac_try" in
17335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17336 *) ac_try_echo=$ac_try;;
17337esac
17338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17339 (eval "$ac_compile") 2>conftest.er1
17340 ac_status=$?
17341 grep -v '^ *+' conftest.er1 >conftest.err
17342 rm -f conftest.er1
17343 cat conftest.err >&5
17344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17345 (exit $ac_status); } &&
17346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17347 { (case "(($ac_try" in
17348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17349 *) ac_try_echo=$ac_try;;
17350esac
17351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17352 (eval "$ac_try") 2>&5
17353 ac_status=$?
17354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17355 (exit $ac_status); }; } &&
17356 { ac_try='test -s conftest.$ac_objext'
17357 { (case "(($ac_try" in
17358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17359 *) ac_try_echo=$ac_try;;
17360esac
17361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17362 (eval "$ac_try") 2>&5
17363 ac_status=$?
17364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365 (exit $ac_status); }; }; then
17366 ac_header_compiler=yes
17367else
17368 echo "$as_me: failed program was:" >&5
17369sed 's/^/| /' conftest.$ac_ext >&5
17370
17371 ac_header_compiler=no
17372fi
17373
17374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17375{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17376echo "${ECHO_T}$ac_header_compiler" >&6; }
17377
17378# Is the header present?
17379{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17380echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17381cat >conftest.$ac_ext <<_ACEOF
17382/* confdefs.h. */
17383_ACEOF
17384cat confdefs.h >>conftest.$ac_ext
17385cat >>conftest.$ac_ext <<_ACEOF
17386/* end confdefs.h. */
17387#include <$ac_header>
17388_ACEOF
17389if { (ac_try="$ac_cpp conftest.$ac_ext"
17390case "(($ac_try" in
17391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17392 *) ac_try_echo=$ac_try;;
17393esac
17394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17395 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17396 ac_status=$?
17397 grep -v '^ *+' conftest.er1 >conftest.err
17398 rm -f conftest.er1
17399 cat conftest.err >&5
17400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401 (exit $ac_status); } >/dev/null; then
17402 if test -s conftest.err; then
17403 ac_cpp_err=$ac_c_preproc_warn_flag
17404 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17405 else
17406 ac_cpp_err=
17407 fi
17408else
17409 ac_cpp_err=yes
17410fi
17411if test -z "$ac_cpp_err"; then
17412 ac_header_preproc=yes
17413else
17414 echo "$as_me: failed program was:" >&5
17415sed 's/^/| /' conftest.$ac_ext >&5
17416
17417 ac_header_preproc=no
17418fi
17419
17420rm -f conftest.err conftest.$ac_ext
17421{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17422echo "${ECHO_T}$ac_header_preproc" >&6; }
17423
17424# So? What about this header?
17425case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17426 yes:no: )
17427 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17428echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17429 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17430echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17431 ac_header_preproc=yes
17432 ;;
17433 no:yes:* )
17434 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17435echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17436 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17437echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17438 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17439echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17440 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17441echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17442 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17443echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17444 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17445echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17446 ( cat <<\_ASBOX
17447## ----------------------------------- ##
17448## Report this to llvmbugs@cs.uiuc.edu ##
17449## ----------------------------------- ##
17450_ASBOX
17451 ) | sed "s/^/$as_me: WARNING: /" >&2
17452 ;;
17453esac
17454{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17455echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17456if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17457 echo $ECHO_N "(cached) $ECHO_C" >&6
17458else
17459 eval "$as_ac_Header=\$ac_header_preproc"
17460fi
17461ac_res=`eval echo '${'$as_ac_Header'}'`
17462 { echo "$as_me:$LINENO: result: $ac_res" >&5
17463echo "${ECHO_T}$ac_res" >&6; }
17464
17465fi
17466if test `eval echo '${'$as_ac_Header'}'` = yes; then
17467 cat >>confdefs.h <<_ACEOF
17468#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17469_ACEOF
17470
17471fi
17472
17473done
17474
17475
Eric Christopher51e57132010-12-07 02:05:42 +000017476{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17477echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000017478cat >conftest.$ac_ext <<_ACEOF
17479/* confdefs.h. */
17480_ACEOF
17481cat confdefs.h >>conftest.$ac_ext
17482cat >>conftest.$ac_ext <<_ACEOF
17483/* end confdefs.h. */
Eric Christopher51e57132010-12-07 02:05:42 +000017484extern const char *__crashreporter_info__;
17485 int main() {
17486 __crashreporter_info__ = "test";
17487 return 0;
17488 }
Eric Christopher481d4022010-12-03 07:45:22 +000017489
Eric Christopher481d4022010-12-03 07:45:22 +000017490_ACEOF
17491rm -f conftest.$ac_objext conftest$ac_exeext
17492if { (ac_try="$ac_link"
17493case "(($ac_try" in
17494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17495 *) ac_try_echo=$ac_try;;
17496esac
17497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17498 (eval "$ac_link") 2>conftest.er1
17499 ac_status=$?
17500 grep -v '^ *+' conftest.er1 >conftest.err
17501 rm -f conftest.er1
17502 cat conftest.err >&5
17503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504 (exit $ac_status); } &&
17505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17506 { (case "(($ac_try" in
17507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17508 *) ac_try_echo=$ac_try;;
17509esac
17510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17511 (eval "$ac_try") 2>&5
17512 ac_status=$?
17513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17514 (exit $ac_status); }; } &&
17515 { ac_try='test -s conftest$ac_exeext'
17516 { (case "(($ac_try" in
17517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17518 *) ac_try_echo=$ac_try;;
17519esac
17520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17521 (eval "$ac_try") 2>&5
17522 ac_status=$?
17523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524 (exit $ac_status); }; }; then
Eric Christopher51e57132010-12-07 02:05:42 +000017525 { echo "$as_me:$LINENO: result: yes" >&5
17526echo "${ECHO_T}yes" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000017527
17528cat >>confdefs.h <<\_ACEOF
17529#define HAVE_CRASHREPORTER_INFO 1
17530_ACEOF
17531
Eric Christopher51e57132010-12-07 02:05:42 +000017532else
17533 echo "$as_me: failed program was:" >&5
17534sed 's/^/| /' conftest.$ac_ext >&5
17535
17536 { echo "$as_me:$LINENO: result: no" >&5
17537echo "${ECHO_T}no" >&6; }
17538
17539cat >>confdefs.h <<\_ACEOF
17540#define HAVE_CRASHREPORTER_INFO 0
17541_ACEOF
17542
Eric Christopher481d4022010-12-03 07:45:22 +000017543fi
Eric Christopher654dee42010-06-22 21:01:04 +000017544
Eric Christopher51e57132010-12-07 02:05:42 +000017545rm -f core conftest.err conftest.$ac_objext \
17546 conftest$ac_exeext conftest.$ac_ext
17547
17548
Reid Spencer8085cff2005-01-16 02:58:39 +000017549
Torok Edwin871384f2010-01-26 08:50:50 +000017550
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017551 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17552echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17553if test "${ac_cv_huge_val_sanity+set}" = set; then
17554 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000017555else
17556
Reid Spencer6a7c0b72006-11-03 19:49:16 +000017557 ac_ext=cpp
17558ac_cpp='$CXXCPP $CPPFLAGS'
17559ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17560ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17561ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000017562
Eric Christopherc7718502010-03-02 05:06:54 +000017563 ac_save_CXXFLAGS=$CXXFLAGS
Reid Spencer6a7c0b72006-11-03 19:49:16 +000017564 CXXFLAGS=-pedantic
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017565 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000017566 ac_cv_huge_val_sanity=yes
17567else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017568 cat >conftest.$ac_ext <<_ACEOF
17569/* confdefs.h. */
17570_ACEOF
17571cat confdefs.h >>conftest.$ac_ext
17572cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000017573/* end confdefs.h. */
17574#include <math.h>
17575int
17576main ()
17577{
17578double x = HUGE_VAL; return x != x;
17579 ;
17580 return 0;
17581}
17582_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017583rm -f conftest$ac_exeext
17584if { (ac_try="$ac_link"
17585case "(($ac_try" in
17586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17587 *) ac_try_echo=$ac_try;;
17588esac
17589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17590 (eval "$ac_link") 2>&5
17591 ac_status=$?
17592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17594 { (case "(($ac_try" in
17595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17596 *) ac_try_echo=$ac_try;;
17597esac
17598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17599 (eval "$ac_try") 2>&5
17600 ac_status=$?
17601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000017603 ac_cv_huge_val_sanity=yes
17604else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017605 echo "$as_me: program exited with status $ac_status" >&5
17606echo "$as_me: failed program was:" >&5
17607sed 's/^/| /' conftest.$ac_ext >&5
17608
17609( exit $ac_status )
17610ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000017611fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017612rm -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 +000017613fi
17614
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017615
Eric Christopherc7718502010-03-02 05:06:54 +000017616 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000017617 ac_ext=c
17618ac_cpp='$CPP $CPPFLAGS'
17619ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17620ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17621ac_compiler_gnu=$ac_cv_c_compiler_gnu
17622
17623
17624fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017625{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17626echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000017627 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17628
17629
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017630{ echo "$as_me:$LINENO: checking for pid_t" >&5
17631echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17632if test "${ac_cv_type_pid_t+set}" = set; then
17633 echo $ECHO_N "(cached) $ECHO_C" >&6
17634else
17635 cat >conftest.$ac_ext <<_ACEOF
17636/* confdefs.h. */
17637_ACEOF
17638cat confdefs.h >>conftest.$ac_ext
17639cat >>conftest.$ac_ext <<_ACEOF
17640/* end confdefs.h. */
17641$ac_includes_default
17642typedef pid_t ac__type_new_;
17643int
17644main ()
17645{
17646if ((ac__type_new_ *) 0)
17647 return 0;
17648if (sizeof (ac__type_new_))
17649 return 0;
17650 ;
17651 return 0;
17652}
17653_ACEOF
17654rm -f conftest.$ac_objext
17655if { (ac_try="$ac_compile"
17656case "(($ac_try" in
17657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17658 *) ac_try_echo=$ac_try;;
17659esac
17660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17661 (eval "$ac_compile") 2>conftest.er1
17662 ac_status=$?
17663 grep -v '^ *+' conftest.er1 >conftest.err
17664 rm -f conftest.er1
17665 cat conftest.err >&5
17666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667 (exit $ac_status); } &&
17668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17669 { (case "(($ac_try" in
17670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17671 *) ac_try_echo=$ac_try;;
17672esac
17673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17674 (eval "$ac_try") 2>&5
17675 ac_status=$?
17676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17677 (exit $ac_status); }; } &&
17678 { ac_try='test -s conftest.$ac_objext'
17679 { (case "(($ac_try" in
17680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17681 *) ac_try_echo=$ac_try;;
17682esac
17683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17684 (eval "$ac_try") 2>&5
17685 ac_status=$?
17686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17687 (exit $ac_status); }; }; then
17688 ac_cv_type_pid_t=yes
17689else
17690 echo "$as_me: failed program was:" >&5
17691sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017692
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017693 ac_cv_type_pid_t=no
17694fi
17695
17696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17697fi
17698{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17699echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17700if test $ac_cv_type_pid_t = yes; then
17701 :
John Criswell7a73b802003-06-30 21:59:07 +000017702else
17703
17704cat >>confdefs.h <<_ACEOF
17705#define pid_t int
17706_ACEOF
17707
17708fi
17709
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017710{ echo "$as_me:$LINENO: checking for size_t" >&5
17711echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17712if test "${ac_cv_type_size_t+set}" = set; then
17713 echo $ECHO_N "(cached) $ECHO_C" >&6
17714else
17715 cat >conftest.$ac_ext <<_ACEOF
17716/* confdefs.h. */
17717_ACEOF
17718cat confdefs.h >>conftest.$ac_ext
17719cat >>conftest.$ac_ext <<_ACEOF
17720/* end confdefs.h. */
17721$ac_includes_default
17722typedef size_t ac__type_new_;
17723int
17724main ()
17725{
17726if ((ac__type_new_ *) 0)
17727 return 0;
17728if (sizeof (ac__type_new_))
17729 return 0;
17730 ;
17731 return 0;
17732}
17733_ACEOF
17734rm -f conftest.$ac_objext
17735if { (ac_try="$ac_compile"
17736case "(($ac_try" in
17737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17738 *) ac_try_echo=$ac_try;;
17739esac
17740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17741 (eval "$ac_compile") 2>conftest.er1
17742 ac_status=$?
17743 grep -v '^ *+' conftest.er1 >conftest.err
17744 rm -f conftest.er1
17745 cat conftest.err >&5
17746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747 (exit $ac_status); } &&
17748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17749 { (case "(($ac_try" in
17750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17751 *) ac_try_echo=$ac_try;;
17752esac
17753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17754 (eval "$ac_try") 2>&5
17755 ac_status=$?
17756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757 (exit $ac_status); }; } &&
17758 { ac_try='test -s conftest.$ac_objext'
17759 { (case "(($ac_try" in
17760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17761 *) ac_try_echo=$ac_try;;
17762esac
17763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17764 (eval "$ac_try") 2>&5
17765 ac_status=$?
17766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767 (exit $ac_status); }; }; then
17768 ac_cv_type_size_t=yes
17769else
17770 echo "$as_me: failed program was:" >&5
17771sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017772
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017773 ac_cv_type_size_t=no
17774fi
17775
17776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17777fi
17778{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17779echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17780if test $ac_cv_type_size_t = yes; then
17781 :
John Criswell7a73b802003-06-30 21:59:07 +000017782else
17783
17784cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000017785#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000017786_ACEOF
17787
17788fi
17789
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017790
17791cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000017792#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017793_ACEOF
17794
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017795{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17796echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17797if test "${ac_cv_struct_tm+set}" = set; then
17798 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017799else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017800 cat >conftest.$ac_ext <<_ACEOF
17801/* confdefs.h. */
17802_ACEOF
17803cat confdefs.h >>conftest.$ac_ext
17804cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017805/* end confdefs.h. */
17806#include <sys/types.h>
17807#include <time.h>
17808
17809int
17810main ()
17811{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017812struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017813 ;
17814 return 0;
17815}
17816_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017817rm -f conftest.$ac_objext
17818if { (ac_try="$ac_compile"
17819case "(($ac_try" in
17820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17821 *) ac_try_echo=$ac_try;;
17822esac
17823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17824 (eval "$ac_compile") 2>conftest.er1
17825 ac_status=$?
17826 grep -v '^ *+' conftest.er1 >conftest.err
17827 rm -f conftest.er1
17828 cat conftest.err >&5
17829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17830 (exit $ac_status); } &&
17831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17832 { (case "(($ac_try" in
17833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17834 *) ac_try_echo=$ac_try;;
17835esac
17836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17837 (eval "$ac_try") 2>&5
17838 ac_status=$?
17839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840 (exit $ac_status); }; } &&
17841 { ac_try='test -s conftest.$ac_objext'
17842 { (case "(($ac_try" in
17843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17844 *) ac_try_echo=$ac_try;;
17845esac
17846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17847 (eval "$ac_try") 2>&5
17848 ac_status=$?
17849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17850 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017851 ac_cv_struct_tm=time.h
17852else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017853 echo "$as_me: failed program was:" >&5
17854sed 's/^/| /' conftest.$ac_ext >&5
17855
17856 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017857fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017858
Reid Spencera773bd52006-08-04 18:18:08 +000017859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017860fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017861{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17862echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017863if test $ac_cv_struct_tm = sys/time.h; then
17864
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017865cat >>confdefs.h <<\_ACEOF
17866#define TM_IN_SYS_TIME 1
17867_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017868
17869fi
17870
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017871{ echo "$as_me:$LINENO: checking for int64_t" >&5
17872echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17873if test "${ac_cv_type_int64_t+set}" = set; then
17874 echo $ECHO_N "(cached) $ECHO_C" >&6
17875else
17876 cat >conftest.$ac_ext <<_ACEOF
17877/* confdefs.h. */
17878_ACEOF
17879cat confdefs.h >>conftest.$ac_ext
17880cat >>conftest.$ac_ext <<_ACEOF
17881/* end confdefs.h. */
17882$ac_includes_default
17883typedef int64_t ac__type_new_;
17884int
17885main ()
17886{
17887if ((ac__type_new_ *) 0)
17888 return 0;
17889if (sizeof (ac__type_new_))
17890 return 0;
17891 ;
17892 return 0;
17893}
17894_ACEOF
17895rm -f conftest.$ac_objext
17896if { (ac_try="$ac_compile"
17897case "(($ac_try" in
17898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17899 *) ac_try_echo=$ac_try;;
17900esac
17901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17902 (eval "$ac_compile") 2>conftest.er1
17903 ac_status=$?
17904 grep -v '^ *+' conftest.er1 >conftest.err
17905 rm -f conftest.er1
17906 cat conftest.err >&5
17907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908 (exit $ac_status); } &&
17909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17910 { (case "(($ac_try" in
17911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17912 *) ac_try_echo=$ac_try;;
17913esac
17914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17915 (eval "$ac_try") 2>&5
17916 ac_status=$?
17917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17918 (exit $ac_status); }; } &&
17919 { ac_try='test -s conftest.$ac_objext'
17920 { (case "(($ac_try" in
17921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17922 *) ac_try_echo=$ac_try;;
17923esac
17924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17925 (eval "$ac_try") 2>&5
17926 ac_status=$?
17927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17928 (exit $ac_status); }; }; then
17929 ac_cv_type_int64_t=yes
17930else
17931 echo "$as_me: failed program was:" >&5
17932sed 's/^/| /' conftest.$ac_ext >&5
17933
17934 ac_cv_type_int64_t=no
17935fi
17936
17937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17938fi
17939{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17940echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17941if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017942
17943cat >>confdefs.h <<_ACEOF
17944#define HAVE_INT64_T 1
17945_ACEOF
17946
17947
17948else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017949 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17950echo "$as_me: error: Type int64_t required but not found" >&2;}
17951 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000017952fi
17953
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017954{ echo "$as_me:$LINENO: checking for uint64_t" >&5
17955echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17956if test "${ac_cv_type_uint64_t+set}" = set; then
17957 echo $ECHO_N "(cached) $ECHO_C" >&6
17958else
17959 cat >conftest.$ac_ext <<_ACEOF
17960/* confdefs.h. */
17961_ACEOF
17962cat confdefs.h >>conftest.$ac_ext
17963cat >>conftest.$ac_ext <<_ACEOF
17964/* end confdefs.h. */
17965$ac_includes_default
17966typedef uint64_t ac__type_new_;
17967int
17968main ()
17969{
17970if ((ac__type_new_ *) 0)
17971 return 0;
17972if (sizeof (ac__type_new_))
17973 return 0;
17974 ;
17975 return 0;
17976}
17977_ACEOF
17978rm -f conftest.$ac_objext
17979if { (ac_try="$ac_compile"
17980case "(($ac_try" in
17981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17982 *) ac_try_echo=$ac_try;;
17983esac
17984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17985 (eval "$ac_compile") 2>conftest.er1
17986 ac_status=$?
17987 grep -v '^ *+' conftest.er1 >conftest.err
17988 rm -f conftest.er1
17989 cat conftest.err >&5
17990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17991 (exit $ac_status); } &&
17992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17993 { (case "(($ac_try" in
17994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17995 *) ac_try_echo=$ac_try;;
17996esac
17997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17998 (eval "$ac_try") 2>&5
17999 ac_status=$?
18000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001 (exit $ac_status); }; } &&
18002 { ac_try='test -s conftest.$ac_objext'
18003 { (case "(($ac_try" in
18004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18005 *) ac_try_echo=$ac_try;;
18006esac
18007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18008 (eval "$ac_try") 2>&5
18009 ac_status=$?
18010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18011 (exit $ac_status); }; }; then
18012 ac_cv_type_uint64_t=yes
18013else
18014 echo "$as_me: failed program was:" >&5
18015sed 's/^/| /' conftest.$ac_ext >&5
18016
18017 ac_cv_type_uint64_t=no
18018fi
18019
18020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18021fi
18022{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
18023echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
18024if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000018025
18026cat >>confdefs.h <<_ACEOF
18027#define HAVE_UINT64_T 1
18028_ACEOF
18029
18030
18031else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018032 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
18033echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
18034if test "${ac_cv_type_u_int64_t+set}" = set; then
18035 echo $ECHO_N "(cached) $ECHO_C" >&6
18036else
18037 cat >conftest.$ac_ext <<_ACEOF
18038/* confdefs.h. */
18039_ACEOF
18040cat confdefs.h >>conftest.$ac_ext
18041cat >>conftest.$ac_ext <<_ACEOF
18042/* end confdefs.h. */
18043$ac_includes_default
18044typedef u_int64_t ac__type_new_;
18045int
18046main ()
18047{
18048if ((ac__type_new_ *) 0)
18049 return 0;
18050if (sizeof (ac__type_new_))
18051 return 0;
18052 ;
18053 return 0;
18054}
18055_ACEOF
18056rm -f conftest.$ac_objext
18057if { (ac_try="$ac_compile"
18058case "(($ac_try" in
18059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18060 *) ac_try_echo=$ac_try;;
18061esac
18062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18063 (eval "$ac_compile") 2>conftest.er1
18064 ac_status=$?
18065 grep -v '^ *+' conftest.er1 >conftest.err
18066 rm -f conftest.er1
18067 cat conftest.err >&5
18068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069 (exit $ac_status); } &&
18070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18071 { (case "(($ac_try" in
18072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18073 *) ac_try_echo=$ac_try;;
18074esac
18075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18076 (eval "$ac_try") 2>&5
18077 ac_status=$?
18078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18079 (exit $ac_status); }; } &&
18080 { ac_try='test -s conftest.$ac_objext'
18081 { (case "(($ac_try" in
18082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18083 *) ac_try_echo=$ac_try;;
18084esac
18085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18086 (eval "$ac_try") 2>&5
18087 ac_status=$?
18088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089 (exit $ac_status); }; }; then
18090 ac_cv_type_u_int64_t=yes
18091else
18092 echo "$as_me: failed program was:" >&5
18093sed 's/^/| /' conftest.$ac_ext >&5
18094
18095 ac_cv_type_u_int64_t=no
18096fi
18097
18098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18099fi
18100{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
18101echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
18102if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000018103
18104cat >>confdefs.h <<_ACEOF
18105#define HAVE_U_INT64_T 1
18106_ACEOF
18107
18108
Misha Brukmanceca9042004-09-02 23:02:30 +000018109else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018110 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
18111echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
18112 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000018113fi
18114
John Criswell679ff312004-09-02 18:44:44 +000018115fi
18116
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018117
18118
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018119
18120
18121
18122
18123
18124
18125
Reid Spencerdf3be822006-01-23 08:15:53 +000018126for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018127do
18128as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18129{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18130echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18131if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18132 echo $ECHO_N "(cached) $ECHO_C" >&6
18133else
18134 cat >conftest.$ac_ext <<_ACEOF
18135/* confdefs.h. */
18136_ACEOF
18137cat confdefs.h >>conftest.$ac_ext
18138cat >>conftest.$ac_ext <<_ACEOF
18139/* end confdefs.h. */
18140/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18141 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18142#define $ac_func innocuous_$ac_func
18143
18144/* System header to define __stub macros and hopefully few prototypes,
18145 which can conflict with char $ac_func (); below.
18146 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18147 <limits.h> exists even on freestanding compilers. */
18148
18149#ifdef __STDC__
18150# include <limits.h>
18151#else
18152# include <assert.h>
18153#endif
18154
18155#undef $ac_func
18156
18157/* Override any GCC internal prototype to avoid an error.
18158 Use char because int might match the return type of a GCC
18159 builtin and then its argument prototype would still apply. */
18160#ifdef __cplusplus
18161extern "C"
18162#endif
18163char $ac_func ();
18164/* The GNU C library defines this for functions which it implements
18165 to always fail with ENOSYS. Some functions are actually named
18166 something starting with __ and the normal name is an alias. */
18167#if defined __stub_$ac_func || defined __stub___$ac_func
18168choke me
18169#endif
18170
18171int
18172main ()
18173{
18174return $ac_func ();
18175 ;
18176 return 0;
18177}
18178_ACEOF
18179rm -f conftest.$ac_objext conftest$ac_exeext
18180if { (ac_try="$ac_link"
18181case "(($ac_try" in
18182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18183 *) ac_try_echo=$ac_try;;
18184esac
18185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18186 (eval "$ac_link") 2>conftest.er1
18187 ac_status=$?
18188 grep -v '^ *+' conftest.er1 >conftest.err
18189 rm -f conftest.er1
18190 cat conftest.err >&5
18191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18192 (exit $ac_status); } &&
18193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18194 { (case "(($ac_try" in
18195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18196 *) ac_try_echo=$ac_try;;
18197esac
18198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18199 (eval "$ac_try") 2>&5
18200 ac_status=$?
18201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202 (exit $ac_status); }; } &&
18203 { ac_try='test -s conftest$ac_exeext'
18204 { (case "(($ac_try" in
18205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18206 *) ac_try_echo=$ac_try;;
18207esac
18208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18209 (eval "$ac_try") 2>&5
18210 ac_status=$?
18211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18212 (exit $ac_status); }; }; then
18213 eval "$as_ac_var=yes"
18214else
18215 echo "$as_me: failed program was:" >&5
18216sed 's/^/| /' conftest.$ac_ext >&5
18217
18218 eval "$as_ac_var=no"
18219fi
18220
18221rm -f core conftest.err conftest.$ac_objext \
18222 conftest$ac_exeext conftest.$ac_ext
18223fi
18224ac_res=`eval echo '${'$as_ac_var'}'`
18225 { echo "$as_me:$LINENO: result: $ac_res" >&5
18226echo "${ECHO_T}$ac_res" >&6; }
18227if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018228 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018229#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018230_ACEOF
18231
18232fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018233done
John Criswell7a73b802003-06-30 21:59:07 +000018234
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018235
18236
18237
18238
Reid Spencer96cf5872007-07-13 10:05:30 +000018239for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018240do
18241as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18242{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18243echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18244if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18245 echo $ECHO_N "(cached) $ECHO_C" >&6
18246else
18247 cat >conftest.$ac_ext <<_ACEOF
18248/* confdefs.h. */
18249_ACEOF
18250cat confdefs.h >>conftest.$ac_ext
18251cat >>conftest.$ac_ext <<_ACEOF
18252/* end confdefs.h. */
18253/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18254 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18255#define $ac_func innocuous_$ac_func
18256
18257/* System header to define __stub macros and hopefully few prototypes,
18258 which can conflict with char $ac_func (); below.
18259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18260 <limits.h> exists even on freestanding compilers. */
18261
18262#ifdef __STDC__
18263# include <limits.h>
18264#else
18265# include <assert.h>
18266#endif
18267
18268#undef $ac_func
18269
18270/* Override any GCC internal prototype to avoid an error.
18271 Use char because int might match the return type of a GCC
18272 builtin and then its argument prototype would still apply. */
18273#ifdef __cplusplus
18274extern "C"
18275#endif
18276char $ac_func ();
18277/* The GNU C library defines this for functions which it implements
18278 to always fail with ENOSYS. Some functions are actually named
18279 something starting with __ and the normal name is an alias. */
18280#if defined __stub_$ac_func || defined __stub___$ac_func
18281choke me
18282#endif
18283
18284int
18285main ()
18286{
18287return $ac_func ();
18288 ;
18289 return 0;
18290}
18291_ACEOF
18292rm -f conftest.$ac_objext conftest$ac_exeext
18293if { (ac_try="$ac_link"
18294case "(($ac_try" in
18295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18296 *) ac_try_echo=$ac_try;;
18297esac
18298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18299 (eval "$ac_link") 2>conftest.er1
18300 ac_status=$?
18301 grep -v '^ *+' conftest.er1 >conftest.err
18302 rm -f conftest.er1
18303 cat conftest.err >&5
18304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305 (exit $ac_status); } &&
18306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18307 { (case "(($ac_try" in
18308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18309 *) ac_try_echo=$ac_try;;
18310esac
18311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18312 (eval "$ac_try") 2>&5
18313 ac_status=$?
18314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18315 (exit $ac_status); }; } &&
18316 { ac_try='test -s conftest$ac_exeext'
18317 { (case "(($ac_try" in
18318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18319 *) ac_try_echo=$ac_try;;
18320esac
18321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18322 (eval "$ac_try") 2>&5
18323 ac_status=$?
18324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18325 (exit $ac_status); }; }; then
18326 eval "$as_ac_var=yes"
18327else
18328 echo "$as_me: failed program was:" >&5
18329sed 's/^/| /' conftest.$ac_ext >&5
18330
18331 eval "$as_ac_var=no"
18332fi
18333
18334rm -f core conftest.err conftest.$ac_objext \
18335 conftest$ac_exeext conftest.$ac_ext
18336fi
18337ac_res=`eval echo '${'$as_ac_var'}'`
18338 { echo "$as_me:$LINENO: result: $ac_res" >&5
18339echo "${ECHO_T}$ac_res" >&6; }
18340if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000018341 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018342#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000018343_ACEOF
18344
18345fi
18346done
18347
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018348
18349
18350
18351
18352
Reid Spencerb90645c2007-02-16 19:17:20 +000018353for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018354do
18355as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18356{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18357echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18358if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18359 echo $ECHO_N "(cached) $ECHO_C" >&6
18360else
18361 cat >conftest.$ac_ext <<_ACEOF
18362/* confdefs.h. */
18363_ACEOF
18364cat confdefs.h >>conftest.$ac_ext
18365cat >>conftest.$ac_ext <<_ACEOF
18366/* end confdefs.h. */
18367/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18369#define $ac_func innocuous_$ac_func
18370
18371/* System header to define __stub macros and hopefully few prototypes,
18372 which can conflict with char $ac_func (); below.
18373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18374 <limits.h> exists even on freestanding compilers. */
18375
18376#ifdef __STDC__
18377# include <limits.h>
18378#else
18379# include <assert.h>
18380#endif
18381
18382#undef $ac_func
18383
18384/* Override any GCC internal prototype to avoid an error.
18385 Use char because int might match the return type of a GCC
18386 builtin and then its argument prototype would still apply. */
18387#ifdef __cplusplus
18388extern "C"
18389#endif
18390char $ac_func ();
18391/* The GNU C library defines this for functions which it implements
18392 to always fail with ENOSYS. Some functions are actually named
18393 something starting with __ and the normal name is an alias. */
18394#if defined __stub_$ac_func || defined __stub___$ac_func
18395choke me
18396#endif
18397
18398int
18399main ()
18400{
18401return $ac_func ();
18402 ;
18403 return 0;
18404}
18405_ACEOF
18406rm -f conftest.$ac_objext conftest$ac_exeext
18407if { (ac_try="$ac_link"
18408case "(($ac_try" in
18409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18410 *) ac_try_echo=$ac_try;;
18411esac
18412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18413 (eval "$ac_link") 2>conftest.er1
18414 ac_status=$?
18415 grep -v '^ *+' conftest.er1 >conftest.err
18416 rm -f conftest.er1
18417 cat conftest.err >&5
18418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18419 (exit $ac_status); } &&
18420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18421 { (case "(($ac_try" in
18422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18423 *) ac_try_echo=$ac_try;;
18424esac
18425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18426 (eval "$ac_try") 2>&5
18427 ac_status=$?
18428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429 (exit $ac_status); }; } &&
18430 { ac_try='test -s conftest$ac_exeext'
18431 { (case "(($ac_try" in
18432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18433 *) ac_try_echo=$ac_try;;
18434esac
18435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18436 (eval "$ac_try") 2>&5
18437 ac_status=$?
18438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18439 (exit $ac_status); }; }; then
18440 eval "$as_ac_var=yes"
18441else
18442 echo "$as_me: failed program was:" >&5
18443sed 's/^/| /' conftest.$ac_ext >&5
18444
18445 eval "$as_ac_var=no"
18446fi
18447
18448rm -f core conftest.err conftest.$ac_objext \
18449 conftest$ac_exeext conftest.$ac_ext
18450fi
18451ac_res=`eval echo '${'$as_ac_var'}'`
18452 { echo "$as_me:$LINENO: result: $ac_res" >&5
18453echo "${ECHO_T}$ac_res" >&6; }
18454if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000018455 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018456#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000018457_ACEOF
18458
18459fi
18460done
18461
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018462
18463
18464
Reid Spencerb90645c2007-02-16 19:17:20 +000018465for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018466do
18467as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18468{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18469echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18470if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18471 echo $ECHO_N "(cached) $ECHO_C" >&6
18472else
18473 cat >conftest.$ac_ext <<_ACEOF
18474/* confdefs.h. */
18475_ACEOF
18476cat confdefs.h >>conftest.$ac_ext
18477cat >>conftest.$ac_ext <<_ACEOF
18478/* end confdefs.h. */
18479/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18480 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18481#define $ac_func innocuous_$ac_func
18482
18483/* System header to define __stub macros and hopefully few prototypes,
18484 which can conflict with char $ac_func (); below.
18485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18486 <limits.h> exists even on freestanding compilers. */
18487
18488#ifdef __STDC__
18489# include <limits.h>
18490#else
18491# include <assert.h>
18492#endif
18493
18494#undef $ac_func
18495
18496/* Override any GCC internal prototype to avoid an error.
18497 Use char because int might match the return type of a GCC
18498 builtin and then its argument prototype would still apply. */
18499#ifdef __cplusplus
18500extern "C"
18501#endif
18502char $ac_func ();
18503/* The GNU C library defines this for functions which it implements
18504 to always fail with ENOSYS. Some functions are actually named
18505 something starting with __ and the normal name is an alias. */
18506#if defined __stub_$ac_func || defined __stub___$ac_func
18507choke me
18508#endif
18509
18510int
18511main ()
18512{
18513return $ac_func ();
18514 ;
18515 return 0;
18516}
18517_ACEOF
18518rm -f conftest.$ac_objext conftest$ac_exeext
18519if { (ac_try="$ac_link"
18520case "(($ac_try" in
18521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18522 *) ac_try_echo=$ac_try;;
18523esac
18524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18525 (eval "$ac_link") 2>conftest.er1
18526 ac_status=$?
18527 grep -v '^ *+' conftest.er1 >conftest.err
18528 rm -f conftest.er1
18529 cat conftest.err >&5
18530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531 (exit $ac_status); } &&
18532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18533 { (case "(($ac_try" in
18534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18535 *) ac_try_echo=$ac_try;;
18536esac
18537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18538 (eval "$ac_try") 2>&5
18539 ac_status=$?
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); }; } &&
18542 { ac_try='test -s conftest$ac_exeext'
18543 { (case "(($ac_try" in
18544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18545 *) ac_try_echo=$ac_try;;
18546esac
18547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18548 (eval "$ac_try") 2>&5
18549 ac_status=$?
18550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18551 (exit $ac_status); }; }; then
18552 eval "$as_ac_var=yes"
18553else
18554 echo "$as_me: failed program was:" >&5
18555sed 's/^/| /' conftest.$ac_ext >&5
18556
18557 eval "$as_ac_var=no"
18558fi
18559
18560rm -f core conftest.err conftest.$ac_objext \
18561 conftest$ac_exeext conftest.$ac_ext
18562fi
18563ac_res=`eval echo '${'$as_ac_var'}'`
18564 { echo "$as_me:$LINENO: result: $ac_res" >&5
18565echo "${ECHO_T}$ac_res" >&6; }
18566if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000018567 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018568#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000018569_ACEOF
18570
18571fi
18572done
18573
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018574
18575
18576
18577
18578
Eric Christophere4291822010-04-16 05:14:21 +000018579
18580for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018581do
18582as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18583{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18584echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18585if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18586 echo $ECHO_N "(cached) $ECHO_C" >&6
18587else
18588 cat >conftest.$ac_ext <<_ACEOF
18589/* confdefs.h. */
18590_ACEOF
18591cat confdefs.h >>conftest.$ac_ext
18592cat >>conftest.$ac_ext <<_ACEOF
18593/* end confdefs.h. */
18594/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18595 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18596#define $ac_func innocuous_$ac_func
18597
18598/* System header to define __stub macros and hopefully few prototypes,
18599 which can conflict with char $ac_func (); below.
18600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18601 <limits.h> exists even on freestanding compilers. */
18602
18603#ifdef __STDC__
18604# include <limits.h>
18605#else
18606# include <assert.h>
18607#endif
18608
18609#undef $ac_func
18610
18611/* Override any GCC internal prototype to avoid an error.
18612 Use char because int might match the return type of a GCC
18613 builtin and then its argument prototype would still apply. */
18614#ifdef __cplusplus
18615extern "C"
18616#endif
18617char $ac_func ();
18618/* The GNU C library defines this for functions which it implements
18619 to always fail with ENOSYS. Some functions are actually named
18620 something starting with __ and the normal name is an alias. */
18621#if defined __stub_$ac_func || defined __stub___$ac_func
18622choke me
18623#endif
18624
18625int
18626main ()
18627{
18628return $ac_func ();
18629 ;
18630 return 0;
18631}
18632_ACEOF
18633rm -f conftest.$ac_objext conftest$ac_exeext
18634if { (ac_try="$ac_link"
18635case "(($ac_try" in
18636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18637 *) ac_try_echo=$ac_try;;
18638esac
18639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18640 (eval "$ac_link") 2>conftest.er1
18641 ac_status=$?
18642 grep -v '^ *+' conftest.er1 >conftest.err
18643 rm -f conftest.er1
18644 cat conftest.err >&5
18645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18646 (exit $ac_status); } &&
18647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18648 { (case "(($ac_try" in
18649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18650 *) ac_try_echo=$ac_try;;
18651esac
18652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18653 (eval "$ac_try") 2>&5
18654 ac_status=$?
18655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656 (exit $ac_status); }; } &&
18657 { ac_try='test -s conftest$ac_exeext'
18658 { (case "(($ac_try" in
18659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18660 *) ac_try_echo=$ac_try;;
18661esac
18662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18663 (eval "$ac_try") 2>&5
18664 ac_status=$?
18665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666 (exit $ac_status); }; }; then
18667 eval "$as_ac_var=yes"
18668else
18669 echo "$as_me: failed program was:" >&5
18670sed 's/^/| /' conftest.$ac_ext >&5
18671
18672 eval "$as_ac_var=no"
18673fi
18674
18675rm -f core conftest.err conftest.$ac_objext \
18676 conftest$ac_exeext conftest.$ac_ext
18677fi
18678ac_res=`eval echo '${'$as_ac_var'}'`
18679 { echo "$as_me:$LINENO: result: $ac_res" >&5
18680echo "${ECHO_T}$ac_res" >&6; }
18681if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000018682 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018683#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000018684_ACEOF
18685
18686fi
18687done
Reid Spencerdf3be822006-01-23 08:15:53 +000018688
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018689
18690
18691
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000018692for ac_func in strerror strerror_r setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018693do
18694as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18695{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18696echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18697if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18698 echo $ECHO_N "(cached) $ECHO_C" >&6
18699else
18700 cat >conftest.$ac_ext <<_ACEOF
18701/* confdefs.h. */
18702_ACEOF
18703cat confdefs.h >>conftest.$ac_ext
18704cat >>conftest.$ac_ext <<_ACEOF
18705/* end confdefs.h. */
18706/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18708#define $ac_func innocuous_$ac_func
18709
18710/* System header to define __stub macros and hopefully few prototypes,
18711 which can conflict with char $ac_func (); below.
18712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18713 <limits.h> exists even on freestanding compilers. */
18714
18715#ifdef __STDC__
18716# include <limits.h>
18717#else
18718# include <assert.h>
18719#endif
18720
18721#undef $ac_func
18722
18723/* Override any GCC internal prototype to avoid an error.
18724 Use char because int might match the return type of a GCC
18725 builtin and then its argument prototype would still apply. */
18726#ifdef __cplusplus
18727extern "C"
18728#endif
18729char $ac_func ();
18730/* The GNU C library defines this for functions which it implements
18731 to always fail with ENOSYS. Some functions are actually named
18732 something starting with __ and the normal name is an alias. */
18733#if defined __stub_$ac_func || defined __stub___$ac_func
18734choke me
18735#endif
18736
18737int
18738main ()
18739{
18740return $ac_func ();
18741 ;
18742 return 0;
18743}
18744_ACEOF
18745rm -f conftest.$ac_objext conftest$ac_exeext
18746if { (ac_try="$ac_link"
18747case "(($ac_try" in
18748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18749 *) ac_try_echo=$ac_try;;
18750esac
18751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18752 (eval "$ac_link") 2>conftest.er1
18753 ac_status=$?
18754 grep -v '^ *+' conftest.er1 >conftest.err
18755 rm -f conftest.er1
18756 cat conftest.err >&5
18757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758 (exit $ac_status); } &&
18759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
18769 { ac_try='test -s conftest$ac_exeext'
18770 { (case "(($ac_try" in
18771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18772 *) ac_try_echo=$ac_try;;
18773esac
18774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18775 (eval "$ac_try") 2>&5
18776 ac_status=$?
18777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18778 (exit $ac_status); }; }; then
18779 eval "$as_ac_var=yes"
18780else
18781 echo "$as_me: failed program was:" >&5
18782sed 's/^/| /' conftest.$ac_ext >&5
18783
18784 eval "$as_ac_var=no"
18785fi
18786
18787rm -f core conftest.err conftest.$ac_objext \
18788 conftest$ac_exeext conftest.$ac_ext
18789fi
18790ac_res=`eval echo '${'$as_ac_var'}'`
18791 { echo "$as_me:$LINENO: result: $ac_res" >&5
18792echo "${ECHO_T}$ac_res" >&6; }
18793if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000018794 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018795#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000018796_ACEOF
18797
18798fi
18799done
18800
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018801
18802
18803
18804
Chris Lattner511f11d2005-11-14 07:25:50 +000018805for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018806do
18807as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18808{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18809echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18810if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18811 echo $ECHO_N "(cached) $ECHO_C" >&6
18812else
18813 cat >conftest.$ac_ext <<_ACEOF
18814/* confdefs.h. */
18815_ACEOF
18816cat confdefs.h >>conftest.$ac_ext
18817cat >>conftest.$ac_ext <<_ACEOF
18818/* end confdefs.h. */
18819/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18820 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18821#define $ac_func innocuous_$ac_func
18822
18823/* System header to define __stub macros and hopefully few prototypes,
18824 which can conflict with char $ac_func (); below.
18825 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18826 <limits.h> exists even on freestanding compilers. */
18827
18828#ifdef __STDC__
18829# include <limits.h>
18830#else
18831# include <assert.h>
18832#endif
18833
18834#undef $ac_func
18835
18836/* Override any GCC internal prototype to avoid an error.
18837 Use char because int might match the return type of a GCC
18838 builtin and then its argument prototype would still apply. */
18839#ifdef __cplusplus
18840extern "C"
18841#endif
18842char $ac_func ();
18843/* The GNU C library defines this for functions which it implements
18844 to always fail with ENOSYS. Some functions are actually named
18845 something starting with __ and the normal name is an alias. */
18846#if defined __stub_$ac_func || defined __stub___$ac_func
18847choke me
18848#endif
18849
18850int
18851main ()
18852{
18853return $ac_func ();
18854 ;
18855 return 0;
18856}
18857_ACEOF
18858rm -f conftest.$ac_objext conftest$ac_exeext
18859if { (ac_try="$ac_link"
18860case "(($ac_try" in
18861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18862 *) ac_try_echo=$ac_try;;
18863esac
18864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18865 (eval "$ac_link") 2>conftest.er1
18866 ac_status=$?
18867 grep -v '^ *+' conftest.er1 >conftest.err
18868 rm -f conftest.er1
18869 cat conftest.err >&5
18870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18871 (exit $ac_status); } &&
18872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
18882 { ac_try='test -s conftest$ac_exeext'
18883 { (case "(($ac_try" in
18884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18885 *) ac_try_echo=$ac_try;;
18886esac
18887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18888 (eval "$ac_try") 2>&5
18889 ac_status=$?
18890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891 (exit $ac_status); }; }; then
18892 eval "$as_ac_var=yes"
18893else
18894 echo "$as_me: failed program was:" >&5
18895sed 's/^/| /' conftest.$ac_ext >&5
18896
18897 eval "$as_ac_var=no"
18898fi
18899
18900rm -f core conftest.err conftest.$ac_objext \
18901 conftest$ac_exeext conftest.$ac_ext
18902fi
18903ac_res=`eval echo '${'$as_ac_var'}'`
18904 { echo "$as_me:$LINENO: result: $ac_res" >&5
18905echo "${ECHO_T}$ac_res" >&6; }
18906if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018907 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018908#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018909_ACEOF
18910
18911fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018912done
John Criswell7a73b802003-06-30 21:59:07 +000018913
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018914
18915
18916
18917
Daniel Dunbar3e462932011-02-03 02:40:02 +000018918
18919for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018920do
18921as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18922{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18923echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18924if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18925 echo $ECHO_N "(cached) $ECHO_C" >&6
18926else
18927 cat >conftest.$ac_ext <<_ACEOF
18928/* confdefs.h. */
18929_ACEOF
18930cat confdefs.h >>conftest.$ac_ext
18931cat >>conftest.$ac_ext <<_ACEOF
18932/* end confdefs.h. */
18933/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18935#define $ac_func innocuous_$ac_func
18936
18937/* System header to define __stub macros and hopefully few prototypes,
18938 which can conflict with char $ac_func (); below.
18939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18940 <limits.h> exists even on freestanding compilers. */
18941
18942#ifdef __STDC__
18943# include <limits.h>
18944#else
18945# include <assert.h>
18946#endif
18947
18948#undef $ac_func
18949
18950/* Override any GCC internal prototype to avoid an error.
18951 Use char because int might match the return type of a GCC
18952 builtin and then its argument prototype would still apply. */
18953#ifdef __cplusplus
18954extern "C"
18955#endif
18956char $ac_func ();
18957/* The GNU C library defines this for functions which it implements
18958 to always fail with ENOSYS. Some functions are actually named
18959 something starting with __ and the normal name is an alias. */
18960#if defined __stub_$ac_func || defined __stub___$ac_func
18961choke me
18962#endif
18963
18964int
18965main ()
18966{
18967return $ac_func ();
18968 ;
18969 return 0;
18970}
18971_ACEOF
18972rm -f conftest.$ac_objext conftest$ac_exeext
18973if { (ac_try="$ac_link"
18974case "(($ac_try" in
18975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18976 *) ac_try_echo=$ac_try;;
18977esac
18978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18979 (eval "$ac_link") 2>conftest.er1
18980 ac_status=$?
18981 grep -v '^ *+' conftest.er1 >conftest.err
18982 rm -f conftest.er1
18983 cat conftest.err >&5
18984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18985 (exit $ac_status); } &&
18986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18987 { (case "(($ac_try" in
18988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18989 *) ac_try_echo=$ac_try;;
18990esac
18991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18992 (eval "$ac_try") 2>&5
18993 ac_status=$?
18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995 (exit $ac_status); }; } &&
18996 { ac_try='test -s conftest$ac_exeext'
18997 { (case "(($ac_try" in
18998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18999 *) ac_try_echo=$ac_try;;
19000esac
19001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19002 (eval "$ac_try") 2>&5
19003 ac_status=$?
19004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19005 (exit $ac_status); }; }; then
19006 eval "$as_ac_var=yes"
19007else
19008 echo "$as_me: failed program was:" >&5
19009sed 's/^/| /' conftest.$ac_ext >&5
19010
19011 eval "$as_ac_var=no"
19012fi
19013
19014rm -f core conftest.err conftest.$ac_objext \
19015 conftest$ac_exeext conftest.$ac_ext
19016fi
19017ac_res=`eval echo '${'$as_ac_var'}'`
19018 { echo "$as_me:$LINENO: result: $ac_res" >&5
19019echo "${ECHO_T}$ac_res" >&6; }
19020if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000019021 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019022#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000019023_ACEOF
19024
19025fi
19026done
19027
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019028{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
19029echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
19030if test "${llvm_cv_c_printf_a+set}" = set; then
19031 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019032else
Reid Spencer2706f8c2004-09-19 23:53:36 +000019033 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000019034ac_cpp='$CPP $CPPFLAGS'
19035ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19036ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19037ac_compiler_gnu=$ac_cv_c_compiler_gnu
19038
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019039 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000019040 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000019041else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019042 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000019043
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019044 /* confdefs.h. */
19045_ACEOF
19046cat confdefs.h >>conftest.$ac_ext
19047cat >>conftest.$ac_ext <<_ACEOF
19048/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000019049
John Criswella0137d32003-10-13 16:22:01 +000019050#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000019051#include <stdlib.h>
19052
John Criswella0137d32003-10-13 16:22:01 +000019053int
19054main ()
19055{
19056
Reid Spencer2706f8c2004-09-19 23:53:36 +000019057volatile double A, B;
19058char Buffer[100];
19059A = 1;
19060A /= 10.0;
19061sprintf(Buffer, "%a", A);
19062B = atof(Buffer);
19063if (A != B)
19064 return (1);
19065if (A != 0x1.999999999999ap-4)
19066 return (1);
19067return (0);
John Criswella0137d32003-10-13 16:22:01 +000019068 ;
19069 return 0;
19070}
19071_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019072rm -f conftest$ac_exeext
19073if { (ac_try="$ac_link"
19074case "(($ac_try" in
19075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19076 *) ac_try_echo=$ac_try;;
19077esac
19078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19079 (eval "$ac_link") 2>&5
19080 ac_status=$?
19081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19083 { (case "(($ac_try" in
19084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19085 *) ac_try_echo=$ac_try;;
19086esac
19087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19088 (eval "$ac_try") 2>&5
19089 ac_status=$?
19090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19091 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000019092 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000019093else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019094 echo "$as_me: program exited with status $ac_status" >&5
19095echo "$as_me: failed program was:" >&5
19096sed 's/^/| /' conftest.$ac_ext >&5
19097
19098( exit $ac_status )
19099llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000019100fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019101rm -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 +000019102fi
Reid Spencera773bd52006-08-04 18:18:08 +000019103
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019104
Reid Spencer2706f8c2004-09-19 23:53:36 +000019105 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000019106ac_cpp='$CPP $CPPFLAGS'
19107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19109ac_compiler_gnu=$ac_cv_c_compiler_gnu
19110
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019111fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019112{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
19113echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000019114 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000019115
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019116cat >>confdefs.h <<\_ACEOF
19117#define HAVE_PRINTF_A 1
19118_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000019119
Reid Spencer2706f8c2004-09-19 23:53:36 +000019120 fi
John Criswella0137d32003-10-13 16:22:01 +000019121
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019122
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019123{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
19124echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
19125if test "${ac_cv_func_rand48+set}" = set; then
19126 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019127else
Reid Spencera773bd52006-08-04 18:18:08 +000019128 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019129ac_cpp='$CXXCPP $CPPFLAGS'
19130ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19131ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19132ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19133
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019134 cat >conftest.$ac_ext <<_ACEOF
19135/* confdefs.h. */
19136_ACEOF
19137cat confdefs.h >>conftest.$ac_ext
19138cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019139/* end confdefs.h. */
19140#include <stdlib.h>
19141int
19142main ()
19143{
19144srand48(0);lrand48();drand48();
19145 ;
19146 return 0;
19147}
19148_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019149rm -f conftest.$ac_objext
19150if { (ac_try="$ac_compile"
19151case "(($ac_try" in
19152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19153 *) ac_try_echo=$ac_try;;
19154esac
19155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19156 (eval "$ac_compile") 2>conftest.er1
19157 ac_status=$?
19158 grep -v '^ *+' conftest.er1 >conftest.err
19159 rm -f conftest.er1
19160 cat conftest.err >&5
19161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19162 (exit $ac_status); } &&
19163 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19164 { (case "(($ac_try" in
19165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19166 *) ac_try_echo=$ac_try;;
19167esac
19168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19169 (eval "$ac_try") 2>&5
19170 ac_status=$?
19171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19172 (exit $ac_status); }; } &&
19173 { ac_try='test -s conftest.$ac_objext'
19174 { (case "(($ac_try" in
19175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19176 *) ac_try_echo=$ac_try;;
19177esac
19178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19179 (eval "$ac_try") 2>&5
19180 ac_status=$?
19181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19182 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019183 ac_cv_func_rand48=yes
19184else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019185 echo "$as_me: failed program was:" >&5
19186sed 's/^/| /' conftest.$ac_ext >&5
19187
19188 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019189fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019190
Reid Spencera773bd52006-08-04 18:18:08 +000019191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019192 ac_ext=c
19193ac_cpp='$CPP $CPPFLAGS'
19194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19196ac_compiler_gnu=$ac_cv_c_compiler_gnu
19197
19198fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019199{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19200echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019201
19202if test "$ac_cv_func_rand48" = "yes" ; then
19203
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019204cat >>confdefs.h <<\_ACEOF
19205#define HAVE_RAND48 1
19206_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019207
19208fi
John Criswell0021c312004-02-13 21:57:29 +000019209
19210
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000019211{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
19212echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
19213if test "${ac_cv_have_decl_strerror_s+set}" = set; then
19214 echo $ECHO_N "(cached) $ECHO_C" >&6
19215else
19216 cat >conftest.$ac_ext <<_ACEOF
19217/* confdefs.h. */
19218_ACEOF
19219cat confdefs.h >>conftest.$ac_ext
19220cat >>conftest.$ac_ext <<_ACEOF
19221/* end confdefs.h. */
19222$ac_includes_default
19223int
19224main ()
19225{
19226#ifndef strerror_s
19227 char *p = (char *) strerror_s;
19228 return !p;
19229#endif
19230
19231 ;
19232 return 0;
19233}
19234_ACEOF
19235rm -f conftest.$ac_objext
19236if { (ac_try="$ac_compile"
19237case "(($ac_try" in
19238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19239 *) ac_try_echo=$ac_try;;
19240esac
19241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19242 (eval "$ac_compile") 2>conftest.er1
19243 ac_status=$?
19244 grep -v '^ *+' conftest.er1 >conftest.err
19245 rm -f conftest.er1
19246 cat conftest.err >&5
19247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248 (exit $ac_status); } &&
19249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19250 { (case "(($ac_try" in
19251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19252 *) ac_try_echo=$ac_try;;
19253esac
19254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19255 (eval "$ac_try") 2>&5
19256 ac_status=$?
19257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258 (exit $ac_status); }; } &&
19259 { ac_try='test -s conftest.$ac_objext'
19260 { (case "(($ac_try" in
19261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19262 *) ac_try_echo=$ac_try;;
19263esac
19264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19265 (eval "$ac_try") 2>&5
19266 ac_status=$?
19267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268 (exit $ac_status); }; }; then
19269 ac_cv_have_decl_strerror_s=yes
19270else
19271 echo "$as_me: failed program was:" >&5
19272sed 's/^/| /' conftest.$ac_ext >&5
19273
19274 ac_cv_have_decl_strerror_s=no
19275fi
19276
19277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19278fi
19279{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19280echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19281if test $ac_cv_have_decl_strerror_s = yes; then
19282
19283cat >>confdefs.h <<_ACEOF
19284#define HAVE_DECL_STRERROR_S 1
19285_ACEOF
19286
19287
19288else
19289 cat >>confdefs.h <<_ACEOF
19290#define HAVE_DECL_STRERROR_S 0
19291_ACEOF
19292
19293
19294fi
19295
19296
19297
NAKAMURA Takumi1f6832a2011-02-05 15:11:53 +000019298if test "$llvm_cv_os_type" = "MingW" ; then
19299 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19300echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19301if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19302 echo $ECHO_N "(cached) $ECHO_C" >&6
19303else
19304 ac_check_lib_save_LIBS=$LIBS
19305LIBS="-lgcc $LIBS"
19306cat >conftest.$ac_ext <<_ACEOF
19307/* confdefs.h. */
19308_ACEOF
19309cat confdefs.h >>conftest.$ac_ext
19310cat >>conftest.$ac_ext <<_ACEOF
19311/* end confdefs.h. */
19312
19313/* Override any GCC internal prototype to avoid an error.
19314 Use char because int might match the return type of a GCC
19315 builtin and then its argument prototype would still apply. */
19316#ifdef __cplusplus
19317extern "C"
19318#endif
19319char _alloca ();
19320int
19321main ()
19322{
19323return _alloca ();
19324 ;
19325 return 0;
19326}
19327_ACEOF
19328rm -f conftest.$ac_objext conftest$ac_exeext
19329if { (ac_try="$ac_link"
19330case "(($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_link") 2>conftest.er1
19336 ac_status=$?
19337 grep -v '^ *+' conftest.er1 >conftest.err
19338 rm -f conftest.er1
19339 cat conftest.err >&5
19340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19341 (exit $ac_status); } &&
19342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19343 { (case "(($ac_try" in
19344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19345 *) ac_try_echo=$ac_try;;
19346esac
19347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19348 (eval "$ac_try") 2>&5
19349 ac_status=$?
19350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19351 (exit $ac_status); }; } &&
19352 { ac_try='test -s conftest$ac_exeext'
19353 { (case "(($ac_try" in
19354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19355 *) ac_try_echo=$ac_try;;
19356esac
19357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19358 (eval "$ac_try") 2>&5
19359 ac_status=$?
19360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361 (exit $ac_status); }; }; then
19362 ac_cv_lib_gcc__alloca=yes
19363else
19364 echo "$as_me: failed program was:" >&5
19365sed 's/^/| /' conftest.$ac_ext >&5
19366
19367 ac_cv_lib_gcc__alloca=no
19368fi
19369
19370rm -f core conftest.err conftest.$ac_objext \
19371 conftest$ac_exeext conftest.$ac_ext
19372LIBS=$ac_check_lib_save_LIBS
19373fi
19374{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19375echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19376if test $ac_cv_lib_gcc__alloca = yes; then
19377
19378cat >>confdefs.h <<\_ACEOF
19379#define HAVE__ALLOCA 1
19380_ACEOF
19381
19382fi
19383
19384 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19385echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19386if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19387 echo $ECHO_N "(cached) $ECHO_C" >&6
19388else
19389 ac_check_lib_save_LIBS=$LIBS
19390LIBS="-lgcc $LIBS"
19391cat >conftest.$ac_ext <<_ACEOF
19392/* confdefs.h. */
19393_ACEOF
19394cat confdefs.h >>conftest.$ac_ext
19395cat >>conftest.$ac_ext <<_ACEOF
19396/* end confdefs.h. */
19397
19398/* Override any GCC internal prototype to avoid an error.
19399 Use char because int might match the return type of a GCC
19400 builtin and then its argument prototype would still apply. */
19401#ifdef __cplusplus
19402extern "C"
19403#endif
19404char __alloca ();
19405int
19406main ()
19407{
19408return __alloca ();
19409 ;
19410 return 0;
19411}
19412_ACEOF
19413rm -f conftest.$ac_objext conftest$ac_exeext
19414if { (ac_try="$ac_link"
19415case "(($ac_try" in
19416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19417 *) ac_try_echo=$ac_try;;
19418esac
19419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19420 (eval "$ac_link") 2>conftest.er1
19421 ac_status=$?
19422 grep -v '^ *+' conftest.er1 >conftest.err
19423 rm -f conftest.er1
19424 cat conftest.err >&5
19425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426 (exit $ac_status); } &&
19427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19428 { (case "(($ac_try" in
19429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19430 *) ac_try_echo=$ac_try;;
19431esac
19432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19433 (eval "$ac_try") 2>&5
19434 ac_status=$?
19435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436 (exit $ac_status); }; } &&
19437 { ac_try='test -s conftest$ac_exeext'
19438 { (case "(($ac_try" in
19439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19440 *) ac_try_echo=$ac_try;;
19441esac
19442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19443 (eval "$ac_try") 2>&5
19444 ac_status=$?
19445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19446 (exit $ac_status); }; }; then
19447 ac_cv_lib_gcc___alloca=yes
19448else
19449 echo "$as_me: failed program was:" >&5
19450sed 's/^/| /' conftest.$ac_ext >&5
19451
19452 ac_cv_lib_gcc___alloca=no
19453fi
19454
19455rm -f core conftest.err conftest.$ac_objext \
19456 conftest$ac_exeext conftest.$ac_ext
19457LIBS=$ac_check_lib_save_LIBS
19458fi
19459{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19460echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19461if test $ac_cv_lib_gcc___alloca = yes; then
19462
19463cat >>confdefs.h <<\_ACEOF
19464#define HAVE___ALLOCA 1
19465_ACEOF
19466
19467fi
19468
19469 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19470echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19471if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19472 echo $ECHO_N "(cached) $ECHO_C" >&6
19473else
19474 ac_check_lib_save_LIBS=$LIBS
19475LIBS="-lgcc $LIBS"
19476cat >conftest.$ac_ext <<_ACEOF
19477/* confdefs.h. */
19478_ACEOF
19479cat confdefs.h >>conftest.$ac_ext
19480cat >>conftest.$ac_ext <<_ACEOF
19481/* end confdefs.h. */
19482
19483/* Override any GCC internal prototype to avoid an error.
19484 Use char because int might match the return type of a GCC
19485 builtin and then its argument prototype would still apply. */
19486#ifdef __cplusplus
19487extern "C"
19488#endif
19489char __chkstk ();
19490int
19491main ()
19492{
19493return __chkstk ();
19494 ;
19495 return 0;
19496}
19497_ACEOF
19498rm -f conftest.$ac_objext conftest$ac_exeext
19499if { (ac_try="$ac_link"
19500case "(($ac_try" in
19501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19502 *) ac_try_echo=$ac_try;;
19503esac
19504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19505 (eval "$ac_link") 2>conftest.er1
19506 ac_status=$?
19507 grep -v '^ *+' conftest.er1 >conftest.err
19508 rm -f conftest.er1
19509 cat conftest.err >&5
19510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511 (exit $ac_status); } &&
19512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19513 { (case "(($ac_try" in
19514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19515 *) ac_try_echo=$ac_try;;
19516esac
19517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19518 (eval "$ac_try") 2>&5
19519 ac_status=$?
19520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521 (exit $ac_status); }; } &&
19522 { ac_try='test -s conftest$ac_exeext'
19523 { (case "(($ac_try" in
19524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19525 *) ac_try_echo=$ac_try;;
19526esac
19527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19528 (eval "$ac_try") 2>&5
19529 ac_status=$?
19530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19531 (exit $ac_status); }; }; then
19532 ac_cv_lib_gcc___chkstk=yes
19533else
19534 echo "$as_me: failed program was:" >&5
19535sed 's/^/| /' conftest.$ac_ext >&5
19536
19537 ac_cv_lib_gcc___chkstk=no
19538fi
19539
19540rm -f core conftest.err conftest.$ac_objext \
19541 conftest$ac_exeext conftest.$ac_ext
19542LIBS=$ac_check_lib_save_LIBS
19543fi
19544{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19545echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19546if test $ac_cv_lib_gcc___chkstk = yes; then
19547
19548cat >>confdefs.h <<\_ACEOF
19549#define HAVE___CHKSTK 1
19550_ACEOF
19551
19552fi
19553
19554 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19555echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19556if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19557 echo $ECHO_N "(cached) $ECHO_C" >&6
19558else
19559 ac_check_lib_save_LIBS=$LIBS
19560LIBS="-lgcc $LIBS"
19561cat >conftest.$ac_ext <<_ACEOF
19562/* confdefs.h. */
19563_ACEOF
19564cat confdefs.h >>conftest.$ac_ext
19565cat >>conftest.$ac_ext <<_ACEOF
19566/* end confdefs.h. */
19567
19568/* Override any GCC internal prototype to avoid an error.
19569 Use char because int might match the return type of a GCC
19570 builtin and then its argument prototype would still apply. */
19571#ifdef __cplusplus
19572extern "C"
19573#endif
19574char ___chkstk ();
19575int
19576main ()
19577{
19578return ___chkstk ();
19579 ;
19580 return 0;
19581}
19582_ACEOF
19583rm -f conftest.$ac_objext conftest$ac_exeext
19584if { (ac_try="$ac_link"
19585case "(($ac_try" in
19586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19587 *) ac_try_echo=$ac_try;;
19588esac
19589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19590 (eval "$ac_link") 2>conftest.er1
19591 ac_status=$?
19592 grep -v '^ *+' conftest.er1 >conftest.err
19593 rm -f conftest.er1
19594 cat conftest.err >&5
19595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19596 (exit $ac_status); } &&
19597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19598 { (case "(($ac_try" in
19599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19600 *) ac_try_echo=$ac_try;;
19601esac
19602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19603 (eval "$ac_try") 2>&5
19604 ac_status=$?
19605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19606 (exit $ac_status); }; } &&
19607 { ac_try='test -s conftest$ac_exeext'
19608 { (case "(($ac_try" in
19609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19610 *) ac_try_echo=$ac_try;;
19611esac
19612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19613 (eval "$ac_try") 2>&5
19614 ac_status=$?
19615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616 (exit $ac_status); }; }; then
19617 ac_cv_lib_gcc____chkstk=yes
19618else
19619 echo "$as_me: failed program was:" >&5
19620sed 's/^/| /' conftest.$ac_ext >&5
19621
19622 ac_cv_lib_gcc____chkstk=no
19623fi
19624
19625rm -f core conftest.err conftest.$ac_objext \
19626 conftest$ac_exeext conftest.$ac_ext
19627LIBS=$ac_check_lib_save_LIBS
19628fi
19629{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19630echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19631if test $ac_cv_lib_gcc____chkstk = yes; then
19632
19633cat >>confdefs.h <<\_ACEOF
19634#define HAVE____CHKSTK 1
19635_ACEOF
19636
19637fi
19638
19639
19640 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19641echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19642if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19643 echo $ECHO_N "(cached) $ECHO_C" >&6
19644else
19645 ac_check_lib_save_LIBS=$LIBS
19646LIBS="-lgcc $LIBS"
19647cat >conftest.$ac_ext <<_ACEOF
19648/* confdefs.h. */
19649_ACEOF
19650cat confdefs.h >>conftest.$ac_ext
19651cat >>conftest.$ac_ext <<_ACEOF
19652/* end confdefs.h. */
19653
19654/* Override any GCC internal prototype to avoid an error.
19655 Use char because int might match the return type of a GCC
19656 builtin and then its argument prototype would still apply. */
19657#ifdef __cplusplus
19658extern "C"
19659#endif
19660char __ashldi3 ();
19661int
19662main ()
19663{
19664return __ashldi3 ();
19665 ;
19666 return 0;
19667}
19668_ACEOF
19669rm -f conftest.$ac_objext conftest$ac_exeext
19670if { (ac_try="$ac_link"
19671case "(($ac_try" in
19672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19673 *) ac_try_echo=$ac_try;;
19674esac
19675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19676 (eval "$ac_link") 2>conftest.er1
19677 ac_status=$?
19678 grep -v '^ *+' conftest.er1 >conftest.err
19679 rm -f conftest.er1
19680 cat conftest.err >&5
19681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682 (exit $ac_status); } &&
19683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19684 { (case "(($ac_try" in
19685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19686 *) ac_try_echo=$ac_try;;
19687esac
19688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19689 (eval "$ac_try") 2>&5
19690 ac_status=$?
19691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692 (exit $ac_status); }; } &&
19693 { ac_try='test -s conftest$ac_exeext'
19694 { (case "(($ac_try" in
19695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19696 *) ac_try_echo=$ac_try;;
19697esac
19698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19699 (eval "$ac_try") 2>&5
19700 ac_status=$?
19701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702 (exit $ac_status); }; }; then
19703 ac_cv_lib_gcc___ashldi3=yes
19704else
19705 echo "$as_me: failed program was:" >&5
19706sed 's/^/| /' conftest.$ac_ext >&5
19707
19708 ac_cv_lib_gcc___ashldi3=no
19709fi
19710
19711rm -f core conftest.err conftest.$ac_objext \
19712 conftest$ac_exeext conftest.$ac_ext
19713LIBS=$ac_check_lib_save_LIBS
19714fi
19715{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19716echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19717if test $ac_cv_lib_gcc___ashldi3 = yes; then
19718
19719cat >>confdefs.h <<\_ACEOF
19720#define HAVE___ASHLDI3 1
19721_ACEOF
19722
19723fi
19724
19725 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19726echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19727if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19728 echo $ECHO_N "(cached) $ECHO_C" >&6
19729else
19730 ac_check_lib_save_LIBS=$LIBS
19731LIBS="-lgcc $LIBS"
19732cat >conftest.$ac_ext <<_ACEOF
19733/* confdefs.h. */
19734_ACEOF
19735cat confdefs.h >>conftest.$ac_ext
19736cat >>conftest.$ac_ext <<_ACEOF
19737/* end confdefs.h. */
19738
19739/* Override any GCC internal prototype to avoid an error.
19740 Use char because int might match the return type of a GCC
19741 builtin and then its argument prototype would still apply. */
19742#ifdef __cplusplus
19743extern "C"
19744#endif
19745char __ashrdi3 ();
19746int
19747main ()
19748{
19749return __ashrdi3 ();
19750 ;
19751 return 0;
19752}
19753_ACEOF
19754rm -f conftest.$ac_objext conftest$ac_exeext
19755if { (ac_try="$ac_link"
19756case "(($ac_try" in
19757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19758 *) ac_try_echo=$ac_try;;
19759esac
19760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19761 (eval "$ac_link") 2>conftest.er1
19762 ac_status=$?
19763 grep -v '^ *+' conftest.er1 >conftest.err
19764 rm -f conftest.er1
19765 cat conftest.err >&5
19766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19767 (exit $ac_status); } &&
19768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19769 { (case "(($ac_try" in
19770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19771 *) ac_try_echo=$ac_try;;
19772esac
19773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19774 (eval "$ac_try") 2>&5
19775 ac_status=$?
19776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19777 (exit $ac_status); }; } &&
19778 { ac_try='test -s conftest$ac_exeext'
19779 { (case "(($ac_try" in
19780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19781 *) ac_try_echo=$ac_try;;
19782esac
19783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19784 (eval "$ac_try") 2>&5
19785 ac_status=$?
19786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19787 (exit $ac_status); }; }; then
19788 ac_cv_lib_gcc___ashrdi3=yes
19789else
19790 echo "$as_me: failed program was:" >&5
19791sed 's/^/| /' conftest.$ac_ext >&5
19792
19793 ac_cv_lib_gcc___ashrdi3=no
19794fi
19795
19796rm -f core conftest.err conftest.$ac_objext \
19797 conftest$ac_exeext conftest.$ac_ext
19798LIBS=$ac_check_lib_save_LIBS
19799fi
19800{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19801echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19802if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19803
19804cat >>confdefs.h <<\_ACEOF
19805#define HAVE___ASHRDI3 1
19806_ACEOF
19807
19808fi
19809
19810 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19811echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19812if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19813 echo $ECHO_N "(cached) $ECHO_C" >&6
19814else
19815 ac_check_lib_save_LIBS=$LIBS
19816LIBS="-lgcc $LIBS"
19817cat >conftest.$ac_ext <<_ACEOF
19818/* confdefs.h. */
19819_ACEOF
19820cat confdefs.h >>conftest.$ac_ext
19821cat >>conftest.$ac_ext <<_ACEOF
19822/* end confdefs.h. */
19823
19824/* Override any GCC internal prototype to avoid an error.
19825 Use char because int might match the return type of a GCC
19826 builtin and then its argument prototype would still apply. */
19827#ifdef __cplusplus
19828extern "C"
19829#endif
19830char __divdi3 ();
19831int
19832main ()
19833{
19834return __divdi3 ();
19835 ;
19836 return 0;
19837}
19838_ACEOF
19839rm -f conftest.$ac_objext conftest$ac_exeext
19840if { (ac_try="$ac_link"
19841case "(($ac_try" in
19842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19843 *) ac_try_echo=$ac_try;;
19844esac
19845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19846 (eval "$ac_link") 2>conftest.er1
19847 ac_status=$?
19848 grep -v '^ *+' conftest.er1 >conftest.err
19849 rm -f conftest.er1
19850 cat conftest.err >&5
19851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852 (exit $ac_status); } &&
19853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19854 { (case "(($ac_try" in
19855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19856 *) ac_try_echo=$ac_try;;
19857esac
19858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19859 (eval "$ac_try") 2>&5
19860 ac_status=$?
19861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862 (exit $ac_status); }; } &&
19863 { ac_try='test -s conftest$ac_exeext'
19864 { (case "(($ac_try" in
19865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19866 *) ac_try_echo=$ac_try;;
19867esac
19868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19869 (eval "$ac_try") 2>&5
19870 ac_status=$?
19871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872 (exit $ac_status); }; }; then
19873 ac_cv_lib_gcc___divdi3=yes
19874else
19875 echo "$as_me: failed program was:" >&5
19876sed 's/^/| /' conftest.$ac_ext >&5
19877
19878 ac_cv_lib_gcc___divdi3=no
19879fi
19880
19881rm -f core conftest.err conftest.$ac_objext \
19882 conftest$ac_exeext conftest.$ac_ext
19883LIBS=$ac_check_lib_save_LIBS
19884fi
19885{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19886echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19887if test $ac_cv_lib_gcc___divdi3 = yes; then
19888
19889cat >>confdefs.h <<\_ACEOF
19890#define HAVE___DIVDI3 1
19891_ACEOF
19892
19893fi
19894
19895 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19896echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19897if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19898 echo $ECHO_N "(cached) $ECHO_C" >&6
19899else
19900 ac_check_lib_save_LIBS=$LIBS
19901LIBS="-lgcc $LIBS"
19902cat >conftest.$ac_ext <<_ACEOF
19903/* confdefs.h. */
19904_ACEOF
19905cat confdefs.h >>conftest.$ac_ext
19906cat >>conftest.$ac_ext <<_ACEOF
19907/* end confdefs.h. */
19908
19909/* Override any GCC internal prototype to avoid an error.
19910 Use char because int might match the return type of a GCC
19911 builtin and then its argument prototype would still apply. */
19912#ifdef __cplusplus
19913extern "C"
19914#endif
19915char __fixdfdi ();
19916int
19917main ()
19918{
19919return __fixdfdi ();
19920 ;
19921 return 0;
19922}
19923_ACEOF
19924rm -f conftest.$ac_objext conftest$ac_exeext
19925if { (ac_try="$ac_link"
19926case "(($ac_try" in
19927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19928 *) ac_try_echo=$ac_try;;
19929esac
19930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19931 (eval "$ac_link") 2>conftest.er1
19932 ac_status=$?
19933 grep -v '^ *+' conftest.er1 >conftest.err
19934 rm -f conftest.er1
19935 cat conftest.err >&5
19936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937 (exit $ac_status); } &&
19938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19939 { (case "(($ac_try" in
19940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19941 *) ac_try_echo=$ac_try;;
19942esac
19943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19944 (eval "$ac_try") 2>&5
19945 ac_status=$?
19946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19947 (exit $ac_status); }; } &&
19948 { ac_try='test -s conftest$ac_exeext'
19949 { (case "(($ac_try" in
19950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19951 *) ac_try_echo=$ac_try;;
19952esac
19953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19954 (eval "$ac_try") 2>&5
19955 ac_status=$?
19956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19957 (exit $ac_status); }; }; then
19958 ac_cv_lib_gcc___fixdfdi=yes
19959else
19960 echo "$as_me: failed program was:" >&5
19961sed 's/^/| /' conftest.$ac_ext >&5
19962
19963 ac_cv_lib_gcc___fixdfdi=no
19964fi
19965
19966rm -f core conftest.err conftest.$ac_objext \
19967 conftest$ac_exeext conftest.$ac_ext
19968LIBS=$ac_check_lib_save_LIBS
19969fi
19970{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
19971echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
19972if test $ac_cv_lib_gcc___fixdfdi = yes; then
19973
19974cat >>confdefs.h <<\_ACEOF
19975#define HAVE___FIXDFDI 1
19976_ACEOF
19977
19978fi
19979
19980 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
19981echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
19982if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
19983 echo $ECHO_N "(cached) $ECHO_C" >&6
19984else
19985 ac_check_lib_save_LIBS=$LIBS
19986LIBS="-lgcc $LIBS"
19987cat >conftest.$ac_ext <<_ACEOF
19988/* confdefs.h. */
19989_ACEOF
19990cat confdefs.h >>conftest.$ac_ext
19991cat >>conftest.$ac_ext <<_ACEOF
19992/* end confdefs.h. */
19993
19994/* Override any GCC internal prototype to avoid an error.
19995 Use char because int might match the return type of a GCC
19996 builtin and then its argument prototype would still apply. */
19997#ifdef __cplusplus
19998extern "C"
19999#endif
20000char __fixsfdi ();
20001int
20002main ()
20003{
20004return __fixsfdi ();
20005 ;
20006 return 0;
20007}
20008_ACEOF
20009rm -f conftest.$ac_objext conftest$ac_exeext
20010if { (ac_try="$ac_link"
20011case "(($ac_try" in
20012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20013 *) ac_try_echo=$ac_try;;
20014esac
20015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20016 (eval "$ac_link") 2>conftest.er1
20017 ac_status=$?
20018 grep -v '^ *+' conftest.er1 >conftest.err
20019 rm -f conftest.er1
20020 cat conftest.err >&5
20021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022 (exit $ac_status); } &&
20023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20024 { (case "(($ac_try" in
20025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20026 *) ac_try_echo=$ac_try;;
20027esac
20028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20029 (eval "$ac_try") 2>&5
20030 ac_status=$?
20031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032 (exit $ac_status); }; } &&
20033 { ac_try='test -s conftest$ac_exeext'
20034 { (case "(($ac_try" in
20035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20036 *) ac_try_echo=$ac_try;;
20037esac
20038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20039 (eval "$ac_try") 2>&5
20040 ac_status=$?
20041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20042 (exit $ac_status); }; }; then
20043 ac_cv_lib_gcc___fixsfdi=yes
20044else
20045 echo "$as_me: failed program was:" >&5
20046sed 's/^/| /' conftest.$ac_ext >&5
20047
20048 ac_cv_lib_gcc___fixsfdi=no
20049fi
20050
20051rm -f core conftest.err conftest.$ac_objext \
20052 conftest$ac_exeext conftest.$ac_ext
20053LIBS=$ac_check_lib_save_LIBS
20054fi
20055{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
20056echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
20057if test $ac_cv_lib_gcc___fixsfdi = yes; then
20058
20059cat >>confdefs.h <<\_ACEOF
20060#define HAVE___FIXSFDI 1
20061_ACEOF
20062
20063fi
20064
20065 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
20066echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
20067if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
20068 echo $ECHO_N "(cached) $ECHO_C" >&6
20069else
20070 ac_check_lib_save_LIBS=$LIBS
20071LIBS="-lgcc $LIBS"
20072cat >conftest.$ac_ext <<_ACEOF
20073/* confdefs.h. */
20074_ACEOF
20075cat confdefs.h >>conftest.$ac_ext
20076cat >>conftest.$ac_ext <<_ACEOF
20077/* end confdefs.h. */
20078
20079/* Override any GCC internal prototype to avoid an error.
20080 Use char because int might match the return type of a GCC
20081 builtin and then its argument prototype would still apply. */
20082#ifdef __cplusplus
20083extern "C"
20084#endif
20085char __floatdidf ();
20086int
20087main ()
20088{
20089return __floatdidf ();
20090 ;
20091 return 0;
20092}
20093_ACEOF
20094rm -f conftest.$ac_objext conftest$ac_exeext
20095if { (ac_try="$ac_link"
20096case "(($ac_try" in
20097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20098 *) ac_try_echo=$ac_try;;
20099esac
20100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20101 (eval "$ac_link") 2>conftest.er1
20102 ac_status=$?
20103 grep -v '^ *+' conftest.er1 >conftest.err
20104 rm -f conftest.er1
20105 cat conftest.err >&5
20106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20107 (exit $ac_status); } &&
20108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20109 { (case "(($ac_try" in
20110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20111 *) ac_try_echo=$ac_try;;
20112esac
20113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20114 (eval "$ac_try") 2>&5
20115 ac_status=$?
20116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117 (exit $ac_status); }; } &&
20118 { ac_try='test -s conftest$ac_exeext'
20119 { (case "(($ac_try" in
20120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20121 *) ac_try_echo=$ac_try;;
20122esac
20123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20124 (eval "$ac_try") 2>&5
20125 ac_status=$?
20126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127 (exit $ac_status); }; }; then
20128 ac_cv_lib_gcc___floatdidf=yes
20129else
20130 echo "$as_me: failed program was:" >&5
20131sed 's/^/| /' conftest.$ac_ext >&5
20132
20133 ac_cv_lib_gcc___floatdidf=no
20134fi
20135
20136rm -f core conftest.err conftest.$ac_objext \
20137 conftest$ac_exeext conftest.$ac_ext
20138LIBS=$ac_check_lib_save_LIBS
20139fi
20140{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
20141echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
20142if test $ac_cv_lib_gcc___floatdidf = yes; then
20143
20144cat >>confdefs.h <<\_ACEOF
20145#define HAVE___FLOATDIDF 1
20146_ACEOF
20147
20148fi
20149
20150 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
20151echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
20152if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
20153 echo $ECHO_N "(cached) $ECHO_C" >&6
20154else
20155 ac_check_lib_save_LIBS=$LIBS
20156LIBS="-lgcc $LIBS"
20157cat >conftest.$ac_ext <<_ACEOF
20158/* confdefs.h. */
20159_ACEOF
20160cat confdefs.h >>conftest.$ac_ext
20161cat >>conftest.$ac_ext <<_ACEOF
20162/* end confdefs.h. */
20163
20164/* Override any GCC internal prototype to avoid an error.
20165 Use char because int might match the return type of a GCC
20166 builtin and then its argument prototype would still apply. */
20167#ifdef __cplusplus
20168extern "C"
20169#endif
20170char __lshrdi3 ();
20171int
20172main ()
20173{
20174return __lshrdi3 ();
20175 ;
20176 return 0;
20177}
20178_ACEOF
20179rm -f conftest.$ac_objext conftest$ac_exeext
20180if { (ac_try="$ac_link"
20181case "(($ac_try" in
20182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20183 *) ac_try_echo=$ac_try;;
20184esac
20185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20186 (eval "$ac_link") 2>conftest.er1
20187 ac_status=$?
20188 grep -v '^ *+' conftest.er1 >conftest.err
20189 rm -f conftest.er1
20190 cat conftest.err >&5
20191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20192 (exit $ac_status); } &&
20193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20194 { (case "(($ac_try" in
20195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20196 *) ac_try_echo=$ac_try;;
20197esac
20198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20199 (eval "$ac_try") 2>&5
20200 ac_status=$?
20201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20202 (exit $ac_status); }; } &&
20203 { ac_try='test -s conftest$ac_exeext'
20204 { (case "(($ac_try" in
20205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20206 *) ac_try_echo=$ac_try;;
20207esac
20208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20209 (eval "$ac_try") 2>&5
20210 ac_status=$?
20211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212 (exit $ac_status); }; }; then
20213 ac_cv_lib_gcc___lshrdi3=yes
20214else
20215 echo "$as_me: failed program was:" >&5
20216sed 's/^/| /' conftest.$ac_ext >&5
20217
20218 ac_cv_lib_gcc___lshrdi3=no
20219fi
20220
20221rm -f core conftest.err conftest.$ac_objext \
20222 conftest$ac_exeext conftest.$ac_ext
20223LIBS=$ac_check_lib_save_LIBS
20224fi
20225{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20226echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20227if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20228
20229cat >>confdefs.h <<\_ACEOF
20230#define HAVE___LSHRDI3 1
20231_ACEOF
20232
20233fi
20234
20235 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20236echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20237if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20238 echo $ECHO_N "(cached) $ECHO_C" >&6
20239else
20240 ac_check_lib_save_LIBS=$LIBS
20241LIBS="-lgcc $LIBS"
20242cat >conftest.$ac_ext <<_ACEOF
20243/* confdefs.h. */
20244_ACEOF
20245cat confdefs.h >>conftest.$ac_ext
20246cat >>conftest.$ac_ext <<_ACEOF
20247/* end confdefs.h. */
20248
20249/* Override any GCC internal prototype to avoid an error.
20250 Use char because int might match the return type of a GCC
20251 builtin and then its argument prototype would still apply. */
20252#ifdef __cplusplus
20253extern "C"
20254#endif
20255char __moddi3 ();
20256int
20257main ()
20258{
20259return __moddi3 ();
20260 ;
20261 return 0;
20262}
20263_ACEOF
20264rm -f conftest.$ac_objext conftest$ac_exeext
20265if { (ac_try="$ac_link"
20266case "(($ac_try" in
20267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20268 *) ac_try_echo=$ac_try;;
20269esac
20270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20271 (eval "$ac_link") 2>conftest.er1
20272 ac_status=$?
20273 grep -v '^ *+' conftest.er1 >conftest.err
20274 rm -f conftest.er1
20275 cat conftest.err >&5
20276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20277 (exit $ac_status); } &&
20278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20279 { (case "(($ac_try" in
20280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20281 *) ac_try_echo=$ac_try;;
20282esac
20283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20284 (eval "$ac_try") 2>&5
20285 ac_status=$?
20286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287 (exit $ac_status); }; } &&
20288 { ac_try='test -s conftest$ac_exeext'
20289 { (case "(($ac_try" in
20290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20291 *) ac_try_echo=$ac_try;;
20292esac
20293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20294 (eval "$ac_try") 2>&5
20295 ac_status=$?
20296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20297 (exit $ac_status); }; }; then
20298 ac_cv_lib_gcc___moddi3=yes
20299else
20300 echo "$as_me: failed program was:" >&5
20301sed 's/^/| /' conftest.$ac_ext >&5
20302
20303 ac_cv_lib_gcc___moddi3=no
20304fi
20305
20306rm -f core conftest.err conftest.$ac_objext \
20307 conftest$ac_exeext conftest.$ac_ext
20308LIBS=$ac_check_lib_save_LIBS
20309fi
20310{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20311echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20312if test $ac_cv_lib_gcc___moddi3 = yes; then
20313
20314cat >>confdefs.h <<\_ACEOF
20315#define HAVE___MODDI3 1
20316_ACEOF
20317
20318fi
20319
20320 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20321echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20322if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20323 echo $ECHO_N "(cached) $ECHO_C" >&6
20324else
20325 ac_check_lib_save_LIBS=$LIBS
20326LIBS="-lgcc $LIBS"
20327cat >conftest.$ac_ext <<_ACEOF
20328/* confdefs.h. */
20329_ACEOF
20330cat confdefs.h >>conftest.$ac_ext
20331cat >>conftest.$ac_ext <<_ACEOF
20332/* end confdefs.h. */
20333
20334/* Override any GCC internal prototype to avoid an error.
20335 Use char because int might match the return type of a GCC
20336 builtin and then its argument prototype would still apply. */
20337#ifdef __cplusplus
20338extern "C"
20339#endif
20340char __udivdi3 ();
20341int
20342main ()
20343{
20344return __udivdi3 ();
20345 ;
20346 return 0;
20347}
20348_ACEOF
20349rm -f conftest.$ac_objext conftest$ac_exeext
20350if { (ac_try="$ac_link"
20351case "(($ac_try" in
20352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20353 *) ac_try_echo=$ac_try;;
20354esac
20355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20356 (eval "$ac_link") 2>conftest.er1
20357 ac_status=$?
20358 grep -v '^ *+' conftest.er1 >conftest.err
20359 rm -f conftest.er1
20360 cat conftest.err >&5
20361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362 (exit $ac_status); } &&
20363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20364 { (case "(($ac_try" in
20365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20366 *) ac_try_echo=$ac_try;;
20367esac
20368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20369 (eval "$ac_try") 2>&5
20370 ac_status=$?
20371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372 (exit $ac_status); }; } &&
20373 { ac_try='test -s conftest$ac_exeext'
20374 { (case "(($ac_try" in
20375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20376 *) ac_try_echo=$ac_try;;
20377esac
20378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20379 (eval "$ac_try") 2>&5
20380 ac_status=$?
20381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382 (exit $ac_status); }; }; then
20383 ac_cv_lib_gcc___udivdi3=yes
20384else
20385 echo "$as_me: failed program was:" >&5
20386sed 's/^/| /' conftest.$ac_ext >&5
20387
20388 ac_cv_lib_gcc___udivdi3=no
20389fi
20390
20391rm -f core conftest.err conftest.$ac_objext \
20392 conftest$ac_exeext conftest.$ac_ext
20393LIBS=$ac_check_lib_save_LIBS
20394fi
20395{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20396echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20397if test $ac_cv_lib_gcc___udivdi3 = yes; then
20398
20399cat >>confdefs.h <<\_ACEOF
20400#define HAVE___UDIVDI3 1
20401_ACEOF
20402
20403fi
20404
20405 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20406echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20407if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20408 echo $ECHO_N "(cached) $ECHO_C" >&6
20409else
20410 ac_check_lib_save_LIBS=$LIBS
20411LIBS="-lgcc $LIBS"
20412cat >conftest.$ac_ext <<_ACEOF
20413/* confdefs.h. */
20414_ACEOF
20415cat confdefs.h >>conftest.$ac_ext
20416cat >>conftest.$ac_ext <<_ACEOF
20417/* end confdefs.h. */
20418
20419/* Override any GCC internal prototype to avoid an error.
20420 Use char because int might match the return type of a GCC
20421 builtin and then its argument prototype would still apply. */
20422#ifdef __cplusplus
20423extern "C"
20424#endif
20425char __umoddi3 ();
20426int
20427main ()
20428{
20429return __umoddi3 ();
20430 ;
20431 return 0;
20432}
20433_ACEOF
20434rm -f conftest.$ac_objext conftest$ac_exeext
20435if { (ac_try="$ac_link"
20436case "(($ac_try" in
20437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20438 *) ac_try_echo=$ac_try;;
20439esac
20440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20441 (eval "$ac_link") 2>conftest.er1
20442 ac_status=$?
20443 grep -v '^ *+' conftest.er1 >conftest.err
20444 rm -f conftest.er1
20445 cat conftest.err >&5
20446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20447 (exit $ac_status); } &&
20448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20449 { (case "(($ac_try" in
20450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20451 *) ac_try_echo=$ac_try;;
20452esac
20453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20454 (eval "$ac_try") 2>&5
20455 ac_status=$?
20456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457 (exit $ac_status); }; } &&
20458 { ac_try='test -s conftest$ac_exeext'
20459 { (case "(($ac_try" in
20460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20461 *) ac_try_echo=$ac_try;;
20462esac
20463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20464 (eval "$ac_try") 2>&5
20465 ac_status=$?
20466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467 (exit $ac_status); }; }; then
20468 ac_cv_lib_gcc___umoddi3=yes
20469else
20470 echo "$as_me: failed program was:" >&5
20471sed 's/^/| /' conftest.$ac_ext >&5
20472
20473 ac_cv_lib_gcc___umoddi3=no
20474fi
20475
20476rm -f core conftest.err conftest.$ac_objext \
20477 conftest$ac_exeext conftest.$ac_ext
20478LIBS=$ac_check_lib_save_LIBS
20479fi
20480{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20481echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20482if test $ac_cv_lib_gcc___umoddi3 = yes; then
20483
20484cat >>confdefs.h <<\_ACEOF
20485#define HAVE___UMODDI3 1
20486_ACEOF
20487
20488fi
20489
20490
20491 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20492echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20493if test "${ac_cv_lib_gcc___main+set}" = set; then
20494 echo $ECHO_N "(cached) $ECHO_C" >&6
20495else
20496 ac_check_lib_save_LIBS=$LIBS
20497LIBS="-lgcc $LIBS"
20498cat >conftest.$ac_ext <<_ACEOF
20499/* confdefs.h. */
20500_ACEOF
20501cat confdefs.h >>conftest.$ac_ext
20502cat >>conftest.$ac_ext <<_ACEOF
20503/* end confdefs.h. */
20504
20505/* Override any GCC internal prototype to avoid an error.
20506 Use char because int might match the return type of a GCC
20507 builtin and then its argument prototype would still apply. */
20508#ifdef __cplusplus
20509extern "C"
20510#endif
20511char __main ();
20512int
20513main ()
20514{
20515return __main ();
20516 ;
20517 return 0;
20518}
20519_ACEOF
20520rm -f conftest.$ac_objext conftest$ac_exeext
20521if { (ac_try="$ac_link"
20522case "(($ac_try" in
20523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20524 *) ac_try_echo=$ac_try;;
20525esac
20526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20527 (eval "$ac_link") 2>conftest.er1
20528 ac_status=$?
20529 grep -v '^ *+' conftest.er1 >conftest.err
20530 rm -f conftest.er1
20531 cat conftest.err >&5
20532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20533 (exit $ac_status); } &&
20534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20535 { (case "(($ac_try" in
20536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20537 *) ac_try_echo=$ac_try;;
20538esac
20539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20540 (eval "$ac_try") 2>&5
20541 ac_status=$?
20542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543 (exit $ac_status); }; } &&
20544 { ac_try='test -s conftest$ac_exeext'
20545 { (case "(($ac_try" in
20546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20547 *) ac_try_echo=$ac_try;;
20548esac
20549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20550 (eval "$ac_try") 2>&5
20551 ac_status=$?
20552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553 (exit $ac_status); }; }; then
20554 ac_cv_lib_gcc___main=yes
20555else
20556 echo "$as_me: failed program was:" >&5
20557sed 's/^/| /' conftest.$ac_ext >&5
20558
20559 ac_cv_lib_gcc___main=no
20560fi
20561
20562rm -f core conftest.err conftest.$ac_objext \
20563 conftest$ac_exeext conftest.$ac_ext
20564LIBS=$ac_check_lib_save_LIBS
20565fi
20566{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20567echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20568if test $ac_cv_lib_gcc___main = yes; then
20569
20570cat >>confdefs.h <<\_ACEOF
20571#define HAVE___MAIN 1
20572_ACEOF
20573
20574fi
20575
20576 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20577echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20578if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20579 echo $ECHO_N "(cached) $ECHO_C" >&6
20580else
20581 ac_check_lib_save_LIBS=$LIBS
20582LIBS="-lgcc $LIBS"
20583cat >conftest.$ac_ext <<_ACEOF
20584/* confdefs.h. */
20585_ACEOF
20586cat confdefs.h >>conftest.$ac_ext
20587cat >>conftest.$ac_ext <<_ACEOF
20588/* end confdefs.h. */
20589
20590/* Override any GCC internal prototype to avoid an error.
20591 Use char because int might match the return type of a GCC
20592 builtin and then its argument prototype would still apply. */
20593#ifdef __cplusplus
20594extern "C"
20595#endif
20596char __cmpdi2 ();
20597int
20598main ()
20599{
20600return __cmpdi2 ();
20601 ;
20602 return 0;
20603}
20604_ACEOF
20605rm -f conftest.$ac_objext conftest$ac_exeext
20606if { (ac_try="$ac_link"
20607case "(($ac_try" in
20608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20609 *) ac_try_echo=$ac_try;;
20610esac
20611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20612 (eval "$ac_link") 2>conftest.er1
20613 ac_status=$?
20614 grep -v '^ *+' conftest.er1 >conftest.err
20615 rm -f conftest.er1
20616 cat conftest.err >&5
20617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20618 (exit $ac_status); } &&
20619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20620 { (case "(($ac_try" in
20621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20622 *) ac_try_echo=$ac_try;;
20623esac
20624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20625 (eval "$ac_try") 2>&5
20626 ac_status=$?
20627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628 (exit $ac_status); }; } &&
20629 { ac_try='test -s conftest$ac_exeext'
20630 { (case "(($ac_try" in
20631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20632 *) ac_try_echo=$ac_try;;
20633esac
20634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20635 (eval "$ac_try") 2>&5
20636 ac_status=$?
20637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638 (exit $ac_status); }; }; then
20639 ac_cv_lib_gcc___cmpdi2=yes
20640else
20641 echo "$as_me: failed program was:" >&5
20642sed 's/^/| /' conftest.$ac_ext >&5
20643
20644 ac_cv_lib_gcc___cmpdi2=no
20645fi
20646
20647rm -f core conftest.err conftest.$ac_objext \
20648 conftest$ac_exeext conftest.$ac_ext
20649LIBS=$ac_check_lib_save_LIBS
20650fi
20651{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20652echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20653if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20654
20655cat >>confdefs.h <<\_ACEOF
20656#define HAVE___CMPDI2 1
20657_ACEOF
20658
20659fi
20660
20661fi
20662
NAKAMURA Takumi6073a052011-05-01 13:29:49 +000020663if test "$llvm_cv_os_type" = "MingW" ; then
20664 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20665echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20666 cat >conftest.$ac_ext <<_ACEOF
20667#include <windows.h>
20668#include <imagehlp.h>
20669extern void foo(PENUMLOADED_MODULES_CALLBACK);
20670extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20671_ACEOF
20672rm -f conftest.$ac_objext
20673if { (ac_try="$ac_compile"
20674case "(($ac_try" in
20675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20676 *) ac_try_echo=$ac_try;;
20677esac
20678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20679 (eval "$ac_compile") 2>conftest.er1
20680 ac_status=$?
20681 grep -v '^ *+' conftest.er1 >conftest.err
20682 rm -f conftest.er1
20683 cat conftest.err >&5
20684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20685 (exit $ac_status); } &&
20686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20687 { (case "(($ac_try" in
20688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20689 *) ac_try_echo=$ac_try;;
20690esac
20691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20692 (eval "$ac_try") 2>&5
20693 ac_status=$?
20694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695 (exit $ac_status); }; } &&
20696 { ac_try='test -s conftest.$ac_objext'
20697 { (case "(($ac_try" in
20698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20699 *) ac_try_echo=$ac_try;;
20700esac
20701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20702 (eval "$ac_try") 2>&5
20703 ac_status=$?
20704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705 (exit $ac_status); }; }; then
20706
20707 { echo "$as_me:$LINENO: result: yes" >&5
20708echo "${ECHO_T}yes" >&6; }
20709 llvm_cv_win32_elmcb_pcstr="PCSTR"
20710
20711else
20712 echo "$as_me: failed program was:" >&5
20713sed 's/^/| /' conftest.$ac_ext >&5
20714
20715
20716 { echo "$as_me:$LINENO: result: no" >&5
20717echo "${ECHO_T}no" >&6; }
20718 llvm_cv_win32_elmcb_pcstr="PSTR"
20719
20720fi
20721
20722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20723
20724cat >>confdefs.h <<_ACEOF
20725#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20726_ACEOF
20727
20728fi
20729
Torok Edwin871384f2010-01-26 08:50:50 +000020730
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020731{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20732echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20733if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20734 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020735else
Reid Spencera773bd52006-08-04 18:18:08 +000020736 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000020737ac_cpp='$CXXCPP $CPPFLAGS'
20738ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20739ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20740ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20741
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020742 cat >conftest.$ac_ext <<_ACEOF
20743/* confdefs.h. */
20744_ACEOF
20745cat confdefs.h >>conftest.$ac_ext
20746cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020747/* end confdefs.h. */
20748#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000020749int
20750main ()
20751{
20752float f; isnan(f);
20753 ;
20754 return 0;
20755}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020756_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020757rm -f conftest.$ac_objext
20758if { (ac_try="$ac_compile"
20759case "(($ac_try" in
20760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20761 *) ac_try_echo=$ac_try;;
20762esac
20763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20764 (eval "$ac_compile") 2>conftest.er1
20765 ac_status=$?
20766 grep -v '^ *+' conftest.er1 >conftest.err
20767 rm -f conftest.er1
20768 cat conftest.err >&5
20769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770 (exit $ac_status); } &&
20771 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20772 { (case "(($ac_try" in
20773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20774 *) ac_try_echo=$ac_try;;
20775esac
20776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20777 (eval "$ac_try") 2>&5
20778 ac_status=$?
20779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20780 (exit $ac_status); }; } &&
20781 { ac_try='test -s conftest.$ac_objext'
20782 { (case "(($ac_try" in
20783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20784 *) ac_try_echo=$ac_try;;
20785esac
20786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20787 (eval "$ac_try") 2>&5
20788 ac_status=$?
20789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20790 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020791 ac_cv_func_isnan_in_math_h=yes
20792else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020793 echo "$as_me: failed program was:" >&5
20794sed 's/^/| /' conftest.$ac_ext >&5
20795
20796 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020797fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020798
Reid Spencera773bd52006-08-04 18:18:08 +000020799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020800 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020801ac_cpp='$CPP $CPPFLAGS'
20802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20804ac_compiler_gnu=$ac_cv_c_compiler_gnu
20805
20806fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020807{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20808echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020809
20810
20811if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020812
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020813cat >>confdefs.h <<\_ACEOF
20814#define HAVE_ISNAN_IN_MATH_H 1
20815_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020816
Reid Spencerabec8f92004-10-27 23:03:44 +000020817fi
20818
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020819{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20820echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20821if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20822 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020823else
Reid Spencera773bd52006-08-04 18:18:08 +000020824 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020825ac_cpp='$CXXCPP $CPPFLAGS'
20826ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20827ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20828ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20829
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020830 cat >conftest.$ac_ext <<_ACEOF
20831/* confdefs.h. */
20832_ACEOF
20833cat confdefs.h >>conftest.$ac_ext
20834cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020835/* end confdefs.h. */
20836#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000020837int
20838main ()
20839{
20840float f; isnan(f);
20841 ;
20842 return 0;
20843}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020844_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020845rm -f conftest.$ac_objext
20846if { (ac_try="$ac_compile"
20847case "(($ac_try" in
20848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20849 *) ac_try_echo=$ac_try;;
20850esac
20851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20852 (eval "$ac_compile") 2>conftest.er1
20853 ac_status=$?
20854 grep -v '^ *+' conftest.er1 >conftest.err
20855 rm -f conftest.er1
20856 cat conftest.err >&5
20857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20858 (exit $ac_status); } &&
20859 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20860 { (case "(($ac_try" in
20861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20862 *) ac_try_echo=$ac_try;;
20863esac
20864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20865 (eval "$ac_try") 2>&5
20866 ac_status=$?
20867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20868 (exit $ac_status); }; } &&
20869 { ac_try='test -s conftest.$ac_objext'
20870 { (case "(($ac_try" in
20871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20872 *) ac_try_echo=$ac_try;;
20873esac
20874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20875 (eval "$ac_try") 2>&5
20876 ac_status=$?
20877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20878 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020879 ac_cv_func_isnan_in_cmath=yes
20880else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020881 echo "$as_me: failed program was:" >&5
20882sed 's/^/| /' conftest.$ac_ext >&5
20883
20884 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020885fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020886
Reid Spencera773bd52006-08-04 18:18:08 +000020887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020888 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020889ac_cpp='$CPP $CPPFLAGS'
20890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20892ac_compiler_gnu=$ac_cv_c_compiler_gnu
20893
20894fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020895{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20896echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020897
20898if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020899
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020900cat >>confdefs.h <<\_ACEOF
20901#define HAVE_ISNAN_IN_CMATH 1
20902_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020903
Reid Spencerabec8f92004-10-27 23:03:44 +000020904fi
20905
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020906{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20907echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20908if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20909 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020910else
Reid Spencera773bd52006-08-04 18:18:08 +000020911 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020912ac_cpp='$CXXCPP $CPPFLAGS'
20913ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20914ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20915ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20916
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020917 cat >conftest.$ac_ext <<_ACEOF
20918/* confdefs.h. */
20919_ACEOF
20920cat confdefs.h >>conftest.$ac_ext
20921cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020922/* end confdefs.h. */
20923#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000020924int
20925main ()
20926{
20927float f; std::isnan(f);
20928 ;
20929 return 0;
20930}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020931_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020932rm -f conftest.$ac_objext
20933if { (ac_try="$ac_compile"
20934case "(($ac_try" in
20935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20936 *) ac_try_echo=$ac_try;;
20937esac
20938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20939 (eval "$ac_compile") 2>conftest.er1
20940 ac_status=$?
20941 grep -v '^ *+' conftest.er1 >conftest.err
20942 rm -f conftest.er1
20943 cat conftest.err >&5
20944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945 (exit $ac_status); } &&
20946 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20947 { (case "(($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_try") 2>&5
20953 ac_status=$?
20954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20955 (exit $ac_status); }; } &&
20956 { ac_try='test -s conftest.$ac_objext'
20957 { (case "(($ac_try" in
20958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20959 *) ac_try_echo=$ac_try;;
20960esac
20961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20962 (eval "$ac_try") 2>&5
20963 ac_status=$?
20964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20965 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020966 ac_cv_func_std_isnan_in_cmath=yes
20967else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020968 echo "$as_me: failed program was:" >&5
20969sed 's/^/| /' conftest.$ac_ext >&5
20970
20971 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020972fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020973
Reid Spencera773bd52006-08-04 18:18:08 +000020974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020975 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020976ac_cpp='$CPP $CPPFLAGS'
20977ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20978ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20979ac_compiler_gnu=$ac_cv_c_compiler_gnu
20980
20981fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020982{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20983echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020984
20985if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020986
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020987cat >>confdefs.h <<\_ACEOF
20988#define HAVE_STD_ISNAN_IN_CMATH 1
20989_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020990
Reid Spencerabec8f92004-10-27 23:03:44 +000020991fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020992
20993
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020994{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20995echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
20996if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20997 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000020998else
Reid Spencera773bd52006-08-04 18:18:08 +000020999 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000021000ac_cpp='$CXXCPP $CPPFLAGS'
21001ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21002ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21003ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21004
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021005 cat >conftest.$ac_ext <<_ACEOF
21006/* confdefs.h. */
21007_ACEOF
21008cat confdefs.h >>conftest.$ac_ext
21009cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021010/* end confdefs.h. */
21011#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000021012int
21013main ()
21014{
21015float f; isinf(f);
21016 ;
21017 return 0;
21018}
Brian Gaeke52a551d2004-07-21 03:14:12 +000021019_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021020rm -f conftest.$ac_objext
21021if { (ac_try="$ac_compile"
21022case "(($ac_try" in
21023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21024 *) ac_try_echo=$ac_try;;
21025esac
21026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21027 (eval "$ac_compile") 2>conftest.er1
21028 ac_status=$?
21029 grep -v '^ *+' conftest.er1 >conftest.err
21030 rm -f conftest.er1
21031 cat conftest.err >&5
21032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21033 (exit $ac_status); } &&
21034 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21035 { (case "(($ac_try" in
21036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21037 *) ac_try_echo=$ac_try;;
21038esac
21039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21040 (eval "$ac_try") 2>&5
21041 ac_status=$?
21042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21043 (exit $ac_status); }; } &&
21044 { ac_try='test -s conftest.$ac_objext'
21045 { (case "(($ac_try" in
21046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21047 *) ac_try_echo=$ac_try;;
21048esac
21049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21050 (eval "$ac_try") 2>&5
21051 ac_status=$?
21052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21053 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000021054 ac_cv_func_isinf_in_math_h=yes
21055else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021056 echo "$as_me: failed program was:" >&5
21057sed 's/^/| /' conftest.$ac_ext >&5
21058
21059 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000021060fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021061
Reid Spencera773bd52006-08-04 18:18:08 +000021062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000021063 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000021064ac_cpp='$CPP $CPPFLAGS'
21065ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21066ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21067ac_compiler_gnu=$ac_cv_c_compiler_gnu
21068
21069fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021070{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21071echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000021072
21073if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000021074
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021075cat >>confdefs.h <<\_ACEOF
21076#define HAVE_ISINF_IN_MATH_H 1
21077_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021078
Reid Spencerabec8f92004-10-27 23:03:44 +000021079fi
21080
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021081{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21082echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
21083if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21084 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000021085else
Reid Spencera773bd52006-08-04 18:18:08 +000021086 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000021087ac_cpp='$CXXCPP $CPPFLAGS'
21088ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21089ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21090ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21091
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021092 cat >conftest.$ac_ext <<_ACEOF
21093/* confdefs.h. */
21094_ACEOF
21095cat confdefs.h >>conftest.$ac_ext
21096cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021097/* end confdefs.h. */
21098#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000021099int
21100main ()
21101{
21102float f; isinf(f);
21103 ;
21104 return 0;
21105}
Brian Gaeke52a551d2004-07-21 03:14:12 +000021106_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021107rm -f conftest.$ac_objext
21108if { (ac_try="$ac_compile"
21109case "(($ac_try" in
21110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21111 *) ac_try_echo=$ac_try;;
21112esac
21113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21114 (eval "$ac_compile") 2>conftest.er1
21115 ac_status=$?
21116 grep -v '^ *+' conftest.er1 >conftest.err
21117 rm -f conftest.er1
21118 cat conftest.err >&5
21119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21120 (exit $ac_status); } &&
21121 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21122 { (case "(($ac_try" in
21123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21124 *) ac_try_echo=$ac_try;;
21125esac
21126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21127 (eval "$ac_try") 2>&5
21128 ac_status=$?
21129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21130 (exit $ac_status); }; } &&
21131 { ac_try='test -s conftest.$ac_objext'
21132 { (case "(($ac_try" in
21133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21134 *) ac_try_echo=$ac_try;;
21135esac
21136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21137 (eval "$ac_try") 2>&5
21138 ac_status=$?
21139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21140 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000021141 ac_cv_func_isinf_in_cmath=yes
21142else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021143 echo "$as_me: failed program was:" >&5
21144sed 's/^/| /' conftest.$ac_ext >&5
21145
21146 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000021147fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021148
Reid Spencera773bd52006-08-04 18:18:08 +000021149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000021150 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000021151ac_cpp='$CPP $CPPFLAGS'
21152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21154ac_compiler_gnu=$ac_cv_c_compiler_gnu
21155
21156fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021157{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21158echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000021159
21160if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000021161
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021162cat >>confdefs.h <<\_ACEOF
21163#define HAVE_ISINF_IN_CMATH 1
21164_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021165
Reid Spencerabec8f92004-10-27 23:03:44 +000021166fi
21167
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021168{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21169echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
21170if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21171 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000021172else
Reid Spencera773bd52006-08-04 18:18:08 +000021173 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000021174ac_cpp='$CXXCPP $CPPFLAGS'
21175ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21176ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21177ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21178
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021179 cat >conftest.$ac_ext <<_ACEOF
21180/* confdefs.h. */
21181_ACEOF
21182cat confdefs.h >>conftest.$ac_ext
21183cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021184/* end confdefs.h. */
21185#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000021186int
21187main ()
21188{
21189float f; std::isinf(f)}
21190 ;
21191 return 0;
21192}
Brian Gaeke52a551d2004-07-21 03:14:12 +000021193_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021194rm -f conftest.$ac_objext
21195if { (ac_try="$ac_compile"
21196case "(($ac_try" in
21197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21198 *) ac_try_echo=$ac_try;;
21199esac
21200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21201 (eval "$ac_compile") 2>conftest.er1
21202 ac_status=$?
21203 grep -v '^ *+' conftest.er1 >conftest.err
21204 rm -f conftest.er1
21205 cat conftest.err >&5
21206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21207 (exit $ac_status); } &&
21208 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21209 { (case "(($ac_try" in
21210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21211 *) ac_try_echo=$ac_try;;
21212esac
21213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21214 (eval "$ac_try") 2>&5
21215 ac_status=$?
21216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21217 (exit $ac_status); }; } &&
21218 { ac_try='test -s conftest.$ac_objext'
21219 { (case "(($ac_try" in
21220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21221 *) ac_try_echo=$ac_try;;
21222esac
21223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21224 (eval "$ac_try") 2>&5
21225 ac_status=$?
21226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21227 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000021228 ac_cv_func_std_isinf_in_cmath=yes
21229else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021230 echo "$as_me: failed program was:" >&5
21231sed 's/^/| /' conftest.$ac_ext >&5
21232
21233 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000021234fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021235
Reid Spencera773bd52006-08-04 18:18:08 +000021236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000021237 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000021238ac_cpp='$CPP $CPPFLAGS'
21239ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21240ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21241ac_compiler_gnu=$ac_cv_c_compiler_gnu
21242
21243fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021244{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21245echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000021246
21247if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000021248
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021249cat >>confdefs.h <<\_ACEOF
21250#define HAVE_STD_ISINF_IN_CMATH 1
21251_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021252
Reid Spencerabec8f92004-10-27 23:03:44 +000021253fi
21254
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021255{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21256echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21257if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21258 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000021259else
Reid Spencera773bd52006-08-04 18:18:08 +000021260 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000021261ac_cpp='$CXXCPP $CPPFLAGS'
21262ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21263ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21264ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21265
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021266 cat >conftest.$ac_ext <<_ACEOF
21267/* confdefs.h. */
21268_ACEOF
21269cat confdefs.h >>conftest.$ac_ext
21270cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000021271/* end confdefs.h. */
21272#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000021273int
21274main ()
21275{
21276float f; finite(f);
21277 ;
21278 return 0;
21279}
Brian Gaeked59a6472004-07-21 03:33:58 +000021280_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021281rm -f conftest.$ac_objext
21282if { (ac_try="$ac_compile"
21283case "(($ac_try" in
21284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21285 *) ac_try_echo=$ac_try;;
21286esac
21287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21288 (eval "$ac_compile") 2>conftest.er1
21289 ac_status=$?
21290 grep -v '^ *+' conftest.er1 >conftest.err
21291 rm -f conftest.er1
21292 cat conftest.err >&5
21293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21294 (exit $ac_status); } &&
21295 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21296 { (case "(($ac_try" in
21297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21298 *) ac_try_echo=$ac_try;;
21299esac
21300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21301 (eval "$ac_try") 2>&5
21302 ac_status=$?
21303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21304 (exit $ac_status); }; } &&
21305 { ac_try='test -s conftest.$ac_objext'
21306 { (case "(($ac_try" in
21307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21308 *) ac_try_echo=$ac_try;;
21309esac
21310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21311 (eval "$ac_try") 2>&5
21312 ac_status=$?
21313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21314 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000021315 ac_cv_func_finite_in_ieeefp_h=yes
21316else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021317 echo "$as_me: failed program was:" >&5
21318sed 's/^/| /' conftest.$ac_ext >&5
21319
21320 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000021321fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021322
Reid Spencera773bd52006-08-04 18:18:08 +000021323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000021324 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000021325ac_cpp='$CPP $CPPFLAGS'
21326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21328ac_compiler_gnu=$ac_cv_c_compiler_gnu
21329
21330fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021331{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21332echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000021333
Brian Gaeke6802b552004-10-28 05:06:45 +000021334if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000021335
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021336cat >>confdefs.h <<\_ACEOF
21337#define HAVE_FINITE_IN_IEEEFP_H 1
21338_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000021339
Reid Spencerabec8f92004-10-27 23:03:44 +000021340fi
21341
21342
21343
Reid Spencer30fe5262007-01-20 07:48:49 +000021344if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000021345
21346
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021347for ac_header in stdlib.h unistd.h
21348do
21349as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21350if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21351 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21352echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21353if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21354 echo $ECHO_N "(cached) $ECHO_C" >&6
21355fi
21356ac_res=`eval echo '${'$as_ac_Header'}'`
21357 { echo "$as_me:$LINENO: result: $ac_res" >&5
21358echo "${ECHO_T}$ac_res" >&6; }
21359else
21360 # Is the header compilable?
21361{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21362echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21363cat >conftest.$ac_ext <<_ACEOF
21364/* confdefs.h. */
21365_ACEOF
21366cat confdefs.h >>conftest.$ac_ext
21367cat >>conftest.$ac_ext <<_ACEOF
21368/* end confdefs.h. */
21369$ac_includes_default
21370#include <$ac_header>
21371_ACEOF
21372rm -f conftest.$ac_objext
21373if { (ac_try="$ac_compile"
21374case "(($ac_try" in
21375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21376 *) ac_try_echo=$ac_try;;
21377esac
21378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21379 (eval "$ac_compile") 2>conftest.er1
21380 ac_status=$?
21381 grep -v '^ *+' conftest.er1 >conftest.err
21382 rm -f conftest.er1
21383 cat conftest.err >&5
21384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385 (exit $ac_status); } &&
21386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21387 { (case "(($ac_try" in
21388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21389 *) ac_try_echo=$ac_try;;
21390esac
21391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21392 (eval "$ac_try") 2>&5
21393 ac_status=$?
21394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21395 (exit $ac_status); }; } &&
21396 { ac_try='test -s conftest.$ac_objext'
21397 { (case "(($ac_try" in
21398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21399 *) ac_try_echo=$ac_try;;
21400esac
21401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21402 (eval "$ac_try") 2>&5
21403 ac_status=$?
21404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405 (exit $ac_status); }; }; then
21406 ac_header_compiler=yes
21407else
21408 echo "$as_me: failed program was:" >&5
21409sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021410
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021411 ac_header_compiler=no
21412fi
21413
21414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21415{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21416echo "${ECHO_T}$ac_header_compiler" >&6; }
21417
21418# Is the header present?
21419{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21420echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21421cat >conftest.$ac_ext <<_ACEOF
21422/* confdefs.h. */
21423_ACEOF
21424cat confdefs.h >>conftest.$ac_ext
21425cat >>conftest.$ac_ext <<_ACEOF
21426/* end confdefs.h. */
21427#include <$ac_header>
21428_ACEOF
21429if { (ac_try="$ac_cpp conftest.$ac_ext"
21430case "(($ac_try" in
21431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21432 *) ac_try_echo=$ac_try;;
21433esac
21434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21435 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21436 ac_status=$?
21437 grep -v '^ *+' conftest.er1 >conftest.err
21438 rm -f conftest.er1
21439 cat conftest.err >&5
21440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21441 (exit $ac_status); } >/dev/null; then
21442 if test -s conftest.err; then
21443 ac_cpp_err=$ac_c_preproc_warn_flag
21444 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21445 else
21446 ac_cpp_err=
21447 fi
21448else
21449 ac_cpp_err=yes
21450fi
21451if test -z "$ac_cpp_err"; then
21452 ac_header_preproc=yes
21453else
21454 echo "$as_me: failed program was:" >&5
21455sed 's/^/| /' conftest.$ac_ext >&5
21456
21457 ac_header_preproc=no
21458fi
21459
21460rm -f conftest.err conftest.$ac_ext
21461{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21462echo "${ECHO_T}$ac_header_preproc" >&6; }
21463
21464# So? What about this header?
21465case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21466 yes:no: )
21467 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21468echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21469 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21470echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21471 ac_header_preproc=yes
21472 ;;
21473 no:yes:* )
21474 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21475echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21476 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21477echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21478 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21479echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21480 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21481echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21483echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21484 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21485echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21486 ( cat <<\_ASBOX
21487## ----------------------------------- ##
21488## Report this to llvmbugs@cs.uiuc.edu ##
21489## ----------------------------------- ##
21490_ASBOX
21491 ) | sed "s/^/$as_me: WARNING: /" >&2
21492 ;;
21493esac
21494{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21495echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21496if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21497 echo $ECHO_N "(cached) $ECHO_C" >&6
21498else
21499 eval "$as_ac_Header=\$ac_header_preproc"
21500fi
21501ac_res=`eval echo '${'$as_ac_Header'}'`
21502 { echo "$as_me:$LINENO: result: $ac_res" >&5
21503echo "${ECHO_T}$ac_res" >&6; }
21504
21505fi
21506if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000021507 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021508#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000021509_ACEOF
21510
21511fi
21512
21513done
21514
21515
21516for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021517do
21518as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21519{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21520echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21521if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21522 echo $ECHO_N "(cached) $ECHO_C" >&6
21523else
21524 cat >conftest.$ac_ext <<_ACEOF
21525/* confdefs.h. */
21526_ACEOF
21527cat confdefs.h >>conftest.$ac_ext
21528cat >>conftest.$ac_ext <<_ACEOF
21529/* end confdefs.h. */
21530/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21531 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21532#define $ac_func innocuous_$ac_func
21533
21534/* System header to define __stub macros and hopefully few prototypes,
21535 which can conflict with char $ac_func (); below.
21536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21537 <limits.h> exists even on freestanding compilers. */
21538
21539#ifdef __STDC__
21540# include <limits.h>
21541#else
21542# include <assert.h>
21543#endif
21544
21545#undef $ac_func
21546
21547/* Override any GCC internal prototype to avoid an error.
21548 Use char because int might match the return type of a GCC
21549 builtin and then its argument prototype would still apply. */
21550#ifdef __cplusplus
21551extern "C"
21552#endif
21553char $ac_func ();
21554/* The GNU C library defines this for functions which it implements
21555 to always fail with ENOSYS. Some functions are actually named
21556 something starting with __ and the normal name is an alias. */
21557#if defined __stub_$ac_func || defined __stub___$ac_func
21558choke me
21559#endif
21560
21561int
21562main ()
21563{
21564return $ac_func ();
21565 ;
21566 return 0;
21567}
21568_ACEOF
21569rm -f conftest.$ac_objext conftest$ac_exeext
21570if { (ac_try="$ac_link"
21571case "(($ac_try" in
21572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21573 *) ac_try_echo=$ac_try;;
21574esac
21575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21576 (eval "$ac_link") 2>conftest.er1
21577 ac_status=$?
21578 grep -v '^ *+' conftest.er1 >conftest.err
21579 rm -f conftest.er1
21580 cat conftest.err >&5
21581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21582 (exit $ac_status); } &&
21583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21584 { (case "(($ac_try" in
21585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21586 *) ac_try_echo=$ac_try;;
21587esac
21588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21589 (eval "$ac_try") 2>&5
21590 ac_status=$?
21591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21592 (exit $ac_status); }; } &&
21593 { ac_try='test -s conftest$ac_exeext'
21594 { (case "(($ac_try" in
21595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21596 *) ac_try_echo=$ac_try;;
21597esac
21598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21599 (eval "$ac_try") 2>&5
21600 ac_status=$?
21601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21602 (exit $ac_status); }; }; then
21603 eval "$as_ac_var=yes"
21604else
21605 echo "$as_me: failed program was:" >&5
21606sed 's/^/| /' conftest.$ac_ext >&5
21607
21608 eval "$as_ac_var=no"
21609fi
21610
21611rm -f core conftest.err conftest.$ac_objext \
21612 conftest$ac_exeext conftest.$ac_ext
21613fi
21614ac_res=`eval echo '${'$as_ac_var'}'`
21615 { echo "$as_me:$LINENO: result: $ac_res" >&5
21616echo "${ECHO_T}$ac_res" >&6; }
21617if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000021618 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021619#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000021620_ACEOF
21621
21622fi
21623done
21624
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021625{ echo "$as_me:$LINENO: checking for working mmap" >&5
21626echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21627if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21628 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000021629else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021630 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000021631 ac_cv_func_mmap_fixed_mapped=no
21632else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021633 cat >conftest.$ac_ext <<_ACEOF
21634/* confdefs.h. */
21635_ACEOF
21636cat confdefs.h >>conftest.$ac_ext
21637cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021638/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021639$ac_includes_default
21640/* malloc might have been renamed as rpl_malloc. */
21641#undef malloc
21642
21643/* Thanks to Mike Haertel and Jim Avera for this test.
21644 Here is a matrix of mmap possibilities:
21645 mmap private not fixed
21646 mmap private fixed at somewhere currently unmapped
21647 mmap private fixed at somewhere already mapped
21648 mmap shared not fixed
21649 mmap shared fixed at somewhere currently unmapped
21650 mmap shared fixed at somewhere already mapped
21651 For private mappings, we should verify that changes cannot be read()
21652 back from the file, nor mmap's back from the file at a different
21653 address. (There have been systems where private was not correctly
21654 implemented like the infamous i386 svr4.0, and systems where the
21655 VM page cache was not coherent with the file system buffer cache
21656 like early versions of FreeBSD and possibly contemporary NetBSD.)
21657 For shared mappings, we should conversely verify that changes get
21658 propagated back to all the places they're supposed to be.
21659
21660 Grep wants private fixed already mapped.
21661 The main things grep needs to know about mmap are:
21662 * does it exist and is it safe to write into the mmap'd area
21663 * how to use it (BSD variants) */
21664
21665#include <fcntl.h>
21666#include <sys/mman.h>
21667
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021668#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000021669char *malloc ();
21670#endif
21671
21672/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021673#if !HAVE_GETPAGESIZE
21674/* Assume that all systems that can run configure have sys/param.h. */
21675# if !HAVE_SYS_PARAM_H
21676# define HAVE_SYS_PARAM_H 1
21677# endif
21678
John Criswell7a73b802003-06-30 21:59:07 +000021679# ifdef _SC_PAGESIZE
21680# define getpagesize() sysconf(_SC_PAGESIZE)
21681# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021682# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000021683# include <sys/param.h>
21684# ifdef EXEC_PAGESIZE
21685# define getpagesize() EXEC_PAGESIZE
21686# else /* no EXEC_PAGESIZE */
21687# ifdef NBPG
21688# define getpagesize() NBPG * CLSIZE
21689# ifndef CLSIZE
21690# define CLSIZE 1
21691# endif /* no CLSIZE */
21692# else /* no NBPG */
21693# ifdef NBPC
21694# define getpagesize() NBPC
21695# else /* no NBPC */
21696# ifdef PAGESIZE
21697# define getpagesize() PAGESIZE
21698# endif /* PAGESIZE */
21699# endif /* no NBPC */
21700# endif /* no NBPG */
21701# endif /* no EXEC_PAGESIZE */
21702# else /* no HAVE_SYS_PARAM_H */
21703# define getpagesize() 8192 /* punt totally */
21704# endif /* no HAVE_SYS_PARAM_H */
21705# endif /* no _SC_PAGESIZE */
21706
21707#endif /* no HAVE_GETPAGESIZE */
21708
21709int
21710main ()
21711{
21712 char *data, *data2, *data3;
21713 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021714 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000021715
21716 pagesize = getpagesize ();
21717
21718 /* First, make a file with some known garbage in it. */
21719 data = (char *) malloc (pagesize);
21720 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000021721 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021722 for (i = 0; i < pagesize; ++i)
21723 *(data + i) = rand ();
21724 umask (0);
21725 fd = creat ("conftest.mmap", 0600);
21726 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021727 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021728 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021729 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021730 close (fd);
21731
21732 /* Next, try to mmap the file at a fixed address which already has
21733 something else allocated at it. If we can, also make sure that
21734 we see the same garbage. */
21735 fd = open ("conftest.mmap", O_RDWR);
21736 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021737 return 1;
21738 data2 = (char *) malloc (2 * pagesize);
21739 if (!data2)
21740 return 1;
21741 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000021742 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000021743 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021744 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021745 for (i = 0; i < pagesize; ++i)
21746 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021747 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021748
21749 /* Finally, make sure that changes to the mapped area do not
21750 percolate back to the file as seen by read(). (This is a bug on
21751 some variants of i386 svr4.0.) */
21752 for (i = 0; i < pagesize; ++i)
21753 *(data2 + i) = *(data2 + i) + 1;
21754 data3 = (char *) malloc (pagesize);
21755 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021756 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021757 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021758 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021759 for (i = 0; i < pagesize; ++i)
21760 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021761 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021762 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000021763 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021764}
21765_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021766rm -f conftest$ac_exeext
21767if { (ac_try="$ac_link"
21768case "(($ac_try" in
21769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21770 *) ac_try_echo=$ac_try;;
21771esac
21772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21773 (eval "$ac_link") 2>&5
21774 ac_status=$?
21775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21776 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21777 { (case "(($ac_try" in
21778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21779 *) ac_try_echo=$ac_try;;
21780esac
21781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21782 (eval "$ac_try") 2>&5
21783 ac_status=$?
21784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21785 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000021786 ac_cv_func_mmap_fixed_mapped=yes
21787else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021788 echo "$as_me: program exited with status $ac_status" >&5
21789echo "$as_me: failed program was:" >&5
21790sed 's/^/| /' conftest.$ac_ext >&5
21791
21792( exit $ac_status )
21793ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000021794fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021795rm -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 +000021796fi
Reid Spencera773bd52006-08-04 18:18:08 +000021797
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021798
John Criswell7a73b802003-06-30 21:59:07 +000021799fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021800{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21801echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000021802if test $ac_cv_func_mmap_fixed_mapped = yes; then
21803
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021804cat >>confdefs.h <<\_ACEOF
21805#define HAVE_MMAP 1
21806_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021807
21808fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021809rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000021810
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021811 { echo "$as_me:$LINENO: checking for mmap of files" >&5
21812echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21813if test "${ac_cv_func_mmap_file+set}" = set; then
21814 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000021815else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021816 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000021817ac_cpp='$CPP $CPPFLAGS'
21818ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21819ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21820ac_compiler_gnu=$ac_cv_c_compiler_gnu
21821
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021822 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000021823 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000021824else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021825 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000021826
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021827 /* confdefs.h. */
21828_ACEOF
21829cat confdefs.h >>conftest.$ac_ext
21830cat >>conftest.$ac_ext <<_ACEOF
21831/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000021832
John Criswell7a73b802003-06-30 21:59:07 +000021833#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000021834#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000021835#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000021836
21837int
21838main ()
21839{
John Criswell7a73b802003-06-30 21:59:07 +000021840
21841 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000021842 fd = creat ("foo",0777);
21843 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21844 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000021845 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000021846 ;
21847 return 0;
21848}
John Criswell7a73b802003-06-30 21:59:07 +000021849_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021850rm -f conftest$ac_exeext
21851if { (ac_try="$ac_link"
21852case "(($ac_try" in
21853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21854 *) ac_try_echo=$ac_try;;
21855esac
21856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21857 (eval "$ac_link") 2>&5
21858 ac_status=$?
21859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21860 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21861 { (case "(($ac_try" in
21862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21863 *) ac_try_echo=$ac_try;;
21864esac
21865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21866 (eval "$ac_try") 2>&5
21867 ac_status=$?
21868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21869 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000021870 ac_cv_func_mmap_file=yes
21871else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021872 echo "$as_me: program exited with status $ac_status" >&5
21873echo "$as_me: failed program was:" >&5
21874sed 's/^/| /' conftest.$ac_ext >&5
21875
21876( exit $ac_status )
21877ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000021878fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021879rm -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 +000021880fi
Reid Spencera773bd52006-08-04 18:18:08 +000021881
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021882
John Criswell7a73b802003-06-30 21:59:07 +000021883 ac_ext=c
21884ac_cpp='$CPP $CPPFLAGS'
21885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21887ac_compiler_gnu=$ac_cv_c_compiler_gnu
21888
21889
21890fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021891{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21892echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000021893if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000021894
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021895cat >>confdefs.h <<\_ACEOF
21896#define HAVE_MMAP_FILE
21897_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021898
21899 MMAP_FILE=yes
21900
21901fi
21902
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021903 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21904echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21905if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21906 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000021907else
Reid Spencer582a23c2004-12-29 07:07:57 +000021908 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000021909 ac_cv_need_dev_zero_for_mmap=yes
21910 else
21911 ac_cv_need_dev_zero_for_mmap=no
21912 fi
21913
21914fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021915{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21916echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000021917if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21918
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021919cat >>confdefs.h <<\_ACEOF
21920#define NEED_DEV_ZERO_FOR_MMAP 1
21921_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000021922
21923fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021924
Reid Spencer30fe5262007-01-20 07:48:49 +000021925 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21926 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021927 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21928echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000021929 fi
21930 if test "$ac_cv_func_mmap_file" = "no"
21931 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021932 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21933echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000021934 fi
John Criswellb13092b2003-07-22 21:00:24 +000021935fi
John Criswell7a73b802003-06-30 21:59:07 +000021936
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021937{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21938echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000021939ac_ext=cpp
21940ac_cpp='$CXXCPP $CPPFLAGS'
21941ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21942ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21943ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21944
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021945cat >conftest.$ac_ext <<_ACEOF
21946/* confdefs.h. */
21947_ACEOF
21948cat confdefs.h >>conftest.$ac_ext
21949cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000021950/* end confdefs.h. */
21951int main() {
Owen Andersona8603702009-05-19 22:18:56 +000021952 volatile unsigned long val = 1;
21953 __sync_synchronize();
21954 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000021955 __sync_add_and_fetch(&val, 1);
21956 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000021957 return 0;
21958 }
Owen Andersond4b272b2009-05-18 23:58:51 +000021959
21960_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021961rm -f conftest.$ac_objext conftest$ac_exeext
21962if { (ac_try="$ac_link"
21963case "(($ac_try" in
21964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21965 *) ac_try_echo=$ac_try;;
21966esac
21967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21968 (eval "$ac_link") 2>conftest.er1
21969 ac_status=$?
21970 grep -v '^ *+' conftest.er1 >conftest.err
21971 rm -f conftest.er1
21972 cat conftest.err >&5
21973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21974 (exit $ac_status); } &&
21975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21976 { (case "(($ac_try" in
21977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21978 *) ac_try_echo=$ac_try;;
21979esac
21980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21981 (eval "$ac_try") 2>&5
21982 ac_status=$?
21983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21984 (exit $ac_status); }; } &&
21985 { ac_try='test -s conftest$ac_exeext'
21986 { (case "(($ac_try" in
21987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21988 *) ac_try_echo=$ac_try;;
21989esac
21990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21991 (eval "$ac_try") 2>&5
21992 ac_status=$?
21993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21994 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000021995 ac_ext=c
21996ac_cpp='$CPP $CPPFLAGS'
21997ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21998ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21999ac_compiler_gnu=$ac_cv_c_compiler_gnu
22000
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022001 { echo "$as_me:$LINENO: result: yes" >&5
22002echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000022003
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022004cat >>confdefs.h <<\_ACEOF
22005#define LLVM_MULTITHREADED 1
22006_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000022007
Owen Andersond4b272b2009-05-18 23:58:51 +000022008else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022009 echo "$as_me: failed program was:" >&5
22010sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000022011
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022012 { echo "$as_me:$LINENO: result: no" >&5
22013echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000022014
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022015cat >>confdefs.h <<\_ACEOF
22016#define LLVM_MULTITHREADED 0
22017_ACEOF
22018
22019 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
22020echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000022021fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022022
Owen Andersond4b272b2009-05-18 23:58:51 +000022023rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022024 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000022025
John Criswell7a73b802003-06-30 21:59:07 +000022026
Nick Lewycky4372e692009-09-29 06:18:23 +000022027if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022028 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
22029echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
22030if test "${llvm_cv_linux_mixed+set}" = set; then
22031 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000022032else
22033 ac_ext=c
22034ac_cpp='$CPP $CPPFLAGS'
22035ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22036ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22037ac_compiler_gnu=$ac_cv_c_compiler_gnu
22038
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022039 cat >conftest.$ac_ext <<_ACEOF
22040/* confdefs.h. */
22041_ACEOF
22042cat confdefs.h >>conftest.$ac_ext
22043cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000022044/* end confdefs.h. */
22045#ifndef __x86_64__
22046 error: Not x86-64 even if uname says so!
22047 #endif
22048
22049int
22050main ()
22051{
22052
22053 ;
22054 return 0;
22055}
22056_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022057rm -f conftest.$ac_objext
22058if { (ac_try="$ac_compile"
22059case "(($ac_try" in
22060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22061 *) ac_try_echo=$ac_try;;
22062esac
22063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22064 (eval "$ac_compile") 2>conftest.er1
22065 ac_status=$?
22066 grep -v '^ *+' conftest.er1 >conftest.err
22067 rm -f conftest.er1
22068 cat conftest.err >&5
22069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22070 (exit $ac_status); } &&
22071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22072 { (case "(($ac_try" in
22073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22074 *) ac_try_echo=$ac_try;;
22075esac
22076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22077 (eval "$ac_try") 2>&5
22078 ac_status=$?
22079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22080 (exit $ac_status); }; } &&
22081 { ac_try='test -s conftest.$ac_objext'
22082 { (case "(($ac_try" in
22083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22084 *) ac_try_echo=$ac_try;;
22085esac
22086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22087 (eval "$ac_try") 2>&5
22088 ac_status=$?
22089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22090 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000022091 llvm_cv_linux_mixed=no
22092else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022093 echo "$as_me: failed program was:" >&5
22094sed 's/^/| /' conftest.$ac_ext >&5
22095
22096 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000022097fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022098
Nick Lewycky4372e692009-09-29 06:18:23 +000022099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22100 ac_ext=c
22101ac_cpp='$CPP $CPPFLAGS'
22102ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22103ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22104ac_compiler_gnu=$ac_cv_c_compiler_gnu
22105
22106
22107fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022108{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
22109echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000022110
22111 if test "$llvm_cv_linux_mixed" = "yes"; then
22112 llvm_cv_target_arch="x86"
22113 ARCH="x86"
22114 fi
22115fi
22116
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022117
Reid Spencer9372f152007-07-30 20:13:24 +000022118for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022119do
22120as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22121{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22122echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22123if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22124 echo $ECHO_N "(cached) $ECHO_C" >&6
22125else
22126 cat >conftest.$ac_ext <<_ACEOF
22127/* confdefs.h. */
22128_ACEOF
22129cat confdefs.h >>conftest.$ac_ext
22130cat >>conftest.$ac_ext <<_ACEOF
22131/* end confdefs.h. */
22132/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22133 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22134#define $ac_func innocuous_$ac_func
22135
22136/* System header to define __stub macros and hopefully few prototypes,
22137 which can conflict with char $ac_func (); below.
22138 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22139 <limits.h> exists even on freestanding compilers. */
22140
22141#ifdef __STDC__
22142# include <limits.h>
22143#else
22144# include <assert.h>
22145#endif
22146
22147#undef $ac_func
22148
22149/* Override any GCC internal prototype to avoid an error.
22150 Use char because int might match the return type of a GCC
22151 builtin and then its argument prototype would still apply. */
22152#ifdef __cplusplus
22153extern "C"
22154#endif
22155char $ac_func ();
22156/* The GNU C library defines this for functions which it implements
22157 to always fail with ENOSYS. Some functions are actually named
22158 something starting with __ and the normal name is an alias. */
22159#if defined __stub_$ac_func || defined __stub___$ac_func
22160choke me
22161#endif
22162
22163int
22164main ()
22165{
22166return $ac_func ();
22167 ;
22168 return 0;
22169}
22170_ACEOF
22171rm -f conftest.$ac_objext conftest$ac_exeext
22172if { (ac_try="$ac_link"
22173case "(($ac_try" in
22174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22175 *) ac_try_echo=$ac_try;;
22176esac
22177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22178 (eval "$ac_link") 2>conftest.er1
22179 ac_status=$?
22180 grep -v '^ *+' conftest.er1 >conftest.err
22181 rm -f conftest.er1
22182 cat conftest.err >&5
22183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22184 (exit $ac_status); } &&
22185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22186 { (case "(($ac_try" in
22187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22188 *) ac_try_echo=$ac_try;;
22189esac
22190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22191 (eval "$ac_try") 2>&5
22192 ac_status=$?
22193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22194 (exit $ac_status); }; } &&
22195 { ac_try='test -s conftest$ac_exeext'
22196 { (case "(($ac_try" in
22197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22198 *) ac_try_echo=$ac_try;;
22199esac
22200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22201 (eval "$ac_try") 2>&5
22202 ac_status=$?
22203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22204 (exit $ac_status); }; }; then
22205 eval "$as_ac_var=yes"
22206else
22207 echo "$as_me: failed program was:" >&5
22208sed 's/^/| /' conftest.$ac_ext >&5
22209
22210 eval "$as_ac_var=no"
22211fi
22212
22213rm -f core conftest.err conftest.$ac_objext \
22214 conftest$ac_exeext conftest.$ac_ext
22215fi
22216ac_res=`eval echo '${'$as_ac_var'}'`
22217 { echo "$as_me:$LINENO: result: $ac_res" >&5
22218echo "${ECHO_T}$ac_res" >&6; }
22219if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000022220 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022221#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000022222_ACEOF
22223
22224fi
22225done
22226
22227
Tobias Grossera84b5672010-11-10 16:31:34 +000022228{ echo "$as_me:$LINENO: checking whether llvm-gcc is dragonegg" >&5
22229echo $ECHO_N "checking whether llvm-gcc is dragonegg... $ECHO_C" >&6; }
22230if test "${llvm_cv_llvmgcc_dragonegg+set}" = set; then
22231 echo $ECHO_N "(cached) $ECHO_C" >&6
22232else
22233 llvm_cv_llvmgcc_dragonegg="no"
Duncan Sands1526b192010-11-25 17:47:42 +000022234if test -n "$LLVMGCC" ; then
Tobias Grossera84b5672010-11-10 16:31:34 +000022235 cp /dev/null conftest.c
Duncan Sands1526b192010-11-25 17:47:42 +000022236 $LLVMGCC -fplugin-arg-dragonegg-emit-ir -S -o - conftest.c > /dev/null 2>&1
Tobias Grossera84b5672010-11-10 16:31:34 +000022237 if test $? -eq 0 ; then
22238 llvm_cv_llvmgcc_dragonegg="yes"
22239 fi
22240 rm conftest.c
22241fi
22242fi
22243{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_dragonegg" >&5
22244echo "${ECHO_T}$llvm_cv_llvmgcc_dragonegg" >&6; }
22245
22246if test "$llvm_cv_llvmgcc_dragonegg" = "yes" ; then
22247 LLVMCC_EMITIR_FLAG="-fplugin-arg-dragonegg-emit-ir"
Duncan Sands1ac320e2010-11-25 17:57:43 +000022248 LLVMCC_DISABLEOPT_FLAGS="-fplugin-arg-dragonegg-disable-llvm-optzns"
Tobias Grossera84b5672010-11-10 16:31:34 +000022249else
22250 LLVMCC_EMITIR_FLAG="-emit-llvm"
Duncan Sands1ac320e2010-11-25 17:57:43 +000022251 LLVMCC_DISABLEOPT_FLAGS="-mllvm -disable-llvm-optzns"
Tobias Grossera84b5672010-11-10 16:31:34 +000022252fi
22253
22254
22255
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022256{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
22257echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
22258if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
22259 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022260else
22261 llvm_cv_llvmgcc_sanity="no"
Duncan Sands1526b192010-11-25 17:47:42 +000022262if test -n "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022263 cp /dev/null conftest.c
Duncan Sands1526b192010-11-25 17:47:42 +000022264 $LLVMGCC "$LLVMCC_EMITIR_FLAG" -S -o - conftest.c | \
Reid Spencer585e0882007-03-29 15:38:33 +000022265 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022266 if test $? -eq 0 ; then
22267 llvm_cv_llvmgcc_sanity="yes"
22268 fi
22269 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000022270fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022271fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022272{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
22273echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022274
22275if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022276 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
22277echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Duncan Sands1526b192010-11-25 17:47:42 +000022278 llvmcc1path=`$LLVMGCC --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022279 LLVMCC1=$llvmcc1path
22280
Duncan Sands1526b192010-11-25 17:47:42 +000022281 llvmcc1pluspath=`$LLVMGCC --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022282 LLVMCC1PLUS=$llvmcc1pluspath
22283
Reid Spencer502935f2004-12-22 05:56:56 +000022284 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
22285 LLVMGCCDIR=$llvmgccdir
22286
Duncan Sands1526b192010-11-25 17:47:42 +000022287 llvmgcclangs=`$LLVMGCC -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000022288 LLVMGCC_LANGS=$llvmgcclangs
22289
Tobias Grossera84b5672010-11-10 16:31:34 +000022290 LLVMGCC_DRAGONEGG=$llvm_cv_llvmgcc_dragonegg
22291
22292
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022293 { echo "$as_me:$LINENO: result: ok" >&5
22294echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000022295fi
22296
Reid Spencer2bc7bd52004-11-29 12:29:58 +000022297SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000022298
22299
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022300SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22301
22302
Reid Spencere9de0912004-08-20 09:03:57 +000022303# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022304# information into substitutions that will end up in Makefile.config.in
22305# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000022306if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000022307 prefix="/usr/local"
22308fi
Reid Spencere9de0912004-08-20 09:03:57 +000022309eval LLVM_PREFIX="${prefix}";
22310eval LLVM_BINDIR="${prefix}/bin";
22311eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000022312eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000022313eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000022314eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000022315eval LLVM_INCLUDEDIR="${prefix}/include";
22316eval LLVM_INFODIR="${prefix}/info";
22317eval LLVM_MANDIR="${prefix}/man";
22318LLVM_CONFIGTIME=`date`
22319
22320
22321
22322
22323
22324
22325
22326
22327
22328
22329
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022330# Place the various directores into the config.h file as #defines so that we
22331# can know about the installation paths within LLVM.
22332
Reid Spencere9de0912004-08-20 09:03:57 +000022333cat >>confdefs.h <<_ACEOF
22334#define LLVM_PREFIX "$LLVM_PREFIX"
22335_ACEOF
22336
22337
22338cat >>confdefs.h <<_ACEOF
22339#define LLVM_BINDIR "$LLVM_BINDIR"
22340_ACEOF
22341
22342
22343cat >>confdefs.h <<_ACEOF
22344#define LLVM_LIBDIR "$LLVM_LIBDIR"
22345_ACEOF
22346
22347
22348cat >>confdefs.h <<_ACEOF
22349#define LLVM_DATADIR "$LLVM_DATADIR"
22350_ACEOF
22351
22352
22353cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000022354#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000022355_ACEOF
22356
22357
22358cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000022359#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000022360_ACEOF
22361
22362
22363cat >>confdefs.h <<_ACEOF
22364#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22365_ACEOF
22366
22367
22368cat >>confdefs.h <<_ACEOF
22369#define LLVM_INFODIR "$LLVM_INFODIR"
22370_ACEOF
22371
22372
22373cat >>confdefs.h <<_ACEOF
22374#define LLVM_MANDIR "$LLVM_MANDIR"
22375_ACEOF
22376
22377
22378cat >>confdefs.h <<_ACEOF
22379#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22380_ACEOF
22381
22382
Eric Christopher790e11c2007-12-01 00:34:39 +000022383cat >>confdefs.h <<_ACEOF
22384#define LLVM_HOSTTRIPLE "$host"
22385_ACEOF
22386
22387
Gordon Henriksenc0efff82007-10-02 09:50:32 +000022388# Determine which bindings to build.
22389if test "$BINDINGS_TO_BUILD" = auto ; then
22390 BINDINGS_TO_BUILD=""
22391 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22392 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22393 fi
22394fi
22395BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22396
22397
22398# This isn't really configurey, but it avoids having to repeat the list in
22399# other files.
22400ALL_BINDINGS=ocaml
22401
22402
Gordon Henriksenf0915682007-10-02 16:42:22 +000022403# Do any work necessary to ensure that bindings have what they need.
22404binding_prereqs_failed=0
22405for a_binding in $BINDINGS_TO_BUILD ; do
22406 case "$a_binding" in
22407 ocaml)
22408 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022409 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22410echo "$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 +000022411 binding_prereqs_failed=1
22412 fi
22413 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022414 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22415echo "$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 +000022416 binding_prereqs_failed=1
22417 fi
22418 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022419 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22420echo "$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 +000022421 fi
22422 if test "x$with_ocaml_libdir" != xauto ; then
22423 OCAML_LIBDIR=$with_ocaml_libdir
22424
22425 else
22426 ocaml_stdlib="`"$OCAMLC" -where`"
22427 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22428 then
22429 # ocaml stdlib is beneath our prefix; use stdlib
22430 OCAML_LIBDIR=$ocaml_stdlib
22431
22432 else
22433 # ocaml stdlib is outside our prefix; use libdir/ocaml
22434 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
22435
22436 fi
22437 fi
22438 ;;
22439 esac
22440done
22441if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022442 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22443echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22444 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000022445fi
22446
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022447{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22448echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22449if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22450 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000022451else
22452 ac_ext=cpp
22453ac_cpp='$CXXCPP $CPPFLAGS'
22454ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22455ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22456ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22457
22458 oldcxxflags="$CXXFLAGS"
22459 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022460 cat >conftest.$ac_ext <<_ACEOF
22461/* confdefs.h. */
22462_ACEOF
22463cat confdefs.h >>conftest.$ac_ext
22464cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000022465/* end confdefs.h. */
22466
22467int
22468main ()
22469{
22470
22471 ;
22472 return 0;
22473}
22474_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022475rm -f conftest.$ac_objext
22476if { (ac_try="$ac_compile"
22477case "(($ac_try" in
22478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22479 *) ac_try_echo=$ac_try;;
22480esac
22481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22482 (eval "$ac_compile") 2>conftest.er1
22483 ac_status=$?
22484 grep -v '^ *+' conftest.er1 >conftest.err
22485 rm -f conftest.er1
22486 cat conftest.err >&5
22487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22488 (exit $ac_status); } &&
22489 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22490 { (case "(($ac_try" in
22491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22492 *) ac_try_echo=$ac_try;;
22493esac
22494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22495 (eval "$ac_try") 2>&5
22496 ac_status=$?
22497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22498 (exit $ac_status); }; } &&
22499 { ac_try='test -s conftest.$ac_objext'
22500 { (case "(($ac_try" in
22501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22502 *) ac_try_echo=$ac_try;;
22503esac
22504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22505 (eval "$ac_try") 2>&5
22506 ac_status=$?
22507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22508 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000022509 llvm_cv_cxx_visibility_inlines_hidden=yes
22510else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022511 echo "$as_me: failed program was:" >&5
22512sed 's/^/| /' conftest.$ac_ext >&5
22513
22514 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000022515fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022516
Daniel Dunbardcf114e2008-08-30 01:16:19 +000022517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22518 CXXFLAGS="$oldcxxflags"
22519 ac_ext=c
22520ac_cpp='$CPP $CPPFLAGS'
22521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22523ac_compiler_gnu=$ac_cv_c_compiler_gnu
22524
22525
22526fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022527{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22528echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000022529if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22530 ENABLE_VISIBILITY_INLINES_HIDDEN=1
22531
22532else
22533 ENABLE_VISIBILITY_INLINES_HIDDEN=0
22534
22535fi
22536
Gordon Henriksenf0915682007-10-02 16:42:22 +000022537
Nick Lewycky731c6ab2009-03-05 08:20:44 +000022538if test "$llvm_cv_link_use_r" = "yes" ; then
22539 RPATH="-Wl,-R"
22540else
22541 RPATH="-Wl,-rpath"
22542fi
22543
22544
22545if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22546 RDYNAMIC="-Wl,-export-dynamic"
22547else
22548 RDYNAMIC=""
22549fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000022550
22551
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022552
Eric Christophera1cba682010-08-08 02:44:25 +000022553ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022554
Eric Christopher21d3eeb2010-08-08 09:20:39 +000022555
22556
22557
22558
22559
Douglas Gregor1555a232009-06-16 20:12:29 +000022560ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22561
22562ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22563
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000022564ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22565
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000022566ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22567
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000022568ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022569
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022570
Reid Spencera773bd52006-08-04 18:18:08 +000022571ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022572
22573
Reid Spencerea949cf2006-08-16 00:45:38 +000022574ac_config_files="$ac_config_files llvm.spec"
22575
22576
Mikhail Glushenkov4b643c02010-08-15 07:07:17 +000022577ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000022578
22579
Reid Spencera773bd52006-08-04 18:18:08 +000022580ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000022581
22582
Reid Spencera773bd52006-08-04 18:18:08 +000022583ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000022584
Reid Spencera773bd52006-08-04 18:18:08 +000022585ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022586
22587
Reid Spencera773bd52006-08-04 18:18:08 +000022588ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022589
22590
Reid Spencera773bd52006-08-04 18:18:08 +000022591ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022592
22593
Reid Spencera773bd52006-08-04 18:18:08 +000022594ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022595
22596
Reid Spencer8b2e1412006-11-17 03:32:33 +000022597ac_config_commands="$ac_config_commands runtime/Makefile"
22598
22599
Reid Spencera773bd52006-08-04 18:18:08 +000022600ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022601
22602
Reid Spencera773bd52006-08-04 18:18:08 +000022603ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022604
22605
Bill Wendlingf24eb392009-01-04 23:12:30 +000022606ac_config_commands="$ac_config_commands unittests/Makefile"
22607
22608
Reid Spencera773bd52006-08-04 18:18:08 +000022609ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022610
22611
Reid Spencera773bd52006-08-04 18:18:08 +000022612ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022613
22614
Reid Spencera773bd52006-08-04 18:18:08 +000022615ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022616
22617
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022618ac_config_commands="$ac_config_commands bindings/Makefile"
22619
22620
22621ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22622
22623
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022624
John Criswell7a73b802003-06-30 21:59:07 +000022625cat >confcache <<\_ACEOF
22626# This file is a shell script that caches the results of configure
22627# tests run on this system so they can be shared between configure
22628# scripts and configure runs, see configure's option --config-cache.
22629# It is not useful on other systems. If it contains results you don't
22630# want to keep, you may remove or edit it.
22631#
22632# config.status only pays attention to the cache file if you give it
22633# the --recheck option to rerun configure.
22634#
John Criswell0c38eaf2003-09-10 15:17:25 +000022635# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000022636# loading this file, other *unset* `ac_cv_foo' will be assigned the
22637# following values.
22638
22639_ACEOF
22640
22641# The following way of writing the cache mishandles newlines in values,
22642# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000022643# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000022644# Ultrix sh set writes to stderr and can't be redirected directly,
22645# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000022646(
22647 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22648 eval ac_val=\$$ac_var
22649 case $ac_val in #(
22650 *${as_nl}*)
22651 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022652 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22653echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022654 esac
22655 case $ac_var in #(
22656 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022657 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022658 esac ;;
22659 esac
22660 done
22661
John Criswell7a73b802003-06-30 21:59:07 +000022662 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000022663 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22664 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022665 # `set' does not quote correctly, so add quotes (double-quote
22666 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000022667 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022668 "s/'/'\\\\''/g;
22669 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000022670 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000022671 *)
22672 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000022673 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000022674 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022675 esac |
22676 sort
22677) |
John Criswell7a73b802003-06-30 21:59:07 +000022678 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000022679 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000022680 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000022681 :clear
John Criswell7a73b802003-06-30 21:59:07 +000022682 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22683 t end
Reid Spencera773bd52006-08-04 18:18:08 +000022684 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22685 :end' >>confcache
22686if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22687 if test -w "$cache_file"; then
22688 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022689 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22690echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022691 cat confcache >$cache_file
22692 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022693 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22694echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022695 fi
22696fi
22697rm -f confcache
22698
22699test "x$prefix" = xNONE && prefix=$ac_default_prefix
22700# Let make expand exec_prefix.
22701test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22702
John Criswell7a73b802003-06-30 21:59:07 +000022703DEFS=-DHAVE_CONFIG_H
22704
John Criswell0c38eaf2003-09-10 15:17:25 +000022705ac_libobjs=
22706ac_ltlibobjs=
22707for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22708 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000022709 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022710 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000022711 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22712 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022713 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22714 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000022715done
22716LIBOBJS=$ac_libobjs
22717
22718LTLIBOBJS=$ac_ltlibobjs
22719
22720
Reid Spencer2bc7bd52004-11-29 12:29:58 +000022721if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022722 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22723Usually this means the macro was only invoked conditionally." >&5
22724echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22725Usually this means the macro was only invoked conditionally." >&2;}
22726 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000022727fi
22728if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022729 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22730Usually this means the macro was only invoked conditionally." >&5
22731echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22732Usually this means the macro was only invoked conditionally." >&2;}
22733 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000022734fi
John Criswell7a73b802003-06-30 21:59:07 +000022735
22736: ${CONFIG_STATUS=./config.status}
22737ac_clean_files_save=$ac_clean_files
22738ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022739{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22740echo "$as_me: creating $CONFIG_STATUS" >&6;}
22741cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022742#! $SHELL
22743# Generated by $as_me.
22744# Run this file to recreate the current configuration.
22745# Compiler output produced by configure, useful for debugging
22746# configure, is in config.log if it exists.
22747
22748debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000022749ac_cs_recheck=false
22750ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000022751SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022752_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022753
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022754cat >>$CONFIG_STATUS <<\_ACEOF
22755## --------------------- ##
22756## M4sh Initialization. ##
22757## --------------------- ##
22758
22759# Be Bourne compatible
22760if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000022761 emulate sh
22762 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022763 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000022764 # is contrary to our usage. Disable this feature.
22765 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000022766 setopt NO_GLOB_SUBST
22767else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022768 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000022769fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022770BIN_SH=xpg4; export BIN_SH # for Tru64
22771DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000022772
John Criswell7a73b802003-06-30 21:59:07 +000022773
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022774# PATH needs CR
22775# Avoid depending upon Character Ranges.
22776as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22777as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22778as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22779as_cr_digits='0123456789'
22780as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000022781
22782# The user is always right.
22783if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022784 echo "#! /bin/sh" >conf$$.sh
22785 echo "exit 0" >>conf$$.sh
22786 chmod +x conf$$.sh
22787 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22788 PATH_SEPARATOR=';'
22789 else
22790 PATH_SEPARATOR=:
22791 fi
22792 rm -f conf$$.sh
22793fi
22794
22795# Support unset when possible.
22796if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22797 as_unset=unset
22798else
22799 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000022800fi
John Criswell7a73b802003-06-30 21:59:07 +000022801
Reid Spencera773bd52006-08-04 18:18:08 +000022802
22803# IFS
22804# We need space, tab and new line, in precisely that order. Quoting is
22805# there to prevent editors from complaining about space-tab.
22806# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22807# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022808as_nl='
22809'
Reid Spencera773bd52006-08-04 18:18:08 +000022810IFS=" "" $as_nl"
22811
22812# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022813case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000022814 *[\\/]* ) as_myself=$0 ;;
22815 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000022816for as_dir in $PATH
22817do
22818 IFS=$as_save_IFS
22819 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022820 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22821done
Reid Spencera773bd52006-08-04 18:18:08 +000022822IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000022823
Reid Spencera773bd52006-08-04 18:18:08 +000022824 ;;
22825esac
22826# We did not find ourselves, most probably we were run as `sh COMMAND'
22827# in which case we are not to be found in the path.
22828if test "x$as_myself" = x; then
22829 as_myself=$0
22830fi
22831if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022832 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22833 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000022834fi
22835
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022836# Work around bugs in pre-3.0 UWIN ksh.
22837for as_var in ENV MAIL MAILPATH
22838do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000022839done
22840PS1='$ '
22841PS2='> '
22842PS4='+ '
22843
22844# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022845for as_var in \
22846 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22847 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22848 LC_TELEPHONE LC_TIME
22849do
22850 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22851 eval $as_var=C; export $as_var
22852 else
22853 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000022854 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022855done
Torok Edwin871384f2010-01-26 08:50:50 +000022856
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022857# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000022858if expr a : '\(a\)' >/dev/null 2>&1 &&
22859 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22860 as_expr=expr
22861else
22862 as_expr=false
22863fi
22864
22865if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22866 as_basename=basename
22867else
22868 as_basename=false
22869fi
22870
22871
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022872# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000022873as_me=`$as_basename -- "$0" ||
22874$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22875 X"$0" : 'X\(//\)$' \| \
22876 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022877echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000022878 sed '/^.*\/\([^/][^/]*\)\/*$/{
22879 s//\1/
22880 q
22881 }
22882 /^X\/\(\/\/\)$/{
22883 s//\1/
22884 q
22885 }
22886 /^X\/\(\/\).*/{
22887 s//\1/
22888 q
22889 }
22890 s/.*/./; q'`
22891
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022892# CDPATH.
22893$as_unset CDPATH
22894
22895
22896
22897 as_lineno_1=$LINENO
22898 as_lineno_2=$LINENO
22899 test "x$as_lineno_1" != "x$as_lineno_2" &&
22900 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22901
22902 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22903 # uniformly replaced by the line number. The first 'sed' inserts a
22904 # line-number line after each line using $LINENO; the second 'sed'
22905 # does the real work. The second script uses 'N' to pair each
22906 # line-number line with the line containing $LINENO, and appends
22907 # trailing '-' during substitution so that $LINENO is not a special
22908 # case at line end.
22909 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22910 # scripts with optimization help from Paolo Bonzini. Blame Lee
22911 # E. McMahon (1931-1989) for sed's syntax. :-)
22912 sed -n '
22913 p
22914 /[$]LINENO/=
22915 ' <$as_myself |
22916 sed '
22917 s/[$]LINENO.*/&-/
22918 t lineno
22919 b
22920 :lineno
22921 N
22922 :loop
22923 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22924 t loop
22925 s/-\n.*//
22926 ' >$as_me.lineno &&
22927 chmod +x "$as_me.lineno" ||
22928 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22929 { (exit 1); exit 1; }; }
22930
22931 # Don't try to exec as it changes $[0], causing all sort of problems
22932 # (the dirname of $[0] is not the place where we might find the
22933 # original and so on. Autoconf is especially sensitive to this).
22934 . "./$as_me.lineno"
22935 # Exit status is that of the last command.
22936 exit
22937}
22938
22939
22940if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22941 as_dirname=dirname
22942else
22943 as_dirname=false
22944fi
Reid Spencera773bd52006-08-04 18:18:08 +000022945
22946ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022947case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000022948-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022949 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000022950 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022951 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000022952 esac;;
22953*)
22954 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000022955esac
22956
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022957if expr a : '\(a\)' >/dev/null 2>&1 &&
22958 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22959 as_expr=expr
22960else
22961 as_expr=false
22962fi
22963
John Criswell7a73b802003-06-30 21:59:07 +000022964rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000022965if test -d conf$$.dir; then
22966 rm -f conf$$.dir/conf$$.file
22967else
22968 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022969 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000022970fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022971echo >conf$$.file
22972if ln -s conf$$.file conf$$ 2>/dev/null; then
22973 as_ln_s='ln -s'
22974 # ... but there are two gotchas:
22975 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22976 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22977 # In both cases, we have to default to `cp -p'.
22978 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000022979 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022980elif ln conf$$.file conf$$ 2>/dev/null; then
22981 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000022982else
22983 as_ln_s='cp -p'
22984fi
Reid Spencera773bd52006-08-04 18:18:08 +000022985rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22986rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000022987
John Criswell0c38eaf2003-09-10 15:17:25 +000022988if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022989 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022990else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022991 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000022992 as_mkdir_p=false
22993fi
22994
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022995# Find out whether ``test -x'' works. Don't use a zero-byte file, as
22996# systems may use methods other than mode bits to determine executability.
22997cat >conf$$.file <<_ASEOF
22998#! /bin/sh
22999exit 0
23000_ASEOF
23001chmod +x conf$$.file
23002if test -x conf$$.file >/dev/null 2>&1; then
23003 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000023004else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023005 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000023006fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023007rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000023008
23009# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023010as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000023011
23012# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023013as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000023014
23015
John Criswell7a73b802003-06-30 21:59:07 +000023016exec 6>&1
23017
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023018# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000023019# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000023020# values after options handling.
23021ac_log="
Bill Wendlingebc2fc12011-03-08 03:00:02 +000023022This file was extended by llvm $as_me 3.0svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023023generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000023024
23025 CONFIG_FILES = $CONFIG_FILES
23026 CONFIG_HEADERS = $CONFIG_HEADERS
23027 CONFIG_LINKS = $CONFIG_LINKS
23028 CONFIG_COMMANDS = $CONFIG_COMMANDS
23029 $ $0 $@
23030
Reid Spencera773bd52006-08-04 18:18:08 +000023031on `(hostname || uname -n) 2>/dev/null | sed 1q`
23032"
23033
John Criswell7a73b802003-06-30 21:59:07 +000023034_ACEOF
23035
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023036cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023037# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000023038config_files="$ac_config_files"
23039config_headers="$ac_config_headers"
23040config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000023041
Reid Spencera773bd52006-08-04 18:18:08 +000023042_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023043
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023044cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023045ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023046\`$as_me' instantiates files from templates according to the
23047current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000023048
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023049Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000023050
23051 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023052 -V, --version print version number, then exit
23053 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000023054 -d, --debug don't remove temporary files
23055 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023056 --file=FILE[:TEMPLATE]
23057 instantiate the configuration file FILE
23058 --header=FILE[:TEMPLATE]
23059 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000023060
23061Configuration files:
23062$config_files
23063
23064Configuration headers:
23065$config_headers
23066
John Criswellc764fbc2003-09-06 15:17:13 +000023067Configuration commands:
23068$config_commands
23069
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023070Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000023071
Reid Spencera773bd52006-08-04 18:18:08 +000023072_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023073cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023074ac_cs_version="\\
Bill Wendlingebc2fc12011-03-08 03:00:02 +000023075llvm config.status 3.0svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023076configured by $0, generated by GNU Autoconf 2.60,
23077 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000023078
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023079Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000023080This config.status script is free software; the Free Software Foundation
23081gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000023082
23083ac_pwd='$ac_pwd'
23084srcdir='$srcdir'
23085INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000023086_ACEOF
23087
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023088cat >>$CONFIG_STATUS <<\_ACEOF
23089# If no file are specified by the user, then we need to provide default
23090# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000023091ac_need_defaults=:
23092while test $# != 0
23093do
23094 case $1 in
23095 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000023096 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23097 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023098 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000023099 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023100 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000023101 ac_option=$1
23102 ac_optarg=$2
23103 ac_shift=shift
23104 ;;
John Criswell7a73b802003-06-30 21:59:07 +000023105 esac
23106
John Criswell0c38eaf2003-09-10 15:17:25 +000023107 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000023108 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000023109 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23110 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023111 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023112 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023113 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000023114 debug=: ;;
23115 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000023116 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023117 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023118 ac_need_defaults=false;;
23119 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000023120 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023121 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023122 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000023123 --he | --h)
23124 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023125 { echo "$as_me: error: ambiguous option: $1
23126Try \`$0 --help' for more information." >&2
23127 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000023128 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023129 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023130 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23131 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23132 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023133
23134 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023135 -*) { echo "$as_me: error: unrecognized option: $1
23136Try \`$0 --help' for more information." >&2
23137 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000023138
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023139 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000023140 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000023141
23142 esac
23143 shift
23144done
23145
John Criswell0c38eaf2003-09-10 15:17:25 +000023146ac_configure_extra_args=
23147
23148if $ac_cs_silent; then
23149 exec 6>/dev/null
23150 ac_configure_extra_args="$ac_configure_extra_args --silent"
23151fi
23152
23153_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023154cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023155if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023156 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23157 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000023158 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023159 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000023160fi
23161
John Criswell7a73b802003-06-30 21:59:07 +000023162_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023163cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000023164exec 5>>config.log
23165{
23166 echo
23167 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23168## Running $as_me. ##
23169_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023170 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000023171} >&5
John Criswell7a73b802003-06-30 21:59:07 +000023172
Reid Spencera773bd52006-08-04 18:18:08 +000023173_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023174cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000023175#
Reid Spencera773bd52006-08-04 18:18:08 +000023176# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000023177#
Reid Spencerc0682832005-02-24 19:05:19 +000023178llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000023179
23180_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023181
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023182cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000023183
23184# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000023185for ac_config_target in $ac_config_targets
23186do
Reid Spencera773bd52006-08-04 18:18:08 +000023187 case $ac_config_target in
23188 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000023189 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000023190 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
23191 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000023192 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000023193 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000023194 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023195 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000023196 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Mikhail Glushenkov4b643c02010-08-15 07:07:17 +000023197 "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023198 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
23199 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
23200 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23201 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23202 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
23203 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000023204 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023205 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23206 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000023207 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023208 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23209 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23210 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000023211 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
23212 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023213
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023214 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23215echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23216 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000023217 esac
23218done
23219
Reid Spencera773bd52006-08-04 18:18:08 +000023220
John Criswell7a73b802003-06-30 21:59:07 +000023221# If the user did not use the arguments to specify the items to instantiate,
23222# then the envvar interface is used. Set only those that are not.
23223# We use the long form for the default assignment because of an extremely
23224# bizarre bug on SunOS 4.1.3.
23225if $ac_need_defaults; then
23226 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23227 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000023228 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000023229fi
23230
John Criswell0c38eaf2003-09-10 15:17:25 +000023231# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000023232# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000023233# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000023234# Hook for its removal unless debugging.
23235# Note that there is a small window in which the directory will not be cleaned:
23236# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000023237$debug ||
23238{
Reid Spencera773bd52006-08-04 18:18:08 +000023239 tmp=
23240 trap 'exit_status=$?
23241 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23242' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023243 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000023244}
John Criswell7a73b802003-06-30 21:59:07 +000023245# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000023246
John Criswell7a73b802003-06-30 21:59:07 +000023247{
Reid Spencera773bd52006-08-04 18:18:08 +000023248 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000023249 test -n "$tmp" && test -d "$tmp"
23250} ||
23251{
Reid Spencera773bd52006-08-04 18:18:08 +000023252 tmp=./conf$$-$RANDOM
23253 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023254} ||
23255{
23256 echo "$me: cannot create a temporary directory in ." >&2
23257 { (exit 1); exit 1; }
23258}
John Criswell7a73b802003-06-30 21:59:07 +000023259
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023260#
23261# Set up the sed scripts for CONFIG_FILES section.
23262#
23263
23264# No need to generate the scripts if there are no CONFIG_FILES.
23265# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000023266if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000023267
23268_ACEOF
23269
Reid Spencera773bd52006-08-04 18:18:08 +000023270
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023271
Reid Spencera773bd52006-08-04 18:18:08 +000023272ac_delim='%!_!# '
23273for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023274 cat >conf$$subs.sed <<_ACEOF
23275SHELL!$SHELL$ac_delim
23276PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23277PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23278PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23279PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23280PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23281PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23282exec_prefix!$exec_prefix$ac_delim
23283prefix!$prefix$ac_delim
23284program_transform_name!$program_transform_name$ac_delim
23285bindir!$bindir$ac_delim
23286sbindir!$sbindir$ac_delim
23287libexecdir!$libexecdir$ac_delim
23288datarootdir!$datarootdir$ac_delim
23289datadir!$datadir$ac_delim
23290sysconfdir!$sysconfdir$ac_delim
23291sharedstatedir!$sharedstatedir$ac_delim
23292localstatedir!$localstatedir$ac_delim
23293includedir!$includedir$ac_delim
23294oldincludedir!$oldincludedir$ac_delim
23295docdir!$docdir$ac_delim
23296infodir!$infodir$ac_delim
23297htmldir!$htmldir$ac_delim
23298dvidir!$dvidir$ac_delim
23299pdfdir!$pdfdir$ac_delim
23300psdir!$psdir$ac_delim
23301libdir!$libdir$ac_delim
23302localedir!$localedir$ac_delim
23303mandir!$mandir$ac_delim
23304DEFS!$DEFS$ac_delim
23305ECHO_C!$ECHO_C$ac_delim
23306ECHO_N!$ECHO_N$ac_delim
23307ECHO_T!$ECHO_T$ac_delim
23308LIBS!$LIBS$ac_delim
23309build_alias!$build_alias$ac_delim
23310host_alias!$host_alias$ac_delim
23311target_alias!$target_alias$ac_delim
23312LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23313subdirs!$subdirs$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000023314ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23315LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023316build!$build$ac_delim
23317build_cpu!$build_cpu$ac_delim
23318build_vendor!$build_vendor$ac_delim
23319build_os!$build_os$ac_delim
23320host!$host$ac_delim
23321host_cpu!$host_cpu$ac_delim
23322host_vendor!$host_vendor$ac_delim
23323host_os!$host_os$ac_delim
23324target!$target$ac_delim
23325target_cpu!$target_cpu$ac_delim
23326target_vendor!$target_vendor$ac_delim
23327target_os!$target_os$ac_delim
23328OS!$OS$ac_delim
23329HOST_OS!$HOST_OS$ac_delim
23330TARGET_OS!$TARGET_OS$ac_delim
23331LINKALL!$LINKALL$ac_delim
23332NOLINKALL!$NOLINKALL$ac_delim
23333LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23334LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23335ARCH!$ARCH$ac_delim
23336ENDIAN!$ENDIAN$ac_delim
23337CC!$CC$ac_delim
23338CFLAGS!$CFLAGS$ac_delim
23339LDFLAGS!$LDFLAGS$ac_delim
23340CPPFLAGS!$CPPFLAGS$ac_delim
23341ac_ct_CC!$ac_ct_CC$ac_delim
23342EXEEXT!$EXEEXT$ac_delim
23343OBJEXT!$OBJEXT$ac_delim
23344CPP!$CPP$ac_delim
23345GREP!$GREP$ac_delim
23346EGREP!$EGREP$ac_delim
23347LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23348BUILD_CC!$BUILD_CC$ac_delim
23349BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23350BUILD_CXX!$BUILD_CXX$ac_delim
23351CVSBUILD!$CVSBUILD$ac_delim
23352ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23353ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23354DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23355ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23356EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23357DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23358DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23359JIT!$JIT$ac_delim
23360TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000023361ENABLE_DOCS!$ENABLE_DOCS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023362ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23363ENABLE_THREADS!$ENABLE_THREADS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000023364ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023365ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000023366ENABLE_SHARED!$ENABLE_SHARED$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000023367ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
Daniel Dunbardd464df2010-05-10 20:11:56 +000023368ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023369TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23370LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23371LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023372_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000023373
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023374 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000023375 break
23376 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023377 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23378echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23379 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000023380 else
23381 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000023382 fi
Reid Spencera773bd52006-08-04 18:18:08 +000023383done
23384
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023385ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23386if test -n "$ac_eof"; then
23387 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23388 ac_eof=`expr $ac_eof + 1`
23389fi
23390
23391cat >>$CONFIG_STATUS <<_ACEOF
23392cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23393/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000023394_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023395sed '
23396s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23397s/^/s,@/; s/!/@,|#_!!_#|/
23398:n
23399t n
23400s/'"$ac_delim"'$/,g/; t
23401s/$/\\/; p
23402N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23403' >>$CONFIG_STATUS <conf$$subs.sed
23404rm -f conf$$subs.sed
23405cat >>$CONFIG_STATUS <<_ACEOF
23406CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000023407_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023408
23409
23410ac_delim='%!_!# '
23411for ac_last_try in false false false false false :; do
23412 cat >conf$$subs.sed <<_ACEOF
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000023413LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000023414LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000023415ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000023416CLANGPATH!$CLANGPATH$ac_delim
23417CLANGXXPATH!$CLANGXXPATH$ac_delim
Daniel Dunbardd464df2010-05-10 20:11:56 +000023418ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000023419OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000023420EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23421BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023422CXX!$CXX$ac_delim
23423CXXFLAGS!$CXXFLAGS$ac_delim
23424ac_ct_CXX!$ac_ct_CXX$ac_delim
23425NM!$NM$ac_delim
23426ifGNUmake!$ifGNUmake$ac_delim
23427LN_S!$LN_S$ac_delim
23428CMP!$CMP$ac_delim
23429CP!$CP$ac_delim
23430DATE!$DATE$ac_delim
23431FIND!$FIND$ac_delim
23432MKDIR!$MKDIR$ac_delim
23433MV!$MV$ac_delim
23434RANLIB!$RANLIB$ac_delim
23435AR!$AR$ac_delim
23436RM!$RM$ac_delim
23437SED!$SED$ac_delim
23438TAR!$TAR$ac_delim
23439BINPWD!$BINPWD$ac_delim
23440GRAPHVIZ!$GRAPHVIZ$ac_delim
23441DOT!$DOT$ac_delim
23442FDP!$FDP$ac_delim
23443NEATO!$NEATO$ac_delim
23444TWOPI!$TWOPI$ac_delim
23445CIRCO!$CIRCO$ac_delim
23446GV!$GV$ac_delim
23447DOTTY!$DOTTY$ac_delim
Dan Gohman48fd5a72010-09-27 16:28:34 +000023448XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023449PERL!$PERL$ac_delim
23450HAVE_PERL!$HAVE_PERL$ac_delim
23451INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23452INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23453INSTALL_DATA!$INSTALL_DATA$ac_delim
23454BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000023455CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023456DOXYGEN!$DOXYGEN$ac_delim
23457GROFF!$GROFF$ac_delim
Eric Christopher031d3072010-12-10 01:31:51 +000023458GZIPBIN!$GZIPBIN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023459POD2HTML!$POD2HTML$ac_delim
23460POD2MAN!$POD2MAN$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000023461PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023462RUNTEST!$RUNTEST$ac_delim
23463TCLSH!$TCLSH$ac_delim
23464ZIP!$ZIP$ac_delim
23465OCAMLC!$OCAMLC$ac_delim
23466OCAMLOPT!$OCAMLOPT$ac_delim
23467OCAMLDEP!$OCAMLDEP$ac_delim
23468OCAMLDOC!$OCAMLDOC$ac_delim
23469GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000023470HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023471INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23472INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23473CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23474CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23475LIBADD_DL!$LIBADD_DL$ac_delim
23476LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
23477LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
23478LLVMGCC!$LLVMGCC$ac_delim
23479LLVMGXX!$LLVMGXX$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000023480LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023481NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23482NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23483USE_UDIS86!$USE_UDIS86$ac_delim
23484USE_OPROFILE!$USE_OPROFILE$ac_delim
23485HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23486HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23487MMAP_FILE!$MMAP_FILE$ac_delim
Tobias Grossera84b5672010-11-10 16:31:34 +000023488LLVMCC_EMITIR_FLAG!$LLVMCC_EMITIR_FLAG$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023489LLVMCC1!$LLVMCC1$ac_delim
23490LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
23491LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023492LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Tobias Grossera84b5672010-11-10 16:31:34 +000023493LLVMGCC_DRAGONEGG!$LLVMGCC_DRAGONEGG$ac_delim
Eric Christopher481d4022010-12-03 07:45:22 +000023494LLVMCC_DISABLEOPT_FLAGS!$LLVMCC_DISABLEOPT_FLAGS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023495SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000023496SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023497LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23498LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23499LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
23500LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23501LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23502LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23503LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23504LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23505LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23506LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23507BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23508ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23509OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000023510_ACEOF
23511
Tobias Grossera84b5672010-11-10 16:31:34 +000023512 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023513 break
23514 elif $ac_last_try; then
23515 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23516echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23517 { (exit 1); exit 1; }; }
23518 else
23519 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23520 fi
23521done
23522
23523ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23524if test -n "$ac_eof"; then
23525 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23526 ac_eof=`expr $ac_eof + 1`
23527fi
23528
23529cat >>$CONFIG_STATUS <<_ACEOF
23530cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Tobias Grosserbaaadb22010-10-30 00:54:26 +000023531/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023532_ACEOF
23533sed '
23534s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23535s/^/s,@/; s/!/@,|#_!!_#|/
23536:n
23537t n
23538s/'"$ac_delim"'$/,g/; t
23539s/$/\\/; p
23540N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23541' >>$CONFIG_STATUS <conf$$subs.sed
23542rm -f conf$$subs.sed
23543cat >>$CONFIG_STATUS <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023544CEOF$ac_eof
23545_ACEOF
23546
23547
Tobias Grossera84b5672010-11-10 16:31:34 +000023548ac_delim='%!_!# '
23549for ac_last_try in false false false false false :; do
23550 cat >conf$$subs.sed <<_ACEOF
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000023551ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000023552RPATH!$RPATH$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000023553RDYNAMIC!$RDYNAMIC$ac_delim
Tobias Grossera84b5672010-11-10 16:31:34 +000023554LIBOBJS!$LIBOBJS$ac_delim
23555LTLIBOBJS!$LTLIBOBJS$ac_delim
23556_ACEOF
23557
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000023558 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 5; then
Tobias Grossera84b5672010-11-10 16:31:34 +000023559 break
23560 elif $ac_last_try; then
23561 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23562echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23563 { (exit 1); exit 1; }; }
23564 else
23565 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23566 fi
23567done
23568
23569ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23570if test -n "$ac_eof"; then
23571 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23572 ac_eof=`expr $ac_eof + 1`
23573fi
23574
23575cat >>$CONFIG_STATUS <<_ACEOF
23576cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23577/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23578_ACEOF
23579sed '
23580s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23581s/^/s,@/; s/!/@,|#_!!_#|/
23582:n
23583t n
23584s/'"$ac_delim"'$/,g/; t
23585s/$/\\/; p
23586N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23587' >>$CONFIG_STATUS <conf$$subs.sed
23588rm -f conf$$subs.sed
23589cat >>$CONFIG_STATUS <<_ACEOF
23590:end
23591s/|#_!!_#|//g
23592CEOF$ac_eof
23593_ACEOF
23594
23595
Reid Spencera773bd52006-08-04 18:18:08 +000023596# VPATH may cause trouble with some makes, so we remove $(srcdir),
23597# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23598# trailing colons and then remove the whole line if VPATH becomes empty
23599# (actually we leave an empty line to preserve line numbers).
23600if test "x$srcdir" = x.; then
23601 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23602s/:*\$(srcdir):*/:/
23603s/:*\${srcdir}:*/:/
23604s/:*@srcdir@:*/:/
23605s/^\([^=]*=[ ]*\):*/\1/
23606s/:*$//
23607s/^[^=]*=[ ]*$//
23608}'
23609fi
23610
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023611cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023612fi # test -n "$CONFIG_FILES"
23613
Reid Spencera773bd52006-08-04 18:18:08 +000023614
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023615for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000023616do
23617 case $ac_tag in
23618 :[FHLC]) ac_mode=$ac_tag; continue;;
23619 esac
23620 case $ac_mode$ac_tag in
23621 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023622 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23623echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23624 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000023625 :[FH]-) ac_tag=-:-;;
23626 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23627 esac
23628 ac_save_IFS=$IFS
23629 IFS=:
23630 set x $ac_tag
23631 IFS=$ac_save_IFS
23632 shift
23633 ac_file=$1
23634 shift
23635
23636 case $ac_mode in
23637 :L) ac_source=$1;;
23638 :[FH])
23639 ac_file_inputs=
23640 for ac_f
23641 do
23642 case $ac_f in
23643 -) ac_f="$tmp/stdin";;
23644 *) # Look for the file first in the build tree, then in the source tree
23645 # (if the path is not absolute). The absolute path cannot be DOS-style,
23646 # because $ac_f cannot contain `:'.
23647 test -f "$ac_f" ||
23648 case $ac_f in
23649 [\\/$]*) false;;
23650 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23651 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023652 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23653echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23654 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000023655 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023656 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000023657 done
23658
23659 # Let's still pretend it is `configure' which instantiates (i.e., don't
23660 # use $as_me), people would be surprised to read:
23661 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023662 configure_input="Generated from "`IFS=:
23663 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000023664 if test x"$ac_file" != x-; then
23665 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023666 { echo "$as_me:$LINENO: creating $ac_file" >&5
23667echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000023668 fi
23669
23670 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023671 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000023672 esac
23673 ;;
John Criswell7a73b802003-06-30 21:59:07 +000023674 esac
23675
Reid Spencera773bd52006-08-04 18:18:08 +000023676 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000023677$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000023678 X"$ac_file" : 'X\(//\)[^/]' \| \
23679 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000023680 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023681echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000023682 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23683 s//\1/
23684 q
23685 }
23686 /^X\(\/\/\)[^/].*/{
23687 s//\1/
23688 q
23689 }
23690 /^X\(\/\/\)$/{
23691 s//\1/
23692 q
23693 }
23694 /^X\(\/\).*/{
23695 s//\1/
23696 q
23697 }
23698 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023699 { as_dir="$ac_dir"
23700 case $as_dir in #(
23701 -*) as_dir=./$as_dir;;
23702 esac
23703 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23704 as_dirs=
23705 while :; do
23706 case $as_dir in #(
23707 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23708 *) as_qdir=$as_dir;;
23709 esac
23710 as_dirs="'$as_qdir' $as_dirs"
23711 as_dir=`$as_dirname -- "$as_dir" ||
23712$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23713 X"$as_dir" : 'X\(//\)[^/]' \| \
23714 X"$as_dir" : 'X\(//\)$' \| \
23715 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23716echo X"$as_dir" |
23717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23718 s//\1/
23719 q
23720 }
23721 /^X\(\/\/\)[^/].*/{
23722 s//\1/
23723 q
23724 }
23725 /^X\(\/\/\)$/{
23726 s//\1/
23727 q
23728 }
23729 /^X\(\/\).*/{
23730 s//\1/
23731 q
23732 }
23733 s/.*/./; q'`
23734 test -d "$as_dir" && break
23735 done
23736 test -z "$as_dirs" || eval "mkdir $as_dirs"
23737 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23738echo "$as_me: error: cannot create directory $as_dir" >&2;}
23739 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000023740 ac_builddir=.
23741
Reid Spencera773bd52006-08-04 18:18:08 +000023742case "$ac_dir" in
23743.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23744*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023745 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000023746 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023747 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000023748 case $ac_top_builddir_sub in
23749 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23750 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23751 esac ;;
23752esac
23753ac_abs_top_builddir=$ac_pwd
23754ac_abs_builddir=$ac_pwd$ac_dir_suffix
23755# for backward compatibility:
23756ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000023757
23758case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000023759 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000023760 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000023761 ac_top_srcdir=$ac_top_builddir_sub
23762 ac_abs_top_srcdir=$ac_pwd ;;
23763 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000023764 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000023765 ac_top_srcdir=$srcdir
23766 ac_abs_top_srcdir=$srcdir ;;
23767 *) # Relative name.
23768 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23769 ac_top_srcdir=$ac_top_build_prefix$srcdir
23770 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000023771esac
Reid Spencera773bd52006-08-04 18:18:08 +000023772ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000023773
John Criswell7a73b802003-06-30 21:59:07 +000023774
Reid Spencera773bd52006-08-04 18:18:08 +000023775 case $ac_mode in
23776 :F)
23777 #
23778 # CONFIG_FILE
23779 #
John Criswell7a73b802003-06-30 21:59:07 +000023780
23781 case $INSTALL in
23782 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023783 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000023784 esac
John Criswell7a73b802003-06-30 21:59:07 +000023785_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000023786
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023787cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000023788# If the template does not know about datarootdir, expand it.
23789# FIXME: This hack should be removed a few years after 2.60.
23790ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023791
23792case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000023793 p
23794 q
23795}
23796/@datadir@/p
23797/@docdir@/p
23798/@infodir@/p
23799/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023800/@mandir@/p
23801' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000023802*datarootdir*) ac_datarootdir_seen=yes;;
23803*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023804 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23805echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000023806_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023807cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000023808 ac_datarootdir_hack='
23809 s&@datadir@&$datadir&g
23810 s&@docdir@&$docdir&g
23811 s&@infodir@&$infodir&g
23812 s&@localedir@&$localedir&g
23813 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023814 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023815esac
23816_ACEOF
23817
23818# Neutralize VPATH when `$srcdir' = `.'.
23819# Shell code in configure.ac might set extrasub.
23820# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023821cat >>$CONFIG_STATUS <<_ACEOF
23822 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000023823$extrasub
23824_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023825cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023826:t
23827/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023828s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000023829s&@top_builddir@&$ac_top_builddir_sub&;t t
23830s&@srcdir@&$ac_srcdir&;t t
23831s&@abs_srcdir@&$ac_abs_srcdir&;t t
23832s&@top_srcdir@&$ac_top_srcdir&;t t
23833s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23834s&@builddir@&$ac_builddir&;t t
23835s&@abs_builddir@&$ac_abs_builddir&;t t
23836s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23837s&@INSTALL@&$ac_INSTALL&;t t
23838$ac_datarootdir_hack
Tobias Grossera84b5672010-11-10 16:31:34 +000023839" $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 +000023840
Reid Spencera773bd52006-08-04 18:18:08 +000023841test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23842 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23843 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023844 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000023845which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023846echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000023847which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000023848
Reid Spencera773bd52006-08-04 18:18:08 +000023849 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000023850 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023851 -) cat "$tmp/out"; rm -f "$tmp/out";;
23852 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23853 esac
Reid Spencera773bd52006-08-04 18:18:08 +000023854 ;;
23855 :H)
23856 #
23857 # CONFIG_HEADER
23858 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023859_ACEOF
23860
23861# Transform confdefs.h into a sed script `conftest.defines', that
23862# substitutes the proper values into config.h.in to produce config.h.
23863rm -f conftest.defines conftest.tail
23864# First, append a space to every undef/define line, to ease matching.
23865echo 's/$/ /' >conftest.defines
23866# Then, protect against being on the right side of a sed subst, or in
23867# an unquoted here document, in config.status. If some macros were
23868# called several times there might be several #defines for the same
23869# symbol, which is useless. But do not sort them, since the last
23870# AC_DEFINE must be honored.
23871ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23872# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23873# NAME is the cpp macro being defined, VALUE is the value it is being given.
23874# PARAMS is the parameter list in the macro definition--in most cases, it's
23875# just an empty string.
23876ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23877ac_dB='\\)[ (].*,\\1define\\2'
23878ac_dC=' '
23879ac_dD=' ,'
23880
23881uniq confdefs.h |
23882 sed -n '
23883 t rset
23884 :rset
23885 s/^[ ]*#[ ]*define[ ][ ]*//
23886 t ok
23887 d
23888 :ok
23889 s/[\\&,]/\\&/g
23890 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23891 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23892 ' >>conftest.defines
23893
23894# Remove the space that was appended to ease matching.
23895# Then replace #undef with comments. This is necessary, for
23896# example, in the case of _POSIX_SOURCE, which is predefined and required
23897# on some systems where configure will not decide to define it.
23898# (The regexp can be short, since the line contains either #define or #undef.)
23899echo 's/ $//
23900s,^[ #]*u.*,/* & */,' >>conftest.defines
23901
23902# Break up conftest.defines:
23903ac_max_sed_lines=50
23904
23905# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23906# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23907# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23908# et cetera.
23909ac_in='$ac_file_inputs'
23910ac_out='"$tmp/out1"'
23911ac_nxt='"$tmp/out2"'
23912
23913while :
23914do
23915 # Write a here document:
23916 cat >>$CONFIG_STATUS <<_ACEOF
23917 # First, check the format of the line:
23918 cat >"\$tmp/defines.sed" <<\\CEOF
23919/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23920/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23921b
23922:def
23923_ACEOF
23924 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23925 echo 'CEOF
23926 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23927 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23928 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23929 grep . conftest.tail >/dev/null || break
23930 rm -f conftest.defines
23931 mv conftest.tail conftest.defines
23932done
23933rm -f conftest.defines conftest.tail
23934
23935echo "ac_result=$ac_in" >>$CONFIG_STATUS
23936cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023937 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023938 echo "/* $configure_input */" >"$tmp/config.h"
23939 cat "$ac_result" >>"$tmp/config.h"
23940 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23941 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23942echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000023943 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023944 rm -f $ac_file
23945 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000023946 fi
23947 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023948 echo "/* $configure_input */"
23949 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000023950 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023951 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000023952 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023953
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023954 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23955echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000023956 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023957 esac
John Criswell7a73b802003-06-30 21:59:07 +000023958
Reid Spencera773bd52006-08-04 18:18:08 +000023959
23960 case $ac_file$ac_mode in
23961 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023962 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023963 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000023964 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023965 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023966 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023967 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023968 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000023969 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023970 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023971 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023972 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023973 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000023974 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000023975 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023976 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023977 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023978 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023979 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023980 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023981 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023982 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000023983 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023984 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000023985 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000023986 ${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 +000023987
23988 esac
23989done # for ac_tag
23990
John Criswell7a73b802003-06-30 21:59:07 +000023991
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023992{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000023993_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023994chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000023995ac_clean_files=$ac_clean_files_save
23996
23997
23998# configure is writing to config.log, and then calls config.status.
23999# config.status does its own redirection, appending to config.log.
24000# Unfortunately, on DOS this fails, as config.log is still kept open
24001# by configure, so config.status won't be able to write to it; its
24002# output is simply discarded. So we exec the FD to /dev/null,
24003# effectively closing config.log, so it can be properly (re)opened and
24004# appended to by config.status. When coming back to configure, we
24005# need to make the FD available again.
24006if test "$no_create" != yes; then
24007 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000024008 ac_config_status_args=
24009 test "$silent" = yes &&
24010 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000024011 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000024012 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000024013 exec 5>>config.log
24014 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24015 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024016 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000024017fi
24018
John Criswell12399a12003-09-30 15:55:44 +000024019#
24020# CONFIG_SUBDIRS section.
24021#
24022if test "$no_recursion" != yes; then
24023
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024024 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000024025 ac_sub_configure_args=
24026 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000024027 eval "set x $ac_configure_args"
24028 shift
24029 for ac_arg
24030 do
John Criswell12399a12003-09-30 15:55:44 +000024031 if test -n "$ac_prev"; then
24032 ac_prev=
24033 continue
24034 fi
24035 case $ac_arg in
24036 -cache-file | --cache-file | --cache-fil | --cache-fi \
24037 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24038 ac_prev=cache_file ;;
24039 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24040 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24041 | --c=*)
24042 ;;
24043 --config-cache | -C)
24044 ;;
24045 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24046 ac_prev=srcdir ;;
24047 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24048 ;;
24049 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24050 ac_prev=prefix ;;
24051 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24052 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024053 *)
24054 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024055 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024056 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024057 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000024058 esac
24059 done
24060
24061 # Always prepend --prefix to ensure using the same prefix
24062 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000024063 ac_arg="--prefix=$prefix"
24064 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024065 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024066 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024067 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000024068
24069 ac_popdir=`pwd`
24070 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24071
24072 # Do not complain, so a configure script can configure whichever
24073 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000024074 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000024075
Reid Spencera773bd52006-08-04 18:18:08 +000024076 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024077 echo "$as_me:$LINENO: $ac_msg" >&5
24078 echo "$ac_msg" >&6
24079 { as_dir="$ac_dir"
24080 case $as_dir in #(
24081 -*) as_dir=./$as_dir;;
24082 esac
24083 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24084 as_dirs=
24085 while :; do
24086 case $as_dir in #(
24087 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24088 *) as_qdir=$as_dir;;
24089 esac
24090 as_dirs="'$as_qdir' $as_dirs"
24091 as_dir=`$as_dirname -- "$as_dir" ||
24092$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24093 X"$as_dir" : 'X\(//\)[^/]' \| \
24094 X"$as_dir" : 'X\(//\)$' \| \
24095 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24096echo X"$as_dir" |
24097 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24098 s//\1/
24099 q
24100 }
24101 /^X\(\/\/\)[^/].*/{
24102 s//\1/
24103 q
24104 }
24105 /^X\(\/\/\)$/{
24106 s//\1/
24107 q
24108 }
24109 /^X\(\/\).*/{
24110 s//\1/
24111 q
24112 }
24113 s/.*/./; q'`
24114 test -d "$as_dir" && break
24115 done
24116 test -z "$as_dirs" || eval "mkdir $as_dirs"
24117 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24118echo "$as_me: error: cannot create directory $as_dir" >&2;}
24119 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000024120 ac_builddir=.
24121
Reid Spencera773bd52006-08-04 18:18:08 +000024122case "$ac_dir" in
24123.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24124*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024125 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000024126 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024127 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000024128 case $ac_top_builddir_sub in
24129 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24130 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24131 esac ;;
24132esac
24133ac_abs_top_builddir=$ac_pwd
24134ac_abs_builddir=$ac_pwd$ac_dir_suffix
24135# for backward compatibility:
24136ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000024137
24138case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000024139 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000024140 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000024141 ac_top_srcdir=$ac_top_builddir_sub
24142 ac_abs_top_srcdir=$ac_pwd ;;
24143 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000024144 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000024145 ac_top_srcdir=$srcdir
24146 ac_abs_top_srcdir=$srcdir ;;
24147 *) # Relative name.
24148 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24149 ac_top_srcdir=$ac_top_build_prefix$srcdir
24150 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000024151esac
Reid Spencera773bd52006-08-04 18:18:08 +000024152ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000024153
24154
Reid Spencera773bd52006-08-04 18:18:08 +000024155 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000024156
24157 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000024158 if test -f "$ac_srcdir/configure.gnu"; then
24159 ac_sub_configure=$ac_srcdir/configure.gnu
24160 elif test -f "$ac_srcdir/configure"; then
24161 ac_sub_configure=$ac_srcdir/configure
24162 elif test -f "$ac_srcdir/configure.in"; then
24163 # This should be Cygnus configure.
24164 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000024165 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024166 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24167echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000024168 ac_sub_configure=
24169 fi
24170
24171 # The recursion is here.
24172 if test -n "$ac_sub_configure"; then
24173 # Make the cache file name correct relative to the subdirectory.
24174 case $cache_file in
24175 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024176 *) # Relative name.
24177 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000024178 esac
24179
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024180 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24181echo "$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 +000024182 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000024183 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24184 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024185 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24186echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24187 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000024188 fi
24189
Reid Spencera773bd52006-08-04 18:18:08 +000024190 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000024191 done
24192fi
24193