blob: d021372ad553361217fa7122fe73ece5620556ad [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ödindd54ffd2011-03-09 17:25:46 +00005120 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
Eric Christopher753f3262010-08-30 18:34:48 +00005121
5122cat >>confdefs.h <<_ACEOF
5123#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005124_ACEOF
5125
5126
5127cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005128#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5129_ACEOF
5130
5131
5132cat >>confdefs.h <<_ACEOF
5133#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005134_ACEOF
5135
Jan Sjödindd54ffd2011-03-09 17:25:46 +00005136
5137cat >>confdefs.h <<_ACEOF
5138#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5139_ACEOF
5140
Douglas Gregor0711c302009-06-17 00:43:20 +00005141 fi
5142done
5143
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005144# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5145# target feature def files.
Douglas Gregor1555a232009-06-16 20:12:29 +00005146LLVM_ENUM_TARGETS=""
5147LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005148LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005149LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005150for target_to_build in $TARGETS_TO_BUILD; do
5151 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattnere15f2e12010-11-14 19:10:47 +00005152 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach7ac16092010-10-01 22:39:28 +00005153 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5154 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005155 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5156 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5157 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005158 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5159 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5160 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005161done
5162
5163
5164
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005165
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005166
Reid Spencer65c5d752006-11-05 17:08:18 +00005167# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005168if test "${enable_cbe_printf_a+set}" = set; then
Reid Spencer65c5d752006-11-05 17:08:18 +00005169 enableval=$enable_cbe_printf_a;
5170else
5171 enableval=default
5172fi
5173
5174case "$enableval" in
5175 yes) ENABLE_CBE_PRINTF_A=1
5176 ;;
5177 no) ENABLE_CBE_PRINTF_A=0
5178 ;;
5179 default) ENABLE_CBE_PRINTF_A=1
5180 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005181 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5182echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5183 { (exit 1); exit 1; }; } ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005184esac
5185
5186cat >>confdefs.h <<_ACEOF
5187#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5188_ACEOF
5189
5190
Reid Spencera773bd52006-08-04 18:18:08 +00005191
5192# Check whether --with-llvmgccdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005193if test "${with_llvmgccdir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005194 withval=$with_llvmgccdir;
5195else
5196 withval=default
5197fi
5198
5199case "$withval" in
5200 default) WITH_LLVMGCCDIR=default ;;
5201 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005202 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5203echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5204 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005205esac
5206
5207
Devang Patel5d28b882007-12-04 22:54:47 +00005208# Check whether --with-llvmgcc was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005209if test "${with_llvmgcc+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005210 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5211 WITH_LLVMGCCDIR=""
5212fi
5213
5214
5215
5216# Check whether --with-llvmgxx was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005217if test "${with_llvmgxx+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005218 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5219 WITH_LLVMGCCDIR=""
5220fi
5221
Douglas Gregor01746742009-05-11 18:05:52 +00005222
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00005223if test -n "$LLVMGCC"; then
5224 LLVMGCCCOMMAND="$LLVMGCC"
5225fi
5226
5227if test -n "$LLVMGXX"; then
5228 LLVMGXXCOMMAND="$LLVMGXX"
5229fi
Devang Patel5d28b882007-12-04 22:54:47 +00005230
5231if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005232 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5233echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5234 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005235fi
5236
5237if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005238 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5239echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5240 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005241fi
5242
5243
Daniel Dunbar98515672010-02-23 10:00:49 +00005244# Check whether --with-clang was given.
5245if test "${with_clang+set}" = set; then
5246 withval=$with_clang;
5247else
5248 with_clang=default
5249fi
5250
5251
5252
5253# Check whether --with-built-clang was given.
5254if test "${with_built_clang+set}" = set; then
5255 withval=$with_built_clang;
5256else
5257 with_built_clang=check
5258fi
5259
5260
5261{ echo "$as_me:$LINENO: checking clang compiler" >&5
5262echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5263WITH_CLANGPATH=""
5264WITH_BUILT_CLANG=0
5265if test "$with_clang" != "default"; then
5266 WITH_CLANGPATH="$with_clang"
5267 if ! test -x "$WITH_CLANGPATH"; then
5268 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5269echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5270 { (exit 1); exit 1; }; }
5271 fi
5272elif test "$with_built_clang" = "yes"; then
5273 WITH_BUILT_CLANG=1
5274elif test "$with_built_clang" = "no"; then
5275 WITH_BUILT_CLANG=0
5276else
5277 if test "$with_built_clang" != "check"; then
5278 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5279echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5280 { (exit 1); exit 1; }; }
5281 fi
5282
5283 if test -f ${srcdir}/tools/clang/README.txt; then
5284 WITH_BUILT_CLANG=1
5285 fi
5286fi
5287
5288if ! test -z "$WITH_CLANGPATH"; then
5289 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5290echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5291 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5292elif test "$WITH_BUILT_CLANG" = "1"; then
5293 { echo "$as_me:$LINENO: result: built" >&5
5294echo "${ECHO_T}built" >&6; }
5295else
5296 { echo "$as_me:$LINENO: result: none" >&5
5297echo "${ECHO_T}none" >&6; }
5298fi
5299CLANGPATH=$WITH_CLANGPATH
5300
5301CLANGXXPATH=$WITH_CLANGXXPATH
5302
5303ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5304
5305
5306
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005307# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005308if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005309 withval=$with_optimize_option;
5310else
5311 withval=default
5312fi
5313
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005314{ echo "$as_me:$LINENO: checking optimization flags" >&5
5315echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005316case "$withval" in
5317 default)
5318 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005319 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005320 MingW) optimize_option=-O2 ;;
5321 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005322 esac ;;
5323 *) optimize_option="$withval" ;;
5324esac
5325OPTIMIZE_OPTION=$optimize_option
5326
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005327{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5328echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005329
5330
Reid Spencera773bd52006-08-04 18:18:08 +00005331# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005332if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005333 withval=$with_extra_options;
5334else
5335 withval=default
5336fi
5337
5338case "$withval" in
5339 default) EXTRA_OPTIONS= ;;
5340 *) EXTRA_OPTIONS=$withval ;;
5341esac
5342EXTRA_OPTIONS=$EXTRA_OPTIONS
5343
5344
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005345# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005346if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005347 enableval=$enable_bindings;
5348else
5349 enableval=default
5350fi
5351
5352BINDINGS_TO_BUILD=""
5353case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005354 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005355 all ) BINDINGS_TO_BUILD="ocaml" ;;
5356 none | no) BINDINGS_TO_BUILD="" ;;
5357 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5358 case "$a_binding" in
5359 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005360 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5361echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5362 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005363 esac
5364 done
5365 ;;
5366esac
5367
Reid Spencera773bd52006-08-04 18:18:08 +00005368
Gordon Henriksenf0915682007-10-02 16:42:22 +00005369# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005370if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005371 withval=$with_ocaml_libdir;
5372else
5373 withval=auto
5374fi
5375
5376case "$withval" in
5377 auto) with_ocaml_libdir="$withval" ;;
5378 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005379 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5380echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5381 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005382esac
5383
5384
Chandler Carruth6b241162010-10-19 08:21:25 +00005385# Check whether --with-clang-resource-dir was given.
5386if test "${with_clang_resource_dir+set}" = set; then
5387 withval=$with_clang_resource_dir;
5388else
5389 withval=""
5390fi
5391
5392
5393cat >>confdefs.h <<_ACEOF
5394#define CLANG_RESOURCE_DIR "$withval"
5395_ACEOF
5396
5397
5398
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005399# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005400if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005401 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005402else
5403 withval=""
5404fi
5405
5406
5407cat >>confdefs.h <<_ACEOF
5408#define C_INCLUDE_DIRS "$withval"
5409_ACEOF
5410
5411
5412
Rafael Espindola420d23c2009-11-16 19:46:55 +00005413# Check whether --with-cxx-include-root was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005414if test "${with_cxx_include_root+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005415 withval=$with_cxx_include_root;
5416else
5417 withval=""
5418fi
5419
5420
5421cat >>confdefs.h <<_ACEOF
5422#define CXX_INCLUDE_ROOT "$withval"
5423_ACEOF
5424
5425
5426
5427# Check whether --with-cxx-include-arch was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005428if test "${with_cxx_include_arch+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005429 withval=$with_cxx_include_arch;
5430else
5431 withval=""
5432fi
5433
5434
5435cat >>confdefs.h <<_ACEOF
5436#define CXX_INCLUDE_ARCH "$withval"
5437_ACEOF
5438
5439
5440
5441# Check whether --with-cxx-include-32bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005442if test "${with_cxx_include_32bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005443 withval=$with_cxx_include_32bit_dir;
5444else
5445 withval=""
5446fi
5447
5448
5449cat >>confdefs.h <<_ACEOF
5450#define CXX_INCLUDE_32BIT_DIR "$withval"
5451_ACEOF
5452
5453
5454
5455# Check whether --with-cxx-include-64bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005456if test "${with_cxx_include_64bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005457 withval=$with_cxx_include_64bit_dir;
5458else
5459 withval=""
5460fi
5461
5462
5463cat >>confdefs.h <<_ACEOF
5464#define CXX_INCLUDE_64BIT_DIR "$withval"
5465_ACEOF
5466
5467
5468
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005469# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005470if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005471 withval=$with_binutils_include;
5472else
5473 withval=default
5474fi
5475
5476case "$withval" in
5477 default) WITH_BINUTILS_INCDIR=default ;;
5478 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005479 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5480echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5481 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005482esac
5483if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5484 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5485
5486 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5487 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005488 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5489echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5490 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005491 fi
5492fi
5493
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005494# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005495if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005496 enableval=$enable_libffi; case "$enableval" in
5497 yes) llvm_cv_enable_libffi="yes" ;;
5498 no) llvm_cv_enable_libffi="no" ;;
5499 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005500echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5501 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005502 esac
5503else
5504 llvm_cv_enable_libffi=no
5505fi
5506
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005507
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005508
Reid Spencera773bd52006-08-04 18:18:08 +00005509ac_ext=c
5510ac_cpp='$CPP $CPPFLAGS'
5511ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5512ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5513ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005514{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5515echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005516# On Suns, sometimes $CPP names a directory.
5517if test -n "$CPP" && test -d "$CPP"; then
5518 CPP=
5519fi
5520if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005521 if test "${ac_cv_prog_CPP+set}" = set; then
5522 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005523else
5524 # Double quotes because CPP needs to be expanded
5525 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5526 do
5527 ac_preproc_ok=false
5528for ac_c_preproc_warn_flag in '' yes
5529do
5530 # Use a header file that comes with gcc, so configuring glibc
5531 # with a fresh cross-compiler works.
5532 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5533 # <limits.h> exists even on freestanding compilers.
5534 # On the NeXT, cc -E runs the code through the compiler's parser,
5535 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005536 cat >conftest.$ac_ext <<_ACEOF
5537/* confdefs.h. */
5538_ACEOF
5539cat confdefs.h >>conftest.$ac_ext
5540cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005541/* end confdefs.h. */
5542#ifdef __STDC__
5543# include <limits.h>
5544#else
5545# include <assert.h>
5546#endif
5547 Syntax error
5548_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005549if { (ac_try="$ac_cpp conftest.$ac_ext"
5550case "(($ac_try" in
5551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5552 *) ac_try_echo=$ac_try;;
5553esac
5554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5555 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5556 ac_status=$?
5557 grep -v '^ *+' conftest.er1 >conftest.err
5558 rm -f conftest.er1
5559 cat conftest.err >&5
5560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561 (exit $ac_status); } >/dev/null; then
5562 if test -s conftest.err; then
5563 ac_cpp_err=$ac_c_preproc_warn_flag
5564 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5565 else
5566 ac_cpp_err=
5567 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005568else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005569 ac_cpp_err=yes
5570fi
5571if test -z "$ac_cpp_err"; then
5572 :
5573else
5574 echo "$as_me: failed program was:" >&5
5575sed 's/^/| /' conftest.$ac_ext >&5
5576
Reid Spencera773bd52006-08-04 18:18:08 +00005577 # Broken: fails on valid input.
5578continue
5579fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005580
Reid Spencera773bd52006-08-04 18:18:08 +00005581rm -f conftest.err conftest.$ac_ext
5582
5583 # OK, works on sane cases. Now check whether nonexistent headers
5584 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005585 cat >conftest.$ac_ext <<_ACEOF
5586/* confdefs.h. */
5587_ACEOF
5588cat confdefs.h >>conftest.$ac_ext
5589cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005590/* end confdefs.h. */
5591#include <ac_nonexistent.h>
5592_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005593if { (ac_try="$ac_cpp conftest.$ac_ext"
5594case "(($ac_try" in
5595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5596 *) ac_try_echo=$ac_try;;
5597esac
5598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5599 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5600 ac_status=$?
5601 grep -v '^ *+' conftest.er1 >conftest.err
5602 rm -f conftest.er1
5603 cat conftest.err >&5
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); } >/dev/null; then
5606 if test -s conftest.err; then
5607 ac_cpp_err=$ac_c_preproc_warn_flag
5608 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5609 else
5610 ac_cpp_err=
5611 fi
5612else
5613 ac_cpp_err=yes
5614fi
5615if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005616 # Broken: success on invalid input.
5617continue
5618else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005619 echo "$as_me: failed program was:" >&5
5620sed 's/^/| /' conftest.$ac_ext >&5
5621
Reid Spencera773bd52006-08-04 18:18:08 +00005622 # Passes both tests.
5623ac_preproc_ok=:
5624break
5625fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005626
Reid Spencera773bd52006-08-04 18:18:08 +00005627rm -f conftest.err conftest.$ac_ext
5628
5629done
5630# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5631rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005632if $ac_preproc_ok; then
Reid Spencera773bd52006-08-04 18:18:08 +00005633 break
5634fi
5635
5636 done
5637 ac_cv_prog_CPP=$CPP
5638
5639fi
5640 CPP=$ac_cv_prog_CPP
5641else
5642 ac_cv_prog_CPP=$CPP
5643fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005644{ echo "$as_me:$LINENO: result: $CPP" >&5
5645echo "${ECHO_T}$CPP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005646ac_preproc_ok=false
5647for ac_c_preproc_warn_flag in '' yes
5648do
5649 # Use a header file that comes with gcc, so configuring glibc
5650 # with a fresh cross-compiler works.
5651 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5652 # <limits.h> exists even on freestanding compilers.
5653 # On the NeXT, cc -E runs the code through the compiler's parser,
5654 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005655 cat >conftest.$ac_ext <<_ACEOF
5656/* confdefs.h. */
5657_ACEOF
5658cat confdefs.h >>conftest.$ac_ext
5659cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005660/* end confdefs.h. */
5661#ifdef __STDC__
5662# include <limits.h>
5663#else
5664# include <assert.h>
5665#endif
5666 Syntax error
5667_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005668if { (ac_try="$ac_cpp conftest.$ac_ext"
5669case "(($ac_try" in
5670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5671 *) ac_try_echo=$ac_try;;
5672esac
5673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5674 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5675 ac_status=$?
5676 grep -v '^ *+' conftest.er1 >conftest.err
5677 rm -f conftest.er1
5678 cat conftest.err >&5
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); } >/dev/null; then
5681 if test -s conftest.err; then
5682 ac_cpp_err=$ac_c_preproc_warn_flag
5683 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5684 else
5685 ac_cpp_err=
5686 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005687else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005688 ac_cpp_err=yes
5689fi
5690if test -z "$ac_cpp_err"; then
5691 :
5692else
5693 echo "$as_me: failed program was:" >&5
5694sed 's/^/| /' conftest.$ac_ext >&5
5695
Reid Spencera773bd52006-08-04 18:18:08 +00005696 # Broken: fails on valid input.
5697continue
5698fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005699
Reid Spencera773bd52006-08-04 18:18:08 +00005700rm -f conftest.err conftest.$ac_ext
5701
5702 # OK, works on sane cases. Now check whether nonexistent headers
5703 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005704 cat >conftest.$ac_ext <<_ACEOF
5705/* confdefs.h. */
5706_ACEOF
5707cat confdefs.h >>conftest.$ac_ext
5708cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005709/* end confdefs.h. */
5710#include <ac_nonexistent.h>
5711_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005712if { (ac_try="$ac_cpp conftest.$ac_ext"
5713case "(($ac_try" in
5714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5715 *) ac_try_echo=$ac_try;;
5716esac
5717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5718 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5719 ac_status=$?
5720 grep -v '^ *+' conftest.er1 >conftest.err
5721 rm -f conftest.er1
5722 cat conftest.err >&5
5723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724 (exit $ac_status); } >/dev/null; then
5725 if test -s conftest.err; then
5726 ac_cpp_err=$ac_c_preproc_warn_flag
5727 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5728 else
5729 ac_cpp_err=
5730 fi
5731else
5732 ac_cpp_err=yes
5733fi
5734if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005735 # Broken: success on invalid input.
5736continue
5737else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005738 echo "$as_me: failed program was:" >&5
5739sed 's/^/| /' conftest.$ac_ext >&5
5740
Reid Spencera773bd52006-08-04 18:18:08 +00005741 # Passes both tests.
5742ac_preproc_ok=:
5743break
5744fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005745
Reid Spencera773bd52006-08-04 18:18:08 +00005746rm -f conftest.err conftest.$ac_ext
5747
5748done
5749# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5750rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005751if $ac_preproc_ok; then
5752 :
Reid Spencera773bd52006-08-04 18:18:08 +00005753else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005754 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5755See \`config.log' for more details." >&5
5756echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5757See \`config.log' for more details." >&2;}
5758 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005759fi
5760
5761ac_ext=c
5762ac_cpp='$CPP $CPPFLAGS'
5763ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5764ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5765ac_compiler_gnu=$ac_cv_c_compiler_gnu
5766
5767ac_ext=c
5768ac_cpp='$CPP $CPPFLAGS'
5769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5771ac_compiler_gnu=$ac_cv_c_compiler_gnu
5772if test -n "$ac_tool_prefix"; then
5773 for ac_prog in gcc
5774 do
5775 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5776set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005777{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5778echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5779if test "${ac_cv_prog_CC+set}" = set; then
5780 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005781else
5782 if test -n "$CC"; then
5783 ac_cv_prog_CC="$CC" # Let the user override the test.
5784else
5785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5786for as_dir in $PATH
5787do
5788 IFS=$as_save_IFS
5789 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005790 for ac_exec_ext in '' $ac_executable_extensions; do
5791 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 +00005792 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005794 break 2
5795 fi
5796done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005797done
Reid Spencera773bd52006-08-04 18:18:08 +00005798IFS=$as_save_IFS
5799
5800fi
5801fi
5802CC=$ac_cv_prog_CC
5803if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005804 { echo "$as_me:$LINENO: result: $CC" >&5
5805echo "${ECHO_T}$CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005806else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005807 { echo "$as_me:$LINENO: result: no" >&5
5808echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005809fi
5810
5811
5812 test -n "$CC" && break
5813 done
5814fi
5815if test -z "$CC"; then
5816 ac_ct_CC=$CC
5817 for ac_prog in gcc
5818do
5819 # Extract the first word of "$ac_prog", so it can be a program name with args.
5820set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005821{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5823if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5824 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005825else
5826 if test -n "$ac_ct_CC"; then
5827 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5828else
5829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5830for as_dir in $PATH
5831do
5832 IFS=$as_save_IFS
5833 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005834 for ac_exec_ext in '' $ac_executable_extensions; do
5835 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 +00005836 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005838 break 2
5839 fi
5840done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005841done
Reid Spencera773bd52006-08-04 18:18:08 +00005842IFS=$as_save_IFS
5843
5844fi
5845fi
5846ac_ct_CC=$ac_cv_prog_ac_ct_CC
5847if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005848 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5849echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005850else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005851 { echo "$as_me:$LINENO: result: no" >&5
5852echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005853fi
5854
5855
5856 test -n "$ac_ct_CC" && break
5857done
5858
5859 if test "x$ac_ct_CC" = x; then
5860 CC=""
5861 else
5862 case $cross_compiling:$ac_tool_warned in
5863yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005864{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5865whose name does not start with the host triplet. If you think this
5866configuration is useful to you, please write to autoconf@gnu.org." >&5
5867echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5868whose name does not start with the host triplet. If you think this
5869configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00005870ac_tool_warned=yes ;;
5871esac
5872 CC=$ac_ct_CC
5873 fi
5874fi
5875
5876
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005877test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5878See \`config.log' for more details." >&5
5879echo "$as_me: error: no acceptable C compiler found in \$PATH
5880See \`config.log' for more details." >&2;}
5881 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005882
5883# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005884echo "$as_me:$LINENO: checking for C compiler version" >&5
5885ac_compiler=`set X $ac_compile; echo $2`
5886{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00005887case "(($ac_try" in
5888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5889 *) ac_try_echo=$ac_try;;
5890esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5892 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00005893 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); }
5896{ (ac_try="$ac_compiler -v >&5"
5897case "(($ac_try" in
5898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5899 *) ac_try_echo=$ac_try;;
5900esac
5901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5902 (eval "$ac_compiler -v >&5") 2>&5
5903 ac_status=$?
5904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905 (exit $ac_status); }
5906{ (ac_try="$ac_compiler -V >&5"
5907case "(($ac_try" in
5908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5909 *) ac_try_echo=$ac_try;;
5910esac
5911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5912 (eval "$ac_compiler -V >&5") 2>&5
5913 ac_status=$?
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00005916
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005917{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5918echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5919if test "${ac_cv_c_compiler_gnu+set}" = set; then
5920 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005921else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005922 cat >conftest.$ac_ext <<_ACEOF
5923/* confdefs.h. */
5924_ACEOF
5925cat confdefs.h >>conftest.$ac_ext
5926cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005927/* end confdefs.h. */
5928
5929int
5930main ()
5931{
5932#ifndef __GNUC__
5933 choke me
5934#endif
5935
5936 ;
5937 return 0;
5938}
5939_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005940rm -f conftest.$ac_objext
5941if { (ac_try="$ac_compile"
5942case "(($ac_try" in
5943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5944 *) ac_try_echo=$ac_try;;
5945esac
5946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5947 (eval "$ac_compile") 2>conftest.er1
5948 ac_status=$?
5949 grep -v '^ *+' conftest.er1 >conftest.err
5950 rm -f conftest.er1
5951 cat conftest.err >&5
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); } &&
5954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5955 { (case "(($ac_try" in
5956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5957 *) ac_try_echo=$ac_try;;
5958esac
5959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5960 (eval "$ac_try") 2>&5
5961 ac_status=$?
5962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963 (exit $ac_status); }; } &&
5964 { ac_try='test -s conftest.$ac_objext'
5965 { (case "(($ac_try" in
5966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5967 *) ac_try_echo=$ac_try;;
5968esac
5969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5970 (eval "$ac_try") 2>&5
5971 ac_status=$?
5972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005974 ac_compiler_gnu=yes
5975else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005976 echo "$as_me: failed program was:" >&5
5977sed 's/^/| /' conftest.$ac_ext >&5
5978
5979 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00005980fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005981
Reid Spencera773bd52006-08-04 18:18:08 +00005982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5983ac_cv_c_compiler_gnu=$ac_compiler_gnu
5984
5985fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005986{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5987echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5988GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00005989ac_test_CFLAGS=${CFLAGS+set}
5990ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005991{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5992echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5993if test "${ac_cv_prog_cc_g+set}" = set; then
5994 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005995else
5996 ac_save_c_werror_flag=$ac_c_werror_flag
5997 ac_c_werror_flag=yes
5998 ac_cv_prog_cc_g=no
5999 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006000 cat >conftest.$ac_ext <<_ACEOF
6001/* confdefs.h. */
6002_ACEOF
6003cat confdefs.h >>conftest.$ac_ext
6004cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006005/* end confdefs.h. */
6006
6007int
6008main ()
6009{
6010
6011 ;
6012 return 0;
6013}
6014_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006015rm -f conftest.$ac_objext
6016if { (ac_try="$ac_compile"
6017case "(($ac_try" in
6018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6019 *) ac_try_echo=$ac_try;;
6020esac
6021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6022 (eval "$ac_compile") 2>conftest.er1
6023 ac_status=$?
6024 grep -v '^ *+' conftest.er1 >conftest.err
6025 rm -f conftest.er1
6026 cat conftest.err >&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); } &&
6029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6030 { (case "(($ac_try" in
6031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6032 *) ac_try_echo=$ac_try;;
6033esac
6034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6035 (eval "$ac_try") 2>&5
6036 ac_status=$?
6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); }; } &&
6039 { ac_try='test -s conftest.$ac_objext'
6040 { (case "(($ac_try" in
6041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6042 *) ac_try_echo=$ac_try;;
6043esac
6044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6045 (eval "$ac_try") 2>&5
6046 ac_status=$?
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006049 ac_cv_prog_cc_g=yes
6050else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006051 echo "$as_me: failed program was:" >&5
6052sed 's/^/| /' conftest.$ac_ext >&5
6053
6054 CFLAGS=""
6055 cat >conftest.$ac_ext <<_ACEOF
6056/* confdefs.h. */
6057_ACEOF
6058cat confdefs.h >>conftest.$ac_ext
6059cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006060/* end confdefs.h. */
6061
6062int
6063main ()
6064{
6065
6066 ;
6067 return 0;
6068}
6069_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006070rm -f conftest.$ac_objext
6071if { (ac_try="$ac_compile"
6072case "(($ac_try" in
6073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6074 *) ac_try_echo=$ac_try;;
6075esac
6076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6077 (eval "$ac_compile") 2>conftest.er1
6078 ac_status=$?
6079 grep -v '^ *+' conftest.er1 >conftest.err
6080 rm -f conftest.er1
6081 cat conftest.err >&5
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); } &&
6084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6085 { (case "(($ac_try" in
6086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6087 *) ac_try_echo=$ac_try;;
6088esac
6089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6090 (eval "$ac_try") 2>&5
6091 ac_status=$?
6092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093 (exit $ac_status); }; } &&
6094 { ac_try='test -s conftest.$ac_objext'
6095 { (case "(($ac_try" in
6096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6097 *) ac_try_echo=$ac_try;;
6098esac
6099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6100 (eval "$ac_try") 2>&5
6101 ac_status=$?
6102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103 (exit $ac_status); }; }; then
6104 :
Torok Edwin871384f2010-01-26 08:50:50 +00006105else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006106 echo "$as_me: failed program was:" >&5
6107sed 's/^/| /' conftest.$ac_ext >&5
6108
6109 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00006110 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006111 cat >conftest.$ac_ext <<_ACEOF
6112/* confdefs.h. */
6113_ACEOF
6114cat confdefs.h >>conftest.$ac_ext
6115cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006116/* end confdefs.h. */
6117
6118int
6119main ()
6120{
6121
6122 ;
6123 return 0;
6124}
6125_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006126rm -f conftest.$ac_objext
6127if { (ac_try="$ac_compile"
6128case "(($ac_try" in
6129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6130 *) ac_try_echo=$ac_try;;
6131esac
6132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6133 (eval "$ac_compile") 2>conftest.er1
6134 ac_status=$?
6135 grep -v '^ *+' conftest.er1 >conftest.err
6136 rm -f conftest.er1
6137 cat conftest.err >&5
6138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139 (exit $ac_status); } &&
6140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6141 { (case "(($ac_try" in
6142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6143 *) ac_try_echo=$ac_try;;
6144esac
6145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6146 (eval "$ac_try") 2>&5
6147 ac_status=$?
6148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149 (exit $ac_status); }; } &&
6150 { ac_try='test -s conftest.$ac_objext'
6151 { (case "(($ac_try" in
6152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6153 *) ac_try_echo=$ac_try;;
6154esac
6155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6156 (eval "$ac_try") 2>&5
6157 ac_status=$?
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006160 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006161else
6162 echo "$as_me: failed program was:" >&5
6163sed 's/^/| /' conftest.$ac_ext >&5
6164
6165
Reid Spencera773bd52006-08-04 18:18:08 +00006166fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006167
Reid Spencera773bd52006-08-04 18:18:08 +00006168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6169fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006170
Reid Spencera773bd52006-08-04 18:18:08 +00006171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6172fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006173
Reid Spencera773bd52006-08-04 18:18:08 +00006174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6175 ac_c_werror_flag=$ac_save_c_werror_flag
6176fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006177{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6178echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006179if test "$ac_test_CFLAGS" = set; then
6180 CFLAGS=$ac_save_CFLAGS
6181elif test $ac_cv_prog_cc_g = yes; then
6182 if test "$GCC" = yes; then
6183 CFLAGS="-g -O2"
6184 else
6185 CFLAGS="-g"
6186 fi
6187else
6188 if test "$GCC" = yes; then
6189 CFLAGS="-O2"
6190 else
6191 CFLAGS=
6192 fi
6193fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006194{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6195echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6196if test "${ac_cv_prog_cc_c89+set}" = set; then
6197 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006198else
6199 ac_cv_prog_cc_c89=no
6200ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006201cat >conftest.$ac_ext <<_ACEOF
6202/* confdefs.h. */
6203_ACEOF
6204cat confdefs.h >>conftest.$ac_ext
6205cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006206/* end confdefs.h. */
6207#include <stdarg.h>
6208#include <stdio.h>
6209#include <sys/types.h>
6210#include <sys/stat.h>
6211/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6212struct buf { int x; };
6213FILE * (*rcsopen) (struct buf *, struct stat *, int);
6214static char *e (p, i)
6215 char **p;
6216 int i;
6217{
6218 return p[i];
6219}
6220static char *f (char * (*g) (char **, int), char **p, ...)
6221{
6222 char *s;
6223 va_list v;
6224 va_start (v,p);
6225 s = g (p, va_arg (v,int));
6226 va_end (v);
6227 return s;
6228}
6229
6230/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6231 function prototypes and stuff, but not '\xHH' hex character constants.
6232 These don't provoke an error unfortunately, instead are silently treated
6233 as 'x'. The following induces an error, until -std is added to get
6234 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6235 array size at least. It's necessary to write '\x00'==0 to get something
6236 that's true only with -std. */
6237int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6238
6239/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6240 inside strings and character constants. */
6241#define FOO(x) 'x'
6242int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6243
6244int test (int i, double x);
6245struct s1 {int (*f) (int a);};
6246struct s2 {int (*f) (double a);};
6247int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6248int argc;
6249char **argv;
6250int
6251main ()
6252{
6253return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6254 ;
6255 return 0;
6256}
6257_ACEOF
6258for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6259 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6260do
6261 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006262 rm -f conftest.$ac_objext
6263if { (ac_try="$ac_compile"
6264case "(($ac_try" in
6265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6266 *) ac_try_echo=$ac_try;;
6267esac
6268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6269 (eval "$ac_compile") 2>conftest.er1
6270 ac_status=$?
6271 grep -v '^ *+' conftest.er1 >conftest.err
6272 rm -f conftest.er1
6273 cat conftest.err >&5
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); } &&
6276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6277 { (case "(($ac_try" in
6278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6279 *) ac_try_echo=$ac_try;;
6280esac
6281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6282 (eval "$ac_try") 2>&5
6283 ac_status=$?
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); }; } &&
6286 { ac_try='test -s conftest.$ac_objext'
6287 { (case "(($ac_try" in
6288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6289 *) ac_try_echo=$ac_try;;
6290esac
6291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6292 (eval "$ac_try") 2>&5
6293 ac_status=$?
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006296 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006297else
6298 echo "$as_me: failed program was:" >&5
6299sed 's/^/| /' conftest.$ac_ext >&5
6300
6301
Reid Spencera773bd52006-08-04 18:18:08 +00006302fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006303
Reid Spencera773bd52006-08-04 18:18:08 +00006304rm -f core conftest.err conftest.$ac_objext
6305 test "x$ac_cv_prog_cc_c89" != "xno" && break
6306done
6307rm -f conftest.$ac_ext
6308CC=$ac_save_CC
6309
6310fi
6311# AC_CACHE_VAL
6312case "x$ac_cv_prog_cc_c89" in
6313 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006314 { echo "$as_me:$LINENO: result: none needed" >&5
6315echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006316 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006317 { echo "$as_me:$LINENO: result: unsupported" >&5
6318echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006319 *)
6320 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006321 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6322echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006323esac
6324
6325
6326ac_ext=c
6327ac_cpp='$CPP $CPPFLAGS'
6328ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6329ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6330ac_compiler_gnu=$ac_cv_c_compiler_gnu
6331
6332ac_ext=cpp
6333ac_cpp='$CXXCPP $CPPFLAGS'
6334ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6335ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6336ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6337if test -z "$CXX"; then
6338 if test -n "$CCC"; then
6339 CXX=$CCC
6340 else
6341 if test -n "$ac_tool_prefix"; then
6342 for ac_prog in g++
6343 do
6344 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6345set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006346{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6348if test "${ac_cv_prog_CXX+set}" = set; then
6349 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006350else
6351 if test -n "$CXX"; then
6352 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6353else
6354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6355for as_dir in $PATH
6356do
6357 IFS=$as_save_IFS
6358 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006359 for ac_exec_ext in '' $ac_executable_extensions; do
6360 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 +00006361 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006363 break 2
6364 fi
6365done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006366done
Reid Spencera773bd52006-08-04 18:18:08 +00006367IFS=$as_save_IFS
6368
6369fi
6370fi
6371CXX=$ac_cv_prog_CXX
6372if test -n "$CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006373 { echo "$as_me:$LINENO: result: $CXX" >&5
6374echo "${ECHO_T}$CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006375else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006376 { echo "$as_me:$LINENO: result: no" >&5
6377echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006378fi
6379
6380
6381 test -n "$CXX" && break
6382 done
6383fi
6384if test -z "$CXX"; then
6385 ac_ct_CXX=$CXX
6386 for ac_prog in g++
6387do
6388 # Extract the first word of "$ac_prog", so it can be a program name with args.
6389set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006390{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6391echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6392if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6393 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006394else
6395 if test -n "$ac_ct_CXX"; then
6396 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6397else
6398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6399for as_dir in $PATH
6400do
6401 IFS=$as_save_IFS
6402 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006403 for ac_exec_ext in '' $ac_executable_extensions; do
6404 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 +00006405 ac_cv_prog_ac_ct_CXX="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006407 break 2
6408 fi
6409done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006410done
Reid Spencera773bd52006-08-04 18:18:08 +00006411IFS=$as_save_IFS
6412
6413fi
6414fi
6415ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6416if test -n "$ac_ct_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006417 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6418echo "${ECHO_T}$ac_ct_CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006419else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006420 { echo "$as_me:$LINENO: result: no" >&5
6421echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006422fi
6423
6424
6425 test -n "$ac_ct_CXX" && break
6426done
6427
6428 if test "x$ac_ct_CXX" = x; then
6429 CXX="g++"
6430 else
6431 case $cross_compiling:$ac_tool_warned in
6432yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006433{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6434whose name does not start with the host triplet. If you think this
6435configuration is useful to you, please write to autoconf@gnu.org." >&5
6436echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6437whose name does not start with the host triplet. If you think this
6438configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006439ac_tool_warned=yes ;;
6440esac
6441 CXX=$ac_ct_CXX
6442 fi
6443fi
6444
6445 fi
6446fi
6447# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006448echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6449ac_compiler=`set X $ac_compile; echo $2`
6450{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00006451case "(($ac_try" in
6452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6453 *) ac_try_echo=$ac_try;;
6454esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6456 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00006457 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); }
6460{ (ac_try="$ac_compiler -v >&5"
6461case "(($ac_try" in
6462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6463 *) ac_try_echo=$ac_try;;
6464esac
6465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6466 (eval "$ac_compiler -v >&5") 2>&5
6467 ac_status=$?
6468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469 (exit $ac_status); }
6470{ (ac_try="$ac_compiler -V >&5"
6471case "(($ac_try" in
6472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6473 *) ac_try_echo=$ac_try;;
6474esac
6475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6476 (eval "$ac_compiler -V >&5") 2>&5
6477 ac_status=$?
6478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00006480
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006481{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6482echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6483if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6484 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006485else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006486 cat >conftest.$ac_ext <<_ACEOF
6487/* confdefs.h. */
6488_ACEOF
6489cat confdefs.h >>conftest.$ac_ext
6490cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006491/* end confdefs.h. */
6492
6493int
6494main ()
6495{
6496#ifndef __GNUC__
6497 choke me
6498#endif
6499
6500 ;
6501 return 0;
6502}
6503_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006504rm -f conftest.$ac_objext
6505if { (ac_try="$ac_compile"
6506case "(($ac_try" in
6507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6508 *) ac_try_echo=$ac_try;;
6509esac
6510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6511 (eval "$ac_compile") 2>conftest.er1
6512 ac_status=$?
6513 grep -v '^ *+' conftest.er1 >conftest.err
6514 rm -f conftest.er1
6515 cat conftest.err >&5
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); } &&
6518 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6519 { (case "(($ac_try" in
6520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6521 *) ac_try_echo=$ac_try;;
6522esac
6523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6524 (eval "$ac_try") 2>&5
6525 ac_status=$?
6526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527 (exit $ac_status); }; } &&
6528 { ac_try='test -s conftest.$ac_objext'
6529 { (case "(($ac_try" in
6530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6531 *) ac_try_echo=$ac_try;;
6532esac
6533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6534 (eval "$ac_try") 2>&5
6535 ac_status=$?
6536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006538 ac_compiler_gnu=yes
6539else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006540 echo "$as_me: failed program was:" >&5
6541sed 's/^/| /' conftest.$ac_ext >&5
6542
6543 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00006544fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006545
Reid Spencera773bd52006-08-04 18:18:08 +00006546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6547ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6548
6549fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006550{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6551echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6552GXX=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00006553ac_test_CXXFLAGS=${CXXFLAGS+set}
6554ac_save_CXXFLAGS=$CXXFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006555{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6556echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6557if test "${ac_cv_prog_cxx_g+set}" = set; then
6558 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006559else
6560 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6561 ac_cxx_werror_flag=yes
6562 ac_cv_prog_cxx_g=no
6563 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006564 cat >conftest.$ac_ext <<_ACEOF
6565/* confdefs.h. */
6566_ACEOF
6567cat confdefs.h >>conftest.$ac_ext
6568cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006569/* end confdefs.h. */
6570
6571int
6572main ()
6573{
6574
6575 ;
6576 return 0;
6577}
6578_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006579rm -f conftest.$ac_objext
6580if { (ac_try="$ac_compile"
6581case "(($ac_try" in
6582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6583 *) ac_try_echo=$ac_try;;
6584esac
6585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6586 (eval "$ac_compile") 2>conftest.er1
6587 ac_status=$?
6588 grep -v '^ *+' conftest.er1 >conftest.err
6589 rm -f conftest.er1
6590 cat conftest.err >&5
6591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592 (exit $ac_status); } &&
6593 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6594 { (case "(($ac_try" in
6595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6596 *) ac_try_echo=$ac_try;;
6597esac
6598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6599 (eval "$ac_try") 2>&5
6600 ac_status=$?
6601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602 (exit $ac_status); }; } &&
6603 { ac_try='test -s conftest.$ac_objext'
6604 { (case "(($ac_try" in
6605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6606 *) ac_try_echo=$ac_try;;
6607esac
6608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6609 (eval "$ac_try") 2>&5
6610 ac_status=$?
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006613 ac_cv_prog_cxx_g=yes
6614else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006615 echo "$as_me: failed program was:" >&5
6616sed 's/^/| /' conftest.$ac_ext >&5
6617
6618 CXXFLAGS=""
6619 cat >conftest.$ac_ext <<_ACEOF
6620/* confdefs.h. */
6621_ACEOF
6622cat confdefs.h >>conftest.$ac_ext
6623cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006624/* end confdefs.h. */
6625
6626int
6627main ()
6628{
6629
6630 ;
6631 return 0;
6632}
6633_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006634rm -f conftest.$ac_objext
6635if { (ac_try="$ac_compile"
6636case "(($ac_try" in
6637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6638 *) ac_try_echo=$ac_try;;
6639esac
6640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6641 (eval "$ac_compile") 2>conftest.er1
6642 ac_status=$?
6643 grep -v '^ *+' conftest.er1 >conftest.err
6644 rm -f conftest.er1
6645 cat conftest.err >&5
6646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647 (exit $ac_status); } &&
6648 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6649 { (case "(($ac_try" in
6650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6651 *) ac_try_echo=$ac_try;;
6652esac
6653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6654 (eval "$ac_try") 2>&5
6655 ac_status=$?
6656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657 (exit $ac_status); }; } &&
6658 { ac_try='test -s conftest.$ac_objext'
6659 { (case "(($ac_try" in
6660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6661 *) ac_try_echo=$ac_try;;
6662esac
6663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6664 (eval "$ac_try") 2>&5
6665 ac_status=$?
6666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); }; }; then
6668 :
Torok Edwin871384f2010-01-26 08:50:50 +00006669else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006670 echo "$as_me: failed program was:" >&5
6671sed 's/^/| /' conftest.$ac_ext >&5
6672
6673 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00006674 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006675 cat >conftest.$ac_ext <<_ACEOF
6676/* confdefs.h. */
6677_ACEOF
6678cat confdefs.h >>conftest.$ac_ext
6679cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006680/* end confdefs.h. */
6681
6682int
6683main ()
6684{
6685
6686 ;
6687 return 0;
6688}
6689_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006690rm -f conftest.$ac_objext
6691if { (ac_try="$ac_compile"
6692case "(($ac_try" in
6693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6694 *) ac_try_echo=$ac_try;;
6695esac
6696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6697 (eval "$ac_compile") 2>conftest.er1
6698 ac_status=$?
6699 grep -v '^ *+' conftest.er1 >conftest.err
6700 rm -f conftest.er1
6701 cat conftest.err >&5
6702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703 (exit $ac_status); } &&
6704 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6705 { (case "(($ac_try" in
6706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6707 *) ac_try_echo=$ac_try;;
6708esac
6709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6710 (eval "$ac_try") 2>&5
6711 ac_status=$?
6712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713 (exit $ac_status); }; } &&
6714 { ac_try='test -s conftest.$ac_objext'
6715 { (case "(($ac_try" in
6716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6717 *) ac_try_echo=$ac_try;;
6718esac
6719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6720 (eval "$ac_try") 2>&5
6721 ac_status=$?
6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006724 ac_cv_prog_cxx_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006725else
6726 echo "$as_me: failed program was:" >&5
6727sed 's/^/| /' conftest.$ac_ext >&5
6728
6729
Reid Spencera773bd52006-08-04 18:18:08 +00006730fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006731
Reid Spencera773bd52006-08-04 18:18:08 +00006732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6733fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006734
Reid Spencera773bd52006-08-04 18:18:08 +00006735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6736fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006737
Reid Spencera773bd52006-08-04 18:18:08 +00006738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6739 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6740fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006741{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6742echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006743if test "$ac_test_CXXFLAGS" = set; then
6744 CXXFLAGS=$ac_save_CXXFLAGS
6745elif test $ac_cv_prog_cxx_g = yes; then
6746 if test "$GXX" = yes; then
6747 CXXFLAGS="-g -O2"
6748 else
6749 CXXFLAGS="-g"
6750 fi
6751else
6752 if test "$GXX" = yes; then
6753 CXXFLAGS="-O2"
6754 else
6755 CXXFLAGS=
6756 fi
6757fi
6758ac_ext=c
6759ac_cpp='$CPP $CPPFLAGS'
6760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6762ac_compiler_gnu=$ac_cv_c_compiler_gnu
6763
Reid Spencera773bd52006-08-04 18:18:08 +00006764
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006765{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6766echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6767if test "${lt_cv_path_NM+set}" = set; then
6768 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006769else
6770 if test -n "$NM"; then
6771 # Let the user override the test.
6772 lt_cv_path_NM="$NM"
6773else
6774 lt_nm_to_check="${ac_tool_prefix}nm"
6775 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6776 lt_nm_to_check="$lt_nm_to_check nm"
6777 fi
6778 for lt_tmp_nm in $lt_nm_to_check; do
6779 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6780 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6781 IFS="$lt_save_ifs"
6782 test -z "$ac_dir" && ac_dir=.
6783 tmp_nm="$ac_dir/$lt_tmp_nm"
6784 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6785 # Check to see if the nm accepts a BSD-compat flag.
6786 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6787 # nm: unknown option "B" ignored
6788 # Tru64's nm complains that /dev/null is an invalid object file
6789 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6790 */dev/null* | *'Invalid file or object type'*)
6791 lt_cv_path_NM="$tmp_nm -B"
6792 break
6793 ;;
6794 *)
6795 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6796 */dev/null*)
6797 lt_cv_path_NM="$tmp_nm -p"
6798 break
6799 ;;
6800 *)
6801 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6802 continue # so that we can try to find one that supports BSD flags
6803 ;;
6804 esac
6805 ;;
6806 esac
6807 fi
6808 done
6809 IFS="$lt_save_ifs"
6810 done
6811 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6812fi
6813fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006814{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6815echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006816NM="$lt_cv_path_NM"
6817
6818
6819
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006820{ echo "$as_me:$LINENO: checking for GNU make" >&5
6821echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6822if test "${llvm_cv_gnu_make_command+set}" = set; then
6823 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006824else
6825 llvm_cv_gnu_make_command=''
6826 for a in "$MAKE" make gmake gnumake ; do
6827 if test -z "$a" ; then continue ; fi ;
6828 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6829 then
6830 llvm_cv_gnu_make_command=$a ;
6831 break;
6832 fi
6833 done
6834fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006835{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6836echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006837 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6838 ifGNUmake='' ;
6839 else
6840 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006841 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6842echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00006843 fi
6844
6845
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006846{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6847echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006848LN_S=$as_ln_s
6849if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006850 { echo "$as_me:$LINENO: result: yes" >&5
6851echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006852else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006853 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6854echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006855fi
6856
6857# Extract the first word of "cmp", so it can be a program name with args.
6858set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006859{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6860echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6861if test "${ac_cv_path_CMP+set}" = set; then
6862 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006863else
6864 case $CMP in
6865 [\\/]* | ?:[\\/]*)
6866 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6867 ;;
6868 *)
6869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6870for as_dir in $PATH
6871do
6872 IFS=$as_save_IFS
6873 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006874 for ac_exec_ext in '' $ac_executable_extensions; do
6875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006876 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006878 break 2
6879 fi
6880done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006881done
Reid Spencera773bd52006-08-04 18:18:08 +00006882IFS=$as_save_IFS
6883
6884 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6885 ;;
6886esac
6887fi
6888CMP=$ac_cv_path_CMP
6889if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006890 { echo "$as_me:$LINENO: result: $CMP" >&5
6891echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006892else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006893 { echo "$as_me:$LINENO: result: no" >&5
6894echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006895fi
6896
6897
6898# Extract the first word of "cp", so it can be a program name with args.
6899set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006900{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6902if test "${ac_cv_path_CP+set}" = set; then
6903 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006904else
6905 case $CP in
6906 [\\/]* | ?:[\\/]*)
6907 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6908 ;;
6909 *)
6910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6911for as_dir in $PATH
6912do
6913 IFS=$as_save_IFS
6914 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006915 for ac_exec_ext in '' $ac_executable_extensions; do
6916 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 +00006917 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006919 break 2
6920 fi
6921done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006922done
Reid Spencera773bd52006-08-04 18:18:08 +00006923IFS=$as_save_IFS
6924
6925 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6926 ;;
6927esac
6928fi
6929CP=$ac_cv_path_CP
6930if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006931 { echo "$as_me:$LINENO: result: $CP" >&5
6932echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006933else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006934 { echo "$as_me:$LINENO: result: no" >&5
6935echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006936fi
6937
6938
6939# Extract the first word of "date", so it can be a program name with args.
6940set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006941{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6942echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6943if test "${ac_cv_path_DATE+set}" = set; then
6944 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006945else
6946 case $DATE in
6947 [\\/]* | ?:[\\/]*)
6948 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6949 ;;
6950 *)
6951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6952for as_dir in $PATH
6953do
6954 IFS=$as_save_IFS
6955 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006956 for ac_exec_ext in '' $ac_executable_extensions; do
6957 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 +00006958 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006960 break 2
6961 fi
6962done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006963done
Reid Spencera773bd52006-08-04 18:18:08 +00006964IFS=$as_save_IFS
6965
6966 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6967 ;;
6968esac
6969fi
6970DATE=$ac_cv_path_DATE
6971if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006972 { echo "$as_me:$LINENO: result: $DATE" >&5
6973echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006974else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006975 { echo "$as_me:$LINENO: result: no" >&5
6976echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006977fi
6978
6979
6980# Extract the first word of "find", so it can be a program name with args.
6981set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006982{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6983echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6984if test "${ac_cv_path_FIND+set}" = set; then
6985 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006986else
6987 case $FIND in
6988 [\\/]* | ?:[\\/]*)
6989 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6990 ;;
6991 *)
6992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6993for as_dir in $PATH
6994do
6995 IFS=$as_save_IFS
6996 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006997 for ac_exec_ext in '' $ac_executable_extensions; do
6998 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 +00006999 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007001 break 2
7002 fi
7003done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007004done
Reid Spencera773bd52006-08-04 18:18:08 +00007005IFS=$as_save_IFS
7006
7007 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
7008 ;;
7009esac
7010fi
7011FIND=$ac_cv_path_FIND
7012if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007013 { echo "$as_me:$LINENO: result: $FIND" >&5
7014echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007015else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007016 { echo "$as_me:$LINENO: result: no" >&5
7017echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007018fi
7019
7020
7021# Extract the first word of "grep", so it can be a program name with args.
7022set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007023{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7025if test "${ac_cv_path_GREP+set}" = set; then
7026 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007027else
7028 case $GREP in
7029 [\\/]* | ?:[\\/]*)
7030 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
7031 ;;
7032 *)
7033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7034for as_dir in $PATH
7035do
7036 IFS=$as_save_IFS
7037 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007038 for ac_exec_ext in '' $ac_executable_extensions; do
7039 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 +00007040 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007042 break 2
7043 fi
7044done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007045done
Reid Spencera773bd52006-08-04 18:18:08 +00007046IFS=$as_save_IFS
7047
7048 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
7049 ;;
7050esac
7051fi
7052GREP=$ac_cv_path_GREP
7053if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007054 { echo "$as_me:$LINENO: result: $GREP" >&5
7055echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007056else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007057 { echo "$as_me:$LINENO: result: no" >&5
7058echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007059fi
7060
7061
7062# Extract the first word of "mkdir", so it can be a program name with args.
7063set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007064{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7066if test "${ac_cv_path_MKDIR+set}" = set; then
7067 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007068else
7069 case $MKDIR in
7070 [\\/]* | ?:[\\/]*)
7071 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7072 ;;
7073 *)
7074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075for as_dir in $PATH
7076do
7077 IFS=$as_save_IFS
7078 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007079 for ac_exec_ext in '' $ac_executable_extensions; do
7080 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 +00007081 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007083 break 2
7084 fi
7085done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007086done
Reid Spencera773bd52006-08-04 18:18:08 +00007087IFS=$as_save_IFS
7088
7089 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
7090 ;;
7091esac
7092fi
7093MKDIR=$ac_cv_path_MKDIR
7094if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007095 { echo "$as_me:$LINENO: result: $MKDIR" >&5
7096echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007097else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007098 { echo "$as_me:$LINENO: result: no" >&5
7099echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007100fi
7101
7102
7103# Extract the first word of "mv", so it can be a program name with args.
7104set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007105{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7106echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7107if test "${ac_cv_path_MV+set}" = set; then
7108 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007109else
7110 case $MV in
7111 [\\/]* | ?:[\\/]*)
7112 ac_cv_path_MV="$MV" # Let the user override the test with a path.
7113 ;;
7114 *)
7115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7116for as_dir in $PATH
7117do
7118 IFS=$as_save_IFS
7119 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007120 for ac_exec_ext in '' $ac_executable_extensions; do
7121 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 +00007122 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007124 break 2
7125 fi
7126done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007127done
Reid Spencera773bd52006-08-04 18:18:08 +00007128IFS=$as_save_IFS
7129
7130 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7131 ;;
7132esac
7133fi
7134MV=$ac_cv_path_MV
7135if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007136 { echo "$as_me:$LINENO: result: $MV" >&5
7137echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007138else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007139 { echo "$as_me:$LINENO: result: no" >&5
7140echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007141fi
7142
7143
7144if test -n "$ac_tool_prefix"; then
7145 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7146set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007147{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7149if test "${ac_cv_prog_RANLIB+set}" = set; then
7150 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007151else
7152 if test -n "$RANLIB"; then
7153 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7154else
7155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7156for as_dir in $PATH
7157do
7158 IFS=$as_save_IFS
7159 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007160 for ac_exec_ext in '' $ac_executable_extensions; do
7161 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 +00007162 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007164 break 2
7165 fi
7166done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007167done
Reid Spencera773bd52006-08-04 18:18:08 +00007168IFS=$as_save_IFS
7169
7170fi
7171fi
7172RANLIB=$ac_cv_prog_RANLIB
7173if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007174 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7175echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007176else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007177 { echo "$as_me:$LINENO: result: no" >&5
7178echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007179fi
7180
7181
7182fi
7183if test -z "$ac_cv_prog_RANLIB"; then
7184 ac_ct_RANLIB=$RANLIB
7185 # Extract the first word of "ranlib", so it can be a program name with args.
7186set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007187{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7189if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7190 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007191else
7192 if test -n "$ac_ct_RANLIB"; then
7193 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7194else
7195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7196for as_dir in $PATH
7197do
7198 IFS=$as_save_IFS
7199 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007200 for ac_exec_ext in '' $ac_executable_extensions; do
7201 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 +00007202 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007204 break 2
7205 fi
7206done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007207done
Reid Spencera773bd52006-08-04 18:18:08 +00007208IFS=$as_save_IFS
7209
7210fi
7211fi
7212ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7213if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007214 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7215echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007216else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007217 { echo "$as_me:$LINENO: result: no" >&5
7218echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007219fi
7220
7221 if test "x$ac_ct_RANLIB" = x; then
7222 RANLIB=":"
7223 else
7224 case $cross_compiling:$ac_tool_warned in
7225yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007226{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7227whose name does not start with the host triplet. If you think this
7228configuration is useful to you, please write to autoconf@gnu.org." >&5
7229echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7230whose name does not start with the host triplet. If you think this
7231configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00007232ac_tool_warned=yes ;;
7233esac
7234 RANLIB=$ac_ct_RANLIB
7235 fi
7236else
7237 RANLIB="$ac_cv_prog_RANLIB"
7238fi
7239
Torok Edwin871384f2010-01-26 08:50:50 +00007240if test -n "$ac_tool_prefix"; then
7241 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7242set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007243{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7244echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7245if test "${ac_cv_prog_AR+set}" = set; then
7246 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007247else
7248 if test -n "$AR"; then
7249 ac_cv_prog_AR="$AR" # Let the user override the test.
7250else
7251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7252for as_dir in $PATH
7253do
7254 IFS=$as_save_IFS
7255 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007256 for ac_exec_ext in '' $ac_executable_extensions; do
7257 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 +00007258 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007260 break 2
7261 fi
7262done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007263done
Torok Edwin871384f2010-01-26 08:50:50 +00007264IFS=$as_save_IFS
7265
7266fi
7267fi
7268AR=$ac_cv_prog_AR
7269if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007270 { echo "$as_me:$LINENO: result: $AR" >&5
7271echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007272else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007273 { echo "$as_me:$LINENO: result: no" >&5
7274echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007275fi
7276
7277
7278fi
7279if test -z "$ac_cv_prog_AR"; then
7280 ac_ct_AR=$AR
7281 # Extract the first word of "ar", so it can be a program name with args.
7282set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007283{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7284echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7285if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7286 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007287else
7288 if test -n "$ac_ct_AR"; then
7289 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7290else
7291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7292for as_dir in $PATH
7293do
7294 IFS=$as_save_IFS
7295 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007296 for ac_exec_ext in '' $ac_executable_extensions; do
7297 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 +00007298 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007300 break 2
7301 fi
7302done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007303done
Torok Edwin871384f2010-01-26 08:50:50 +00007304IFS=$as_save_IFS
7305
7306fi
7307fi
7308ac_ct_AR=$ac_cv_prog_ac_ct_AR
7309if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007310 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7311echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007312else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007313 { echo "$as_me:$LINENO: result: no" >&5
7314echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007315fi
7316
7317 if test "x$ac_ct_AR" = x; then
7318 AR="false"
7319 else
7320 case $cross_compiling:$ac_tool_warned in
7321yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007322{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7323whose name does not start with the host triplet. If you think this
7324configuration is useful to you, please write to autoconf@gnu.org." >&5
7325echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7326whose name does not start with the host triplet. If you think this
7327configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00007328ac_tool_warned=yes ;;
7329esac
7330 AR=$ac_ct_AR
7331 fi
7332else
7333 AR="$ac_cv_prog_AR"
7334fi
7335
Reid Spencera773bd52006-08-04 18:18:08 +00007336# Extract the first word of "rm", so it can be a program name with args.
7337set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007338{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7339echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7340if test "${ac_cv_path_RM+set}" = set; then
7341 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007342else
7343 case $RM in
7344 [\\/]* | ?:[\\/]*)
7345 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7346 ;;
7347 *)
7348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7349for as_dir in $PATH
7350do
7351 IFS=$as_save_IFS
7352 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007353 for ac_exec_ext in '' $ac_executable_extensions; do
7354 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 +00007355 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007357 break 2
7358 fi
7359done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007360done
Reid Spencera773bd52006-08-04 18:18:08 +00007361IFS=$as_save_IFS
7362
7363 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7364 ;;
7365esac
7366fi
7367RM=$ac_cv_path_RM
7368if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007369 { echo "$as_me:$LINENO: result: $RM" >&5
7370echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007371else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007372 { echo "$as_me:$LINENO: result: no" >&5
7373echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007374fi
7375
7376
7377# Extract the first word of "sed", so it can be a program name with args.
7378set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007379{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7380echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7381if test "${ac_cv_path_SED+set}" = set; then
7382 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007383else
7384 case $SED in
7385 [\\/]* | ?:[\\/]*)
7386 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7387 ;;
7388 *)
7389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7390for as_dir in $PATH
7391do
7392 IFS=$as_save_IFS
7393 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007394 for ac_exec_ext in '' $ac_executable_extensions; do
7395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007396 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007398 break 2
7399 fi
7400done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007401done
Reid Spencera773bd52006-08-04 18:18:08 +00007402IFS=$as_save_IFS
7403
7404 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7405 ;;
7406esac
7407fi
7408SED=$ac_cv_path_SED
7409if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007410 { echo "$as_me:$LINENO: result: $SED" >&5
7411echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007412else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007413 { echo "$as_me:$LINENO: result: no" >&5
7414echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007415fi
7416
7417
7418# Extract the first word of "tar", so it can be a program name with args.
7419set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007420{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7421echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7422if test "${ac_cv_path_TAR+set}" = set; then
7423 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007424else
7425 case $TAR in
7426 [\\/]* | ?:[\\/]*)
7427 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7428 ;;
7429 *)
7430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7431for as_dir in $PATH
7432do
7433 IFS=$as_save_IFS
7434 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007435 for ac_exec_ext in '' $ac_executable_extensions; do
7436 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 +00007437 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007439 break 2
7440 fi
7441done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007442done
Reid Spencera773bd52006-08-04 18:18:08 +00007443IFS=$as_save_IFS
7444
7445 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7446 ;;
7447esac
7448fi
7449TAR=$ac_cv_path_TAR
7450if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007451 { echo "$as_me:$LINENO: result: $TAR" >&5
7452echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007453else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007454 { echo "$as_me:$LINENO: result: no" >&5
7455echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007456fi
7457
7458
7459# Extract the first word of "pwd", so it can be a program name with args.
7460set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007461{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7463if test "${ac_cv_path_BINPWD+set}" = set; then
7464 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007465else
7466 case $BINPWD in
7467 [\\/]* | ?:[\\/]*)
7468 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7469 ;;
7470 *)
7471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7472for as_dir in $PATH
7473do
7474 IFS=$as_save_IFS
7475 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007476 for ac_exec_ext in '' $ac_executable_extensions; do
7477 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 +00007478 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007480 break 2
7481 fi
7482done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007483done
Reid Spencera773bd52006-08-04 18:18:08 +00007484IFS=$as_save_IFS
7485
7486 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7487 ;;
7488esac
7489fi
7490BINPWD=$ac_cv_path_BINPWD
7491if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007492 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7493echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007494else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007495 { echo "$as_me:$LINENO: result: no" >&5
7496echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007497fi
7498
7499
7500
7501# Extract the first word of "Graphviz", so it can be a program name with args.
7502set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007503{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7504echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7505if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7506 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007507else
7508 case $GRAPHVIZ in
7509 [\\/]* | ?:[\\/]*)
7510 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7511 ;;
7512 *)
7513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7514for as_dir in $PATH
7515do
7516 IFS=$as_save_IFS
7517 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007518 for ac_exec_ext in '' $ac_executable_extensions; do
7519 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 +00007520 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007522 break 2
7523 fi
7524done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007525done
Reid Spencera773bd52006-08-04 18:18:08 +00007526IFS=$as_save_IFS
7527
7528 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7529 ;;
7530esac
7531fi
7532GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7533if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007534 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7535echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007536else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007537 { echo "$as_me:$LINENO: result: no" >&5
7538echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007539fi
7540
7541
7542if test "$GRAPHVIZ" != "echo Graphviz" ; then
7543
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007544cat >>confdefs.h <<\_ACEOF
7545#define HAVE_GRAPHVIZ 1
7546_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007547
Jeff Cohen28783c32007-01-12 18:22:38 +00007548 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007549 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7550 fi
7551
7552cat >>confdefs.h <<_ACEOF
7553#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7554_ACEOF
7555
7556fi
7557# Extract the first word of "dot", so it can be a program name with args.
7558set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007559{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7560echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7561if test "${ac_cv_path_DOT+set}" = set; then
7562 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007563else
7564 case $DOT in
7565 [\\/]* | ?:[\\/]*)
7566 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7567 ;;
7568 *)
7569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7570for as_dir in $PATH
7571do
7572 IFS=$as_save_IFS
7573 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007574 for ac_exec_ext in '' $ac_executable_extensions; do
7575 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 +00007576 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007578 break 2
7579 fi
7580done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007581done
Reid Spencera773bd52006-08-04 18:18:08 +00007582IFS=$as_save_IFS
7583
7584 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7585 ;;
7586esac
7587fi
7588DOT=$ac_cv_path_DOT
7589if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007590 { echo "$as_me:$LINENO: result: $DOT" >&5
7591echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007592else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007593 { echo "$as_me:$LINENO: result: no" >&5
7594echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007595fi
7596
7597
7598if test "$DOT" != "echo dot" ; then
7599
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007600cat >>confdefs.h <<\_ACEOF
7601#define HAVE_DOT 1
7602_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007603
Jeff Cohen28783c32007-01-12 18:22:38 +00007604 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007605 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7606 fi
7607
7608cat >>confdefs.h <<_ACEOF
7609#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7610_ACEOF
7611
7612fi
David Greenef0b9eff2009-07-09 17:16:26 +00007613# Extract the first word of "fdp", so it can be a program name with args.
7614set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007615{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7616echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7617if test "${ac_cv_path_FDP+set}" = set; then
7618 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007619else
7620 case $FDP in
7621 [\\/]* | ?:[\\/]*)
7622 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7623 ;;
7624 *)
7625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7626for as_dir in $PATH
7627do
7628 IFS=$as_save_IFS
7629 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007630 for ac_exec_ext in '' $ac_executable_extensions; do
7631 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 +00007632 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007634 break 2
7635 fi
7636done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007637done
David Greenef0b9eff2009-07-09 17:16:26 +00007638IFS=$as_save_IFS
7639
7640 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7641 ;;
7642esac
7643fi
7644FDP=$ac_cv_path_FDP
7645if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007646 { echo "$as_me:$LINENO: result: $FDP" >&5
7647echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007648else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007649 { echo "$as_me:$LINENO: result: no" >&5
7650echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007651fi
7652
7653
7654if test "$FDP" != "echo fdp" ; then
7655
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007656cat >>confdefs.h <<\_ACEOF
7657#define HAVE_FDP 1
7658_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007659
7660 if test "$llvm_cv_os_type" = "MingW" ; then
7661 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7662 fi
7663
7664cat >>confdefs.h <<_ACEOF
7665#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7666_ACEOF
7667
7668fi
7669# Extract the first word of "neato", so it can be a program name with args.
7670set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007671{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7672echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7673if test "${ac_cv_path_NEATO+set}" = set; then
7674 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007675else
7676 case $NEATO in
7677 [\\/]* | ?:[\\/]*)
7678 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7679 ;;
7680 *)
7681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7682for as_dir in $PATH
7683do
7684 IFS=$as_save_IFS
7685 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007686 for ac_exec_ext in '' $ac_executable_extensions; do
7687 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 +00007688 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007690 break 2
7691 fi
7692done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007693done
David Greenef0b9eff2009-07-09 17:16:26 +00007694IFS=$as_save_IFS
7695
7696 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7697 ;;
7698esac
7699fi
7700NEATO=$ac_cv_path_NEATO
7701if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007702 { echo "$as_me:$LINENO: result: $NEATO" >&5
7703echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007704else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007705 { echo "$as_me:$LINENO: result: no" >&5
7706echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007707fi
7708
7709
7710if test "$NEATO" != "echo neato" ; then
7711
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007712cat >>confdefs.h <<\_ACEOF
7713#define HAVE_NEATO 1
7714_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007715
7716 if test "$llvm_cv_os_type" = "MingW" ; then
7717 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7718 fi
7719
7720cat >>confdefs.h <<_ACEOF
7721#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7722_ACEOF
7723
7724fi
7725# Extract the first word of "twopi", so it can be a program name with args.
7726set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007727{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7728echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7729if test "${ac_cv_path_TWOPI+set}" = set; then
7730 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007731else
7732 case $TWOPI in
7733 [\\/]* | ?:[\\/]*)
7734 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7735 ;;
7736 *)
7737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7738for as_dir in $PATH
7739do
7740 IFS=$as_save_IFS
7741 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007742 for ac_exec_ext in '' $ac_executable_extensions; do
7743 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 +00007744 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007746 break 2
7747 fi
7748done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007749done
David Greenef0b9eff2009-07-09 17:16:26 +00007750IFS=$as_save_IFS
7751
7752 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7753 ;;
7754esac
7755fi
7756TWOPI=$ac_cv_path_TWOPI
7757if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007758 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7759echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007760else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007761 { echo "$as_me:$LINENO: result: no" >&5
7762echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007763fi
7764
7765
7766if test "$TWOPI" != "echo twopi" ; then
7767
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007768cat >>confdefs.h <<\_ACEOF
7769#define HAVE_TWOPI 1
7770_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007771
7772 if test "$llvm_cv_os_type" = "MingW" ; then
7773 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7774 fi
7775
7776cat >>confdefs.h <<_ACEOF
7777#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7778_ACEOF
7779
7780fi
7781# Extract the first word of "circo", so it can be a program name with args.
7782set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007783{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7784echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7785if test "${ac_cv_path_CIRCO+set}" = set; then
7786 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007787else
7788 case $CIRCO in
7789 [\\/]* | ?:[\\/]*)
7790 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7791 ;;
7792 *)
7793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7794for as_dir in $PATH
7795do
7796 IFS=$as_save_IFS
7797 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007798 for ac_exec_ext in '' $ac_executable_extensions; do
7799 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 +00007800 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007802 break 2
7803 fi
7804done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007805done
David Greenef0b9eff2009-07-09 17:16:26 +00007806IFS=$as_save_IFS
7807
7808 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7809 ;;
7810esac
7811fi
7812CIRCO=$ac_cv_path_CIRCO
7813if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007814 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7815echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007816else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007817 { echo "$as_me:$LINENO: result: no" >&5
7818echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007819fi
7820
7821
7822if test "$CIRCO" != "echo circo" ; then
7823
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007824cat >>confdefs.h <<\_ACEOF
7825#define HAVE_CIRCO 1
7826_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007827
7828 if test "$llvm_cv_os_type" = "MingW" ; then
7829 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7830 fi
7831
7832cat >>confdefs.h <<_ACEOF
7833#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7834_ACEOF
7835
7836fi
Reid Spencera773bd52006-08-04 18:18:08 +00007837for ac_prog in gv gsview32
7838do
7839 # Extract the first word of "$ac_prog", so it can be a program name with args.
7840set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007841{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7843if test "${ac_cv_path_GV+set}" = set; then
7844 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007845else
7846 case $GV in
7847 [\\/]* | ?:[\\/]*)
7848 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7849 ;;
7850 *)
7851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7852for as_dir in $PATH
7853do
7854 IFS=$as_save_IFS
7855 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007856 for ac_exec_ext in '' $ac_executable_extensions; do
7857 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 +00007858 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007860 break 2
7861 fi
7862done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007863done
Reid Spencera773bd52006-08-04 18:18:08 +00007864IFS=$as_save_IFS
7865
7866 ;;
7867esac
7868fi
7869GV=$ac_cv_path_GV
7870if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007871 { echo "$as_me:$LINENO: result: $GV" >&5
7872echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007873else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007874 { echo "$as_me:$LINENO: result: no" >&5
7875echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007876fi
7877
7878
7879 test -n "$GV" && break
7880done
7881test -n "$GV" || GV="echo gv"
7882
7883if test "$GV" != "echo gv" ; then
7884
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007885cat >>confdefs.h <<\_ACEOF
7886#define HAVE_GV 1
7887_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007888
Jeff Cohen28783c32007-01-12 18:22:38 +00007889 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007890 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7891 fi
7892
7893cat >>confdefs.h <<_ACEOF
7894#define LLVM_PATH_GV "$GV${EXEEXT}"
7895_ACEOF
7896
7897fi
7898# Extract the first word of "dotty", so it can be a program name with args.
7899set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007900{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7902if test "${ac_cv_path_DOTTY+set}" = set; then
7903 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007904else
7905 case $DOTTY in
7906 [\\/]* | ?:[\\/]*)
7907 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7908 ;;
7909 *)
7910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7911for as_dir in $PATH
7912do
7913 IFS=$as_save_IFS
7914 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007915 for ac_exec_ext in '' $ac_executable_extensions; do
7916 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 +00007917 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007919 break 2
7920 fi
7921done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007922done
Reid Spencera773bd52006-08-04 18:18:08 +00007923IFS=$as_save_IFS
7924
7925 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7926 ;;
7927esac
7928fi
7929DOTTY=$ac_cv_path_DOTTY
7930if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007931 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7932echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007933else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007934 { echo "$as_me:$LINENO: result: no" >&5
7935echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007936fi
7937
7938
7939if test "$DOTTY" != "echo dotty" ; then
7940
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007941cat >>confdefs.h <<\_ACEOF
7942#define HAVE_DOTTY 1
7943_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007944
Jeff Cohen28783c32007-01-12 18:22:38 +00007945 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007946 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7947 fi
7948
7949cat >>confdefs.h <<_ACEOF
7950#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7951_ACEOF
7952
7953fi
Dan Gohman48fd5a72010-09-27 16:28:34 +00007954# Extract the first word of "xdot.py", so it can be a program name with args.
7955set dummy xdot.py; ac_word=$2
7956{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7957echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7958if test "${ac_cv_path_XDOT_PY+set}" = set; then
7959 echo $ECHO_N "(cached) $ECHO_C" >&6
7960else
7961 case $XDOT_PY in
7962 [\\/]* | ?:[\\/]*)
7963 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7964 ;;
7965 *)
7966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7967for as_dir in $PATH
7968do
7969 IFS=$as_save_IFS
7970 test -z "$as_dir" && as_dir=.
7971 for ac_exec_ext in '' $ac_executable_extensions; do
7972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7973 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7975 break 2
7976 fi
7977done
7978done
7979IFS=$as_save_IFS
7980
7981 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7982 ;;
7983esac
7984fi
7985XDOT_PY=$ac_cv_path_XDOT_PY
7986if test -n "$XDOT_PY"; then
7987 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7988echo "${ECHO_T}$XDOT_PY" >&6; }
7989else
7990 { echo "$as_me:$LINENO: result: no" >&5
7991echo "${ECHO_T}no" >&6; }
7992fi
7993
7994
7995if test "$XDOT_PY" != "echo xdot.py" ; then
7996
7997cat >>confdefs.h <<\_ACEOF
7998#define HAVE_XDOT_PY 1
7999_ACEOF
8000
8001 if test "$llvm_cv_os_type" = "MingW" ; then
8002 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
8003 fi
8004
8005cat >>confdefs.h <<_ACEOF
8006#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
8007_ACEOF
8008
8009fi
Reid Spencera773bd52006-08-04 18:18:08 +00008010
8011
8012# Extract the first word of "perl", so it can be a program name with args.
8013set dummy perl; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008014{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8015echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8016if test "${ac_cv_path_PERL+set}" = set; then
8017 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008018else
8019 case $PERL in
8020 [\\/]* | ?:[\\/]*)
8021 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
8022 ;;
8023 *)
8024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8025for as_dir in $PATH
8026do
8027 IFS=$as_save_IFS
8028 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008029 for ac_exec_ext in '' $ac_executable_extensions; do
8030 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 +00008031 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008033 break 2
8034 fi
8035done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008036done
Reid Spencera773bd52006-08-04 18:18:08 +00008037IFS=$as_save_IFS
8038
8039 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
8040 ;;
8041esac
8042fi
8043PERL=$ac_cv_path_PERL
8044if test -n "$PERL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008045 { echo "$as_me:$LINENO: result: $PERL" >&5
8046echo "${ECHO_T}$PERL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008047else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008048 { echo "$as_me:$LINENO: result: no" >&5
8049echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008050fi
8051
8052
8053if test "$PERL" != "none"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008054 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
8055echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008056 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008057 { echo "$as_me:$LINENO: result: yes" >&5
8058echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008059 else
8060 PERL=none
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008061 { echo "$as_me:$LINENO: result: not found" >&5
8062echo "${ECHO_T}not found" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008063 fi
8064fi
8065
8066
8067if test x"$PERL" = xnone; then
8068 HAVE_PERL=0
8069
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008070 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
8071echo "$as_me: error: perl is required but was not found, please install it" >&2;}
8072 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00008073else
8074 HAVE_PERL=1
8075
8076fi
8077
8078# Find a good install program. We prefer a C program (faster),
8079# so one script is as good as another. But avoid the broken or
8080# incompatible versions:
8081# SysV /etc/install, /usr/sbin/install
8082# SunOS /usr/etc/install
8083# IRIX /sbin/install
8084# AIX /bin/install
8085# AmigaOS /C/install, which installs bootblocks on floppy discs
8086# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8087# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8088# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8089# OS/2's system install, which has a completely different semantic
8090# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008091{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8092echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008093if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008094if test "${ac_cv_path_install+set}" = set; then
8095 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008096else
8097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8098for as_dir in $PATH
8099do
8100 IFS=$as_save_IFS
8101 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008102 # Account for people who put trailing slashes in PATH elements.
8103case $as_dir/ in
8104 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00008105 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008106 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00008107 /usr/ucb/* ) ;;
8108 *)
8109 # OSF1 and SCO ODT 3.0 have their own names for install.
8110 # Don't use installbsd from OSF since it installs stuff as root
8111 # by default.
8112 for ac_prog in ginstall scoinst install; do
8113 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008114 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 +00008115 if test $ac_prog = install &&
8116 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8117 # AIX install. It has an incompatible calling convention.
8118 :
8119 elif test $ac_prog = install &&
8120 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8121 # program-specific install script used by HP pwplus--don't use.
8122 :
8123 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008124 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8125 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00008126 fi
8127 fi
8128 done
8129 done
8130 ;;
8131esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008132done
Reid Spencera773bd52006-08-04 18:18:08 +00008133IFS=$as_save_IFS
8134
8135
8136fi
8137 if test "${ac_cv_path_install+set}" = set; then
8138 INSTALL=$ac_cv_path_install
8139 else
8140 # As a last resort, use the slow shell script. Don't cache a
8141 # value for INSTALL within a source directory, because that will
8142 # break other packages using the cache if that directory is
8143 # removed, or if the value is a relative name.
8144 INSTALL=$ac_install_sh
8145 fi
8146fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008147{ echo "$as_me:$LINENO: result: $INSTALL" >&5
8148echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008149
8150# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8151# It thinks the first close brace ends the variable substitution.
8152test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8153
8154test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8155
8156test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8157
Eric Christopher2a1a44f2010-07-22 21:13:48 +00008158case "$INSTALL" in
8159 [\\/$]* | ?:[\\/]* ) ;;
8160 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
8161esac
Reid Spencera773bd52006-08-04 18:18:08 +00008162
8163# Extract the first word of "bzip2", so it can be a program name with args.
8164set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008165{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8166echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8167if test "${ac_cv_path_BZIP2+set}" = set; then
8168 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008169else
8170 case $BZIP2 in
8171 [\\/]* | ?:[\\/]*)
8172 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8173 ;;
8174 *)
8175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8176for as_dir in $PATH
8177do
8178 IFS=$as_save_IFS
8179 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008180 for ac_exec_ext in '' $ac_executable_extensions; do
8181 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 +00008182 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008184 break 2
8185 fi
8186done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008187done
Reid Spencera773bd52006-08-04 18:18:08 +00008188IFS=$as_save_IFS
8189
Reid Spencera773bd52006-08-04 18:18:08 +00008190 ;;
8191esac
8192fi
8193BZIP2=$ac_cv_path_BZIP2
8194if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008195 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8196echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008197else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008198 { echo "$as_me:$LINENO: result: no" >&5
8199echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008200fi
8201
8202
mike-m68cb3192010-05-06 23:45:43 +00008203# Extract the first word of "cat", so it can be a program name with args.
8204set dummy cat; ac_word=$2
8205{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8206echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8207if test "${ac_cv_path_CAT+set}" = set; then
8208 echo $ECHO_N "(cached) $ECHO_C" >&6
8209else
8210 case $CAT in
8211 [\\/]* | ?:[\\/]*)
8212 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8213 ;;
8214 *)
8215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8216for as_dir in $PATH
8217do
8218 IFS=$as_save_IFS
8219 test -z "$as_dir" && as_dir=.
8220 for ac_exec_ext in '' $ac_executable_extensions; do
8221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8222 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8224 break 2
8225 fi
8226done
8227done
8228IFS=$as_save_IFS
8229
8230 ;;
8231esac
8232fi
8233CAT=$ac_cv_path_CAT
8234if test -n "$CAT"; then
8235 { echo "$as_me:$LINENO: result: $CAT" >&5
8236echo "${ECHO_T}$CAT" >&6; }
8237else
8238 { echo "$as_me:$LINENO: result: no" >&5
8239echo "${ECHO_T}no" >&6; }
8240fi
8241
8242
Reid Spencera773bd52006-08-04 18:18:08 +00008243# Extract the first word of "doxygen", so it can be a program name with args.
8244set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008245{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8246echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8247if test "${ac_cv_path_DOXYGEN+set}" = set; then
8248 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008249else
8250 case $DOXYGEN in
8251 [\\/]* | ?:[\\/]*)
8252 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8253 ;;
8254 *)
8255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8256for as_dir in $PATH
8257do
8258 IFS=$as_save_IFS
8259 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008260 for ac_exec_ext in '' $ac_executable_extensions; do
8261 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 +00008262 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008264 break 2
8265 fi
8266done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008267done
Reid Spencera773bd52006-08-04 18:18:08 +00008268IFS=$as_save_IFS
8269
Reid Spencera773bd52006-08-04 18:18:08 +00008270 ;;
8271esac
8272fi
8273DOXYGEN=$ac_cv_path_DOXYGEN
8274if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008275 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8276echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008277else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008278 { echo "$as_me:$LINENO: result: no" >&5
8279echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008280fi
8281
8282
Reid Spencera773bd52006-08-04 18:18:08 +00008283# Extract the first word of "groff", so it can be a program name with args.
8284set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008285{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8286echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8287if test "${ac_cv_path_GROFF+set}" = set; then
8288 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008289else
8290 case $GROFF in
8291 [\\/]* | ?:[\\/]*)
8292 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8293 ;;
8294 *)
8295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8296for as_dir in $PATH
8297do
8298 IFS=$as_save_IFS
8299 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008300 for ac_exec_ext in '' $ac_executable_extensions; do
8301 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 +00008302 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008304 break 2
8305 fi
8306done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008307done
Reid Spencera773bd52006-08-04 18:18:08 +00008308IFS=$as_save_IFS
8309
Reid Spencera773bd52006-08-04 18:18:08 +00008310 ;;
8311esac
8312fi
8313GROFF=$ac_cv_path_GROFF
8314if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008315 { echo "$as_me:$LINENO: result: $GROFF" >&5
8316echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008317else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008318 { echo "$as_me:$LINENO: result: no" >&5
8319echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008320fi
8321
8322
8323# Extract the first word of "gzip", so it can be a program name with args.
8324set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008325{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8326echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher031d3072010-12-10 01:31:51 +00008327if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008328 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008329else
Eric Christopher031d3072010-12-10 01:31:51 +00008330 case $GZIPBIN in
Reid Spencera773bd52006-08-04 18:18:08 +00008331 [\\/]* | ?:[\\/]*)
Eric Christopher031d3072010-12-10 01:31:51 +00008332 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencera773bd52006-08-04 18:18:08 +00008333 ;;
8334 *)
8335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8336for as_dir in $PATH
8337do
8338 IFS=$as_save_IFS
8339 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008340 for ac_exec_ext in '' $ac_executable_extensions; do
8341 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 +00008342 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008344 break 2
8345 fi
8346done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008347done
Reid Spencera773bd52006-08-04 18:18:08 +00008348IFS=$as_save_IFS
8349
Reid Spencera773bd52006-08-04 18:18:08 +00008350 ;;
8351esac
8352fi
Eric Christopher031d3072010-12-10 01:31:51 +00008353GZIPBIN=$ac_cv_path_GZIPBIN
8354if test -n "$GZIPBIN"; then
8355 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
8356echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008357else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008358 { echo "$as_me:$LINENO: result: no" >&5
8359echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008360fi
8361
8362
8363# Extract the first word of "pod2html", so it can be a program name with args.
8364set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008365{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8366echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8367if test "${ac_cv_path_POD2HTML+set}" = set; then
8368 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008369else
8370 case $POD2HTML in
8371 [\\/]* | ?:[\\/]*)
8372 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8373 ;;
8374 *)
8375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8376for as_dir in $PATH
8377do
8378 IFS=$as_save_IFS
8379 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008380 for ac_exec_ext in '' $ac_executable_extensions; do
8381 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 +00008382 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008384 break 2
8385 fi
8386done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008387done
Reid Spencera773bd52006-08-04 18:18:08 +00008388IFS=$as_save_IFS
8389
Reid Spencera773bd52006-08-04 18:18:08 +00008390 ;;
8391esac
8392fi
8393POD2HTML=$ac_cv_path_POD2HTML
8394if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008395 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8396echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008397else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008398 { echo "$as_me:$LINENO: result: no" >&5
8399echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008400fi
8401
8402
8403# Extract the first word of "pod2man", so it can be a program name with args.
8404set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008405{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8406echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8407if test "${ac_cv_path_POD2MAN+set}" = set; then
8408 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008409else
8410 case $POD2MAN in
8411 [\\/]* | ?:[\\/]*)
8412 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8413 ;;
8414 *)
8415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8416for as_dir in $PATH
8417do
8418 IFS=$as_save_IFS
8419 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008420 for ac_exec_ext in '' $ac_executable_extensions; do
8421 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 +00008422 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008424 break 2
8425 fi
8426done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008427done
Reid Spencera773bd52006-08-04 18:18:08 +00008428IFS=$as_save_IFS
8429
Reid Spencera773bd52006-08-04 18:18:08 +00008430 ;;
8431esac
8432fi
8433POD2MAN=$ac_cv_path_POD2MAN
8434if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008435 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8436echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008437else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008438 { echo "$as_me:$LINENO: result: no" >&5
8439echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008440fi
8441
8442
mike-m68cb3192010-05-06 23:45:43 +00008443# Extract the first word of "pdfroff", so it can be a program name with args.
8444set dummy pdfroff; ac_word=$2
8445{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8446echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8447if test "${ac_cv_path_PDFROFF+set}" = set; then
8448 echo $ECHO_N "(cached) $ECHO_C" >&6
8449else
8450 case $PDFROFF in
8451 [\\/]* | ?:[\\/]*)
8452 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8453 ;;
8454 *)
8455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8456for as_dir in $PATH
8457do
8458 IFS=$as_save_IFS
8459 test -z "$as_dir" && as_dir=.
8460 for ac_exec_ext in '' $ac_executable_extensions; do
8461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8462 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8464 break 2
8465 fi
8466done
8467done
8468IFS=$as_save_IFS
8469
8470 ;;
8471esac
8472fi
8473PDFROFF=$ac_cv_path_PDFROFF
8474if test -n "$PDFROFF"; then
8475 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8476echo "${ECHO_T}$PDFROFF" >&6; }
8477else
8478 { echo "$as_me:$LINENO: result: no" >&5
8479echo "${ECHO_T}no" >&6; }
8480fi
8481
8482
Reid Spencera773bd52006-08-04 18:18:08 +00008483# Extract the first word of "runtest", so it can be a program name with args.
8484set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008485{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8486echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8487if test "${ac_cv_path_RUNTEST+set}" = set; then
8488 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008489else
8490 case $RUNTEST in
8491 [\\/]* | ?:[\\/]*)
8492 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8493 ;;
8494 *)
8495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8496for as_dir in $PATH
8497do
8498 IFS=$as_save_IFS
8499 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008500 for ac_exec_ext in '' $ac_executable_extensions; do
8501 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 +00008502 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008504 break 2
8505 fi
8506done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008507done
Reid Spencera773bd52006-08-04 18:18:08 +00008508IFS=$as_save_IFS
8509
Reid Spencera773bd52006-08-04 18:18:08 +00008510 ;;
8511esac
8512fi
8513RUNTEST=$ac_cv_path_RUNTEST
8514if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008515 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8516echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008517else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008518 { echo "$as_me:$LINENO: result: no" >&5
8519echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008520fi
8521
8522
8523
8524no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008525{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8526echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008527
8528# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008529if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008530 withval=$with_tclinclude; with_tclinclude=${withval}
8531else
8532 with_tclinclude=''
8533fi
8534
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008535if test "${ac_cv_path_tclsh+set}" = set; then
8536 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008537else
8538
8539if test x"${with_tclinclude}" != x ; then
8540 if test -f ${with_tclinclude}/tclsh ; then
8541 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8542 elif test -f ${with_tclinclude}/src/tclsh ; then
8543 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8544 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008545 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8546echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8547 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00008548 fi
8549fi
Torok Edwin871384f2010-01-26 08:50:50 +00008550fi
8551
Reid Spencera773bd52006-08-04 18:18:08 +00008552
8553if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008554 { echo "$as_me:$LINENO: result: none" >&5
8555echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008556 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
8557do
8558 # Extract the first word of "$ac_prog", so it can be a program name with args.
8559set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008560{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8561echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8562if test "${ac_cv_path_TCLSH+set}" = set; then
8563 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008564else
8565 case $TCLSH in
8566 [\\/]* | ?:[\\/]*)
8567 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8568 ;;
8569 *)
8570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8571for as_dir in $PATH
8572do
8573 IFS=$as_save_IFS
8574 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008575 for ac_exec_ext in '' $ac_executable_extensions; do
8576 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 +00008577 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008579 break 2
8580 fi
8581done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008582done
Reid Spencera773bd52006-08-04 18:18:08 +00008583IFS=$as_save_IFS
8584
8585 ;;
8586esac
8587fi
8588TCLSH=$ac_cv_path_TCLSH
8589if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008590 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8591echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008592else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008593 { echo "$as_me:$LINENO: result: no" >&5
8594echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008595fi
8596
8597
8598 test -n "$TCLSH" && break
8599done
8600
8601 if test x"${TCLSH}" = x ; then
8602 ac_cv_path_tclsh='';
8603 else
8604 ac_cv_path_tclsh="${TCLSH}";
8605 fi
8606else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008607 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8608echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008609 TCLSH="${ac_cv_path_tclsh}"
8610
8611fi
8612
Reid Spencera773bd52006-08-04 18:18:08 +00008613# Extract the first word of "zip", so it can be a program name with args.
8614set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008615{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8616echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8617if test "${ac_cv_path_ZIP+set}" = set; then
8618 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008619else
8620 case $ZIP in
8621 [\\/]* | ?:[\\/]*)
8622 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8623 ;;
8624 *)
8625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8626for as_dir in $PATH
8627do
8628 IFS=$as_save_IFS
8629 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008630 for ac_exec_ext in '' $ac_executable_extensions; do
8631 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 +00008632 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008634 break 2
8635 fi
8636done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008637done
Reid Spencera773bd52006-08-04 18:18:08 +00008638IFS=$as_save_IFS
8639
Reid Spencera773bd52006-08-04 18:18:08 +00008640 ;;
8641esac
8642fi
8643ZIP=$ac_cv_path_ZIP
8644if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008645 { echo "$as_me:$LINENO: result: $ZIP" >&5
8646echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008647else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008648 { echo "$as_me:$LINENO: result: no" >&5
8649echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008650fi
8651
8652
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008653for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00008654do
8655 # Extract the first word of "$ac_prog", so it can be a program name with args.
8656set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008657{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8658echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8659if test "${ac_cv_path_OCAMLC+set}" = set; then
8660 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008661else
8662 case $OCAMLC in
8663 [\\/]* | ?:[\\/]*)
8664 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8665 ;;
8666 *)
8667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8668for as_dir in $PATH
8669do
8670 IFS=$as_save_IFS
8671 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008672 for ac_exec_ext in '' $ac_executable_extensions; do
8673 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 +00008674 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008676 break 2
8677 fi
8678done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008679done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008680IFS=$as_save_IFS
8681
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008682 ;;
8683esac
8684fi
8685OCAMLC=$ac_cv_path_OCAMLC
8686if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008687 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8688echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008689else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008690 { echo "$as_me:$LINENO: result: no" >&5
8691echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008692fi
8693
8694
Gordon Henriksene7072162008-03-07 18:20:01 +00008695 test -n "$OCAMLC" && break
8696done
8697
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008698for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00008699do
8700 # Extract the first word of "$ac_prog", so it can be a program name with args.
8701set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008702{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8704if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8705 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008706else
8707 case $OCAMLOPT in
8708 [\\/]* | ?:[\\/]*)
8709 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8710 ;;
8711 *)
8712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8713for as_dir in $PATH
8714do
8715 IFS=$as_save_IFS
8716 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008717 for ac_exec_ext in '' $ac_executable_extensions; do
8718 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 +00008719 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008721 break 2
8722 fi
8723done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008724done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008725IFS=$as_save_IFS
8726
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008727 ;;
8728esac
8729fi
8730OCAMLOPT=$ac_cv_path_OCAMLOPT
8731if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008732 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8733echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008734else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008735 { echo "$as_me:$LINENO: result: no" >&5
8736echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008737fi
8738
8739
Gordon Henriksene7072162008-03-07 18:20:01 +00008740 test -n "$OCAMLOPT" && break
8741done
8742
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008743for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00008744do
8745 # Extract the first word of "$ac_prog", so it can be a program name with args.
8746set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008747{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8748echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8749if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8750 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008751else
8752 case $OCAMLDEP in
8753 [\\/]* | ?:[\\/]*)
8754 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8755 ;;
8756 *)
8757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8758for as_dir in $PATH
8759do
8760 IFS=$as_save_IFS
8761 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008762 for ac_exec_ext in '' $ac_executable_extensions; do
8763 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 +00008764 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008766 break 2
8767 fi
8768done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008769done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008770IFS=$as_save_IFS
8771
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008772 ;;
8773esac
8774fi
8775OCAMLDEP=$ac_cv_path_OCAMLDEP
8776if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008777 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8778echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008779else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008780 { echo "$as_me:$LINENO: result: no" >&5
8781echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008782fi
8783
8784
Gordon Henriksene7072162008-03-07 18:20:01 +00008785 test -n "$OCAMLDEP" && break
8786done
8787
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008788for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008789do
8790 # Extract the first word of "$ac_prog", so it can be a program name with args.
8791set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008792{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8794if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8795 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008796else
8797 case $OCAMLDOC in
8798 [\\/]* | ?:[\\/]*)
8799 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8800 ;;
8801 *)
8802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8803for as_dir in $PATH
8804do
8805 IFS=$as_save_IFS
8806 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008807 for ac_exec_ext in '' $ac_executable_extensions; do
8808 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 +00008809 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008811 break 2
8812 fi
8813done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008814done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008815IFS=$as_save_IFS
8816
8817 ;;
8818esac
8819fi
8820OCAMLDOC=$ac_cv_path_OCAMLDOC
8821if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008822 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8823echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008824else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008825 { echo "$as_me:$LINENO: result: no" >&5
8826echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008827fi
8828
8829
8830 test -n "$OCAMLDOC" && break
8831done
8832
Torok Edwincc499a42008-10-22 09:56:27 +00008833for ac_prog in gas as
8834do
8835 # Extract the first word of "$ac_prog", so it can be a program name with args.
8836set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008837{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8839if test "${ac_cv_path_GAS+set}" = set; then
8840 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00008841else
8842 case $GAS in
8843 [\\/]* | ?:[\\/]*)
8844 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8845 ;;
8846 *)
8847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8848for as_dir in $PATH
8849do
8850 IFS=$as_save_IFS
8851 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008852 for ac_exec_ext in '' $ac_executable_extensions; do
8853 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 +00008854 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00008856 break 2
8857 fi
8858done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008859done
Torok Edwincc499a42008-10-22 09:56:27 +00008860IFS=$as_save_IFS
8861
8862 ;;
8863esac
8864fi
8865GAS=$ac_cv_path_GAS
8866if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008867 { echo "$as_me:$LINENO: result: $GAS" >&5
8868echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008869else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008870 { echo "$as_me:$LINENO: result: no" >&5
8871echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008872fi
8873
8874
8875 test -n "$GAS" && break
8876done
8877
Reid Spencera773bd52006-08-04 18:18:08 +00008878
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00008879{ echo "$as_me:$LINENO: checking for linker version" >&5
8880echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8881if test "${llvm_cv_link_version+set}" = set; then
8882 echo $ECHO_N "(cached) $ECHO_C" >&6
8883else
8884
8885 version_string="$(ld -v 2>&1 | head -1)"
8886
8887 # Check for ld64.
8888 if (echo "$version_string" | grep -q "ld64"); then
8889 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8890 else
8891 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8892 fi
8893
8894fi
8895{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8896echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8897
8898cat >>confdefs.h <<_ACEOF
8899#define HOST_LINK_VERSION "$llvm_cv_link_version"
8900_ACEOF
8901
8902
8903
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008904{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8905echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8906if test "${llvm_cv_link_use_r+set}" = set; then
8907 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008908else
8909 ac_ext=c
8910ac_cpp='$CPP $CPPFLAGS'
8911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8913ac_compiler_gnu=$ac_cv_c_compiler_gnu
8914
8915 oldcflags="$CFLAGS"
8916 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008917 cat >conftest.$ac_ext <<_ACEOF
8918/* confdefs.h. */
8919_ACEOF
8920cat confdefs.h >>conftest.$ac_ext
8921cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008922/* end confdefs.h. */
8923
8924int
8925main ()
8926{
Dan Gohman39ed6782010-04-25 00:12:20 +00008927
Reid Spencera773bd52006-08-04 18:18:08 +00008928 ;
8929 return 0;
8930}
8931_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008932rm -f conftest.$ac_objext conftest$ac_exeext
8933if { (ac_try="$ac_link"
8934case "(($ac_try" in
8935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8936 *) ac_try_echo=$ac_try;;
8937esac
8938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8939 (eval "$ac_link") 2>conftest.er1
8940 ac_status=$?
8941 grep -v '^ *+' conftest.er1 >conftest.err
8942 rm -f conftest.er1
8943 cat conftest.err >&5
8944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945 (exit $ac_status); } &&
8946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8947 { (case "(($ac_try" in
8948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8949 *) ac_try_echo=$ac_try;;
8950esac
8951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8952 (eval "$ac_try") 2>&5
8953 ac_status=$?
8954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955 (exit $ac_status); }; } &&
8956 { ac_try='test -s conftest$ac_exeext'
8957 { (case "(($ac_try" in
8958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8959 *) ac_try_echo=$ac_try;;
8960esac
8961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8962 (eval "$ac_try") 2>&5
8963 ac_status=$?
8964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008966 llvm_cv_link_use_r=yes
8967else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008968 echo "$as_me: failed program was:" >&5
8969sed 's/^/| /' conftest.$ac_ext >&5
8970
8971 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00008972fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008973
Bill Wendlingebcceee2009-04-18 11:20:33 +00008974rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008975 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008976 CFLAGS="$oldcflags"
8977 ac_ext=c
8978ac_cpp='$CPP $CPPFLAGS'
8979ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8980ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8981ac_compiler_gnu=$ac_cv_c_compiler_gnu
8982
8983
8984fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008985{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8986echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008987if test "$llvm_cv_link_use_r" = yes ; then
8988
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008989cat >>confdefs.h <<\_ACEOF
8990#define HAVE_LINK_R 1
8991_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008992
8993 fi
8994
8995
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008996{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8997echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8998if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8999 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009000else
9001 ac_ext=c
9002ac_cpp='$CPP $CPPFLAGS'
9003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9005ac_compiler_gnu=$ac_cv_c_compiler_gnu
9006
9007 oldcflags="$CFLAGS"
9008 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009009 cat >conftest.$ac_ext <<_ACEOF
9010/* confdefs.h. */
9011_ACEOF
9012cat confdefs.h >>conftest.$ac_ext
9013cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009014/* end confdefs.h. */
9015
9016int
9017main ()
9018{
Dan Gohman39ed6782010-04-25 00:12:20 +00009019
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009020 ;
9021 return 0;
9022}
9023_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009024rm -f conftest.$ac_objext conftest$ac_exeext
9025if { (ac_try="$ac_link"
9026case "(($ac_try" in
9027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9028 *) ac_try_echo=$ac_try;;
9029esac
9030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9031 (eval "$ac_link") 2>conftest.er1
9032 ac_status=$?
9033 grep -v '^ *+' conftest.er1 >conftest.err
9034 rm -f conftest.er1
9035 cat conftest.err >&5
9036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037 (exit $ac_status); } &&
9038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9039 { (case "(($ac_try" in
9040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9041 *) ac_try_echo=$ac_try;;
9042esac
9043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9044 (eval "$ac_try") 2>&5
9045 ac_status=$?
9046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047 (exit $ac_status); }; } &&
9048 { ac_try='test -s conftest$ac_exeext'
9049 { (case "(($ac_try" in
9050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9051 *) ac_try_echo=$ac_try;;
9052esac
9053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9054 (eval "$ac_try") 2>&5
9055 ac_status=$?
9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009058 llvm_cv_link_use_export_dynamic=yes
9059else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009060 echo "$as_me: failed program was:" >&5
9061sed 's/^/| /' conftest.$ac_ext >&5
9062
9063 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009064fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009065
Bill Wendlingebcceee2009-04-18 11:20:33 +00009066rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009067 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009068 CFLAGS="$oldcflags"
9069 ac_ext=c
9070ac_cpp='$CPP $CPPFLAGS'
9071ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9072ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9073ac_compiler_gnu=$ac_cv_c_compiler_gnu
9074
9075
9076fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009077{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
9078echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009079if test "$llvm_cv_link_use_export_dynamic" = yes ; then
9080
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009081cat >>confdefs.h <<\_ACEOF
9082#define HAVE_LINK_EXPORT_DYNAMIC 1
9083_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009084
9085 fi
9086
9087
Dan Gohmanda612d62010-06-01 14:56:56 +00009088{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
9089echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
9090if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00009091 echo $ECHO_N "(cached) $ECHO_C" >&6
9092else
9093 ac_ext=c
9094ac_cpp='$CPP $CPPFLAGS'
9095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9097ac_compiler_gnu=$ac_cv_c_compiler_gnu
9098
9099 oldcflags="$CFLAGS"
9100
9101 # The following code is from the autoconf manual,
9102 # "11.13: Limitations of Usual Tools".
9103 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
9104 # Use mktemp if possible; otherwise fall back on mkdir,
9105 # with $RANDOM to make collisions less likely.
9106 : ${TMPDIR=/tmp}
9107 {
9108 tmp=`
9109 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
9110 ` &&
9111 test -n "$tmp" && test -d "$tmp"
9112 } || {
9113 tmp=$TMPDIR/foo$$-$RANDOM
9114 (umask 077 && mkdir "$tmp")
9115 } || exit $?
9116
Dan Gohmanda612d62010-06-01 14:56:56 +00009117 echo "{" > "$tmp/export.map"
9118 echo " global: main;" >> "$tmp/export.map"
9119 echo " local: *;" >> "$tmp/export.map"
9120 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00009121
Dan Gohmanda612d62010-06-01 14:56:56 +00009122 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00009123 cat >conftest.$ac_ext <<_ACEOF
9124/* confdefs.h. */
9125_ACEOF
9126cat confdefs.h >>conftest.$ac_ext
9127cat >>conftest.$ac_ext <<_ACEOF
9128/* end confdefs.h. */
9129
9130int
9131main ()
9132{
Dan Gohman39ed6782010-04-25 00:12:20 +00009133
Dan Gohman391569c2010-04-16 22:59:06 +00009134 ;
9135 return 0;
9136}
9137_ACEOF
9138rm -f conftest.$ac_objext conftest$ac_exeext
9139if { (ac_try="$ac_link"
9140case "(($ac_try" in
9141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9142 *) ac_try_echo=$ac_try;;
9143esac
9144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9145 (eval "$ac_link") 2>conftest.er1
9146 ac_status=$?
9147 grep -v '^ *+' conftest.er1 >conftest.err
9148 rm -f conftest.er1
9149 cat conftest.err >&5
9150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151 (exit $ac_status); } &&
9152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9153 { (case "(($ac_try" in
9154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9155 *) ac_try_echo=$ac_try;;
9156esac
9157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9158 (eval "$ac_try") 2>&5
9159 ac_status=$?
9160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9161 (exit $ac_status); }; } &&
9162 { ac_try='test -s conftest$ac_exeext'
9163 { (case "(($ac_try" in
9164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9165 *) ac_try_echo=$ac_try;;
9166esac
9167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9168 (eval "$ac_try") 2>&5
9169 ac_status=$?
9170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00009172 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00009173else
9174 echo "$as_me: failed program was:" >&5
9175sed 's/^/| /' conftest.$ac_ext >&5
9176
Dan Gohman943005e2010-06-01 16:22:27 +00009177 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00009178fi
9179
9180rm -f core conftest.err conftest.$ac_objext \
9181 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00009182 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00009183 rmdir "$tmp"
9184 CFLAGS="$oldcflags"
9185 ac_ext=c
9186ac_cpp='$CPP $CPPFLAGS'
9187ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9188ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9189ac_compiler_gnu=$ac_cv_c_compiler_gnu
9190
9191
9192fi
Dan Gohmanda612d62010-06-01 14:56:56 +00009193{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9194echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9195if test "$llvm_cv_link_use_version_script" = yes ; then
9196 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00009197
9198 fi
9199
9200
Reid Spencera773bd52006-08-04 18:18:08 +00009201
9202
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009203{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9204echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9205if test "${ac_cv_c_const+set}" = set; then
9206 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009207else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009208 cat >conftest.$ac_ext <<_ACEOF
9209/* confdefs.h. */
9210_ACEOF
9211cat confdefs.h >>conftest.$ac_ext
9212cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009213/* end confdefs.h. */
9214
9215int
9216main ()
9217{
9218/* FIXME: Include the comments suggested by Paul. */
9219#ifndef __cplusplus
9220 /* Ultrix mips cc rejects this. */
9221 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009222 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00009223 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009224 char const *const *ccp;
9225 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00009226 /* NEC SVR4.0.2 mips cc rejects this. */
9227 struct point {int x, y;};
9228 static struct point const zero = {0,0};
9229 /* AIX XL C 1.02.0.0 rejects this.
9230 It does not let you subtract one const X* pointer from another in
9231 an arm of an if-expression whose if-part is not a constant
9232 expression */
9233 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009234 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00009235 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009236 ++ccp;
9237 p = (char**) ccp;
9238 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00009239 { /* SCO 3.2v4 cc rejects this. */
9240 char *t;
9241 char const *s = 0 ? (char *) 0 : (char const *) 0;
9242
9243 *t++ = 0;
9244 if (s) return 0;
9245 }
9246 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9247 int x[] = {25, 17};
9248 const int *foo = &x[0];
9249 ++foo;
9250 }
9251 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9252 typedef const int *iptr;
9253 iptr p = 0;
9254 ++p;
9255 }
9256 { /* AIX XL C 1.02.0.0 rejects this saying
9257 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9258 struct s { int j; const int *ap[3]; };
9259 struct s *b; b->j = 5;
9260 }
9261 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9262 const int foo = 10;
9263 if (!foo) return 0;
9264 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009265 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00009266#endif
9267
9268 ;
9269 return 0;
9270}
9271_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009272rm -f conftest.$ac_objext
9273if { (ac_try="$ac_compile"
9274case "(($ac_try" in
9275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9276 *) ac_try_echo=$ac_try;;
9277esac
9278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9279 (eval "$ac_compile") 2>conftest.er1
9280 ac_status=$?
9281 grep -v '^ *+' conftest.er1 >conftest.err
9282 rm -f conftest.er1
9283 cat conftest.err >&5
9284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285 (exit $ac_status); } &&
9286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9287 { (case "(($ac_try" in
9288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9289 *) ac_try_echo=$ac_try;;
9290esac
9291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9292 (eval "$ac_try") 2>&5
9293 ac_status=$?
9294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 (exit $ac_status); }; } &&
9296 { ac_try='test -s conftest.$ac_objext'
9297 { (case "(($ac_try" in
9298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9299 *) ac_try_echo=$ac_try;;
9300esac
9301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9302 (eval "$ac_try") 2>&5
9303 ac_status=$?
9304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009306 ac_cv_c_const=yes
9307else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009308 echo "$as_me: failed program was:" >&5
9309sed 's/^/| /' conftest.$ac_ext >&5
9310
9311 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00009312fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009313
Reid Spencera773bd52006-08-04 18:18:08 +00009314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9315fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009316{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9317echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009318if test $ac_cv_c_const = no; then
9319
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009320cat >>confdefs.h <<\_ACEOF
9321#define const
9322_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009323
9324fi
9325
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009326
9327
9328
9329
9330
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009331ac_header_dirent=no
9332for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009333 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9334{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9335echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9336if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9337 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009338else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009339 cat >conftest.$ac_ext <<_ACEOF
9340/* confdefs.h. */
9341_ACEOF
9342cat confdefs.h >>conftest.$ac_ext
9343cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009344/* end confdefs.h. */
9345#include <sys/types.h>
9346#include <$ac_hdr>
9347
9348int
9349main ()
9350{
9351if ((DIR *) 0)
9352return 0;
9353 ;
9354 return 0;
9355}
9356_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009357rm -f conftest.$ac_objext
9358if { (ac_try="$ac_compile"
9359case "(($ac_try" in
9360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9361 *) ac_try_echo=$ac_try;;
9362esac
9363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9364 (eval "$ac_compile") 2>conftest.er1
9365 ac_status=$?
9366 grep -v '^ *+' conftest.er1 >conftest.err
9367 rm -f conftest.er1
9368 cat conftest.err >&5
9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 (exit $ac_status); } &&
9371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9372 { (case "(($ac_try" in
9373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9374 *) ac_try_echo=$ac_try;;
9375esac
9376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9377 (eval "$ac_try") 2>&5
9378 ac_status=$?
9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380 (exit $ac_status); }; } &&
9381 { ac_try='test -s conftest.$ac_objext'
9382 { (case "(($ac_try" in
9383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9384 *) ac_try_echo=$ac_try;;
9385esac
9386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9387 (eval "$ac_try") 2>&5
9388 ac_status=$?
9389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009391 eval "$as_ac_Header=yes"
9392else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009393 echo "$as_me: failed program was:" >&5
9394sed 's/^/| /' conftest.$ac_ext >&5
9395
9396 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009397fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009398
Reid Spencera773bd52006-08-04 18:18:08 +00009399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009400fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009401ac_res=`eval echo '${'$as_ac_Header'}'`
9402 { echo "$as_me:$LINENO: result: $ac_res" >&5
9403echo "${ECHO_T}$ac_res" >&6; }
9404if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009405 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009406#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009407_ACEOF
9408
9409ac_header_dirent=$ac_hdr; break
9410fi
9411
9412done
9413# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9414if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009415 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9416echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9417if test "${ac_cv_search_opendir+set}" = set; then
9418 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009419else
9420 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009421cat >conftest.$ac_ext <<_ACEOF
9422/* confdefs.h. */
9423_ACEOF
9424cat confdefs.h >>conftest.$ac_ext
9425cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009426/* end confdefs.h. */
9427
Reid Spencera773bd52006-08-04 18:18:08 +00009428/* Override any GCC internal prototype to avoid an error.
9429 Use char because int might match the return type of a GCC
9430 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009431#ifdef __cplusplus
9432extern "C"
9433#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009434char opendir ();
9435int
9436main ()
9437{
Reid Spencera773bd52006-08-04 18:18:08 +00009438return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009439 ;
9440 return 0;
9441}
9442_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009443for ac_lib in '' dir; do
9444 if test -z "$ac_lib"; then
9445 ac_res="none required"
9446 else
9447 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009448 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00009449 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009450 rm -f conftest.$ac_objext conftest$ac_exeext
9451if { (ac_try="$ac_link"
9452case "(($ac_try" in
9453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9454 *) ac_try_echo=$ac_try;;
9455esac
9456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9457 (eval "$ac_link") 2>conftest.er1
9458 ac_status=$?
9459 grep -v '^ *+' conftest.er1 >conftest.err
9460 rm -f conftest.er1
9461 cat conftest.err >&5
9462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463 (exit $ac_status); } &&
9464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9465 { (case "(($ac_try" in
9466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9467 *) ac_try_echo=$ac_try;;
9468esac
9469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9470 (eval "$ac_try") 2>&5
9471 ac_status=$?
9472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473 (exit $ac_status); }; } &&
9474 { ac_try='test -s conftest$ac_exeext'
9475 { (case "(($ac_try" in
9476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9477 *) ac_try_echo=$ac_try;;
9478esac
9479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9480 (eval "$ac_try") 2>&5
9481 ac_status=$?
9482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009484 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009485else
9486 echo "$as_me: failed program was:" >&5
9487sed 's/^/| /' conftest.$ac_ext >&5
9488
9489
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009490fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009491
Bill Wendlingebcceee2009-04-18 11:20:33 +00009492rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009493 conftest$ac_exeext
9494 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009495 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009496fi
John Criswell7a73b802003-06-30 21:59:07 +00009497done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009498if test "${ac_cv_search_opendir+set}" = set; then
9499 :
Reid Spencera773bd52006-08-04 18:18:08 +00009500else
9501 ac_cv_search_opendir=no
9502fi
9503rm conftest.$ac_ext
9504LIBS=$ac_func_search_save_LIBS
9505fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009506{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9507echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009508ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009509if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009510 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00009511
Reid Spencera773bd52006-08-04 18:18:08 +00009512fi
9513
9514else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009515 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9516echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9517if test "${ac_cv_search_opendir+set}" = set; then
9518 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009519else
9520 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009521cat >conftest.$ac_ext <<_ACEOF
9522/* confdefs.h. */
9523_ACEOF
9524cat confdefs.h >>conftest.$ac_ext
9525cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009526/* end confdefs.h. */
9527
9528/* Override any GCC internal prototype to avoid an error.
9529 Use char because int might match the return type of a GCC
9530 builtin and then its argument prototype would still apply. */
9531#ifdef __cplusplus
9532extern "C"
9533#endif
9534char opendir ();
9535int
9536main ()
9537{
9538return opendir ();
9539 ;
9540 return 0;
9541}
9542_ACEOF
9543for ac_lib in '' x; do
9544 if test -z "$ac_lib"; then
9545 ac_res="none required"
9546 else
9547 ac_res=-l$ac_lib
9548 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9549 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009550 rm -f conftest.$ac_objext conftest$ac_exeext
9551if { (ac_try="$ac_link"
9552case "(($ac_try" in
9553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9554 *) ac_try_echo=$ac_try;;
9555esac
9556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9557 (eval "$ac_link") 2>conftest.er1
9558 ac_status=$?
9559 grep -v '^ *+' conftest.er1 >conftest.err
9560 rm -f conftest.er1
9561 cat conftest.err >&5
9562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563 (exit $ac_status); } &&
9564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9565 { (case "(($ac_try" in
9566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9567 *) ac_try_echo=$ac_try;;
9568esac
9569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9570 (eval "$ac_try") 2>&5
9571 ac_status=$?
9572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573 (exit $ac_status); }; } &&
9574 { ac_try='test -s conftest$ac_exeext'
9575 { (case "(($ac_try" in
9576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9577 *) ac_try_echo=$ac_try;;
9578esac
9579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9580 (eval "$ac_try") 2>&5
9581 ac_status=$?
9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009584 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009585else
9586 echo "$as_me: failed program was:" >&5
9587sed 's/^/| /' conftest.$ac_ext >&5
9588
9589
Reid Spencera773bd52006-08-04 18:18:08 +00009590fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009591
Bill Wendlingebcceee2009-04-18 11:20:33 +00009592rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009593 conftest$ac_exeext
9594 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009595 break
9596fi
9597done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009598if test "${ac_cv_search_opendir+set}" = set; then
9599 :
Reid Spencera773bd52006-08-04 18:18:08 +00009600else
9601 ac_cv_search_opendir=no
9602fi
9603rm conftest.$ac_ext
9604LIBS=$ac_func_search_save_LIBS
9605fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009606{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9607echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009608ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009609if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009610 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9611
9612fi
9613
9614fi
John Criswell7a73b802003-06-30 21:59:07 +00009615
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009616
John Criswell7a73b802003-06-30 21:59:07 +00009617for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009618do
9619as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9620if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9621 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9622echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9623if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9624 echo $ECHO_N "(cached) $ECHO_C" >&6
9625fi
9626ac_res=`eval echo '${'$as_ac_Header'}'`
9627 { echo "$as_me:$LINENO: result: $ac_res" >&5
9628echo "${ECHO_T}$ac_res" >&6; }
9629else
9630 # Is the header compilable?
9631{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9632echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9633cat >conftest.$ac_ext <<_ACEOF
9634/* confdefs.h. */
9635_ACEOF
9636cat confdefs.h >>conftest.$ac_ext
9637cat >>conftest.$ac_ext <<_ACEOF
9638/* end confdefs.h. */
9639$ac_includes_default
9640#include <$ac_header>
9641_ACEOF
9642rm -f conftest.$ac_objext
9643if { (ac_try="$ac_compile"
9644case "(($ac_try" in
9645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9646 *) ac_try_echo=$ac_try;;
9647esac
9648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9649 (eval "$ac_compile") 2>conftest.er1
9650 ac_status=$?
9651 grep -v '^ *+' conftest.er1 >conftest.err
9652 rm -f conftest.er1
9653 cat conftest.err >&5
9654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655 (exit $ac_status); } &&
9656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9657 { (case "(($ac_try" in
9658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9659 *) ac_try_echo=$ac_try;;
9660esac
9661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9662 (eval "$ac_try") 2>&5
9663 ac_status=$?
9664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665 (exit $ac_status); }; } &&
9666 { ac_try='test -s conftest.$ac_objext'
9667 { (case "(($ac_try" in
9668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9669 *) ac_try_echo=$ac_try;;
9670esac
9671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9672 (eval "$ac_try") 2>&5
9673 ac_status=$?
9674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 (exit $ac_status); }; }; then
9676 ac_header_compiler=yes
9677else
9678 echo "$as_me: failed program was:" >&5
9679sed 's/^/| /' conftest.$ac_ext >&5
9680
9681 ac_header_compiler=no
9682fi
9683
9684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9685{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9686echo "${ECHO_T}$ac_header_compiler" >&6; }
9687
9688# Is the header present?
9689{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9690echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9691cat >conftest.$ac_ext <<_ACEOF
9692/* confdefs.h. */
9693_ACEOF
9694cat confdefs.h >>conftest.$ac_ext
9695cat >>conftest.$ac_ext <<_ACEOF
9696/* end confdefs.h. */
9697#include <$ac_header>
9698_ACEOF
9699if { (ac_try="$ac_cpp conftest.$ac_ext"
9700case "(($ac_try" in
9701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9702 *) ac_try_echo=$ac_try;;
9703esac
9704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9705 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9706 ac_status=$?
9707 grep -v '^ *+' conftest.er1 >conftest.err
9708 rm -f conftest.er1
9709 cat conftest.err >&5
9710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711 (exit $ac_status); } >/dev/null; then
9712 if test -s conftest.err; then
9713 ac_cpp_err=$ac_c_preproc_warn_flag
9714 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9715 else
9716 ac_cpp_err=
9717 fi
9718else
9719 ac_cpp_err=yes
9720fi
9721if test -z "$ac_cpp_err"; then
9722 ac_header_preproc=yes
9723else
9724 echo "$as_me: failed program was:" >&5
9725sed 's/^/| /' conftest.$ac_ext >&5
9726
9727 ac_header_preproc=no
9728fi
9729
9730rm -f conftest.err conftest.$ac_ext
9731{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9732echo "${ECHO_T}$ac_header_preproc" >&6; }
9733
9734# So? What about this header?
9735case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9736 yes:no: )
9737 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9738echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9740echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9741 ac_header_preproc=yes
9742 ;;
9743 no:yes:* )
9744 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9745echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9746 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9747echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9748 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9749echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9750 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9751echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9753echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9754 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9755echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9756 ( cat <<\_ASBOX
9757## ----------------------------------- ##
9758## Report this to llvmbugs@cs.uiuc.edu ##
9759## ----------------------------------- ##
9760_ASBOX
9761 ) | sed "s/^/$as_me: WARNING: /" >&2
9762 ;;
9763esac
9764{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9765echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9766if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9767 echo $ECHO_N "(cached) $ECHO_C" >&6
9768else
9769 eval "$as_ac_Header=\$ac_header_preproc"
9770fi
9771ac_res=`eval echo '${'$as_ac_Header'}'`
9772 { echo "$as_me:$LINENO: result: $ac_res" >&5
9773echo "${ECHO_T}$ac_res" >&6; }
9774
9775fi
9776if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00009777 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009778#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00009779_ACEOF
9780
9781fi
9782
9783done
9784
Reid Spencera773bd52006-08-04 18:18:08 +00009785# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009786if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009787 enableval=$enable_ltdl_install;
9788fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009789
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009790
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009791
9792
9793if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009794 INSTALL_LTDL_TRUE=
9795 INSTALL_LTDL_FALSE='#'
9796else
9797 INSTALL_LTDL_TRUE='#'
9798 INSTALL_LTDL_FALSE=
9799fi
9800
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009801
9802
9803if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009804 CONVENIENCE_LTDL_TRUE=
9805 CONVENIENCE_LTDL_FALSE='#'
9806else
9807 CONVENIENCE_LTDL_TRUE='#'
9808 CONVENIENCE_LTDL_FALSE=
9809fi
9810
9811
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009812{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9813echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009814library_names_spec=
9815libname_spec='lib$name'
9816soname_spec=
9817shrext_cmds=".so"
9818postinstall_cmds=
9819postuninstall_cmds=
9820finish_cmds=
9821finish_eval=
9822shlibpath_var=
9823shlibpath_overrides_runpath=unknown
9824version_type=none
9825dynamic_linker="$host_os ld.so"
9826sys_lib_dlsearch_path_spec="/lib /usr/lib"
9827if test "$GCC" = yes; then
9828 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9829 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9830 # if the path contains ";" then we assume it to be the separator
9831 # otherwise default to the standard path separator (i.e. ":") - it is
9832 # assumed that no part of a normal pathname contains ";" but that should
9833 # okay in the real world where ";" in dirpaths is itself problematic.
9834 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9835 else
9836 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9837 fi
9838else
9839 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9840fi
9841need_lib_prefix=unknown
9842hardcode_into_libs=no
9843
9844# when you set need_version to no, make sure it does not cause -set_version
9845# flags to be left without arguments
9846need_version=unknown
9847
9848case $host_os in
9849aix3*)
9850 version_type=linux
9851 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9852 shlibpath_var=LIBPATH
9853
9854 # AIX 3 has no versioning support, so we append a major version to the name.
9855 soname_spec='${libname}${release}${shared_ext}$major'
9856 ;;
9857
9858aix4* | aix5*)
9859 version_type=linux
9860 need_lib_prefix=no
9861 need_version=no
9862 hardcode_into_libs=yes
9863 if test "$host_cpu" = ia64; then
9864 # AIX 5 supports IA64
9865 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9866 shlibpath_var=LD_LIBRARY_PATH
9867 else
9868 # With GCC up to 2.95.x, collect2 would create an import file
9869 # for dependence libraries. The import file would start with
9870 # the line `#! .'. This would cause the generated library to
9871 # depend on `.', always an invalid library. This was fixed in
9872 # development snapshots of GCC prior to 3.0.
9873 case $host_os in
9874 aix4 | aix4.[01] | aix4.[01].*)
9875 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9876 echo ' yes '
9877 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9878 :
9879 else
9880 can_build_shared=no
9881 fi
9882 ;;
9883 esac
9884 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9885 # soname into executable. Probably we can add versioning support to
9886 # collect2, so additional links can be useful in future.
9887 if test "$aix_use_runtimelinking" = yes; then
9888 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9889 # instead of lib<name>.a to let people know that these are not
9890 # typical AIX shared libraries.
9891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9892 else
9893 # We preserve .a as extension for shared libraries through AIX4.2
9894 # and later when we are not doing run time linking.
9895 library_names_spec='${libname}${release}.a $libname.a'
9896 soname_spec='${libname}${release}${shared_ext}$major'
9897 fi
9898 shlibpath_var=LIBPATH
9899 fi
9900 ;;
9901
9902amigaos*)
9903 library_names_spec='$libname.ixlibrary $libname.a'
9904 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9905 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'
9906 ;;
9907
9908beos*)
9909 library_names_spec='${libname}${shared_ext}'
9910 dynamic_linker="$host_os ld.so"
9911 shlibpath_var=LIBRARY_PATH
9912 ;;
9913
9914bsdi[45]*)
9915 version_type=linux
9916 need_version=no
9917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9918 soname_spec='${libname}${release}${shared_ext}$major'
9919 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9920 shlibpath_var=LD_LIBRARY_PATH
9921 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9922 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9923 # the default ld.so.conf also contains /usr/contrib/lib and
9924 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9925 # libtool to hard-code these into programs
9926 ;;
9927
9928cygwin* | mingw* | pw32*)
9929 version_type=windows
9930 shrext_cmds=".dll"
9931 need_version=no
9932 need_lib_prefix=no
9933
9934 case $GCC,$host_os in
9935 yes,cygwin* | yes,mingw* | yes,pw32*)
9936 library_names_spec='$libname.dll.a'
9937 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9938 postinstall_cmds='base_file=`basename \${file}`~
9939 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9940 dldir=$destdir/`dirname \$dlpath`~
9941 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009942 $install_prog $dir/$dlname \$dldir/$dlname~
9943 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009944 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9945 dlpath=$dir/\$dldll~
9946 $rm \$dlpath'
9947 shlibpath_overrides_runpath=yes
9948
9949 case $host_os in
9950 cygwin*)
9951 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9952 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9953 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9954 ;;
9955 mingw*)
9956 # MinGW DLLs use traditional 'lib' prefix
9957 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9958 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9959 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9960 # It is most probably a Windows format PATH printed by
9961 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9962 # path with ; separators, and with drive letters. We can handle the
9963 # drive letters (cygwin fileutils understands them), so leave them,
9964 # especially as we might pass files found there to a mingw objdump,
9965 # which wouldn't understand a cygwinified path. Ahh.
9966 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9967 else
9968 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9969 fi
9970 ;;
9971 pw32*)
9972 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009973 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 +00009974 ;;
9975 esac
9976 ;;
9977
9978 *)
9979 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9980 ;;
9981 esac
9982 dynamic_linker='Win32 ld.exe'
9983 # FIXME: first we should search . and the directory the executable is in
9984 shlibpath_var=PATH
9985 ;;
9986
9987darwin* | rhapsody*)
9988 dynamic_linker="$host_os dyld"
9989 version_type=darwin
9990 need_lib_prefix=no
9991 need_version=no
9992 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9993 soname_spec='${libname}${release}${major}$shared_ext'
9994 shlibpath_overrides_runpath=yes
9995 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009996 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009997 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9998 if test "$GCC" = yes; then
9999 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"`
10000 else
10001 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10002 fi
10003 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10004 ;;
10005
10006dgux*)
10007 version_type=linux
10008 need_lib_prefix=no
10009 need_version=no
10010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10011 soname_spec='${libname}${release}${shared_ext}$major'
10012 shlibpath_var=LD_LIBRARY_PATH
10013 ;;
10014
10015freebsd1*)
10016 dynamic_linker=no
10017 ;;
10018
10019kfreebsd*-gnu)
10020 version_type=linux
10021 need_lib_prefix=no
10022 need_version=no
10023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10024 soname_spec='${libname}${release}${shared_ext}$major'
10025 shlibpath_var=LD_LIBRARY_PATH
10026 shlibpath_overrides_runpath=no
10027 hardcode_into_libs=yes
10028 dynamic_linker='GNU ld.so'
10029 ;;
10030
Reid Spencera773bd52006-08-04 18:18:08 +000010031freebsd* | dragonfly*)
10032 # DragonFly does not have aout. When/if they implement a new
10033 # versioning mechanism, adjust this.
10034 if test -x /usr/bin/objformat; then
10035 objformat=`/usr/bin/objformat`
10036 else
10037 case $host_os in
10038 freebsd[123]*) objformat=aout ;;
10039 *) objformat=elf ;;
10040 esac
10041 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010042 version_type=freebsd-$objformat
10043 case $version_type in
10044 freebsd-elf*)
10045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10046 need_version=no
10047 need_lib_prefix=no
10048 ;;
10049 freebsd-*)
10050 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10051 need_version=yes
10052 ;;
10053 esac
10054 shlibpath_var=LD_LIBRARY_PATH
10055 case $host_os in
10056 freebsd2*)
10057 shlibpath_overrides_runpath=yes
10058 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010059 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010060 shlibpath_overrides_runpath=yes
10061 hardcode_into_libs=yes
10062 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010063 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10064 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010065 shlibpath_overrides_runpath=no
10066 hardcode_into_libs=yes
10067 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010068 freebsd*) # from 4.6 on
10069 shlibpath_overrides_runpath=yes
10070 hardcode_into_libs=yes
10071 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010072 esac
10073 ;;
10074
10075gnu*)
10076 version_type=linux
10077 need_lib_prefix=no
10078 need_version=no
10079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10080 soname_spec='${libname}${release}${shared_ext}$major'
10081 shlibpath_var=LD_LIBRARY_PATH
10082 hardcode_into_libs=yes
10083 ;;
10084
10085hpux9* | hpux10* | hpux11*)
10086 # Give a soname corresponding to the major version so that dld.sl refuses to
10087 # link against other versions.
10088 version_type=sunos
10089 need_lib_prefix=no
10090 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000010091 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010092 ia64*)
10093 shrext_cmds='.so'
10094 hardcode_into_libs=yes
10095 dynamic_linker="$host_os dld.so"
10096 shlibpath_var=LD_LIBRARY_PATH
10097 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10099 soname_spec='${libname}${release}${shared_ext}$major'
10100 if test "X$HPUX_IA64_MODE" = X32; then
10101 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10102 else
10103 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10104 fi
10105 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10106 ;;
10107 hppa*64*)
10108 shrext_cmds='.sl'
10109 hardcode_into_libs=yes
10110 dynamic_linker="$host_os dld.sl"
10111 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10112 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10114 soname_spec='${libname}${release}${shared_ext}$major'
10115 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10116 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10117 ;;
10118 *)
10119 shrext_cmds='.sl'
10120 dynamic_linker="$host_os dld.sl"
10121 shlibpath_var=SHLIB_PATH
10122 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10124 soname_spec='${libname}${release}${shared_ext}$major'
10125 ;;
10126 esac
10127 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10128 postinstall_cmds='chmod 555 $lib'
10129 ;;
10130
Reid Spencera773bd52006-08-04 18:18:08 +000010131interix3*)
10132 version_type=linux
10133 need_lib_prefix=no
10134 need_version=no
10135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10136 soname_spec='${libname}${release}${shared_ext}$major'
10137 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10138 shlibpath_var=LD_LIBRARY_PATH
10139 shlibpath_overrides_runpath=no
10140 hardcode_into_libs=yes
10141 ;;
10142
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010143irix5* | irix6* | nonstopux*)
10144 case $host_os in
10145 nonstopux*) version_type=nonstopux ;;
10146 *)
10147 if test "$lt_cv_prog_gnu_ld" = yes; then
10148 version_type=linux
10149 else
10150 version_type=irix
10151 fi ;;
10152 esac
10153 need_lib_prefix=no
10154 need_version=no
10155 soname_spec='${libname}${release}${shared_ext}$major'
10156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10157 case $host_os in
10158 irix5* | nonstopux*)
10159 libsuff= shlibsuff=
10160 ;;
10161 *)
10162 case $LD in # libtool.m4 will add one of these switches to LD
10163 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10164 libsuff= shlibsuff= libmagic=32-bit;;
10165 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10166 libsuff=32 shlibsuff=N32 libmagic=N32;;
10167 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10168 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10169 *) libsuff= shlibsuff= libmagic=never-match;;
10170 esac
10171 ;;
10172 esac
10173 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10174 shlibpath_overrides_runpath=no
10175 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10176 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10177 hardcode_into_libs=yes
10178 ;;
10179
10180# No shared lib support for Linux oldld, aout, or coff.
10181linux*oldld* | linux*aout* | linux*coff*)
10182 dynamic_linker=no
10183 ;;
10184
10185# This must be Linux ELF.
10186linux*)
10187 version_type=linux
10188 need_lib_prefix=no
10189 need_version=no
10190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10191 soname_spec='${libname}${release}${shared_ext}$major'
10192 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10193 shlibpath_var=LD_LIBRARY_PATH
10194 shlibpath_overrides_runpath=no
10195 # This implies no fast_install, which is unacceptable.
10196 # Some rework will be needed to allow for fast_install
10197 # before this can be enabled.
10198 hardcode_into_libs=yes
10199
10200 # Append ld.so.conf contents to the search path
10201 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000010202 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 +000010203 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10204 fi
10205
10206 # We used to test for /lib/ld.so.1 and disable shared libraries on
10207 # powerpc, because MkLinux only supported shared libraries with the
10208 # GNU dynamic linker. Since this was broken with cross compilers,
10209 # most powerpc-linux boxes support dynamic linking these days and
10210 # people can always --disable-shared, the test was removed, and we
10211 # assume the GNU/Linux dynamic linker is in use.
10212 dynamic_linker='GNU/Linux ld.so'
10213 ;;
10214
10215knetbsd*-gnu)
10216 version_type=linux
10217 need_lib_prefix=no
10218 need_version=no
10219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10220 soname_spec='${libname}${release}${shared_ext}$major'
10221 shlibpath_var=LD_LIBRARY_PATH
10222 shlibpath_overrides_runpath=no
10223 hardcode_into_libs=yes
10224 dynamic_linker='GNU ld.so'
10225 ;;
10226
10227netbsd*)
10228 version_type=sunos
10229 need_lib_prefix=no
10230 need_version=no
10231 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10233 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10234 dynamic_linker='NetBSD (a.out) ld.so'
10235 else
10236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10237 soname_spec='${libname}${release}${shared_ext}$major'
10238 dynamic_linker='NetBSD ld.elf_so'
10239 fi
10240 shlibpath_var=LD_LIBRARY_PATH
10241 shlibpath_overrides_runpath=yes
10242 hardcode_into_libs=yes
10243 ;;
10244
10245newsos6)
10246 version_type=linux
10247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10248 shlibpath_var=LD_LIBRARY_PATH
10249 shlibpath_overrides_runpath=yes
10250 ;;
10251
10252nto-qnx*)
10253 version_type=linux
10254 need_lib_prefix=no
10255 need_version=no
10256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10257 soname_spec='${libname}${release}${shared_ext}$major'
10258 shlibpath_var=LD_LIBRARY_PATH
10259 shlibpath_overrides_runpath=yes
10260 ;;
10261
10262openbsd*)
10263 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000010264 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010265 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000010266 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10267 case $host_os in
10268 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10269 *) need_version=no ;;
10270 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10272 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10273 shlibpath_var=LD_LIBRARY_PATH
10274 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10275 case $host_os in
10276 openbsd2.[89] | openbsd2.[89].*)
10277 shlibpath_overrides_runpath=no
10278 ;;
10279 *)
10280 shlibpath_overrides_runpath=yes
10281 ;;
10282 esac
10283 else
10284 shlibpath_overrides_runpath=yes
10285 fi
10286 ;;
10287
10288os2*)
10289 libname_spec='$name'
10290 shrext_cmds=".dll"
10291 need_lib_prefix=no
10292 library_names_spec='$libname${shared_ext} $libname.a'
10293 dynamic_linker='OS/2 ld.exe'
10294 shlibpath_var=LIBPATH
10295 ;;
10296
10297osf3* | osf4* | osf5*)
10298 version_type=osf
10299 need_lib_prefix=no
10300 need_version=no
10301 soname_spec='${libname}${release}${shared_ext}$major'
10302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10303 shlibpath_var=LD_LIBRARY_PATH
10304 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10305 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10306 ;;
10307
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010308solaris*)
10309 version_type=linux
10310 need_lib_prefix=no
10311 need_version=no
10312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10313 soname_spec='${libname}${release}${shared_ext}$major'
10314 shlibpath_var=LD_LIBRARY_PATH
10315 shlibpath_overrides_runpath=yes
10316 hardcode_into_libs=yes
10317 # ldd complains unless libraries are executable
10318 postinstall_cmds='chmod +x $lib'
10319 ;;
10320
10321sunos4*)
10322 version_type=sunos
10323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10324 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10325 shlibpath_var=LD_LIBRARY_PATH
10326 shlibpath_overrides_runpath=yes
10327 if test "$with_gnu_ld" = yes; then
10328 need_lib_prefix=no
10329 fi
10330 need_version=yes
10331 ;;
10332
Reid Spencera773bd52006-08-04 18:18:08 +000010333sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010334 version_type=linux
10335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10336 soname_spec='${libname}${release}${shared_ext}$major'
10337 shlibpath_var=LD_LIBRARY_PATH
10338 case $host_vendor in
10339 sni)
10340 shlibpath_overrides_runpath=no
10341 need_lib_prefix=no
10342 export_dynamic_flag_spec='${wl}-Blargedynsym'
10343 runpath_var=LD_RUN_PATH
10344 ;;
10345 siemens)
10346 need_lib_prefix=no
10347 ;;
10348 motorola)
10349 need_lib_prefix=no
10350 need_version=no
10351 shlibpath_overrides_runpath=no
10352 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10353 ;;
10354 esac
10355 ;;
10356
10357sysv4*MP*)
10358 if test -d /usr/nec ;then
10359 version_type=linux
10360 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10361 soname_spec='$libname${shared_ext}.$major'
10362 shlibpath_var=LD_LIBRARY_PATH
10363 fi
10364 ;;
10365
Reid Spencera773bd52006-08-04 18:18:08 +000010366sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10367 version_type=freebsd-elf
10368 need_lib_prefix=no
10369 need_version=no
10370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10371 soname_spec='${libname}${release}${shared_ext}$major'
10372 shlibpath_var=LD_LIBRARY_PATH
10373 hardcode_into_libs=yes
10374 if test "$with_gnu_ld" = yes; then
10375 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10376 shlibpath_overrides_runpath=no
10377 else
10378 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10379 shlibpath_overrides_runpath=yes
10380 case $host_os in
10381 sco3.2v5*)
10382 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10383 ;;
10384 esac
10385 fi
10386 sys_lib_dlsearch_path_spec='/usr/lib'
10387 ;;
10388
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010389uts4*)
10390 version_type=linux
10391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10392 soname_spec='${libname}${release}${shared_ext}$major'
10393 shlibpath_var=LD_LIBRARY_PATH
10394 ;;
10395
10396*)
10397 dynamic_linker=no
10398 ;;
10399esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010400{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10401echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010402test "$dynamic_linker" = no && can_build_shared=no
10403
Reid Spencera773bd52006-08-04 18:18:08 +000010404variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10405if test "$GCC" = yes; then
10406 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10407fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010408
Reid Spencera773bd52006-08-04 18:18:08 +000010409
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010410{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10411echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10412if test "${libltdl_cv_shlibext+set}" = set; then
10413 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010414else
10415
10416module=yes
10417eval libltdl_cv_shlibext=$shrext_cmds
10418
10419fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010420{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10421echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010422if test -n "$libltdl_cv_shlibext"; then
10423
10424cat >>confdefs.h <<_ACEOF
10425#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10426_ACEOF
10427
10428fi
10429
10430
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010431{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10432echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10433if test "${libltdl_cv_shlibpath_var+set}" = set; then
10434 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010435else
10436 libltdl_cv_shlibpath_var="$shlibpath_var"
10437fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010438{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10439echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010440if test -n "$libltdl_cv_shlibpath_var"; then
10441
10442cat >>confdefs.h <<_ACEOF
10443#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10444_ACEOF
10445
10446fi
10447
10448
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010449{ echo "$as_me:$LINENO: checking for the default library search path" >&5
10450echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10451if test "${libltdl_cv_sys_search_path+set}" = set; then
10452 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010453else
10454 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10455fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010456{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10457echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010458if test -n "$libltdl_cv_sys_search_path"; then
10459 sys_search_path=
10460 for dir in $libltdl_cv_sys_search_path; do
10461 if test -z "$sys_search_path"; then
10462 sys_search_path="$dir"
10463 else
10464 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10465 fi
10466 done
10467
10468cat >>confdefs.h <<_ACEOF
10469#define LTDL_SYSSEARCHPATH "$sys_search_path"
10470_ACEOF
10471
10472fi
10473
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010474{ echo "$as_me:$LINENO: checking for objdir" >&5
10475echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10476if test "${libltdl_cv_objdir+set}" = set; then
10477 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010478else
10479 libltdl_cv_objdir="$objdir"
10480 if test -n "$objdir"; then
10481 :
10482 else
10483 rm -f .libs 2>/dev/null
10484 mkdir .libs 2>/dev/null
10485 if test -d .libs; then
10486 libltdl_cv_objdir=.libs
10487 else
10488 # MS-DOS does not allow filenames that begin with a dot.
10489 libltdl_cv_objdir=_libs
10490 fi
10491 rmdir .libs 2>/dev/null
10492 fi
10493
10494fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010495{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10496echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010497
10498cat >>confdefs.h <<_ACEOF
10499#define LTDL_OBJDIR "$libltdl_cv_objdir/"
10500_ACEOF
10501
10502
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010503
10504
10505
10506
10507# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010508{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10509echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10510if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10511 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010512else
10513
10514# These are sane defaults that work on at least a few old systems.
10515# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10516
10517# Character class describing NM global symbol codes.
10518symcode='[BCDEGRST]'
10519
10520# Regexp to match symbols that can be accessed directly from C.
10521sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10522
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010523# Transform an extracted symbol line into a proper C declaration
10524lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10525
10526# Transform an extracted symbol line into symbol name and symbol address
10527lt_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'"
10528
10529# Define system-specific variables.
10530case $host_os in
10531aix*)
10532 symcode='[BCDT]'
10533 ;;
10534cygwin* | mingw* | pw32*)
10535 symcode='[ABCDGISTW]'
10536 ;;
10537hpux*) # Its linker distinguishes data from code symbols
10538 if test "$host_cpu" = ia64; then
10539 symcode='[ABCDEGRST]'
10540 fi
10541 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10542 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
10543 ;;
10544linux*)
10545 if test "$host_cpu" = ia64; then
10546 symcode='[ABCDGIRSTW]'
10547 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10548 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'"
10549 fi
10550 ;;
10551irix* | nonstopux*)
10552 symcode='[BCDEGRST]'
10553 ;;
10554osf*)
10555 symcode='[BCDEGQRST]'
10556 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010557solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010558 symcode='[BDRT]'
10559 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010560sco3.2v5*)
10561 symcode='[DT]'
10562 ;;
10563sysv4.2uw2*)
10564 symcode='[DT]'
10565 ;;
10566sysv5* | sco5v6* | unixware* | OpenUNIX*)
10567 symcode='[ABDT]'
10568 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010569sysv4)
10570 symcode='[DFNSTU]'
10571 ;;
10572esac
10573
10574# Handle CRLF in mingw tool chain
10575opt_cr=
10576case $build_os in
10577mingw*)
10578 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10579 ;;
10580esac
10581
10582# If we're using GNU nm, then use its standard symbol codes.
10583case `$NM -V 2>&1` in
10584*GNU* | *'with BFD'*)
10585 symcode='[ABCDGIRSTW]' ;;
10586esac
10587
10588# Try without a prefix undercore, then with it.
10589for ac_symprfx in "" "_"; do
10590
Reid Spencera773bd52006-08-04 18:18:08 +000010591 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10592 symxfrm="\\1 $ac_symprfx\\2 \\2"
10593
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010594 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000010595 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 +000010596
10597 # Check to see that the pipe works correctly.
10598 pipe_works=no
10599
10600 rm -f conftest*
10601 cat > conftest.$ac_ext <<EOF
10602#ifdef __cplusplus
10603extern "C" {
10604#endif
10605char nm_test_var;
10606void nm_test_func(){}
10607#ifdef __cplusplus
10608}
10609#endif
10610int main(){nm_test_var='a';nm_test_func();return(0);}
10611EOF
10612
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010614 (eval $ac_compile) 2>&5
10615 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010618 # Now try to grab the symbols.
10619 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010620 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 +000010621 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10622 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010625 # Try sorting and uniquifying the output.
10626 if sort "$nlist" | uniq > "$nlist"T; then
10627 mv -f "$nlist"T "$nlist"
10628 else
10629 rm -f "$nlist"T
10630 fi
10631
10632 # Make sure that we snagged all the symbols we need.
10633 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10634 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10635 cat <<EOF > conftest.$ac_ext
10636#ifdef __cplusplus
10637extern "C" {
10638#endif
10639
10640EOF
10641 # Now generate the symbol file.
10642 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10643
10644 cat <<EOF >> conftest.$ac_ext
10645#if defined (__STDC__) && __STDC__
10646# define lt_ptr_t void *
10647#else
10648# define lt_ptr_t char *
10649# define const
10650#endif
10651
10652/* The mapping between symbol names and symbols. */
10653const struct {
10654 const char *name;
10655 lt_ptr_t address;
10656}
10657lt_preloaded_symbols[] =
10658{
10659EOF
10660 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10661 cat <<\EOF >> conftest.$ac_ext
10662 {0, (lt_ptr_t) 0}
10663};
10664
10665#ifdef __cplusplus
10666}
10667#endif
10668EOF
10669 # Now try linking the two files.
10670 mv conftest.$ac_objext conftstm.$ac_objext
10671 lt_save_LIBS="$LIBS"
10672 lt_save_CFLAGS="$CFLAGS"
10673 LIBS="conftstm.$ac_objext"
10674 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010676 (eval $ac_link) 2>&5
10677 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010680 pipe_works=yes
10681 fi
10682 LIBS="$lt_save_LIBS"
10683 CFLAGS="$lt_save_CFLAGS"
10684 else
10685 echo "cannot find nm_test_func in $nlist" >&5
10686 fi
10687 else
10688 echo "cannot find nm_test_var in $nlist" >&5
10689 fi
10690 else
10691 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10692 fi
10693 else
10694 echo "$progname: failed program was:" >&5
10695 cat conftest.$ac_ext >&5
10696 fi
10697 rm -f conftest* conftst*
10698
10699 # Do not use the global_symbol_pipe unless it works.
10700 if test "$pipe_works" = yes; then
10701 break
10702 else
10703 lt_cv_sys_global_symbol_pipe=
10704 fi
10705done
10706
10707fi
10708
10709if test -z "$lt_cv_sys_global_symbol_pipe"; then
10710 lt_cv_sys_global_symbol_to_cdecl=
10711fi
10712if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010713 { echo "$as_me:$LINENO: result: failed" >&5
10714echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010715else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010716 { echo "$as_me:$LINENO: result: ok" >&5
10717echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010718fi
10719
10720
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010721{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10722echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10723if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10724 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010725else
10726 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10727 libltdl_cv_preloaded_symbols=yes
10728 else
10729 libltdl_cv_preloaded_symbols=no
10730 fi
10731
10732fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010733{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10734echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010735if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10736
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010737cat >>confdefs.h <<\_ACEOF
10738#define HAVE_PRELOADED_SYMBOLS 1
10739_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010740
10741fi
10742
10743LIBADD_DL=
10744
10745ac_ext=c
10746ac_cpp='$CPP $CPPFLAGS'
10747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10749ac_compiler_gnu=$ac_cv_c_compiler_gnu
10750
10751
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010752{ echo "$as_me:$LINENO: checking for shl_load" >&5
10753echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10754if test "${ac_cv_func_shl_load+set}" = set; then
10755 echo $ECHO_N "(cached) $ECHO_C" >&6
10756else
10757 cat >conftest.$ac_ext <<_ACEOF
10758/* confdefs.h. */
10759_ACEOF
10760cat confdefs.h >>conftest.$ac_ext
10761cat >>conftest.$ac_ext <<_ACEOF
10762/* end confdefs.h. */
10763/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10765#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010766
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010767/* System header to define __stub macros and hopefully few prototypes,
10768 which can conflict with char shl_load (); below.
10769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10770 <limits.h> exists even on freestanding compilers. */
10771
10772#ifdef __STDC__
10773# include <limits.h>
10774#else
10775# include <assert.h>
10776#endif
10777
10778#undef shl_load
10779
10780/* Override any GCC internal prototype to avoid an error.
10781 Use char because int might match the return type of a GCC
10782 builtin and then its argument prototype would still apply. */
10783#ifdef __cplusplus
10784extern "C"
10785#endif
10786char shl_load ();
10787/* The GNU C library defines this for functions which it implements
10788 to always fail with ENOSYS. Some functions are actually named
10789 something starting with __ and the normal name is an alias. */
10790#if defined __stub_shl_load || defined __stub___shl_load
10791choke me
10792#endif
10793
10794int
10795main ()
10796{
10797return shl_load ();
10798 ;
10799 return 0;
10800}
10801_ACEOF
10802rm -f conftest.$ac_objext conftest$ac_exeext
10803if { (ac_try="$ac_link"
10804case "(($ac_try" in
10805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10806 *) ac_try_echo=$ac_try;;
10807esac
10808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10809 (eval "$ac_link") 2>conftest.er1
10810 ac_status=$?
10811 grep -v '^ *+' conftest.er1 >conftest.err
10812 rm -f conftest.er1
10813 cat conftest.err >&5
10814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815 (exit $ac_status); } &&
10816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10817 { (case "(($ac_try" in
10818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10819 *) ac_try_echo=$ac_try;;
10820esac
10821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10822 (eval "$ac_try") 2>&5
10823 ac_status=$?
10824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825 (exit $ac_status); }; } &&
10826 { ac_try='test -s conftest$ac_exeext'
10827 { (case "(($ac_try" in
10828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10829 *) ac_try_echo=$ac_try;;
10830esac
10831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10832 (eval "$ac_try") 2>&5
10833 ac_status=$?
10834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835 (exit $ac_status); }; }; then
10836 ac_cv_func_shl_load=yes
10837else
10838 echo "$as_me: failed program was:" >&5
10839sed 's/^/| /' conftest.$ac_ext >&5
10840
10841 ac_cv_func_shl_load=no
10842fi
10843
10844rm -f core conftest.err conftest.$ac_objext \
10845 conftest$ac_exeext conftest.$ac_ext
10846fi
10847{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10848echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10849if test $ac_cv_func_shl_load = yes; then
10850
10851cat >>confdefs.h <<\_ACEOF
10852#define HAVE_SHL_LOAD 1
10853_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010854
10855else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010856 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10857echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10858if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10859 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010860else
10861 ac_check_lib_save_LIBS=$LIBS
10862LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010863cat >conftest.$ac_ext <<_ACEOF
10864/* confdefs.h. */
10865_ACEOF
10866cat confdefs.h >>conftest.$ac_ext
10867cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010868/* end confdefs.h. */
10869
Reid Spencera773bd52006-08-04 18:18:08 +000010870/* Override any GCC internal prototype to avoid an error.
10871 Use char because int might match the return type of a GCC
10872 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010873#ifdef __cplusplus
10874extern "C"
10875#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010876char shl_load ();
10877int
10878main ()
10879{
Reid Spencera773bd52006-08-04 18:18:08 +000010880return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010881 ;
10882 return 0;
10883}
10884_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010885rm -f conftest.$ac_objext conftest$ac_exeext
10886if { (ac_try="$ac_link"
10887case "(($ac_try" in
10888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10889 *) ac_try_echo=$ac_try;;
10890esac
10891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10892 (eval "$ac_link") 2>conftest.er1
10893 ac_status=$?
10894 grep -v '^ *+' conftest.er1 >conftest.err
10895 rm -f conftest.er1
10896 cat conftest.err >&5
10897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898 (exit $ac_status); } &&
10899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10900 { (case "(($ac_try" in
10901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10902 *) ac_try_echo=$ac_try;;
10903esac
10904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10905 (eval "$ac_try") 2>&5
10906 ac_status=$?
10907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908 (exit $ac_status); }; } &&
10909 { ac_try='test -s conftest$ac_exeext'
10910 { (case "(($ac_try" in
10911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10912 *) ac_try_echo=$ac_try;;
10913esac
10914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10915 (eval "$ac_try") 2>&5
10916 ac_status=$?
10917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010919 ac_cv_lib_dld_shl_load=yes
10920else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010921 echo "$as_me: failed program was:" >&5
10922sed 's/^/| /' conftest.$ac_ext >&5
10923
10924 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010925fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010926
Bill Wendlingebcceee2009-04-18 11:20:33 +000010927rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010928 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010929LIBS=$ac_check_lib_save_LIBS
10930fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010931{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10932echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10933if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010934
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010935cat >>confdefs.h <<\_ACEOF
10936#define HAVE_SHL_LOAD 1
10937_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010938
10939 LIBADD_DL="$LIBADD_DL -ldld"
10940else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010941 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10942echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10943if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10944 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010945else
10946 ac_check_lib_save_LIBS=$LIBS
10947LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010948cat >conftest.$ac_ext <<_ACEOF
10949/* confdefs.h. */
10950_ACEOF
10951cat confdefs.h >>conftest.$ac_ext
10952cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010953/* end confdefs.h. */
10954
Reid Spencera773bd52006-08-04 18:18:08 +000010955/* Override any GCC internal prototype to avoid an error.
10956 Use char because int might match the return type of a GCC
10957 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010958#ifdef __cplusplus
10959extern "C"
10960#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010961char dlopen ();
10962int
10963main ()
10964{
Reid Spencera773bd52006-08-04 18:18:08 +000010965return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010966 ;
10967 return 0;
10968}
10969_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010970rm -f conftest.$ac_objext conftest$ac_exeext
10971if { (ac_try="$ac_link"
10972case "(($ac_try" in
10973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10974 *) ac_try_echo=$ac_try;;
10975esac
10976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10977 (eval "$ac_link") 2>conftest.er1
10978 ac_status=$?
10979 grep -v '^ *+' conftest.er1 >conftest.err
10980 rm -f conftest.er1
10981 cat conftest.err >&5
10982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983 (exit $ac_status); } &&
10984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10985 { (case "(($ac_try" in
10986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10987 *) ac_try_echo=$ac_try;;
10988esac
10989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10990 (eval "$ac_try") 2>&5
10991 ac_status=$?
10992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993 (exit $ac_status); }; } &&
10994 { ac_try='test -s conftest$ac_exeext'
10995 { (case "(($ac_try" in
10996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10997 *) ac_try_echo=$ac_try;;
10998esac
10999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11000 (eval "$ac_try") 2>&5
11001 ac_status=$?
11002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011004 ac_cv_lib_dl_dlopen=yes
11005else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011006 echo "$as_me: failed program was:" >&5
11007sed 's/^/| /' conftest.$ac_ext >&5
11008
11009 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011010fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011011
Bill Wendlingebcceee2009-04-18 11:20:33 +000011012rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011013 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011014LIBS=$ac_check_lib_save_LIBS
11015fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011016{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11017echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11018if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011019
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011020cat >>confdefs.h <<\_ACEOF
11021#define HAVE_LIBDL 1
11022_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011023
11024 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
11025else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011026 cat >conftest.$ac_ext <<_ACEOF
11027/* confdefs.h. */
11028_ACEOF
11029cat confdefs.h >>conftest.$ac_ext
11030cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011031/* end confdefs.h. */
11032#if HAVE_DLFCN_H
11033# include <dlfcn.h>
11034#endif
11035
11036int
11037main ()
11038{
11039dlopen(0, 0);
11040 ;
11041 return 0;
11042}
11043_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011044rm -f conftest.$ac_objext conftest$ac_exeext
11045if { (ac_try="$ac_link"
11046case "(($ac_try" in
11047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11048 *) ac_try_echo=$ac_try;;
11049esac
11050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11051 (eval "$ac_link") 2>conftest.er1
11052 ac_status=$?
11053 grep -v '^ *+' conftest.er1 >conftest.err
11054 rm -f conftest.er1
11055 cat conftest.err >&5
11056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057 (exit $ac_status); } &&
11058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11059 { (case "(($ac_try" in
11060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11061 *) ac_try_echo=$ac_try;;
11062esac
11063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11064 (eval "$ac_try") 2>&5
11065 ac_status=$?
11066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067 (exit $ac_status); }; } &&
11068 { ac_try='test -s conftest$ac_exeext'
11069 { (case "(($ac_try" in
11070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11071 *) ac_try_echo=$ac_try;;
11072esac
11073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11074 (eval "$ac_try") 2>&5
11075 ac_status=$?
11076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011078
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011079cat >>confdefs.h <<\_ACEOF
11080#define HAVE_LIBDL 1
11081_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011082 libltdl_cv_func_dlopen="yes"
11083else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011084 echo "$as_me: failed program was:" >&5
11085sed 's/^/| /' conftest.$ac_ext >&5
11086
11087 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11088echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11089if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11090 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011091else
11092 ac_check_lib_save_LIBS=$LIBS
11093LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011094cat >conftest.$ac_ext <<_ACEOF
11095/* confdefs.h. */
11096_ACEOF
11097cat confdefs.h >>conftest.$ac_ext
11098cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011099/* end confdefs.h. */
11100
Reid Spencera773bd52006-08-04 18:18:08 +000011101/* Override any GCC internal prototype to avoid an error.
11102 Use char because int might match the return type of a GCC
11103 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011104#ifdef __cplusplus
11105extern "C"
11106#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011107char dlopen ();
11108int
11109main ()
11110{
Reid Spencera773bd52006-08-04 18:18:08 +000011111return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011112 ;
11113 return 0;
11114}
11115_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011116rm -f conftest.$ac_objext conftest$ac_exeext
11117if { (ac_try="$ac_link"
11118case "(($ac_try" in
11119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11120 *) ac_try_echo=$ac_try;;
11121esac
11122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11123 (eval "$ac_link") 2>conftest.er1
11124 ac_status=$?
11125 grep -v '^ *+' conftest.er1 >conftest.err
11126 rm -f conftest.er1
11127 cat conftest.err >&5
11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); } &&
11130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11131 { (case "(($ac_try" in
11132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11133 *) ac_try_echo=$ac_try;;
11134esac
11135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11136 (eval "$ac_try") 2>&5
11137 ac_status=$?
11138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139 (exit $ac_status); }; } &&
11140 { ac_try='test -s conftest$ac_exeext'
11141 { (case "(($ac_try" in
11142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11143 *) ac_try_echo=$ac_try;;
11144esac
11145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11146 (eval "$ac_try") 2>&5
11147 ac_status=$?
11148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011150 ac_cv_lib_svld_dlopen=yes
11151else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011152 echo "$as_me: failed program was:" >&5
11153sed 's/^/| /' conftest.$ac_ext >&5
11154
11155 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011156fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011157
Bill Wendlingebcceee2009-04-18 11:20:33 +000011158rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011159 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011160LIBS=$ac_check_lib_save_LIBS
11161fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011162{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11163echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11164if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011165
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011166cat >>confdefs.h <<\_ACEOF
11167#define HAVE_LIBDL 1
11168_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011169
11170 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
11171else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011172 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11173echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11174if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11175 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011176else
11177 ac_check_lib_save_LIBS=$LIBS
11178LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011179cat >conftest.$ac_ext <<_ACEOF
11180/* confdefs.h. */
11181_ACEOF
11182cat confdefs.h >>conftest.$ac_ext
11183cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011184/* end confdefs.h. */
11185
Reid Spencera773bd52006-08-04 18:18:08 +000011186/* Override any GCC internal prototype to avoid an error.
11187 Use char because int might match the return type of a GCC
11188 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011189#ifdef __cplusplus
11190extern "C"
11191#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011192char dld_link ();
11193int
11194main ()
11195{
Reid Spencera773bd52006-08-04 18:18:08 +000011196return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011197 ;
11198 return 0;
11199}
11200_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011201rm -f conftest.$ac_objext conftest$ac_exeext
11202if { (ac_try="$ac_link"
11203case "(($ac_try" in
11204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11205 *) ac_try_echo=$ac_try;;
11206esac
11207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11208 (eval "$ac_link") 2>conftest.er1
11209 ac_status=$?
11210 grep -v '^ *+' conftest.er1 >conftest.err
11211 rm -f conftest.er1
11212 cat conftest.err >&5
11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214 (exit $ac_status); } &&
11215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11216 { (case "(($ac_try" in
11217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11218 *) ac_try_echo=$ac_try;;
11219esac
11220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11221 (eval "$ac_try") 2>&5
11222 ac_status=$?
11223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224 (exit $ac_status); }; } &&
11225 { ac_try='test -s conftest$ac_exeext'
11226 { (case "(($ac_try" in
11227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11228 *) ac_try_echo=$ac_try;;
11229esac
11230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11231 (eval "$ac_try") 2>&5
11232 ac_status=$?
11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011235 ac_cv_lib_dld_dld_link=yes
11236else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011237 echo "$as_me: failed program was:" >&5
11238sed 's/^/| /' conftest.$ac_ext >&5
11239
11240 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011241fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011242
Bill Wendlingebcceee2009-04-18 11:20:33 +000011243rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011244 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011245LIBS=$ac_check_lib_save_LIBS
11246fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011247{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11248echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11249if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011250
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011251cat >>confdefs.h <<\_ACEOF
11252#define HAVE_DLD 1
11253_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011254
11255 LIBADD_DL="$LIBADD_DL -ldld"
11256else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011257 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11258echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11259if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11260 echo $ECHO_N "(cached) $ECHO_C" >&6
11261else
11262 cat >conftest.$ac_ext <<_ACEOF
11263/* confdefs.h. */
11264_ACEOF
11265cat confdefs.h >>conftest.$ac_ext
11266cat >>conftest.$ac_ext <<_ACEOF
11267/* end confdefs.h. */
11268/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11269 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11270#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011271
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011272/* System header to define __stub macros and hopefully few prototypes,
11273 which can conflict with char _dyld_func_lookup (); below.
11274 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11275 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011276
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011277#ifdef __STDC__
11278# include <limits.h>
11279#else
11280# include <assert.h>
11281#endif
11282
11283#undef _dyld_func_lookup
11284
11285/* Override any GCC internal prototype to avoid an error.
11286 Use char because int might match the return type of a GCC
11287 builtin and then its argument prototype would still apply. */
11288#ifdef __cplusplus
11289extern "C"
11290#endif
11291char _dyld_func_lookup ();
11292/* The GNU C library defines this for functions which it implements
11293 to always fail with ENOSYS. Some functions are actually named
11294 something starting with __ and the normal name is an alias. */
11295#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11296choke me
11297#endif
11298
11299int
11300main ()
11301{
11302return _dyld_func_lookup ();
11303 ;
11304 return 0;
11305}
11306_ACEOF
11307rm -f conftest.$ac_objext conftest$ac_exeext
11308if { (ac_try="$ac_link"
11309case "(($ac_try" in
11310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11311 *) ac_try_echo=$ac_try;;
11312esac
11313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11314 (eval "$ac_link") 2>conftest.er1
11315 ac_status=$?
11316 grep -v '^ *+' conftest.er1 >conftest.err
11317 rm -f conftest.er1
11318 cat conftest.err >&5
11319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320 (exit $ac_status); } &&
11321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11322 { (case "(($ac_try" in
11323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11324 *) ac_try_echo=$ac_try;;
11325esac
11326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11327 (eval "$ac_try") 2>&5
11328 ac_status=$?
11329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330 (exit $ac_status); }; } &&
11331 { ac_try='test -s conftest$ac_exeext'
11332 { (case "(($ac_try" in
11333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11334 *) ac_try_echo=$ac_try;;
11335esac
11336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11337 (eval "$ac_try") 2>&5
11338 ac_status=$?
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); }; }; then
11341 ac_cv_func__dyld_func_lookup=yes
11342else
11343 echo "$as_me: failed program was:" >&5
11344sed 's/^/| /' conftest.$ac_ext >&5
11345
11346 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011347fi
Reid Spencera773bd52006-08-04 18:18:08 +000011348
Bill Wendlingebcceee2009-04-18 11:20:33 +000011349rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011350 conftest$ac_exeext conftest.$ac_ext
11351fi
11352{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11353echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11354if test $ac_cv_func__dyld_func_lookup = yes; then
11355
11356cat >>confdefs.h <<\_ACEOF
11357#define HAVE_DYLD 1
11358_ACEOF
11359
11360fi
11361
11362
11363fi
11364
11365
11366fi
11367
11368
11369fi
11370
11371rm -f core conftest.err conftest.$ac_objext \
11372 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011373
11374fi
11375
11376
11377fi
11378
11379
11380fi
11381
11382
11383if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11384then
11385 lt_save_LIBS="$LIBS"
11386 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011387
11388for ac_func in dlerror
11389do
11390as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11391{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11392echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11393if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11394 echo $ECHO_N "(cached) $ECHO_C" >&6
11395else
11396 cat >conftest.$ac_ext <<_ACEOF
11397/* confdefs.h. */
11398_ACEOF
11399cat confdefs.h >>conftest.$ac_ext
11400cat >>conftest.$ac_ext <<_ACEOF
11401/* end confdefs.h. */
11402/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11403 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11404#define $ac_func innocuous_$ac_func
11405
11406/* System header to define __stub macros and hopefully few prototypes,
11407 which can conflict with char $ac_func (); below.
11408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11409 <limits.h> exists even on freestanding compilers. */
11410
11411#ifdef __STDC__
11412# include <limits.h>
11413#else
11414# include <assert.h>
11415#endif
11416
11417#undef $ac_func
11418
11419/* Override any GCC internal prototype to avoid an error.
11420 Use char because int might match the return type of a GCC
11421 builtin and then its argument prototype would still apply. */
11422#ifdef __cplusplus
11423extern "C"
11424#endif
11425char $ac_func ();
11426/* The GNU C library defines this for functions which it implements
11427 to always fail with ENOSYS. Some functions are actually named
11428 something starting with __ and the normal name is an alias. */
11429#if defined __stub_$ac_func || defined __stub___$ac_func
11430choke me
11431#endif
11432
11433int
11434main ()
11435{
11436return $ac_func ();
11437 ;
11438 return 0;
11439}
11440_ACEOF
11441rm -f conftest.$ac_objext conftest$ac_exeext
11442if { (ac_try="$ac_link"
11443case "(($ac_try" in
11444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11445 *) ac_try_echo=$ac_try;;
11446esac
11447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11448 (eval "$ac_link") 2>conftest.er1
11449 ac_status=$?
11450 grep -v '^ *+' conftest.er1 >conftest.err
11451 rm -f conftest.er1
11452 cat conftest.err >&5
11453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454 (exit $ac_status); } &&
11455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11456 { (case "(($ac_try" in
11457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11458 *) ac_try_echo=$ac_try;;
11459esac
11460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11461 (eval "$ac_try") 2>&5
11462 ac_status=$?
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); }; } &&
11465 { ac_try='test -s conftest$ac_exeext'
11466 { (case "(($ac_try" in
11467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11468 *) ac_try_echo=$ac_try;;
11469esac
11470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11471 (eval "$ac_try") 2>&5
11472 ac_status=$?
11473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474 (exit $ac_status); }; }; then
11475 eval "$as_ac_var=yes"
11476else
11477 echo "$as_me: failed program was:" >&5
11478sed 's/^/| /' conftest.$ac_ext >&5
11479
11480 eval "$as_ac_var=no"
11481fi
11482
11483rm -f core conftest.err conftest.$ac_objext \
11484 conftest$ac_exeext conftest.$ac_ext
11485fi
11486ac_res=`eval echo '${'$as_ac_var'}'`
11487 { echo "$as_me:$LINENO: result: $ac_res" >&5
11488echo "${ECHO_T}$ac_res" >&6; }
11489if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011490 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011491#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011492_ACEOF
11493
11494fi
11495done
11496
11497 LIBS="$lt_save_LIBS"
11498fi
11499ac_ext=c
11500ac_cpp='$CPP $CPPFLAGS'
11501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11503ac_compiler_gnu=$ac_cv_c_compiler_gnu
11504
11505
11506
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011507{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11508echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11509if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11510 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011511else
11512 ac_cv_sys_symbol_underscore=no
11513 cat > conftest.$ac_ext <<EOF
11514void nm_test_func(){}
11515int main(){nm_test_func;return 0;}
11516EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011518 (eval $ac_compile) 2>&5
11519 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011522 # Now try to grab the symbols.
11523 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011524 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 +000011525 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11526 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011529 # See whether the symbols have a leading underscore.
11530 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11531 ac_cv_sys_symbol_underscore=yes
11532 else
11533 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11534 :
11535 else
11536 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11537 fi
11538 fi
11539 else
11540 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11541 fi
11542 else
11543 echo "configure: failed program was:" >&5
11544 cat conftest.c >&5
11545 fi
11546 rm -rf conftest*
11547
11548fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011549{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11550echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011551
11552
11553if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11554 if test x"$libltdl_cv_func_dlopen" = xyes ||
11555 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011556 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11557echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11558if test "${libltdl_cv_need_uscore+set}" = set; then
11559 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011560else
11561 libltdl_cv_need_uscore=unknown
11562 save_LIBS="$LIBS"
11563 LIBS="$LIBS $LIBADD_DL"
11564 if test "$cross_compiling" = yes; then :
11565 libltdl_cv_need_uscore=cross
11566else
11567 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11568 lt_status=$lt_dlunknown
11569 cat > conftest.$ac_ext <<EOF
Jan Sjödindd54ffd2011-03-09 17:25:46 +000011570#line 11570 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011571#include "confdefs.h"
11572
11573#if HAVE_DLFCN_H
11574#include <dlfcn.h>
11575#endif
11576
11577#include <stdio.h>
11578
11579#ifdef RTLD_GLOBAL
11580# define LT_DLGLOBAL RTLD_GLOBAL
11581#else
11582# ifdef DL_GLOBAL
11583# define LT_DLGLOBAL DL_GLOBAL
11584# else
11585# define LT_DLGLOBAL 0
11586# endif
11587#endif
11588
11589/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11590 find out it does not work in some platform. */
11591#ifndef LT_DLLAZY_OR_NOW
11592# ifdef RTLD_LAZY
11593# define LT_DLLAZY_OR_NOW RTLD_LAZY
11594# else
11595# ifdef DL_LAZY
11596# define LT_DLLAZY_OR_NOW DL_LAZY
11597# else
11598# ifdef RTLD_NOW
11599# define LT_DLLAZY_OR_NOW RTLD_NOW
11600# else
11601# ifdef DL_NOW
11602# define LT_DLLAZY_OR_NOW DL_NOW
11603# else
11604# define LT_DLLAZY_OR_NOW 0
11605# endif
11606# endif
11607# endif
11608# endif
11609#endif
11610
11611#ifdef __cplusplus
11612extern "C" void exit (int);
11613#endif
11614
11615void fnord() { int i=42;}
11616int main ()
11617{
11618 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11619 int status = $lt_dlunknown;
11620
11621 if (self)
11622 {
11623 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11624 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11625 /* dlclose (self); */
11626 }
Reid Spencera773bd52006-08-04 18:18:08 +000011627 else
11628 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011629
11630 exit (status);
11631}
11632EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011634 (eval $ac_link) 2>&5
11635 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000011638 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011639 lt_status=$?
11640 case x$lt_status in
11641 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11642 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011643 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011644 esac
11645 else :
11646 # compilation failed
11647
11648 fi
11649fi
11650rm -fr conftest*
11651
11652 LIBS="$save_LIBS"
11653
11654fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011655{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11656echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011657 fi
11658fi
11659
11660if test x"$libltdl_cv_need_uscore" = xyes; then
11661
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011662cat >>confdefs.h <<\_ACEOF
11663#define NEED_USCORE 1
11664_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011665
11666fi
11667
11668
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011669{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11670echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11671if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11672 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011673else
11674 # PORTME does your system automatically load deplibs for dlopen?
11675 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11676 # For now, we just catch OSes we know something about -- in the
11677 # future, we'll try test this programmatically.
11678 libltdl_cv_sys_dlopen_deplibs=unknown
11679 case "$host_os" in
11680 aix3*|aix4.1.*|aix4.2.*)
11681 # Unknown whether this is true for these versions of AIX, but
11682 # we want this `case' here to explicitly catch those versions.
11683 libltdl_cv_sys_dlopen_deplibs=unknown
11684 ;;
11685 aix[45]*)
11686 libltdl_cv_sys_dlopen_deplibs=yes
11687 ;;
11688 darwin*)
11689 # Assuming the user has installed a libdl from somewhere, this is true
11690 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11691 libltdl_cv_sys_dlopen_deplibs=yes
11692 ;;
11693 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11694 # GNU and its variants, using gnu ld.so (Glibc)
11695 libltdl_cv_sys_dlopen_deplibs=yes
11696 ;;
11697 hpux10*|hpux11*)
11698 libltdl_cv_sys_dlopen_deplibs=yes
11699 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011700 interix*)
11701 libltdl_cv_sys_dlopen_deplibs=yes
11702 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011703 irix[12345]*|irix6.[01]*)
11704 # Catch all versions of IRIX before 6.2, and indicate that we don't
11705 # know how it worked for any of those versions.
11706 libltdl_cv_sys_dlopen_deplibs=unknown
11707 ;;
11708 irix*)
11709 # The case above catches anything before 6.2, and it's known that
11710 # at 6.2 and later dlopen does load deplibs.
11711 libltdl_cv_sys_dlopen_deplibs=yes
11712 ;;
11713 netbsd*)
11714 libltdl_cv_sys_dlopen_deplibs=yes
11715 ;;
11716 openbsd*)
11717 libltdl_cv_sys_dlopen_deplibs=yes
11718 ;;
11719 osf[1234]*)
11720 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11721 # it did *not* use an RPATH in a shared library to find objects the
11722 # library depends on, so we explictly say `no'.
11723 libltdl_cv_sys_dlopen_deplibs=no
11724 ;;
11725 osf5.0|osf5.0a|osf5.1)
11726 # dlopen *does* load deplibs and with the right loader patch applied
11727 # it even uses RPATH in a shared library to search for shared objects
11728 # that the library depends on, but there's no easy way to know if that
11729 # patch is installed. Since this is the case, all we can really
11730 # say is unknown -- it depends on the patch being installed. If
11731 # it is, this changes to `yes'. Without it, it would be `no'.
11732 libltdl_cv_sys_dlopen_deplibs=unknown
11733 ;;
11734 osf*)
11735 # the two cases above should catch all versions of osf <= 5.1. Read
11736 # the comments above for what we know about them.
11737 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11738 # is used to find them so we can finally say `yes'.
11739 libltdl_cv_sys_dlopen_deplibs=yes
11740 ;;
11741 solaris*)
11742 libltdl_cv_sys_dlopen_deplibs=yes
11743 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011744 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11745 libltdl_cv_sys_dlopen_deplibs=yes
11746 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011747 esac
11748
11749fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011750{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11751echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011752if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11753
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011754cat >>confdefs.h <<\_ACEOF
11755#define LTDL_DLOPEN_DEPLIBS 1
11756_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011757
11758fi
11759
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011760
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011761for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011762do
11763as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11764if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11765 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11766echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11767if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11768 echo $ECHO_N "(cached) $ECHO_C" >&6
11769fi
11770ac_res=`eval echo '${'$as_ac_Header'}'`
11771 { echo "$as_me:$LINENO: result: $ac_res" >&5
11772echo "${ECHO_T}$ac_res" >&6; }
11773else
11774 # Is the header compilable?
11775{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11776echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11777cat >conftest.$ac_ext <<_ACEOF
11778/* confdefs.h. */
11779_ACEOF
11780cat confdefs.h >>conftest.$ac_ext
11781cat >>conftest.$ac_ext <<_ACEOF
11782/* end confdefs.h. */
11783$ac_includes_default
11784#include <$ac_header>
11785_ACEOF
11786rm -f conftest.$ac_objext
11787if { (ac_try="$ac_compile"
11788case "(($ac_try" in
11789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11790 *) ac_try_echo=$ac_try;;
11791esac
11792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11793 (eval "$ac_compile") 2>conftest.er1
11794 ac_status=$?
11795 grep -v '^ *+' conftest.er1 >conftest.err
11796 rm -f conftest.er1
11797 cat conftest.err >&5
11798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799 (exit $ac_status); } &&
11800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11801 { (case "(($ac_try" in
11802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11803 *) ac_try_echo=$ac_try;;
11804esac
11805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11806 (eval "$ac_try") 2>&5
11807 ac_status=$?
11808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809 (exit $ac_status); }; } &&
11810 { ac_try='test -s conftest.$ac_objext'
11811 { (case "(($ac_try" in
11812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11813 *) ac_try_echo=$ac_try;;
11814esac
11815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11816 (eval "$ac_try") 2>&5
11817 ac_status=$?
11818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819 (exit $ac_status); }; }; then
11820 ac_header_compiler=yes
11821else
11822 echo "$as_me: failed program was:" >&5
11823sed 's/^/| /' conftest.$ac_ext >&5
11824
11825 ac_header_compiler=no
11826fi
11827
11828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11829{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11830echo "${ECHO_T}$ac_header_compiler" >&6; }
11831
11832# Is the header present?
11833{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11834echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11835cat >conftest.$ac_ext <<_ACEOF
11836/* confdefs.h. */
11837_ACEOF
11838cat confdefs.h >>conftest.$ac_ext
11839cat >>conftest.$ac_ext <<_ACEOF
11840/* end confdefs.h. */
11841#include <$ac_header>
11842_ACEOF
11843if { (ac_try="$ac_cpp conftest.$ac_ext"
11844case "(($ac_try" in
11845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11846 *) ac_try_echo=$ac_try;;
11847esac
11848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11850 ac_status=$?
11851 grep -v '^ *+' conftest.er1 >conftest.err
11852 rm -f conftest.er1
11853 cat conftest.err >&5
11854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855 (exit $ac_status); } >/dev/null; then
11856 if test -s conftest.err; then
11857 ac_cpp_err=$ac_c_preproc_warn_flag
11858 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11859 else
11860 ac_cpp_err=
11861 fi
11862else
11863 ac_cpp_err=yes
11864fi
11865if test -z "$ac_cpp_err"; then
11866 ac_header_preproc=yes
11867else
11868 echo "$as_me: failed program was:" >&5
11869sed 's/^/| /' conftest.$ac_ext >&5
11870
11871 ac_header_preproc=no
11872fi
11873
11874rm -f conftest.err conftest.$ac_ext
11875{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11876echo "${ECHO_T}$ac_header_preproc" >&6; }
11877
11878# So? What about this header?
11879case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11880 yes:no: )
11881 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11882echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11884echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11885 ac_header_preproc=yes
11886 ;;
11887 no:yes:* )
11888 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11889echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11890 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11891echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11892 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11893echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11894 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11895echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11897echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11898 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11899echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11900 ( cat <<\_ASBOX
11901## ----------------------------------- ##
11902## Report this to llvmbugs@cs.uiuc.edu ##
11903## ----------------------------------- ##
11904_ASBOX
11905 ) | sed "s/^/$as_me: WARNING: /" >&2
11906 ;;
11907esac
11908{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11909echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11910if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11911 echo $ECHO_N "(cached) $ECHO_C" >&6
11912else
11913 eval "$as_ac_Header=\$ac_header_preproc"
11914fi
11915ac_res=`eval echo '${'$as_ac_Header'}'`
11916 { echo "$as_me:$LINENO: result: $ac_res" >&5
11917echo "${ECHO_T}$ac_res" >&6; }
11918
11919fi
11920if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011921 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011922#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011923_ACEOF
11924
11925fi
11926
11927done
11928
11929
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011930{ echo "$as_me:$LINENO: checking for error_t" >&5
11931echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11932if test "${ac_cv_type_error_t+set}" = set; then
11933 echo $ECHO_N "(cached) $ECHO_C" >&6
11934else
11935 cat >conftest.$ac_ext <<_ACEOF
11936/* confdefs.h. */
11937_ACEOF
11938cat confdefs.h >>conftest.$ac_ext
11939cat >>conftest.$ac_ext <<_ACEOF
11940/* end confdefs.h. */
11941#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011942# include <argz.h>
11943#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011944
11945typedef error_t ac__type_new_;
11946int
11947main ()
11948{
11949if ((ac__type_new_ *) 0)
11950 return 0;
11951if (sizeof (ac__type_new_))
11952 return 0;
11953 ;
11954 return 0;
11955}
11956_ACEOF
11957rm -f conftest.$ac_objext
11958if { (ac_try="$ac_compile"
11959case "(($ac_try" in
11960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11961 *) ac_try_echo=$ac_try;;
11962esac
11963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11964 (eval "$ac_compile") 2>conftest.er1
11965 ac_status=$?
11966 grep -v '^ *+' conftest.er1 >conftest.err
11967 rm -f conftest.er1
11968 cat conftest.err >&5
11969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970 (exit $ac_status); } &&
11971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11972 { (case "(($ac_try" in
11973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11974 *) ac_try_echo=$ac_try;;
11975esac
11976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11977 (eval "$ac_try") 2>&5
11978 ac_status=$?
11979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980 (exit $ac_status); }; } &&
11981 { ac_try='test -s conftest.$ac_objext'
11982 { (case "(($ac_try" in
11983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11984 *) ac_try_echo=$ac_try;;
11985esac
11986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11987 (eval "$ac_try") 2>&5
11988 ac_status=$?
11989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990 (exit $ac_status); }; }; then
11991 ac_cv_type_error_t=yes
11992else
11993 echo "$as_me: failed program was:" >&5
11994sed 's/^/| /' conftest.$ac_ext >&5
11995
11996 ac_cv_type_error_t=no
11997fi
11998
11999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12000fi
12001{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
12002echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
12003if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012004
12005cat >>confdefs.h <<_ACEOF
12006#define HAVE_ERROR_T 1
12007_ACEOF
12008
12009
12010else
12011
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012012cat >>confdefs.h <<\_ACEOF
12013#define error_t int
12014_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012015
12016fi
12017
12018
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012019
12020
12021
12022
12023
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012024for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012025do
12026as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12027{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12028echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12029if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12030 echo $ECHO_N "(cached) $ECHO_C" >&6
12031else
12032 cat >conftest.$ac_ext <<_ACEOF
12033/* confdefs.h. */
12034_ACEOF
12035cat confdefs.h >>conftest.$ac_ext
12036cat >>conftest.$ac_ext <<_ACEOF
12037/* end confdefs.h. */
12038/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12039 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12040#define $ac_func innocuous_$ac_func
12041
12042/* System header to define __stub macros and hopefully few prototypes,
12043 which can conflict with char $ac_func (); below.
12044 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12045 <limits.h> exists even on freestanding compilers. */
12046
12047#ifdef __STDC__
12048# include <limits.h>
12049#else
12050# include <assert.h>
12051#endif
12052
12053#undef $ac_func
12054
12055/* Override any GCC internal prototype to avoid an error.
12056 Use char because int might match the return type of a GCC
12057 builtin and then its argument prototype would still apply. */
12058#ifdef __cplusplus
12059extern "C"
12060#endif
12061char $ac_func ();
12062/* The GNU C library defines this for functions which it implements
12063 to always fail with ENOSYS. Some functions are actually named
12064 something starting with __ and the normal name is an alias. */
12065#if defined __stub_$ac_func || defined __stub___$ac_func
12066choke me
12067#endif
12068
12069int
12070main ()
12071{
12072return $ac_func ();
12073 ;
12074 return 0;
12075}
12076_ACEOF
12077rm -f conftest.$ac_objext conftest$ac_exeext
12078if { (ac_try="$ac_link"
12079case "(($ac_try" in
12080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12081 *) ac_try_echo=$ac_try;;
12082esac
12083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12084 (eval "$ac_link") 2>conftest.er1
12085 ac_status=$?
12086 grep -v '^ *+' conftest.er1 >conftest.err
12087 rm -f conftest.er1
12088 cat conftest.err >&5
12089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12090 (exit $ac_status); } &&
12091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12092 { (case "(($ac_try" in
12093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12094 *) ac_try_echo=$ac_try;;
12095esac
12096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12097 (eval "$ac_try") 2>&5
12098 ac_status=$?
12099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100 (exit $ac_status); }; } &&
12101 { ac_try='test -s conftest$ac_exeext'
12102 { (case "(($ac_try" in
12103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12104 *) ac_try_echo=$ac_try;;
12105esac
12106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12107 (eval "$ac_try") 2>&5
12108 ac_status=$?
12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110 (exit $ac_status); }; }; then
12111 eval "$as_ac_var=yes"
12112else
12113 echo "$as_me: failed program was:" >&5
12114sed 's/^/| /' conftest.$ac_ext >&5
12115
12116 eval "$as_ac_var=no"
12117fi
12118
12119rm -f core conftest.err conftest.$ac_objext \
12120 conftest$ac_exeext conftest.$ac_ext
12121fi
12122ac_res=`eval echo '${'$as_ac_var'}'`
12123 { echo "$as_me:$LINENO: result: $ac_res" >&5
12124echo "${ECHO_T}$ac_res" >&6; }
12125if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012126 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012127#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012128_ACEOF
12129
12130fi
12131done
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012152
12153
12154
12155
12156
12157
12158
12159
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012160for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
12161 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012162do
12163as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12164if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12165 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12166echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12167if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12168 echo $ECHO_N "(cached) $ECHO_C" >&6
12169fi
12170ac_res=`eval echo '${'$as_ac_Header'}'`
12171 { echo "$as_me:$LINENO: result: $ac_res" >&5
12172echo "${ECHO_T}$ac_res" >&6; }
12173else
12174 # Is the header compilable?
12175{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12176echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12177cat >conftest.$ac_ext <<_ACEOF
12178/* confdefs.h. */
12179_ACEOF
12180cat confdefs.h >>conftest.$ac_ext
12181cat >>conftest.$ac_ext <<_ACEOF
12182/* end confdefs.h. */
12183$ac_includes_default
12184#include <$ac_header>
12185_ACEOF
12186rm -f conftest.$ac_objext
12187if { (ac_try="$ac_compile"
12188case "(($ac_try" in
12189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12190 *) ac_try_echo=$ac_try;;
12191esac
12192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12193 (eval "$ac_compile") 2>conftest.er1
12194 ac_status=$?
12195 grep -v '^ *+' conftest.er1 >conftest.err
12196 rm -f conftest.er1
12197 cat conftest.err >&5
12198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199 (exit $ac_status); } &&
12200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12201 { (case "(($ac_try" in
12202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12203 *) ac_try_echo=$ac_try;;
12204esac
12205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12206 (eval "$ac_try") 2>&5
12207 ac_status=$?
12208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209 (exit $ac_status); }; } &&
12210 { ac_try='test -s conftest.$ac_objext'
12211 { (case "(($ac_try" in
12212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12213 *) ac_try_echo=$ac_try;;
12214esac
12215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12216 (eval "$ac_try") 2>&5
12217 ac_status=$?
12218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219 (exit $ac_status); }; }; then
12220 ac_header_compiler=yes
12221else
12222 echo "$as_me: failed program was:" >&5
12223sed 's/^/| /' conftest.$ac_ext >&5
12224
12225 ac_header_compiler=no
12226fi
12227
12228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12229{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12230echo "${ECHO_T}$ac_header_compiler" >&6; }
12231
12232# Is the header present?
12233{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12234echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12235cat >conftest.$ac_ext <<_ACEOF
12236/* confdefs.h. */
12237_ACEOF
12238cat confdefs.h >>conftest.$ac_ext
12239cat >>conftest.$ac_ext <<_ACEOF
12240/* end confdefs.h. */
12241#include <$ac_header>
12242_ACEOF
12243if { (ac_try="$ac_cpp conftest.$ac_ext"
12244case "(($ac_try" in
12245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12246 *) ac_try_echo=$ac_try;;
12247esac
12248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12249 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12250 ac_status=$?
12251 grep -v '^ *+' conftest.er1 >conftest.err
12252 rm -f conftest.er1
12253 cat conftest.err >&5
12254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255 (exit $ac_status); } >/dev/null; then
12256 if test -s conftest.err; then
12257 ac_cpp_err=$ac_c_preproc_warn_flag
12258 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12259 else
12260 ac_cpp_err=
12261 fi
12262else
12263 ac_cpp_err=yes
12264fi
12265if test -z "$ac_cpp_err"; then
12266 ac_header_preproc=yes
12267else
12268 echo "$as_me: failed program was:" >&5
12269sed 's/^/| /' conftest.$ac_ext >&5
12270
12271 ac_header_preproc=no
12272fi
12273
12274rm -f conftest.err conftest.$ac_ext
12275{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12276echo "${ECHO_T}$ac_header_preproc" >&6; }
12277
12278# So? What about this header?
12279case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12280 yes:no: )
12281 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12282echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12283 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12284echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12285 ac_header_preproc=yes
12286 ;;
12287 no:yes:* )
12288 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12289echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12290 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12291echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12292 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12293echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12294 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12295echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12297echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12298 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12299echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12300 ( cat <<\_ASBOX
12301## ----------------------------------- ##
12302## Report this to llvmbugs@cs.uiuc.edu ##
12303## ----------------------------------- ##
12304_ASBOX
12305 ) | sed "s/^/$as_me: WARNING: /" >&2
12306 ;;
12307esac
12308{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12309echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12310if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12311 echo $ECHO_N "(cached) $ECHO_C" >&6
12312else
12313 eval "$as_ac_Header=\$ac_header_preproc"
12314fi
12315ac_res=`eval echo '${'$as_ac_Header'}'`
12316 { echo "$as_me:$LINENO: result: $ac_res" >&5
12317echo "${ECHO_T}$ac_res" >&6; }
12318
12319fi
12320if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012321 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012322#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012323_ACEOF
12324
12325fi
12326
12327done
12328
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012329
12330
12331
12332
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012333for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012334do
12335as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12336if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12337 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12338echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12339if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12340 echo $ECHO_N "(cached) $ECHO_C" >&6
12341fi
12342ac_res=`eval echo '${'$as_ac_Header'}'`
12343 { echo "$as_me:$LINENO: result: $ac_res" >&5
12344echo "${ECHO_T}$ac_res" >&6; }
12345else
12346 # Is the header compilable?
12347{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12348echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12349cat >conftest.$ac_ext <<_ACEOF
12350/* confdefs.h. */
12351_ACEOF
12352cat confdefs.h >>conftest.$ac_ext
12353cat >>conftest.$ac_ext <<_ACEOF
12354/* end confdefs.h. */
12355$ac_includes_default
12356#include <$ac_header>
12357_ACEOF
12358rm -f conftest.$ac_objext
12359if { (ac_try="$ac_compile"
12360case "(($ac_try" in
12361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12362 *) ac_try_echo=$ac_try;;
12363esac
12364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12365 (eval "$ac_compile") 2>conftest.er1
12366 ac_status=$?
12367 grep -v '^ *+' conftest.er1 >conftest.err
12368 rm -f conftest.er1
12369 cat conftest.err >&5
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); } &&
12372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12373 { (case "(($ac_try" in
12374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12375 *) ac_try_echo=$ac_try;;
12376esac
12377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12378 (eval "$ac_try") 2>&5
12379 ac_status=$?
12380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381 (exit $ac_status); }; } &&
12382 { ac_try='test -s conftest.$ac_objext'
12383 { (case "(($ac_try" in
12384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12385 *) ac_try_echo=$ac_try;;
12386esac
12387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12388 (eval "$ac_try") 2>&5
12389 ac_status=$?
12390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391 (exit $ac_status); }; }; then
12392 ac_header_compiler=yes
12393else
12394 echo "$as_me: failed program was:" >&5
12395sed 's/^/| /' conftest.$ac_ext >&5
12396
12397 ac_header_compiler=no
12398fi
12399
12400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12401{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12402echo "${ECHO_T}$ac_header_compiler" >&6; }
12403
12404# Is the header present?
12405{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12406echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12407cat >conftest.$ac_ext <<_ACEOF
12408/* confdefs.h. */
12409_ACEOF
12410cat confdefs.h >>conftest.$ac_ext
12411cat >>conftest.$ac_ext <<_ACEOF
12412/* end confdefs.h. */
12413#include <$ac_header>
12414_ACEOF
12415if { (ac_try="$ac_cpp conftest.$ac_ext"
12416case "(($ac_try" in
12417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12418 *) ac_try_echo=$ac_try;;
12419esac
12420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12422 ac_status=$?
12423 grep -v '^ *+' conftest.er1 >conftest.err
12424 rm -f conftest.er1
12425 cat conftest.err >&5
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); } >/dev/null; then
12428 if test -s conftest.err; then
12429 ac_cpp_err=$ac_c_preproc_warn_flag
12430 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12431 else
12432 ac_cpp_err=
12433 fi
12434else
12435 ac_cpp_err=yes
12436fi
12437if test -z "$ac_cpp_err"; then
12438 ac_header_preproc=yes
12439else
12440 echo "$as_me: failed program was:" >&5
12441sed 's/^/| /' conftest.$ac_ext >&5
12442
12443 ac_header_preproc=no
12444fi
12445
12446rm -f conftest.err conftest.$ac_ext
12447{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12448echo "${ECHO_T}$ac_header_preproc" >&6; }
12449
12450# So? What about this header?
12451case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12452 yes:no: )
12453 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12454echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12455 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12456echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12457 ac_header_preproc=yes
12458 ;;
12459 no:yes:* )
12460 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12461echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12462 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12463echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12464 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12465echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12466 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12467echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12469echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12470 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12471echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12472 ( cat <<\_ASBOX
12473## ----------------------------------- ##
12474## Report this to llvmbugs@cs.uiuc.edu ##
12475## ----------------------------------- ##
12476_ASBOX
12477 ) | sed "s/^/$as_me: WARNING: /" >&2
12478 ;;
12479esac
12480{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12481echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12482if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12483 echo $ECHO_N "(cached) $ECHO_C" >&6
12484else
12485 eval "$as_ac_Header=\$ac_header_preproc"
12486fi
12487ac_res=`eval echo '${'$as_ac_Header'}'`
12488 { echo "$as_me:$LINENO: result: $ac_res" >&5
12489echo "${ECHO_T}$ac_res" >&6; }
12490
12491fi
12492if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012493 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012494#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012495_ACEOF
12496
12497fi
12498
12499done
12500
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012501
12502
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012503for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012504do
12505as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12506if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12507 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12508echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12509if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12510 echo $ECHO_N "(cached) $ECHO_C" >&6
12511fi
12512ac_res=`eval echo '${'$as_ac_Header'}'`
12513 { echo "$as_me:$LINENO: result: $ac_res" >&5
12514echo "${ECHO_T}$ac_res" >&6; }
12515else
12516 # Is the header compilable?
12517{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12518echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12519cat >conftest.$ac_ext <<_ACEOF
12520/* confdefs.h. */
12521_ACEOF
12522cat confdefs.h >>conftest.$ac_ext
12523cat >>conftest.$ac_ext <<_ACEOF
12524/* end confdefs.h. */
12525$ac_includes_default
12526#include <$ac_header>
12527_ACEOF
12528rm -f conftest.$ac_objext
12529if { (ac_try="$ac_compile"
12530case "(($ac_try" in
12531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12532 *) ac_try_echo=$ac_try;;
12533esac
12534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12535 (eval "$ac_compile") 2>conftest.er1
12536 ac_status=$?
12537 grep -v '^ *+' conftest.er1 >conftest.err
12538 rm -f conftest.er1
12539 cat conftest.err >&5
12540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541 (exit $ac_status); } &&
12542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12543 { (case "(($ac_try" in
12544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12545 *) ac_try_echo=$ac_try;;
12546esac
12547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12548 (eval "$ac_try") 2>&5
12549 ac_status=$?
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); }; } &&
12552 { ac_try='test -s conftest.$ac_objext'
12553 { (case "(($ac_try" in
12554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12555 *) ac_try_echo=$ac_try;;
12556esac
12557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12558 (eval "$ac_try") 2>&5
12559 ac_status=$?
12560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561 (exit $ac_status); }; }; then
12562 ac_header_compiler=yes
12563else
12564 echo "$as_me: failed program was:" >&5
12565sed 's/^/| /' conftest.$ac_ext >&5
12566
12567 ac_header_compiler=no
12568fi
12569
12570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12571{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12572echo "${ECHO_T}$ac_header_compiler" >&6; }
12573
12574# Is the header present?
12575{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12576echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12577cat >conftest.$ac_ext <<_ACEOF
12578/* confdefs.h. */
12579_ACEOF
12580cat confdefs.h >>conftest.$ac_ext
12581cat >>conftest.$ac_ext <<_ACEOF
12582/* end confdefs.h. */
12583#include <$ac_header>
12584_ACEOF
12585if { (ac_try="$ac_cpp conftest.$ac_ext"
12586case "(($ac_try" in
12587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12588 *) ac_try_echo=$ac_try;;
12589esac
12590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12591 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12592 ac_status=$?
12593 grep -v '^ *+' conftest.er1 >conftest.err
12594 rm -f conftest.er1
12595 cat conftest.err >&5
12596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597 (exit $ac_status); } >/dev/null; then
12598 if test -s conftest.err; then
12599 ac_cpp_err=$ac_c_preproc_warn_flag
12600 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12601 else
12602 ac_cpp_err=
12603 fi
12604else
12605 ac_cpp_err=yes
12606fi
12607if test -z "$ac_cpp_err"; then
12608 ac_header_preproc=yes
12609else
12610 echo "$as_me: failed program was:" >&5
12611sed 's/^/| /' conftest.$ac_ext >&5
12612
12613 ac_header_preproc=no
12614fi
12615
12616rm -f conftest.err conftest.$ac_ext
12617{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12618echo "${ECHO_T}$ac_header_preproc" >&6; }
12619
12620# So? What about this header?
12621case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12622 yes:no: )
12623 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12624echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12625 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12626echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12627 ac_header_preproc=yes
12628 ;;
12629 no:yes:* )
12630 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12631echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12632 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12633echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12634 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12635echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12636 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12637echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12638 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12639echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12640 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12641echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12642 ( cat <<\_ASBOX
12643## ----------------------------------- ##
12644## Report this to llvmbugs@cs.uiuc.edu ##
12645## ----------------------------------- ##
12646_ASBOX
12647 ) | sed "s/^/$as_me: WARNING: /" >&2
12648 ;;
12649esac
12650{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12651echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12652if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12653 echo $ECHO_N "(cached) $ECHO_C" >&6
12654else
12655 eval "$as_ac_Header=\$ac_header_preproc"
12656fi
12657ac_res=`eval echo '${'$as_ac_Header'}'`
12658 { echo "$as_me:$LINENO: result: $ac_res" >&5
12659echo "${ECHO_T}$ac_res" >&6; }
12660
12661fi
12662if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012663 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012664#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012665_ACEOF
12666 break
12667fi
12668
12669done
12670
12671
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012672
12673
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012674for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012675do
12676as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12677{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12678echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12679if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12680 echo $ECHO_N "(cached) $ECHO_C" >&6
12681else
12682 cat >conftest.$ac_ext <<_ACEOF
12683/* confdefs.h. */
12684_ACEOF
12685cat confdefs.h >>conftest.$ac_ext
12686cat >>conftest.$ac_ext <<_ACEOF
12687/* end confdefs.h. */
12688/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12690#define $ac_func innocuous_$ac_func
12691
12692/* System header to define __stub macros and hopefully few prototypes,
12693 which can conflict with char $ac_func (); below.
12694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12695 <limits.h> exists even on freestanding compilers. */
12696
12697#ifdef __STDC__
12698# include <limits.h>
12699#else
12700# include <assert.h>
12701#endif
12702
12703#undef $ac_func
12704
12705/* Override any GCC internal prototype to avoid an error.
12706 Use char because int might match the return type of a GCC
12707 builtin and then its argument prototype would still apply. */
12708#ifdef __cplusplus
12709extern "C"
12710#endif
12711char $ac_func ();
12712/* The GNU C library defines this for functions which it implements
12713 to always fail with ENOSYS. Some functions are actually named
12714 something starting with __ and the normal name is an alias. */
12715#if defined __stub_$ac_func || defined __stub___$ac_func
12716choke me
12717#endif
12718
12719int
12720main ()
12721{
12722return $ac_func ();
12723 ;
12724 return 0;
12725}
12726_ACEOF
12727rm -f conftest.$ac_objext conftest$ac_exeext
12728if { (ac_try="$ac_link"
12729case "(($ac_try" in
12730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12731 *) ac_try_echo=$ac_try;;
12732esac
12733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12734 (eval "$ac_link") 2>conftest.er1
12735 ac_status=$?
12736 grep -v '^ *+' conftest.er1 >conftest.err
12737 rm -f conftest.er1
12738 cat conftest.err >&5
12739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12740 (exit $ac_status); } &&
12741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12742 { (case "(($ac_try" in
12743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12744 *) ac_try_echo=$ac_try;;
12745esac
12746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12747 (eval "$ac_try") 2>&5
12748 ac_status=$?
12749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); }; } &&
12751 { ac_try='test -s conftest$ac_exeext'
12752 { (case "(($ac_try" in
12753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12754 *) ac_try_echo=$ac_try;;
12755esac
12756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12757 (eval "$ac_try") 2>&5
12758 ac_status=$?
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); }; }; then
12761 eval "$as_ac_var=yes"
12762else
12763 echo "$as_me: failed program was:" >&5
12764sed 's/^/| /' conftest.$ac_ext >&5
12765
12766 eval "$as_ac_var=no"
12767fi
12768
12769rm -f core conftest.err conftest.$ac_objext \
12770 conftest$ac_exeext conftest.$ac_ext
12771fi
12772ac_res=`eval echo '${'$as_ac_var'}'`
12773 { echo "$as_me:$LINENO: result: $ac_res" >&5
12774echo "${ECHO_T}$ac_res" >&6; }
12775if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012776 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012777#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012778_ACEOF
12779 break
12780fi
12781done
12782
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012783
12784
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012785for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012786do
12787as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12788{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12789echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12790if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12791 echo $ECHO_N "(cached) $ECHO_C" >&6
12792else
12793 cat >conftest.$ac_ext <<_ACEOF
12794/* confdefs.h. */
12795_ACEOF
12796cat confdefs.h >>conftest.$ac_ext
12797cat >>conftest.$ac_ext <<_ACEOF
12798/* end confdefs.h. */
12799/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12800 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12801#define $ac_func innocuous_$ac_func
12802
12803/* System header to define __stub macros and hopefully few prototypes,
12804 which can conflict with char $ac_func (); below.
12805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12806 <limits.h> exists even on freestanding compilers. */
12807
12808#ifdef __STDC__
12809# include <limits.h>
12810#else
12811# include <assert.h>
12812#endif
12813
12814#undef $ac_func
12815
12816/* Override any GCC internal prototype to avoid an error.
12817 Use char because int might match the return type of a GCC
12818 builtin and then its argument prototype would still apply. */
12819#ifdef __cplusplus
12820extern "C"
12821#endif
12822char $ac_func ();
12823/* The GNU C library defines this for functions which it implements
12824 to always fail with ENOSYS. Some functions are actually named
12825 something starting with __ and the normal name is an alias. */
12826#if defined __stub_$ac_func || defined __stub___$ac_func
12827choke me
12828#endif
12829
12830int
12831main ()
12832{
12833return $ac_func ();
12834 ;
12835 return 0;
12836}
12837_ACEOF
12838rm -f conftest.$ac_objext conftest$ac_exeext
12839if { (ac_try="$ac_link"
12840case "(($ac_try" in
12841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12842 *) ac_try_echo=$ac_try;;
12843esac
12844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12845 (eval "$ac_link") 2>conftest.er1
12846 ac_status=$?
12847 grep -v '^ *+' conftest.er1 >conftest.err
12848 rm -f conftest.er1
12849 cat conftest.err >&5
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); } &&
12852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12853 { (case "(($ac_try" in
12854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12855 *) ac_try_echo=$ac_try;;
12856esac
12857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12858 (eval "$ac_try") 2>&5
12859 ac_status=$?
12860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); }; } &&
12862 { ac_try='test -s conftest$ac_exeext'
12863 { (case "(($ac_try" in
12864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12865 *) ac_try_echo=$ac_try;;
12866esac
12867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12868 (eval "$ac_try") 2>&5
12869 ac_status=$?
12870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871 (exit $ac_status); }; }; then
12872 eval "$as_ac_var=yes"
12873else
12874 echo "$as_me: failed program was:" >&5
12875sed 's/^/| /' conftest.$ac_ext >&5
12876
12877 eval "$as_ac_var=no"
12878fi
12879
12880rm -f core conftest.err conftest.$ac_objext \
12881 conftest$ac_exeext conftest.$ac_ext
12882fi
12883ac_res=`eval echo '${'$as_ac_var'}'`
12884 { echo "$as_me:$LINENO: result: $ac_res" >&5
12885echo "${ECHO_T}$ac_res" >&6; }
12886if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012887 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012888#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012889_ACEOF
12890 break
12891fi
12892done
12893
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012894
12895
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012896for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012897do
12898as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12899{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12900echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12901if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12902 echo $ECHO_N "(cached) $ECHO_C" >&6
12903else
12904 cat >conftest.$ac_ext <<_ACEOF
12905/* confdefs.h. */
12906_ACEOF
12907cat confdefs.h >>conftest.$ac_ext
12908cat >>conftest.$ac_ext <<_ACEOF
12909/* end confdefs.h. */
12910/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12911 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12912#define $ac_func innocuous_$ac_func
12913
12914/* System header to define __stub macros and hopefully few prototypes,
12915 which can conflict with char $ac_func (); below.
12916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12917 <limits.h> exists even on freestanding compilers. */
12918
12919#ifdef __STDC__
12920# include <limits.h>
12921#else
12922# include <assert.h>
12923#endif
12924
12925#undef $ac_func
12926
12927/* Override any GCC internal prototype to avoid an error.
12928 Use char because int might match the return type of a GCC
12929 builtin and then its argument prototype would still apply. */
12930#ifdef __cplusplus
12931extern "C"
12932#endif
12933char $ac_func ();
12934/* The GNU C library defines this for functions which it implements
12935 to always fail with ENOSYS. Some functions are actually named
12936 something starting with __ and the normal name is an alias. */
12937#if defined __stub_$ac_func || defined __stub___$ac_func
12938choke me
12939#endif
12940
12941int
12942main ()
12943{
12944return $ac_func ();
12945 ;
12946 return 0;
12947}
12948_ACEOF
12949rm -f conftest.$ac_objext conftest$ac_exeext
12950if { (ac_try="$ac_link"
12951case "(($ac_try" in
12952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12953 *) ac_try_echo=$ac_try;;
12954esac
12955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12956 (eval "$ac_link") 2>conftest.er1
12957 ac_status=$?
12958 grep -v '^ *+' conftest.er1 >conftest.err
12959 rm -f conftest.er1
12960 cat conftest.err >&5
12961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962 (exit $ac_status); } &&
12963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12964 { (case "(($ac_try" in
12965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12966 *) ac_try_echo=$ac_try;;
12967esac
12968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12969 (eval "$ac_try") 2>&5
12970 ac_status=$?
12971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972 (exit $ac_status); }; } &&
12973 { ac_try='test -s conftest$ac_exeext'
12974 { (case "(($ac_try" in
12975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12976 *) ac_try_echo=$ac_try;;
12977esac
12978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12979 (eval "$ac_try") 2>&5
12980 ac_status=$?
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); }; }; then
12983 eval "$as_ac_var=yes"
12984else
12985 echo "$as_me: failed program was:" >&5
12986sed 's/^/| /' conftest.$ac_ext >&5
12987
12988 eval "$as_ac_var=no"
12989fi
12990
12991rm -f core conftest.err conftest.$ac_objext \
12992 conftest$ac_exeext conftest.$ac_ext
12993fi
12994ac_res=`eval echo '${'$as_ac_var'}'`
12995 { echo "$as_me:$LINENO: result: $ac_res" >&5
12996echo "${ECHO_T}$ac_res" >&6; }
12997if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012998 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012999#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013000_ACEOF
13001 break
13002fi
13003done
13004
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013005
13006
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013007for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013008do
13009as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13010{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13011echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13012if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13013 echo $ECHO_N "(cached) $ECHO_C" >&6
13014else
13015 cat >conftest.$ac_ext <<_ACEOF
13016/* confdefs.h. */
13017_ACEOF
13018cat confdefs.h >>conftest.$ac_ext
13019cat >>conftest.$ac_ext <<_ACEOF
13020/* end confdefs.h. */
13021/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13023#define $ac_func innocuous_$ac_func
13024
13025/* System header to define __stub macros and hopefully few prototypes,
13026 which can conflict with char $ac_func (); below.
13027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13028 <limits.h> exists even on freestanding compilers. */
13029
13030#ifdef __STDC__
13031# include <limits.h>
13032#else
13033# include <assert.h>
13034#endif
13035
13036#undef $ac_func
13037
13038/* Override any GCC internal prototype to avoid an error.
13039 Use char because int might match the return type of a GCC
13040 builtin and then its argument prototype would still apply. */
13041#ifdef __cplusplus
13042extern "C"
13043#endif
13044char $ac_func ();
13045/* The GNU C library defines this for functions which it implements
13046 to always fail with ENOSYS. Some functions are actually named
13047 something starting with __ and the normal name is an alias. */
13048#if defined __stub_$ac_func || defined __stub___$ac_func
13049choke me
13050#endif
13051
13052int
13053main ()
13054{
13055return $ac_func ();
13056 ;
13057 return 0;
13058}
13059_ACEOF
13060rm -f conftest.$ac_objext conftest$ac_exeext
13061if { (ac_try="$ac_link"
13062case "(($ac_try" in
13063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13064 *) ac_try_echo=$ac_try;;
13065esac
13066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13067 (eval "$ac_link") 2>conftest.er1
13068 ac_status=$?
13069 grep -v '^ *+' conftest.er1 >conftest.err
13070 rm -f conftest.er1
13071 cat conftest.err >&5
13072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073 (exit $ac_status); } &&
13074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13075 { (case "(($ac_try" in
13076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13077 *) ac_try_echo=$ac_try;;
13078esac
13079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13080 (eval "$ac_try") 2>&5
13081 ac_status=$?
13082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13083 (exit $ac_status); }; } &&
13084 { ac_try='test -s conftest$ac_exeext'
13085 { (case "(($ac_try" in
13086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13087 *) ac_try_echo=$ac_try;;
13088esac
13089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13090 (eval "$ac_try") 2>&5
13091 ac_status=$?
13092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13093 (exit $ac_status); }; }; then
13094 eval "$as_ac_var=yes"
13095else
13096 echo "$as_me: failed program was:" >&5
13097sed 's/^/| /' conftest.$ac_ext >&5
13098
13099 eval "$as_ac_var=no"
13100fi
13101
13102rm -f core conftest.err conftest.$ac_objext \
13103 conftest$ac_exeext conftest.$ac_ext
13104fi
13105ac_res=`eval echo '${'$as_ac_var'}'`
13106 { echo "$as_me:$LINENO: result: $ac_res" >&5
13107echo "${ECHO_T}$ac_res" >&6; }
13108if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013109 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013110#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013111_ACEOF
13112
13113fi
13114done
13115
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013116
13117
13118
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013119for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013120do
13121as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13122{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13123echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13124if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13125 echo $ECHO_N "(cached) $ECHO_C" >&6
13126else
13127 cat >conftest.$ac_ext <<_ACEOF
13128/* confdefs.h. */
13129_ACEOF
13130cat confdefs.h >>conftest.$ac_ext
13131cat >>conftest.$ac_ext <<_ACEOF
13132/* end confdefs.h. */
13133/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13135#define $ac_func innocuous_$ac_func
13136
13137/* System header to define __stub macros and hopefully few prototypes,
13138 which can conflict with char $ac_func (); below.
13139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13140 <limits.h> exists even on freestanding compilers. */
13141
13142#ifdef __STDC__
13143# include <limits.h>
13144#else
13145# include <assert.h>
13146#endif
13147
13148#undef $ac_func
13149
13150/* Override any GCC internal prototype to avoid an error.
13151 Use char because int might match the return type of a GCC
13152 builtin and then its argument prototype would still apply. */
13153#ifdef __cplusplus
13154extern "C"
13155#endif
13156char $ac_func ();
13157/* The GNU C library defines this for functions which it implements
13158 to always fail with ENOSYS. Some functions are actually named
13159 something starting with __ and the normal name is an alias. */
13160#if defined __stub_$ac_func || defined __stub___$ac_func
13161choke me
13162#endif
13163
13164int
13165main ()
13166{
13167return $ac_func ();
13168 ;
13169 return 0;
13170}
13171_ACEOF
13172rm -f conftest.$ac_objext conftest$ac_exeext
13173if { (ac_try="$ac_link"
13174case "(($ac_try" in
13175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13176 *) ac_try_echo=$ac_try;;
13177esac
13178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13179 (eval "$ac_link") 2>conftest.er1
13180 ac_status=$?
13181 grep -v '^ *+' conftest.er1 >conftest.err
13182 rm -f conftest.er1
13183 cat conftest.err >&5
13184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185 (exit $ac_status); } &&
13186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13187 { (case "(($ac_try" in
13188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13189 *) ac_try_echo=$ac_try;;
13190esac
13191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13192 (eval "$ac_try") 2>&5
13193 ac_status=$?
13194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195 (exit $ac_status); }; } &&
13196 { ac_try='test -s conftest$ac_exeext'
13197 { (case "(($ac_try" in
13198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13199 *) ac_try_echo=$ac_try;;
13200esac
13201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13202 (eval "$ac_try") 2>&5
13203 ac_status=$?
13204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205 (exit $ac_status); }; }; then
13206 eval "$as_ac_var=yes"
13207else
13208 echo "$as_me: failed program was:" >&5
13209sed 's/^/| /' conftest.$ac_ext >&5
13210
13211 eval "$as_ac_var=no"
13212fi
13213
13214rm -f core conftest.err conftest.$ac_objext \
13215 conftest$ac_exeext conftest.$ac_ext
13216fi
13217ac_res=`eval echo '${'$as_ac_var'}'`
13218 { echo "$as_me:$LINENO: result: $ac_res" >&5
13219echo "${ECHO_T}$ac_res" >&6; }
13220if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013221 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013222#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013223_ACEOF
13224
13225fi
13226done
13227
13228
Douglas Gregor01746742009-05-11 18:05:52 +000013229
Reid Spencer7931a782004-12-27 06:15:02 +000013230if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000013231 LLVMGCC="llvm-gcc${EXEEXT}"
13232 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013233 LLVMGCCCOMMAND="$LLVMGCC"
13234 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013235 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13236
13237 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13238
Reid Spencerc84492c2005-06-02 22:34:49 +000013239 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13240set dummy $LLVMGCC; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013241{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13242echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13243if test "${ac_cv_path_LLVMGCC+set}" = set; then
13244 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013245else
13246 case $LLVMGCC in
13247 [\\/]* | ?:[\\/]*)
13248 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13249 ;;
13250 *)
13251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13252for as_dir in $PATH
13253do
13254 IFS=$as_save_IFS
13255 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013256 for ac_exec_ext in '' $ac_executable_extensions; do
13257 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 +000013258 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000013260 break 2
13261 fi
13262done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013263done
Reid Spencera773bd52006-08-04 18:18:08 +000013264IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000013265
Reid Spencer59473af2004-12-25 07:31:29 +000013266 ;;
13267esac
13268fi
13269LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000013270if test -n "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013271 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13272echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013273else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013274 { echo "$as_me:$LINENO: result: no" >&5
13275echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013276fi
13277
Reid Spencera773bd52006-08-04 18:18:08 +000013278
Reid Spencerc84492c2005-06-02 22:34:49 +000013279 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13280set dummy $LLVMGXX; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013281{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13282echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13283if test "${ac_cv_path_LLVMGXX+set}" = set; then
13284 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013285else
13286 case $LLVMGXX in
13287 [\\/]* | ?:[\\/]*)
13288 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13289 ;;
13290 *)
13291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13292for as_dir in $PATH
13293do
13294 IFS=$as_save_IFS
13295 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013296 for ac_exec_ext in '' $ac_executable_extensions; do
13297 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 +000013298 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000013300 break 2
13301 fi
13302done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013303done
Reid Spencera773bd52006-08-04 18:18:08 +000013304IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000013305
Reid Spencer59473af2004-12-25 07:31:29 +000013306 ;;
13307esac
13308fi
13309LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000013310if test -n "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013311 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13312echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013313else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013314 { echo "$as_me:$LINENO: result: no" >&5
13315echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013316fi
13317
Reid Spencera773bd52006-08-04 18:18:08 +000013318
Reid Spencer59473af2004-12-25 07:31:29 +000013319else
Devang Patel5d28b882007-12-04 22:54:47 +000013320 if test -z "$LLVMGCC"; then
13321 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013322 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000013323 fi
13324 if test -z "$LLVMGXX"; then
13325 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013326 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000013327 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013328
Reid Spencer59473af2004-12-25 07:31:29 +000013329 LLVMGCC=$LLVMGCC
13330
13331 LLVMGXX=$LLVMGXX
13332
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013333 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13334
13335 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13336
Reid Spencer59473af2004-12-25 07:31:29 +000013337fi
13338
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013339
Daniel Dunbar98515672010-02-23 10:00:49 +000013340# Check whether --with-llvmcc was given.
13341if test "${with_llvmcc+set}" = set; then
13342 withval=$with_llvmcc;
13343else
13344 with_llvmcc=check
13345fi
13346
13347{ echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13348echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13349if test "$with_llvmcc" != "check"; then
13350 if (test "$with_llvmcc" != "llvm-gcc" &&
13351 test "$with_llvmcc" != "clang" &&
13352 test "$with_llvmcc" != "none"); then
13353 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13354echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13355 { (exit 1); exit 1; }; }
13356 fi
13357 WITH_LLVMCC="$with_llvmcc"
13358elif test -n "$LLVMGCC"; then
13359 WITH_LLVMCC=llvm-gcc
13360elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13361 WITH_LLVMCC=clang
13362else
13363 WITH_LLVMCC=none
13364fi
13365{ echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13366echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13367LLVMCC_OPTION=$WITH_LLVMCC
13368
13369
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013370{ echo "$as_me:$LINENO: checking tool compatibility" >&5
13371echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013372
Reid Spencer86901802004-12-08 23:07:27 +000013373ICC=no
13374IXX=no
13375case $CC in
13376 icc*|icpc*)
13377 ICC=yes
13378 IXX=yes
13379 ;;
13380 *)
13381 ;;
13382esac
13383
Duraid Madina937c60a2006-02-15 07:57:42 +000013384if test "$GCC" != "yes" && test "$ICC" != "yes"
13385then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013386 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13387echo "$as_me: error: gcc|icc required but not found" >&2;}
13388 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000013389fi
13390
13391if test "$GXX" != "yes" && test "$IXX" != "yes"
13392then
Eric Christopher73e36da2010-12-08 02:02:14 +000013393 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
13394echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013395 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000013396fi
13397
Reid Spencer86901802004-12-08 23:07:27 +000013398if test "$GCC" = "yes"
13399then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013400 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000013401#if !defined(__GNUC__) || __GNUC__ < 3
13402#error Unsupported GCC version
13403#endif
13404
13405_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013406rm -f conftest.$ac_objext
13407if { (ac_try="$ac_compile"
13408case "(($ac_try" in
13409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13410 *) ac_try_echo=$ac_try;;
13411esac
13412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13413 (eval "$ac_compile") 2>conftest.er1
13414 ac_status=$?
13415 grep -v '^ *+' conftest.er1 >conftest.err
13416 rm -f conftest.er1
13417 cat conftest.err >&5
13418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419 (exit $ac_status); } &&
13420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13421 { (case "(($ac_try" in
13422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13423 *) ac_try_echo=$ac_try;;
13424esac
13425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13426 (eval "$ac_try") 2>&5
13427 ac_status=$?
13428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429 (exit $ac_status); }; } &&
13430 { ac_try='test -s conftest.$ac_objext'
13431 { (case "(($ac_try" in
13432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13433 *) ac_try_echo=$ac_try;;
13434esac
13435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13436 (eval "$ac_try") 2>&5
13437 ac_status=$?
13438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439 (exit $ac_status); }; }; then
13440 :
Chris Lattner399c7c72008-02-05 19:43:53 +000013441else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013442 echo "$as_me: failed program was:" >&5
13443sed 's/^/| /' conftest.$ac_ext >&5
13444
13445 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13446echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13447 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000013448fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013449
Chris Lattner399c7c72008-02-05 19:43:53 +000013450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013451fi
13452
13453if test -z "$llvm_cv_gnu_make_command"
13454then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013455 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13456echo "$as_me: error: GNU Make required but not found" >&2;}
13457 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013458fi
13459
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013460{ echo "$as_me:$LINENO: result: ok" >&5
13461echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013462
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013463{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
13464echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013465NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13466
13467NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13468
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013469{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13470echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013471
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000013472
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013473
13474{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
13475echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13476if test "${ac_cv_lib_m_sin+set}" = set; then
13477 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000013478else
13479 ac_check_lib_save_LIBS=$LIBS
13480LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013481cat >conftest.$ac_ext <<_ACEOF
13482/* confdefs.h. */
13483_ACEOF
13484cat confdefs.h >>conftest.$ac_ext
13485cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000013486/* end confdefs.h. */
13487
Reid Spencera773bd52006-08-04 18:18:08 +000013488/* Override any GCC internal prototype to avoid an error.
13489 Use char because int might match the return type of a GCC
13490 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000013491#ifdef __cplusplus
13492extern "C"
13493#endif
Reid Spencer3484a992006-01-19 08:31:08 +000013494char sin ();
13495int
13496main ()
13497{
Reid Spencera773bd52006-08-04 18:18:08 +000013498return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000013499 ;
13500 return 0;
13501}
13502_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013503rm -f conftest.$ac_objext conftest$ac_exeext
13504if { (ac_try="$ac_link"
13505case "(($ac_try" in
13506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13507 *) ac_try_echo=$ac_try;;
13508esac
13509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13510 (eval "$ac_link") 2>conftest.er1
13511 ac_status=$?
13512 grep -v '^ *+' conftest.er1 >conftest.err
13513 rm -f conftest.er1
13514 cat conftest.err >&5
13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); } &&
13517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13518 { (case "(($ac_try" in
13519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13520 *) ac_try_echo=$ac_try;;
13521esac
13522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13523 (eval "$ac_try") 2>&5
13524 ac_status=$?
13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); }; } &&
13527 { ac_try='test -s conftest$ac_exeext'
13528 { (case "(($ac_try" in
13529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13530 *) ac_try_echo=$ac_try;;
13531esac
13532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13533 (eval "$ac_try") 2>&5
13534 ac_status=$?
13535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000013537 ac_cv_lib_m_sin=yes
13538else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013539 echo "$as_me: failed program was:" >&5
13540sed 's/^/| /' conftest.$ac_ext >&5
13541
13542 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000013543fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013544
Bill Wendlingebcceee2009-04-18 11:20:33 +000013545rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013546 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000013547LIBS=$ac_check_lib_save_LIBS
13548fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013549{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13550echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13551if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000013552 cat >>confdefs.h <<_ACEOF
13553#define HAVE_LIBM 1
13554_ACEOF
13555
13556 LIBS="-lm $LIBS"
13557
13558fi
13559
Jeff Cohen28783c32007-01-12 18:22:38 +000013560if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013561
13562{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13563echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13564if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13565 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013566else
13567 ac_check_lib_save_LIBS=$LIBS
13568LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013569cat >conftest.$ac_ext <<_ACEOF
13570/* confdefs.h. */
13571_ACEOF
13572cat confdefs.h >>conftest.$ac_ext
13573cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013574/* end confdefs.h. */
13575
Reid Spencer48fdf912006-06-01 19:03:21 +000013576
Reid Spencer484fc8e2006-06-01 16:55:59 +000013577int
13578main ()
13579{
Reid Spencera773bd52006-08-04 18:18:08 +000013580return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013581 ;
13582 return 0;
13583}
13584_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013585rm -f conftest.$ac_objext conftest$ac_exeext
13586if { (ac_try="$ac_link"
13587case "(($ac_try" in
13588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13589 *) ac_try_echo=$ac_try;;
13590esac
13591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13592 (eval "$ac_link") 2>conftest.er1
13593 ac_status=$?
13594 grep -v '^ *+' conftest.er1 >conftest.err
13595 rm -f conftest.er1
13596 cat conftest.err >&5
13597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598 (exit $ac_status); } &&
13599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13600 { (case "(($ac_try" in
13601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13602 *) ac_try_echo=$ac_try;;
13603esac
13604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13605 (eval "$ac_try") 2>&5
13606 ac_status=$?
13607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13608 (exit $ac_status); }; } &&
13609 { ac_try='test -s conftest$ac_exeext'
13610 { (case "(($ac_try" in
13611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13612 *) ac_try_echo=$ac_try;;
13613esac
13614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13615 (eval "$ac_try") 2>&5
13616 ac_status=$?
13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013619 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013620else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013621 echo "$as_me: failed program was:" >&5
13622sed 's/^/| /' conftest.$ac_ext >&5
13623
13624 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013625fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013626
Bill Wendlingebcceee2009-04-18 11:20:33 +000013627rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013628 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013629LIBS=$ac_check_lib_save_LIBS
13630fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013631{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13632echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13633if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013634 cat >>confdefs.h <<_ACEOF
13635#define HAVE_LIBIMAGEHLP 1
13636_ACEOF
13637
13638 LIBS="-limagehlp $LIBS"
13639
13640fi
13641
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013642
13643{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13644echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13645if test "${ac_cv_lib_psapi_main+set}" = set; then
13646 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013647else
13648 ac_check_lib_save_LIBS=$LIBS
13649LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013650cat >conftest.$ac_ext <<_ACEOF
13651/* confdefs.h. */
13652_ACEOF
13653cat confdefs.h >>conftest.$ac_ext
13654cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013655/* end confdefs.h. */
13656
Reid Spencer48fdf912006-06-01 19:03:21 +000013657
Reid Spencer484fc8e2006-06-01 16:55:59 +000013658int
13659main ()
13660{
Reid Spencera773bd52006-08-04 18:18:08 +000013661return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013662 ;
13663 return 0;
13664}
13665_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013666rm -f conftest.$ac_objext conftest$ac_exeext
13667if { (ac_try="$ac_link"
13668case "(($ac_try" in
13669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13670 *) ac_try_echo=$ac_try;;
13671esac
13672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13673 (eval "$ac_link") 2>conftest.er1
13674 ac_status=$?
13675 grep -v '^ *+' conftest.er1 >conftest.err
13676 rm -f conftest.er1
13677 cat conftest.err >&5
13678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679 (exit $ac_status); } &&
13680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13681 { (case "(($ac_try" in
13682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13683 *) ac_try_echo=$ac_try;;
13684esac
13685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13686 (eval "$ac_try") 2>&5
13687 ac_status=$?
13688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689 (exit $ac_status); }; } &&
13690 { ac_try='test -s conftest$ac_exeext'
13691 { (case "(($ac_try" in
13692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13693 *) ac_try_echo=$ac_try;;
13694esac
13695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13696 (eval "$ac_try") 2>&5
13697 ac_status=$?
13698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013700 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013701else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013702 echo "$as_me: failed program was:" >&5
13703sed 's/^/| /' conftest.$ac_ext >&5
13704
13705 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013706fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013707
Bill Wendlingebcceee2009-04-18 11:20:33 +000013708rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013709 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013710LIBS=$ac_check_lib_save_LIBS
13711fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013712{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13713echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13714if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013715 cat >>confdefs.h <<_ACEOF
13716#define HAVE_LIBPSAPI 1
13717_ACEOF
13718
13719 LIBS="-lpsapi $LIBS"
13720
13721fi
13722
13723fi
Reid Spencer22177fe2005-07-12 15:24:20 +000013724
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013725{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13726echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13727if test "${ac_cv_search_dlopen+set}" = set; then
13728 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013729else
13730 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013731cat >conftest.$ac_ext <<_ACEOF
13732/* confdefs.h. */
13733_ACEOF
13734cat confdefs.h >>conftest.$ac_ext
13735cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013736/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013737
Reid Spencera773bd52006-08-04 18:18:08 +000013738/* Override any GCC internal prototype to avoid an error.
13739 Use char because int might match the return type of a GCC
13740 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013741#ifdef __cplusplus
13742extern "C"
13743#endif
John Criswell7a73b802003-06-30 21:59:07 +000013744char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013745int
13746main ()
13747{
Reid Spencera773bd52006-08-04 18:18:08 +000013748return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013749 ;
13750 return 0;
13751}
13752_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013753for ac_lib in '' dl; do
13754 if test -z "$ac_lib"; then
13755 ac_res="none required"
13756 else
13757 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013758 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013759 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013760 rm -f conftest.$ac_objext conftest$ac_exeext
13761if { (ac_try="$ac_link"
13762case "(($ac_try" in
13763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13764 *) ac_try_echo=$ac_try;;
13765esac
13766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13767 (eval "$ac_link") 2>conftest.er1
13768 ac_status=$?
13769 grep -v '^ *+' conftest.er1 >conftest.err
13770 rm -f conftest.er1
13771 cat conftest.err >&5
13772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773 (exit $ac_status); } &&
13774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13775 { (case "(($ac_try" in
13776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13777 *) ac_try_echo=$ac_try;;
13778esac
13779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13780 (eval "$ac_try") 2>&5
13781 ac_status=$?
13782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783 (exit $ac_status); }; } &&
13784 { ac_try='test -s conftest$ac_exeext'
13785 { (case "(($ac_try" in
13786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13787 *) ac_try_echo=$ac_try;;
13788esac
13789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13790 (eval "$ac_try") 2>&5
13791 ac_status=$?
13792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013794 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013795else
13796 echo "$as_me: failed program was:" >&5
13797sed 's/^/| /' conftest.$ac_ext >&5
13798
13799
John Criswell7a73b802003-06-30 21:59:07 +000013800fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013801
Bill Wendlingebcceee2009-04-18 11:20:33 +000013802rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013803 conftest$ac_exeext
13804 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013805 break
John Criswell7a73b802003-06-30 21:59:07 +000013806fi
Reid Spencera773bd52006-08-04 18:18:08 +000013807done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013808if test "${ac_cv_search_dlopen+set}" = set; then
13809 :
Reid Spencera773bd52006-08-04 18:18:08 +000013810else
13811 ac_cv_search_dlopen=no
13812fi
13813rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013814LIBS=$ac_func_search_save_LIBS
13815fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013816{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13817echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013818ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013819if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013820 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013821
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013822cat >>confdefs.h <<\_ACEOF
13823#define HAVE_DLOPEN 1
13824_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013825
13826else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013827 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13828echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000013829fi
13830
13831
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013832if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013833 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13834echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13835if test "${ac_cv_search_ffi_call+set}" = set; then
13836 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013837else
Nick Lewycky267fddb2009-04-13 04:26:27 +000013838 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013839cat >conftest.$ac_ext <<_ACEOF
13840/* confdefs.h. */
13841_ACEOF
13842cat confdefs.h >>conftest.$ac_ext
13843cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013844/* end confdefs.h. */
13845
13846/* Override any GCC internal prototype to avoid an error.
13847 Use char because int might match the return type of a GCC
13848 builtin and then its argument prototype would still apply. */
13849#ifdef __cplusplus
13850extern "C"
13851#endif
13852char ffi_call ();
13853int
13854main ()
13855{
13856return ffi_call ();
13857 ;
13858 return 0;
13859}
13860_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013861for ac_lib in '' ffi; do
13862 if test -z "$ac_lib"; then
13863 ac_res="none required"
13864 else
13865 ac_res=-l$ac_lib
13866 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13867 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013868 rm -f conftest.$ac_objext conftest$ac_exeext
13869if { (ac_try="$ac_link"
13870case "(($ac_try" in
13871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13872 *) ac_try_echo=$ac_try;;
13873esac
13874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13875 (eval "$ac_link") 2>conftest.er1
13876 ac_status=$?
13877 grep -v '^ *+' conftest.er1 >conftest.err
13878 rm -f conftest.er1
13879 cat conftest.err >&5
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); } &&
13882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13883 { (case "(($ac_try" in
13884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13885 *) ac_try_echo=$ac_try;;
13886esac
13887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13888 (eval "$ac_try") 2>&5
13889 ac_status=$?
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); }; } &&
13892 { ac_try='test -s conftest$ac_exeext'
13893 { (case "(($ac_try" in
13894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13895 *) ac_try_echo=$ac_try;;
13896esac
13897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13898 (eval "$ac_try") 2>&5
13899 ac_status=$?
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013902 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013903else
13904 echo "$as_me: failed program was:" >&5
13905sed 's/^/| /' conftest.$ac_ext >&5
13906
13907
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013908fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013909
Bill Wendlingebcceee2009-04-18 11:20:33 +000013910rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013911 conftest$ac_exeext
13912 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013913 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013914fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000013915done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013916if test "${ac_cv_search_ffi_call+set}" = set; then
13917 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000013918else
13919 ac_cv_search_ffi_call=no
13920fi
13921rm conftest.$ac_ext
13922LIBS=$ac_func_search_save_LIBS
13923fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013924{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13925echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000013926ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013927if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013928 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13929
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013930cat >>confdefs.h <<\_ACEOF
13931#define HAVE_FFI_CALL 1
13932_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013933
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013934else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000013935 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13936echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13937 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013938fi
13939
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013940fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013941
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013942{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13943echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13944if test "${ac_cv_search_mallinfo+set}" = set; then
13945 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013946else
13947 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013948cat >conftest.$ac_ext <<_ACEOF
13949/* confdefs.h. */
13950_ACEOF
13951cat confdefs.h >>conftest.$ac_ext
13952cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013953/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013954
Reid Spencera773bd52006-08-04 18:18:08 +000013955/* Override any GCC internal prototype to avoid an error.
13956 Use char because int might match the return type of a GCC
13957 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013958#ifdef __cplusplus
13959extern "C"
13960#endif
John Criswell7a73b802003-06-30 21:59:07 +000013961char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013962int
13963main ()
13964{
Reid Spencera773bd52006-08-04 18:18:08 +000013965return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013966 ;
13967 return 0;
13968}
13969_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013970for ac_lib in '' malloc; do
13971 if test -z "$ac_lib"; then
13972 ac_res="none required"
13973 else
13974 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013975 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013976 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013977 rm -f conftest.$ac_objext conftest$ac_exeext
13978if { (ac_try="$ac_link"
13979case "(($ac_try" in
13980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13981 *) ac_try_echo=$ac_try;;
13982esac
13983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13984 (eval "$ac_link") 2>conftest.er1
13985 ac_status=$?
13986 grep -v '^ *+' conftest.er1 >conftest.err
13987 rm -f conftest.er1
13988 cat conftest.err >&5
13989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990 (exit $ac_status); } &&
13991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13992 { (case "(($ac_try" in
13993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13994 *) ac_try_echo=$ac_try;;
13995esac
13996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13997 (eval "$ac_try") 2>&5
13998 ac_status=$?
13999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000 (exit $ac_status); }; } &&
14001 { ac_try='test -s conftest$ac_exeext'
14002 { (case "(($ac_try" in
14003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14004 *) ac_try_echo=$ac_try;;
14005esac
14006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14007 (eval "$ac_try") 2>&5
14008 ac_status=$?
14009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014011 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014012else
14013 echo "$as_me: failed program was:" >&5
14014sed 's/^/| /' conftest.$ac_ext >&5
14015
14016
John Criswell7a73b802003-06-30 21:59:07 +000014017fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014018
Bill Wendlingebcceee2009-04-18 11:20:33 +000014019rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014020 conftest$ac_exeext
14021 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014022 break
John Criswell7a73b802003-06-30 21:59:07 +000014023fi
Reid Spencera773bd52006-08-04 18:18:08 +000014024done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014025if test "${ac_cv_search_mallinfo+set}" = set; then
14026 :
Reid Spencera773bd52006-08-04 18:18:08 +000014027else
14028 ac_cv_search_mallinfo=no
14029fi
14030rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014031LIBS=$ac_func_search_save_LIBS
14032fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014033{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
14034echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014035ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014036if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014037 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000014038
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014039cat >>confdefs.h <<\_ACEOF
14040#define HAVE_MALLINFO 1
14041_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000014042
14043fi
14044
14045
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000014046if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014047
14048{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
14049echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
14050if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
14051 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000014052else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014053 ac_check_lib_save_LIBS=$LIBS
14054LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014055cat >conftest.$ac_ext <<_ACEOF
14056/* confdefs.h. */
14057_ACEOF
14058cat confdefs.h >>conftest.$ac_ext
14059cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000014060/* end confdefs.h. */
14061
Reid Spencera773bd52006-08-04 18:18:08 +000014062/* Override any GCC internal prototype to avoid an error.
14063 Use char because int might match the return type of a GCC
14064 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000014065#ifdef __cplusplus
14066extern "C"
14067#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000014068char pthread_mutex_init ();
14069int
14070main ()
14071{
Reid Spencera773bd52006-08-04 18:18:08 +000014072return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000014073 ;
14074 return 0;
14075}
14076_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014077rm -f conftest.$ac_objext conftest$ac_exeext
14078if { (ac_try="$ac_link"
14079case "(($ac_try" in
14080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14081 *) ac_try_echo=$ac_try;;
14082esac
14083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14084 (eval "$ac_link") 2>conftest.er1
14085 ac_status=$?
14086 grep -v '^ *+' conftest.er1 >conftest.err
14087 rm -f conftest.er1
14088 cat conftest.err >&5
14089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14090 (exit $ac_status); } &&
14091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14092 { (case "(($ac_try" in
14093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14094 *) ac_try_echo=$ac_try;;
14095esac
14096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14097 (eval "$ac_try") 2>&5
14098 ac_status=$?
14099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100 (exit $ac_status); }; } &&
14101 { ac_try='test -s conftest$ac_exeext'
14102 { (case "(($ac_try" in
14103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14104 *) ac_try_echo=$ac_try;;
14105esac
14106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14107 (eval "$ac_try") 2>&5
14108 ac_status=$?
14109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014111 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000014112else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014113 echo "$as_me: failed program was:" >&5
14114sed 's/^/| /' conftest.$ac_ext >&5
14115
14116 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000014117fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014118
Bill Wendlingebcceee2009-04-18 11:20:33 +000014119rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014120 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014121LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000014122fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014123{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
14124echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
14125if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014126 cat >>confdefs.h <<_ACEOF
14127#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000014128_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000014129
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014130 LIBS="-lpthread $LIBS"
14131
Reid Spencer22177fe2005-07-12 15:24:20 +000014132fi
14133
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014134 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
14135echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
14136if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14137 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000014138else
14139 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014140cat >conftest.$ac_ext <<_ACEOF
14141/* confdefs.h. */
14142_ACEOF
14143cat confdefs.h >>conftest.$ac_ext
14144cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000014145/* end confdefs.h. */
14146
Reid Spencera773bd52006-08-04 18:18:08 +000014147/* Override any GCC internal prototype to avoid an error.
14148 Use char because int might match the return type of a GCC
14149 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000014150#ifdef __cplusplus
14151extern "C"
14152#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000014153char pthread_mutex_lock ();
14154int
14155main ()
14156{
Reid Spencera773bd52006-08-04 18:18:08 +000014157return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000014158 ;
14159 return 0;
14160}
14161_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014162for ac_lib in '' pthread; do
14163 if test -z "$ac_lib"; then
14164 ac_res="none required"
14165 else
14166 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000014167 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014168 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014169 rm -f conftest.$ac_objext conftest$ac_exeext
14170if { (ac_try="$ac_link"
14171case "(($ac_try" in
14172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14173 *) ac_try_echo=$ac_try;;
14174esac
14175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14176 (eval "$ac_link") 2>conftest.er1
14177 ac_status=$?
14178 grep -v '^ *+' conftest.er1 >conftest.err
14179 rm -f conftest.er1
14180 cat conftest.err >&5
14181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182 (exit $ac_status); } &&
14183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14184 { (case "(($ac_try" in
14185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14186 *) ac_try_echo=$ac_try;;
14187esac
14188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14189 (eval "$ac_try") 2>&5
14190 ac_status=$?
14191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192 (exit $ac_status); }; } &&
14193 { ac_try='test -s conftest$ac_exeext'
14194 { (case "(($ac_try" in
14195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14196 *) ac_try_echo=$ac_try;;
14197esac
14198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14199 (eval "$ac_try") 2>&5
14200 ac_status=$?
14201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014203 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014204else
14205 echo "$as_me: failed program was:" >&5
14206sed 's/^/| /' conftest.$ac_ext >&5
14207
14208
Brian Gaeke5f268f72003-12-05 19:29:01 +000014209fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014210
Bill Wendlingebcceee2009-04-18 11:20:33 +000014211rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014212 conftest$ac_exeext
14213 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014214 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000014215fi
Reid Spencera773bd52006-08-04 18:18:08 +000014216done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014217if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14218 :
Reid Spencera773bd52006-08-04 18:18:08 +000014219else
14220 ac_cv_search_pthread_mutex_lock=no
14221fi
14222rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000014223LIBS=$ac_func_search_save_LIBS
14224fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014225{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14226echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014227ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014228if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014229 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000014230
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014231cat >>confdefs.h <<\_ACEOF
14232#define HAVE_PTHREAD_MUTEX_LOCK 1
14233_ACEOF
John Criswell40468462004-09-24 21:19:06 +000014234
14235fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000014236
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014237 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14238echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14239if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14240 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000014241else
14242 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014243cat >conftest.$ac_ext <<_ACEOF
14244/* confdefs.h. */
14245_ACEOF
14246cat confdefs.h >>conftest.$ac_ext
14247cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000014248/* end confdefs.h. */
14249
14250/* Override any GCC internal prototype to avoid an error.
14251 Use char because int might match the return type of a GCC
14252 builtin and then its argument prototype would still apply. */
14253#ifdef __cplusplus
14254extern "C"
14255#endif
14256char pthread_rwlock_init ();
14257int
14258main ()
14259{
14260return pthread_rwlock_init ();
14261 ;
14262 return 0;
14263}
14264_ACEOF
14265for ac_lib in '' pthread; do
14266 if test -z "$ac_lib"; then
14267 ac_res="none required"
14268 else
14269 ac_res=-l$ac_lib
14270 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14271 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014272 rm -f conftest.$ac_objext conftest$ac_exeext
14273if { (ac_try="$ac_link"
14274case "(($ac_try" in
14275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14276 *) ac_try_echo=$ac_try;;
14277esac
14278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14279 (eval "$ac_link") 2>conftest.er1
14280 ac_status=$?
14281 grep -v '^ *+' conftest.er1 >conftest.err
14282 rm -f conftest.er1
14283 cat conftest.err >&5
14284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285 (exit $ac_status); } &&
14286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14287 { (case "(($ac_try" in
14288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14289 *) ac_try_echo=$ac_try;;
14290esac
14291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14292 (eval "$ac_try") 2>&5
14293 ac_status=$?
14294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295 (exit $ac_status); }; } &&
14296 { ac_try='test -s conftest$ac_exeext'
14297 { (case "(($ac_try" in
14298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14299 *) ac_try_echo=$ac_try;;
14300esac
14301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14302 (eval "$ac_try") 2>&5
14303 ac_status=$?
14304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014306 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014307else
14308 echo "$as_me: failed program was:" >&5
14309sed 's/^/| /' conftest.$ac_ext >&5
14310
14311
Owen Andersonde8aed22009-06-16 18:20:20 +000014312fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014313
Owen Andersonde8aed22009-06-16 18:20:20 +000014314rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014315 conftest$ac_exeext
14316 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014317 break
14318fi
14319done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014320if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14321 :
Owen Andersonde8aed22009-06-16 18:20:20 +000014322else
14323 ac_cv_search_pthread_rwlock_init=no
14324fi
14325rm conftest.$ac_ext
14326LIBS=$ac_func_search_save_LIBS
14327fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014328{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14329echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000014330ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014331if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014332 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14333
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014334cat >>confdefs.h <<\_ACEOF
14335#define HAVE_PTHREAD_RWLOCK_INIT 1
14336_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000014337
14338fi
14339
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014340 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14341echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14342if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14343 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000014344else
14345 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014346cat >conftest.$ac_ext <<_ACEOF
14347/* confdefs.h. */
14348_ACEOF
14349cat confdefs.h >>conftest.$ac_ext
14350cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014351/* end confdefs.h. */
14352
14353/* Override any GCC internal prototype to avoid an error.
14354 Use char because int might match the return type of a GCC
14355 builtin and then its argument prototype would still apply. */
14356#ifdef __cplusplus
14357extern "C"
14358#endif
14359char pthread_getspecific ();
14360int
14361main ()
14362{
14363return pthread_getspecific ();
14364 ;
14365 return 0;
14366}
14367_ACEOF
14368for ac_lib in '' pthread; do
14369 if test -z "$ac_lib"; then
14370 ac_res="none required"
14371 else
14372 ac_res=-l$ac_lib
14373 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14374 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014375 rm -f conftest.$ac_objext conftest$ac_exeext
14376if { (ac_try="$ac_link"
14377case "(($ac_try" in
14378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14379 *) ac_try_echo=$ac_try;;
14380esac
14381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14382 (eval "$ac_link") 2>conftest.er1
14383 ac_status=$?
14384 grep -v '^ *+' conftest.er1 >conftest.err
14385 rm -f conftest.er1
14386 cat conftest.err >&5
14387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388 (exit $ac_status); } &&
14389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14390 { (case "(($ac_try" in
14391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14392 *) ac_try_echo=$ac_try;;
14393esac
14394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14395 (eval "$ac_try") 2>&5
14396 ac_status=$?
14397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398 (exit $ac_status); }; } &&
14399 { ac_try='test -s conftest$ac_exeext'
14400 { (case "(($ac_try" in
14401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14402 *) ac_try_echo=$ac_try;;
14403esac
14404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14405 (eval "$ac_try") 2>&5
14406 ac_status=$?
14407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014409 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014410else
14411 echo "$as_me: failed program was:" >&5
14412sed 's/^/| /' conftest.$ac_ext >&5
14413
14414
Owen Anderson27fcfe12009-06-25 23:10:26 +000014415fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014416
Owen Anderson27fcfe12009-06-25 23:10:26 +000014417rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014418 conftest$ac_exeext
14419 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014420 break
14421fi
14422done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014423if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14424 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000014425else
14426 ac_cv_search_pthread_getspecific=no
14427fi
14428rm conftest.$ac_ext
14429LIBS=$ac_func_search_save_LIBS
14430fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014431{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14432echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000014433ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014434if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014435 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14436
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014437cat >>confdefs.h <<\_ACEOF
14438#define HAVE_PTHREAD_GETSPECIFIC 1
14439_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014440
14441fi
14442
Reid Spencer0a262ba2005-08-24 10:07:20 +000014443fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000014444
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014445
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014446# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014447if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014448 withval=$with_udis86;
14449 USE_UDIS86=1
14450
14451 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000014452 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014453 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14454 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014455
14456{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14457echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14458if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14459 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014460else
14461 ac_check_lib_save_LIBS=$LIBS
14462LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014463cat >conftest.$ac_ext <<_ACEOF
14464/* confdefs.h. */
14465_ACEOF
14466cat confdefs.h >>conftest.$ac_ext
14467cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014468/* end confdefs.h. */
14469
14470/* Override any GCC internal prototype to avoid an error.
14471 Use char because int might match the return type of a GCC
14472 builtin and then its argument prototype would still apply. */
14473#ifdef __cplusplus
14474extern "C"
14475#endif
14476char ud_init ();
14477int
14478main ()
14479{
14480return ud_init ();
14481 ;
14482 return 0;
14483}
14484_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014485rm -f conftest.$ac_objext conftest$ac_exeext
14486if { (ac_try="$ac_link"
14487case "(($ac_try" in
14488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14489 *) ac_try_echo=$ac_try;;
14490esac
14491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14492 (eval "$ac_link") 2>conftest.er1
14493 ac_status=$?
14494 grep -v '^ *+' conftest.er1 >conftest.err
14495 rm -f conftest.er1
14496 cat conftest.err >&5
14497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498 (exit $ac_status); } &&
14499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14500 { (case "(($ac_try" in
14501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14502 *) ac_try_echo=$ac_try;;
14503esac
14504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14505 (eval "$ac_try") 2>&5
14506 ac_status=$?
14507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14508 (exit $ac_status); }; } &&
14509 { ac_try='test -s conftest$ac_exeext'
14510 { (case "(($ac_try" in
14511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14512 *) ac_try_echo=$ac_try;;
14513esac
14514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14515 (eval "$ac_try") 2>&5
14516 ac_status=$?
14517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014519 ac_cv_lib_udis86_ud_init=yes
14520else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014521 echo "$as_me: failed program was:" >&5
14522sed 's/^/| /' conftest.$ac_ext >&5
14523
14524 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014525fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014526
Bill Wendlingebcceee2009-04-18 11:20:33 +000014527rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014528 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014529LIBS=$ac_check_lib_save_LIBS
14530fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014531{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14532echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14533if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014534 cat >>confdefs.h <<_ACEOF
14535#define HAVE_LIBUDIS86 1
14536_ACEOF
14537
14538 LIBS="-ludis86 $LIBS"
14539
14540else
14541
14542 echo "Error! You need to have libudis86 around."
14543 exit -1
14544
14545fi
14546
14547
14548else
14549 USE_UDIS86=0
14550
14551fi
14552
14553
14554cat >>confdefs.h <<_ACEOF
14555#define USE_UDIS86 $USE_UDIS86
14556_ACEOF
14557
14558
14559
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014560# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014561if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014562 withval=$with_oprofile;
14563 USE_OPROFILE=1
14564
14565 case "$withval" in
14566 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014567 no) llvm_cv_oppath=
14568 USE_OPROFILE=0
14569 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014570 *) llvm_cv_oppath="${withval}/lib/oprofile"
14571 CPPFLAGS="-I${withval}/include";;
14572 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014573 if test -n "$llvm_cv_oppath" ; then
14574 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014575 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14576echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14577if test "${ac_cv_search_bfd_init+set}" = set; then
14578 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014579else
14580 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014581cat >conftest.$ac_ext <<_ACEOF
14582/* confdefs.h. */
14583_ACEOF
14584cat confdefs.h >>conftest.$ac_ext
14585cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014586/* end confdefs.h. */
14587
14588/* Override any GCC internal prototype to avoid an error.
14589 Use char because int might match the return type of a GCC
14590 builtin and then its argument prototype would still apply. */
14591#ifdef __cplusplus
14592extern "C"
14593#endif
14594char bfd_init ();
14595int
14596main ()
14597{
14598return bfd_init ();
14599 ;
14600 return 0;
14601}
14602_ACEOF
14603for ac_lib in '' bfd; do
14604 if test -z "$ac_lib"; then
14605 ac_res="none required"
14606 else
14607 ac_res=-l$ac_lib
14608 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14609 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014610 rm -f conftest.$ac_objext conftest$ac_exeext
14611if { (ac_try="$ac_link"
14612case "(($ac_try" in
14613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14614 *) ac_try_echo=$ac_try;;
14615esac
14616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14617 (eval "$ac_link") 2>conftest.er1
14618 ac_status=$?
14619 grep -v '^ *+' conftest.er1 >conftest.err
14620 rm -f conftest.er1
14621 cat conftest.err >&5
14622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14623 (exit $ac_status); } &&
14624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14625 { (case "(($ac_try" in
14626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14627 *) ac_try_echo=$ac_try;;
14628esac
14629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14630 (eval "$ac_try") 2>&5
14631 ac_status=$?
14632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633 (exit $ac_status); }; } &&
14634 { ac_try='test -s conftest$ac_exeext'
14635 { (case "(($ac_try" in
14636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14637 *) ac_try_echo=$ac_try;;
14638esac
14639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14640 (eval "$ac_try") 2>&5
14641 ac_status=$?
14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014644 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014645else
14646 echo "$as_me: failed program was:" >&5
14647sed 's/^/| /' conftest.$ac_ext >&5
14648
14649
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014650fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014651
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014652rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014653 conftest$ac_exeext
14654 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014655 break
14656fi
14657done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014658if test "${ac_cv_search_bfd_init+set}" = set; then
14659 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014660else
14661 ac_cv_search_bfd_init=no
14662fi
14663rm conftest.$ac_ext
14664LIBS=$ac_func_search_save_LIBS
14665fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014666{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14667echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014668ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014669if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014670 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14671
14672fi
14673
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014674 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14675echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14676if test "${ac_cv_search_op_open_agent+set}" = set; then
14677 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014678else
14679 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014680cat >conftest.$ac_ext <<_ACEOF
14681/* confdefs.h. */
14682_ACEOF
14683cat confdefs.h >>conftest.$ac_ext
14684cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014685/* end confdefs.h. */
14686
14687/* Override any GCC internal prototype to avoid an error.
14688 Use char because int might match the return type of a GCC
14689 builtin and then its argument prototype would still apply. */
14690#ifdef __cplusplus
14691extern "C"
14692#endif
14693char op_open_agent ();
14694int
14695main ()
14696{
14697return op_open_agent ();
14698 ;
14699 return 0;
14700}
14701_ACEOF
14702for ac_lib in '' opagent; do
14703 if test -z "$ac_lib"; then
14704 ac_res="none required"
14705 else
14706 ac_res=-l$ac_lib
14707 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14708 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014709 rm -f conftest.$ac_objext conftest$ac_exeext
14710if { (ac_try="$ac_link"
14711case "(($ac_try" in
14712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14713 *) ac_try_echo=$ac_try;;
14714esac
14715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14716 (eval "$ac_link") 2>conftest.er1
14717 ac_status=$?
14718 grep -v '^ *+' conftest.er1 >conftest.err
14719 rm -f conftest.er1
14720 cat conftest.err >&5
14721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722 (exit $ac_status); } &&
14723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14724 { (case "(($ac_try" in
14725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14726 *) ac_try_echo=$ac_try;;
14727esac
14728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14729 (eval "$ac_try") 2>&5
14730 ac_status=$?
14731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732 (exit $ac_status); }; } &&
14733 { ac_try='test -s conftest$ac_exeext'
14734 { (case "(($ac_try" in
14735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14736 *) ac_try_echo=$ac_try;;
14737esac
14738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14739 (eval "$ac_try") 2>&5
14740 ac_status=$?
14741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014743 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014744else
14745 echo "$as_me: failed program was:" >&5
14746sed 's/^/| /' conftest.$ac_ext >&5
14747
14748
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014749fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014750
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014751rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014752 conftest$ac_exeext
14753 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014754 break
14755fi
14756done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014757if test "${ac_cv_search_op_open_agent+set}" = set; then
14758 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014759else
14760 ac_cv_search_op_open_agent=no
14761fi
14762rm conftest.$ac_ext
14763LIBS=$ac_func_search_save_LIBS
14764fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014765{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14766echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014767ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014768if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014769 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14770
14771else
14772
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014773 echo "Error! You need to have libopagent around."
14774 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014775
14776fi
14777
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014778 if test "${ac_cv_header_opagent_h+set}" = set; then
14779 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14780echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14781if test "${ac_cv_header_opagent_h+set}" = set; then
14782 echo $ECHO_N "(cached) $ECHO_C" >&6
14783fi
14784{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14785echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14786else
14787 # Is the header compilable?
14788{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
14789echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14790cat >conftest.$ac_ext <<_ACEOF
14791/* confdefs.h. */
14792_ACEOF
14793cat confdefs.h >>conftest.$ac_ext
14794cat >>conftest.$ac_ext <<_ACEOF
14795/* end confdefs.h. */
14796$ac_includes_default
14797#include <opagent.h>
14798_ACEOF
14799rm -f conftest.$ac_objext
14800if { (ac_try="$ac_compile"
14801case "(($ac_try" in
14802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14803 *) ac_try_echo=$ac_try;;
14804esac
14805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14806 (eval "$ac_compile") 2>conftest.er1
14807 ac_status=$?
14808 grep -v '^ *+' conftest.er1 >conftest.err
14809 rm -f conftest.er1
14810 cat conftest.err >&5
14811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812 (exit $ac_status); } &&
14813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14814 { (case "(($ac_try" in
14815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14816 *) ac_try_echo=$ac_try;;
14817esac
14818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14819 (eval "$ac_try") 2>&5
14820 ac_status=$?
14821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822 (exit $ac_status); }; } &&
14823 { ac_try='test -s conftest.$ac_objext'
14824 { (case "(($ac_try" in
14825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14826 *) ac_try_echo=$ac_try;;
14827esac
14828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14829 (eval "$ac_try") 2>&5
14830 ac_status=$?
14831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832 (exit $ac_status); }; }; then
14833 ac_header_compiler=yes
14834else
14835 echo "$as_me: failed program was:" >&5
14836sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014837
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014838 ac_header_compiler=no
14839fi
14840
14841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14842{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14843echo "${ECHO_T}$ac_header_compiler" >&6; }
14844
14845# Is the header present?
14846{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
14847echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14848cat >conftest.$ac_ext <<_ACEOF
14849/* confdefs.h. */
14850_ACEOF
14851cat confdefs.h >>conftest.$ac_ext
14852cat >>conftest.$ac_ext <<_ACEOF
14853/* end confdefs.h. */
14854#include <opagent.h>
14855_ACEOF
14856if { (ac_try="$ac_cpp conftest.$ac_ext"
14857case "(($ac_try" in
14858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14859 *) ac_try_echo=$ac_try;;
14860esac
14861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14863 ac_status=$?
14864 grep -v '^ *+' conftest.er1 >conftest.err
14865 rm -f conftest.er1
14866 cat conftest.err >&5
14867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14868 (exit $ac_status); } >/dev/null; then
14869 if test -s conftest.err; then
14870 ac_cpp_err=$ac_c_preproc_warn_flag
14871 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14872 else
14873 ac_cpp_err=
14874 fi
14875else
14876 ac_cpp_err=yes
14877fi
14878if test -z "$ac_cpp_err"; then
14879 ac_header_preproc=yes
14880else
14881 echo "$as_me: failed program was:" >&5
14882sed 's/^/| /' conftest.$ac_ext >&5
14883
14884 ac_header_preproc=no
14885fi
14886
14887rm -f conftest.err conftest.$ac_ext
14888{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14889echo "${ECHO_T}$ac_header_preproc" >&6; }
14890
14891# So? What about this header?
14892case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14893 yes:no: )
14894 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14895echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14896 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14897echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14898 ac_header_preproc=yes
14899 ;;
14900 no:yes:* )
14901 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14902echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14903 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14904echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14905 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14906echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14907 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14908echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14909 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14910echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14911 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14912echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14913 ( cat <<\_ASBOX
14914## ----------------------------------- ##
14915## Report this to llvmbugs@cs.uiuc.edu ##
14916## ----------------------------------- ##
14917_ASBOX
14918 ) | sed "s/^/$as_me: WARNING: /" >&2
14919 ;;
14920esac
14921{ echo "$as_me:$LINENO: checking for opagent.h" >&5
14922echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14923if test "${ac_cv_header_opagent_h+set}" = set; then
14924 echo $ECHO_N "(cached) $ECHO_C" >&6
14925else
14926 ac_cv_header_opagent_h=$ac_header_preproc
14927fi
14928{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14929echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14930
14931fi
14932if test $ac_cv_header_opagent_h = yes; then
14933 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014934else
14935
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014936 echo "Error! You need to have opagent.h around."
14937 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014938
14939fi
14940
14941
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014942 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014943
14944else
14945
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014946 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014947
14948
14949fi
14950
14951
14952cat >>confdefs.h <<_ACEOF
14953#define USE_OPROFILE $USE_OPROFILE
14954_ACEOF
14955
14956
14957
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014958
14959
14960
14961
14962
Reid Spencer59473af2004-12-25 07:31:29 +000014963ac_header_dirent=no
14964for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014965 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14966{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14967echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14968if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14969 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014970else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014971 cat >conftest.$ac_ext <<_ACEOF
14972/* confdefs.h. */
14973_ACEOF
14974cat confdefs.h >>conftest.$ac_ext
14975cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014976/* end confdefs.h. */
14977#include <sys/types.h>
14978#include <$ac_hdr>
14979
14980int
14981main ()
14982{
14983if ((DIR *) 0)
14984return 0;
14985 ;
14986 return 0;
14987}
14988_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014989rm -f conftest.$ac_objext
14990if { (ac_try="$ac_compile"
14991case "(($ac_try" in
14992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14993 *) ac_try_echo=$ac_try;;
14994esac
14995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14996 (eval "$ac_compile") 2>conftest.er1
14997 ac_status=$?
14998 grep -v '^ *+' conftest.er1 >conftest.err
14999 rm -f conftest.er1
15000 cat conftest.err >&5
15001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15002 (exit $ac_status); } &&
15003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15004 { (case "(($ac_try" in
15005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15006 *) ac_try_echo=$ac_try;;
15007esac
15008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15009 (eval "$ac_try") 2>&5
15010 ac_status=$?
15011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15012 (exit $ac_status); }; } &&
15013 { ac_try='test -s conftest.$ac_objext'
15014 { (case "(($ac_try" in
15015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15016 *) ac_try_echo=$ac_try;;
15017esac
15018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15019 (eval "$ac_try") 2>&5
15020 ac_status=$?
15021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15022 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000015023 eval "$as_ac_Header=yes"
15024else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015025 echo "$as_me: failed program was:" >&5
15026sed 's/^/| /' conftest.$ac_ext >&5
15027
15028 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000015029fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015030
Reid Spencera773bd52006-08-04 18:18:08 +000015031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015032fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015033ac_res=`eval echo '${'$as_ac_Header'}'`
15034 { echo "$as_me:$LINENO: result: $ac_res" >&5
15035echo "${ECHO_T}$ac_res" >&6; }
15036if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015037 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015038#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000015039_ACEOF
15040
15041ac_header_dirent=$ac_hdr; break
15042fi
15043
15044done
15045# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15046if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015047 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15048echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15049if test "${ac_cv_search_opendir+set}" = set; then
15050 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015051else
15052 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015053cat >conftest.$ac_ext <<_ACEOF
15054/* confdefs.h. */
15055_ACEOF
15056cat confdefs.h >>conftest.$ac_ext
15057cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015058/* end confdefs.h. */
15059
Reid Spencera773bd52006-08-04 18:18:08 +000015060/* Override any GCC internal prototype to avoid an error.
15061 Use char because int might match the return type of a GCC
15062 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000015063#ifdef __cplusplus
15064extern "C"
15065#endif
Reid Spencer59473af2004-12-25 07:31:29 +000015066char opendir ();
15067int
15068main ()
15069{
Reid Spencera773bd52006-08-04 18:18:08 +000015070return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000015071 ;
15072 return 0;
15073}
15074_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000015075for ac_lib in '' dir; do
15076 if test -z "$ac_lib"; then
15077 ac_res="none required"
15078 else
15079 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000015080 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000015081 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015082 rm -f conftest.$ac_objext conftest$ac_exeext
15083if { (ac_try="$ac_link"
15084case "(($ac_try" in
15085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15086 *) ac_try_echo=$ac_try;;
15087esac
15088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15089 (eval "$ac_link") 2>conftest.er1
15090 ac_status=$?
15091 grep -v '^ *+' conftest.er1 >conftest.err
15092 rm -f conftest.er1
15093 cat conftest.err >&5
15094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095 (exit $ac_status); } &&
15096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15097 { (case "(($ac_try" in
15098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15099 *) ac_try_echo=$ac_try;;
15100esac
15101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15102 (eval "$ac_try") 2>&5
15103 ac_status=$?
15104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105 (exit $ac_status); }; } &&
15106 { ac_try='test -s conftest$ac_exeext'
15107 { (case "(($ac_try" in
15108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15109 *) ac_try_echo=$ac_try;;
15110esac
15111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15112 (eval "$ac_try") 2>&5
15113 ac_status=$?
15114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15115 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000015116 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015117else
15118 echo "$as_me: failed program was:" >&5
15119sed 's/^/| /' conftest.$ac_ext >&5
15120
15121
Reid Spencer59473af2004-12-25 07:31:29 +000015122fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015123
Bill Wendlingebcceee2009-04-18 11:20:33 +000015124rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015125 conftest$ac_exeext
15126 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000015127 break
Reid Spencer59473af2004-12-25 07:31:29 +000015128fi
Reid Spencera773bd52006-08-04 18:18:08 +000015129done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015130if test "${ac_cv_search_opendir+set}" = set; then
15131 :
Reid Spencera773bd52006-08-04 18:18:08 +000015132else
15133 ac_cv_search_opendir=no
15134fi
15135rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015136LIBS=$ac_func_search_save_LIBS
15137fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015138{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15139echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000015140ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015141if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015142 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000015143
15144fi
15145
15146else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015147 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15148echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15149if test "${ac_cv_search_opendir+set}" = set; then
15150 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015151else
15152 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015153cat >conftest.$ac_ext <<_ACEOF
15154/* confdefs.h. */
15155_ACEOF
15156cat confdefs.h >>conftest.$ac_ext
15157cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015158/* end confdefs.h. */
15159
Reid Spencera773bd52006-08-04 18:18:08 +000015160/* Override any GCC internal prototype to avoid an error.
15161 Use char because int might match the return type of a GCC
15162 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000015163#ifdef __cplusplus
15164extern "C"
15165#endif
Reid Spencer59473af2004-12-25 07:31:29 +000015166char opendir ();
15167int
15168main ()
15169{
Reid Spencera773bd52006-08-04 18:18:08 +000015170return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000015171 ;
15172 return 0;
15173}
15174_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000015175for ac_lib in '' x; do
15176 if test -z "$ac_lib"; then
15177 ac_res="none required"
15178 else
15179 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000015180 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000015181 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015182 rm -f conftest.$ac_objext conftest$ac_exeext
15183if { (ac_try="$ac_link"
15184case "(($ac_try" in
15185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15186 *) ac_try_echo=$ac_try;;
15187esac
15188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15189 (eval "$ac_link") 2>conftest.er1
15190 ac_status=$?
15191 grep -v '^ *+' conftest.er1 >conftest.err
15192 rm -f conftest.er1
15193 cat conftest.err >&5
15194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15195 (exit $ac_status); } &&
15196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15197 { (case "(($ac_try" in
15198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15199 *) ac_try_echo=$ac_try;;
15200esac
15201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15202 (eval "$ac_try") 2>&5
15203 ac_status=$?
15204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205 (exit $ac_status); }; } &&
15206 { ac_try='test -s conftest$ac_exeext'
15207 { (case "(($ac_try" in
15208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15209 *) ac_try_echo=$ac_try;;
15210esac
15211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15212 (eval "$ac_try") 2>&5
15213 ac_status=$?
15214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000015216 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015217else
15218 echo "$as_me: failed program was:" >&5
15219sed 's/^/| /' conftest.$ac_ext >&5
15220
15221
Reid Spencer59473af2004-12-25 07:31:29 +000015222fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015223
Bill Wendlingebcceee2009-04-18 11:20:33 +000015224rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015225 conftest$ac_exeext
15226 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000015227 break
Reid Spencer59473af2004-12-25 07:31:29 +000015228fi
Reid Spencera773bd52006-08-04 18:18:08 +000015229done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015230if test "${ac_cv_search_opendir+set}" = set; then
15231 :
Reid Spencera773bd52006-08-04 18:18:08 +000015232else
15233 ac_cv_search_opendir=no
15234fi
15235rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015236LIBS=$ac_func_search_save_LIBS
15237fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015238{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15239echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000015240ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015241if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015242 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000015243
15244fi
15245
15246fi
15247
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015248{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15249echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15250if test "${ac_cv_header_mmap_anon+set}" = set; then
15251 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015252else
15253 ac_ext=c
15254ac_cpp='$CPP $CPPFLAGS'
15255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15257ac_compiler_gnu=$ac_cv_c_compiler_gnu
15258
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015259 cat >conftest.$ac_ext <<_ACEOF
15260/* confdefs.h. */
15261_ACEOF
15262cat confdefs.h >>conftest.$ac_ext
15263cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015264/* end confdefs.h. */
15265#include <sys/mman.h>
15266#include <unistd.h>
15267#include <fcntl.h>
15268int
15269main ()
15270{
15271mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15272 ;
15273 return 0;
15274}
15275_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015276rm -f conftest.$ac_objext
15277if { (ac_try="$ac_compile"
15278case "(($ac_try" in
15279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15280 *) ac_try_echo=$ac_try;;
15281esac
15282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15283 (eval "$ac_compile") 2>conftest.er1
15284 ac_status=$?
15285 grep -v '^ *+' conftest.er1 >conftest.err
15286 rm -f conftest.er1
15287 cat conftest.err >&5
15288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15289 (exit $ac_status); } &&
15290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15291 { (case "(($ac_try" in
15292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15293 *) ac_try_echo=$ac_try;;
15294esac
15295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15296 (eval "$ac_try") 2>&5
15297 ac_status=$?
15298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299 (exit $ac_status); }; } &&
15300 { ac_try='test -s conftest.$ac_objext'
15301 { (case "(($ac_try" in
15302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15303 *) ac_try_echo=$ac_try;;
15304esac
15305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15306 (eval "$ac_try") 2>&5
15307 ac_status=$?
15308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15309 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000015310 ac_cv_header_mmap_anon=yes
15311else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015312 echo "$as_me: failed program was:" >&5
15313sed 's/^/| /' conftest.$ac_ext >&5
15314
15315 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000015316fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015317
Reid Spencera773bd52006-08-04 18:18:08 +000015318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015319 ac_ext=c
15320ac_cpp='$CPP $CPPFLAGS'
15321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15323ac_compiler_gnu=$ac_cv_c_compiler_gnu
15324
15325
15326fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015327{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15328echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000015329if test "$ac_cv_header_mmap_anon" = yes; then
15330
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015331cat >>confdefs.h <<\_ACEOF
15332#define HAVE_MMAP_ANONYMOUS 1
15333_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015334
15335fi
15336
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015337{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15338echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15339if test "${ac_cv_header_stat_broken+set}" = set; then
15340 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015341else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015342 cat >conftest.$ac_ext <<_ACEOF
15343/* confdefs.h. */
15344_ACEOF
15345cat confdefs.h >>conftest.$ac_ext
15346cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015347/* end confdefs.h. */
15348#include <sys/types.h>
15349#include <sys/stat.h>
15350
Reid Spencera773bd52006-08-04 18:18:08 +000015351#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015352# if S_ISBLK (S_IFDIR)
15353You lose.
15354# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015355#endif
15356
Reid Spencera773bd52006-08-04 18:18:08 +000015357#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015358# if S_ISBLK (S_IFCHR)
15359You lose.
15360# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015361#endif
15362
Reid Spencera773bd52006-08-04 18:18:08 +000015363#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015364# if S_ISLNK (S_IFREG)
15365You lose.
15366# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015367#endif
15368
Reid Spencera773bd52006-08-04 18:18:08 +000015369#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015370# if S_ISSOCK (S_IFREG)
15371You lose.
15372# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015373#endif
15374
15375_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015376if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15377 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000015378 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015379else
15380 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000015381fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015382rm -f conftest*
15383
Reid Spencer59473af2004-12-25 07:31:29 +000015384fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015385{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15386echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000015387if test $ac_cv_header_stat_broken = yes; then
15388
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015389cat >>confdefs.h <<\_ACEOF
15390#define STAT_MACROS_BROKEN 1
15391_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015392
15393fi
15394
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015395{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15396echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15397if test "${ac_cv_header_stdc+set}" = set; then
15398 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015399else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015400 cat >conftest.$ac_ext <<_ACEOF
15401/* confdefs.h. */
15402_ACEOF
15403cat confdefs.h >>conftest.$ac_ext
15404cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015405/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015406#include <stdlib.h>
15407#include <stdarg.h>
15408#include <string.h>
15409#include <float.h>
15410
John Criswell0c38eaf2003-09-10 15:17:25 +000015411int
15412main ()
15413{
15414
15415 ;
15416 return 0;
15417}
John Criswell7a73b802003-06-30 21:59:07 +000015418_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015419rm -f conftest.$ac_objext
15420if { (ac_try="$ac_compile"
15421case "(($ac_try" in
15422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15423 *) ac_try_echo=$ac_try;;
15424esac
15425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15426 (eval "$ac_compile") 2>conftest.er1
15427 ac_status=$?
15428 grep -v '^ *+' conftest.er1 >conftest.err
15429 rm -f conftest.er1
15430 cat conftest.err >&5
15431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432 (exit $ac_status); } &&
15433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15434 { (case "(($ac_try" in
15435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15436 *) ac_try_echo=$ac_try;;
15437esac
15438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15439 (eval "$ac_try") 2>&5
15440 ac_status=$?
15441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442 (exit $ac_status); }; } &&
15443 { ac_try='test -s conftest.$ac_objext'
15444 { (case "(($ac_try" in
15445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15446 *) ac_try_echo=$ac_try;;
15447esac
15448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15449 (eval "$ac_try") 2>&5
15450 ac_status=$?
15451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15452 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015453 ac_cv_header_stdc=yes
15454else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015455 echo "$as_me: failed program was:" >&5
15456sed 's/^/| /' conftest.$ac_ext >&5
15457
15458 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015459fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015460
Reid Spencera773bd52006-08-04 18:18:08 +000015461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015462
15463if test $ac_cv_header_stdc = yes; then
15464 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015465 cat >conftest.$ac_ext <<_ACEOF
15466/* confdefs.h. */
15467_ACEOF
15468cat confdefs.h >>conftest.$ac_ext
15469cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015470/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015471#include <string.h>
15472
15473_ACEOF
15474if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015475 $EGREP "memchr" >/dev/null 2>&1; then
15476 :
John Criswell7a73b802003-06-30 21:59:07 +000015477else
15478 ac_cv_header_stdc=no
15479fi
15480rm -f conftest*
15481
15482fi
15483
15484if test $ac_cv_header_stdc = yes; then
15485 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015486 cat >conftest.$ac_ext <<_ACEOF
15487/* confdefs.h. */
15488_ACEOF
15489cat confdefs.h >>conftest.$ac_ext
15490cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015491/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015492#include <stdlib.h>
15493
15494_ACEOF
15495if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015496 $EGREP "free" >/dev/null 2>&1; then
15497 :
John Criswell7a73b802003-06-30 21:59:07 +000015498else
15499 ac_cv_header_stdc=no
15500fi
15501rm -f conftest*
15502
15503fi
15504
15505if test $ac_cv_header_stdc = yes; then
15506 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015507 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000015508 :
15509else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015510 cat >conftest.$ac_ext <<_ACEOF
15511/* confdefs.h. */
15512_ACEOF
15513cat confdefs.h >>conftest.$ac_ext
15514cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015515/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015516#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000015517#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000015518#if ((' ' & 0x0FF) == 0x020)
15519# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15520# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15521#else
John Criswell0c38eaf2003-09-10 15:17:25 +000015522# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015523 (('a' <= (c) && (c) <= 'i') \
15524 || ('j' <= (c) && (c) <= 'r') \
15525 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000015526# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15527#endif
15528
15529#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15530int
15531main ()
15532{
15533 int i;
15534 for (i = 0; i < 256; i++)
15535 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000015536 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000015537 return 2;
15538 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000015539}
15540_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015541rm -f conftest$ac_exeext
15542if { (ac_try="$ac_link"
15543case "(($ac_try" in
15544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15545 *) ac_try_echo=$ac_try;;
15546esac
15547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15548 (eval "$ac_link") 2>&5
15549 ac_status=$?
15550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15551 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15552 { (case "(($ac_try" in
15553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15554 *) ac_try_echo=$ac_try;;
15555esac
15556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15557 (eval "$ac_try") 2>&5
15558 ac_status=$?
15559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560 (exit $ac_status); }; }; then
15561 :
John Criswell7a73b802003-06-30 21:59:07 +000015562else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015563 echo "$as_me: program exited with status $ac_status" >&5
15564echo "$as_me: failed program was:" >&5
15565sed 's/^/| /' conftest.$ac_ext >&5
15566
15567( exit $ac_status )
15568ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015569fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015570rm -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 +000015571fi
15572
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015573
John Criswell7a73b802003-06-30 21:59:07 +000015574fi
15575fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015576{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15577echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015578if test $ac_cv_header_stdc = yes; then
15579
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015580cat >>confdefs.h <<\_ACEOF
15581#define STDC_HEADERS 1
15582_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015583
15584fi
15585
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015586{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15587echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15588if test "${ac_cv_header_sys_wait_h+set}" = set; then
15589 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015590else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015591 cat >conftest.$ac_ext <<_ACEOF
15592/* confdefs.h. */
15593_ACEOF
15594cat confdefs.h >>conftest.$ac_ext
15595cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015596/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015597#include <sys/types.h>
15598#include <sys/wait.h>
15599#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000015600# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000015601#endif
15602#ifndef WIFEXITED
15603# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15604#endif
15605
John Criswell7a73b802003-06-30 21:59:07 +000015606int
15607main ()
15608{
15609 int s;
15610 wait (&s);
15611 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15612 ;
15613 return 0;
15614}
15615_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015616rm -f conftest.$ac_objext
15617if { (ac_try="$ac_compile"
15618case "(($ac_try" in
15619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15620 *) ac_try_echo=$ac_try;;
15621esac
15622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15623 (eval "$ac_compile") 2>conftest.er1
15624 ac_status=$?
15625 grep -v '^ *+' conftest.er1 >conftest.err
15626 rm -f conftest.er1
15627 cat conftest.err >&5
15628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15629 (exit $ac_status); } &&
15630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15631 { (case "(($ac_try" in
15632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15633 *) ac_try_echo=$ac_try;;
15634esac
15635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15636 (eval "$ac_try") 2>&5
15637 ac_status=$?
15638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639 (exit $ac_status); }; } &&
15640 { ac_try='test -s conftest.$ac_objext'
15641 { (case "(($ac_try" in
15642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15643 *) ac_try_echo=$ac_try;;
15644esac
15645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15646 (eval "$ac_try") 2>&5
15647 ac_status=$?
15648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015650 ac_cv_header_sys_wait_h=yes
15651else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015652 echo "$as_me: failed program was:" >&5
15653sed 's/^/| /' conftest.$ac_ext >&5
15654
15655 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000015656fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015657
Reid Spencera773bd52006-08-04 18:18:08 +000015658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015659fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015660{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15661echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015662if test $ac_cv_header_sys_wait_h = yes; then
15663
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015664cat >>confdefs.h <<\_ACEOF
15665#define HAVE_SYS_WAIT_H 1
15666_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015667
15668fi
15669
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015670{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15671echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15672if test "${ac_cv_header_time+set}" = set; then
15673 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015674else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015675 cat >conftest.$ac_ext <<_ACEOF
15676/* confdefs.h. */
15677_ACEOF
15678cat confdefs.h >>conftest.$ac_ext
15679cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015680/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015681#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015682#include <sys/time.h>
15683#include <time.h>
15684
15685int
15686main ()
15687{
15688if ((struct tm *) 0)
15689return 0;
15690 ;
15691 return 0;
15692}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015693_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015694rm -f conftest.$ac_objext
15695if { (ac_try="$ac_compile"
15696case "(($ac_try" in
15697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15698 *) ac_try_echo=$ac_try;;
15699esac
15700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15701 (eval "$ac_compile") 2>conftest.er1
15702 ac_status=$?
15703 grep -v '^ *+' conftest.er1 >conftest.err
15704 rm -f conftest.er1
15705 cat conftest.err >&5
15706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707 (exit $ac_status); } &&
15708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15709 { (case "(($ac_try" in
15710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15711 *) ac_try_echo=$ac_try;;
15712esac
15713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15714 (eval "$ac_try") 2>&5
15715 ac_status=$?
15716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717 (exit $ac_status); }; } &&
15718 { ac_try='test -s conftest.$ac_objext'
15719 { (case "(($ac_try" in
15720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15721 *) ac_try_echo=$ac_try;;
15722esac
15723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15724 (eval "$ac_try") 2>&5
15725 ac_status=$?
15726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15727 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015728 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015729else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015730 echo "$as_me: failed program was:" >&5
15731sed 's/^/| /' conftest.$ac_ext >&5
15732
15733 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015734fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015735
Reid Spencera773bd52006-08-04 18:18:08 +000015736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015737fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015738{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15739echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015740if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015741
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015742cat >>confdefs.h <<\_ACEOF
15743#define TIME_WITH_SYS_TIME 1
15744_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015745
15746fi
15747
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015748
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015749
15750
15751
15752
15753
15754
Reid Spencer59473af2004-12-25 07:31:29 +000015755for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015756do
15757as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15758if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15759 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15760echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15761if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15762 echo $ECHO_N "(cached) $ECHO_C" >&6
15763fi
15764ac_res=`eval echo '${'$as_ac_Header'}'`
15765 { echo "$as_me:$LINENO: result: $ac_res" >&5
15766echo "${ECHO_T}$ac_res" >&6; }
15767else
15768 # Is the header compilable?
15769{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15770echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15771cat >conftest.$ac_ext <<_ACEOF
15772/* confdefs.h. */
15773_ACEOF
15774cat confdefs.h >>conftest.$ac_ext
15775cat >>conftest.$ac_ext <<_ACEOF
15776/* end confdefs.h. */
15777$ac_includes_default
15778#include <$ac_header>
15779_ACEOF
15780rm -f conftest.$ac_objext
15781if { (ac_try="$ac_compile"
15782case "(($ac_try" in
15783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15784 *) ac_try_echo=$ac_try;;
15785esac
15786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15787 (eval "$ac_compile") 2>conftest.er1
15788 ac_status=$?
15789 grep -v '^ *+' conftest.er1 >conftest.err
15790 rm -f conftest.er1
15791 cat conftest.err >&5
15792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15793 (exit $ac_status); } &&
15794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15795 { (case "(($ac_try" in
15796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15797 *) ac_try_echo=$ac_try;;
15798esac
15799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15800 (eval "$ac_try") 2>&5
15801 ac_status=$?
15802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803 (exit $ac_status); }; } &&
15804 { ac_try='test -s conftest.$ac_objext'
15805 { (case "(($ac_try" in
15806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15807 *) ac_try_echo=$ac_try;;
15808esac
15809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15810 (eval "$ac_try") 2>&5
15811 ac_status=$?
15812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813 (exit $ac_status); }; }; then
15814 ac_header_compiler=yes
15815else
15816 echo "$as_me: failed program was:" >&5
15817sed 's/^/| /' conftest.$ac_ext >&5
15818
15819 ac_header_compiler=no
15820fi
15821
15822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15823{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15824echo "${ECHO_T}$ac_header_compiler" >&6; }
15825
15826# Is the header present?
15827{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15828echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15829cat >conftest.$ac_ext <<_ACEOF
15830/* confdefs.h. */
15831_ACEOF
15832cat confdefs.h >>conftest.$ac_ext
15833cat >>conftest.$ac_ext <<_ACEOF
15834/* end confdefs.h. */
15835#include <$ac_header>
15836_ACEOF
15837if { (ac_try="$ac_cpp conftest.$ac_ext"
15838case "(($ac_try" in
15839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15840 *) ac_try_echo=$ac_try;;
15841esac
15842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15844 ac_status=$?
15845 grep -v '^ *+' conftest.er1 >conftest.err
15846 rm -f conftest.er1
15847 cat conftest.err >&5
15848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849 (exit $ac_status); } >/dev/null; then
15850 if test -s conftest.err; then
15851 ac_cpp_err=$ac_c_preproc_warn_flag
15852 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15853 else
15854 ac_cpp_err=
15855 fi
15856else
15857 ac_cpp_err=yes
15858fi
15859if test -z "$ac_cpp_err"; then
15860 ac_header_preproc=yes
15861else
15862 echo "$as_me: failed program was:" >&5
15863sed 's/^/| /' conftest.$ac_ext >&5
15864
15865 ac_header_preproc=no
15866fi
15867
15868rm -f conftest.err conftest.$ac_ext
15869{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15870echo "${ECHO_T}$ac_header_preproc" >&6; }
15871
15872# So? What about this header?
15873case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15874 yes:no: )
15875 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15876echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15878echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15879 ac_header_preproc=yes
15880 ;;
15881 no:yes:* )
15882 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15883echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15884 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15885echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15886 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15887echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15888 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15889echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15891echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15892 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15893echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15894 ( cat <<\_ASBOX
15895## ----------------------------------- ##
15896## Report this to llvmbugs@cs.uiuc.edu ##
15897## ----------------------------------- ##
15898_ASBOX
15899 ) | sed "s/^/$as_me: WARNING: /" >&2
15900 ;;
15901esac
15902{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15903echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15904if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15905 echo $ECHO_N "(cached) $ECHO_C" >&6
15906else
15907 eval "$as_ac_Header=\$ac_header_preproc"
15908fi
15909ac_res=`eval echo '${'$as_ac_Header'}'`
15910 { echo "$as_me:$LINENO: result: $ac_res" >&5
15911echo "${ECHO_T}$ac_res" >&6; }
15912
15913fi
15914if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015915 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015916#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015917_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015918
15919fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015920
Reid Spencer59473af2004-12-25 07:31:29 +000015921done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015922
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015923
15924
15925
15926
15927
15928
Douglas Gregor071d73d2009-05-18 17:21:34 +000015929for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015930do
15931as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15932if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15933 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15934echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15935if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15936 echo $ECHO_N "(cached) $ECHO_C" >&6
15937fi
15938ac_res=`eval echo '${'$as_ac_Header'}'`
15939 { echo "$as_me:$LINENO: result: $ac_res" >&5
15940echo "${ECHO_T}$ac_res" >&6; }
15941else
15942 # Is the header compilable?
15943{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15944echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15945cat >conftest.$ac_ext <<_ACEOF
15946/* confdefs.h. */
15947_ACEOF
15948cat confdefs.h >>conftest.$ac_ext
15949cat >>conftest.$ac_ext <<_ACEOF
15950/* end confdefs.h. */
15951$ac_includes_default
15952#include <$ac_header>
15953_ACEOF
15954rm -f conftest.$ac_objext
15955if { (ac_try="$ac_compile"
15956case "(($ac_try" in
15957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15958 *) ac_try_echo=$ac_try;;
15959esac
15960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15961 (eval "$ac_compile") 2>conftest.er1
15962 ac_status=$?
15963 grep -v '^ *+' conftest.er1 >conftest.err
15964 rm -f conftest.er1
15965 cat conftest.err >&5
15966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967 (exit $ac_status); } &&
15968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15969 { (case "(($ac_try" in
15970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15971 *) ac_try_echo=$ac_try;;
15972esac
15973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15974 (eval "$ac_try") 2>&5
15975 ac_status=$?
15976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15977 (exit $ac_status); }; } &&
15978 { ac_try='test -s conftest.$ac_objext'
15979 { (case "(($ac_try" in
15980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15981 *) ac_try_echo=$ac_try;;
15982esac
15983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15984 (eval "$ac_try") 2>&5
15985 ac_status=$?
15986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15987 (exit $ac_status); }; }; then
15988 ac_header_compiler=yes
15989else
15990 echo "$as_me: failed program was:" >&5
15991sed 's/^/| /' conftest.$ac_ext >&5
15992
15993 ac_header_compiler=no
15994fi
15995
15996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15997{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15998echo "${ECHO_T}$ac_header_compiler" >&6; }
15999
16000# Is the header present?
16001{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16002echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16003cat >conftest.$ac_ext <<_ACEOF
16004/* confdefs.h. */
16005_ACEOF
16006cat confdefs.h >>conftest.$ac_ext
16007cat >>conftest.$ac_ext <<_ACEOF
16008/* end confdefs.h. */
16009#include <$ac_header>
16010_ACEOF
16011if { (ac_try="$ac_cpp conftest.$ac_ext"
16012case "(($ac_try" in
16013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16014 *) ac_try_echo=$ac_try;;
16015esac
16016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16017 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16018 ac_status=$?
16019 grep -v '^ *+' conftest.er1 >conftest.err
16020 rm -f conftest.er1
16021 cat conftest.err >&5
16022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023 (exit $ac_status); } >/dev/null; then
16024 if test -s conftest.err; then
16025 ac_cpp_err=$ac_c_preproc_warn_flag
16026 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16027 else
16028 ac_cpp_err=
16029 fi
16030else
16031 ac_cpp_err=yes
16032fi
16033if test -z "$ac_cpp_err"; then
16034 ac_header_preproc=yes
16035else
16036 echo "$as_me: failed program was:" >&5
16037sed 's/^/| /' conftest.$ac_ext >&5
16038
16039 ac_header_preproc=no
16040fi
16041
16042rm -f conftest.err conftest.$ac_ext
16043{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16044echo "${ECHO_T}$ac_header_preproc" >&6; }
16045
16046# So? What about this header?
16047case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16048 yes:no: )
16049 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16050echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16052echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16053 ac_header_preproc=yes
16054 ;;
16055 no:yes:* )
16056 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16057echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16058 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16059echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16060 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16061echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16062 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16063echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16064 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16065echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16066 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16067echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16068 ( cat <<\_ASBOX
16069## ----------------------------------- ##
16070## Report this to llvmbugs@cs.uiuc.edu ##
16071## ----------------------------------- ##
16072_ASBOX
16073 ) | sed "s/^/$as_me: WARNING: /" >&2
16074 ;;
16075esac
16076{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16077echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16078if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16079 echo $ECHO_N "(cached) $ECHO_C" >&6
16080else
16081 eval "$as_ac_Header=\$ac_header_preproc"
16082fi
16083ac_res=`eval echo '${'$as_ac_Header'}'`
16084 { echo "$as_me:$LINENO: result: $ac_res" >&5
16085echo "${ECHO_T}$ac_res" >&6; }
16086
16087fi
16088if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000016089 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016090#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000016091_ACEOF
16092
16093fi
16094
16095done
16096
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016097
16098
Douglas Gregor071d73d2009-05-18 17:21:34 +000016099for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016100do
16101as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16102if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16103 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16104echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16105if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16106 echo $ECHO_N "(cached) $ECHO_C" >&6
16107fi
16108ac_res=`eval echo '${'$as_ac_Header'}'`
16109 { echo "$as_me:$LINENO: result: $ac_res" >&5
16110echo "${ECHO_T}$ac_res" >&6; }
16111else
16112 # Is the header compilable?
16113{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16114echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16115cat >conftest.$ac_ext <<_ACEOF
16116/* confdefs.h. */
16117_ACEOF
16118cat confdefs.h >>conftest.$ac_ext
16119cat >>conftest.$ac_ext <<_ACEOF
16120/* end confdefs.h. */
16121$ac_includes_default
16122#include <$ac_header>
16123_ACEOF
16124rm -f conftest.$ac_objext
16125if { (ac_try="$ac_compile"
16126case "(($ac_try" in
16127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16128 *) ac_try_echo=$ac_try;;
16129esac
16130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16131 (eval "$ac_compile") 2>conftest.er1
16132 ac_status=$?
16133 grep -v '^ *+' conftest.er1 >conftest.err
16134 rm -f conftest.er1
16135 cat conftest.err >&5
16136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16137 (exit $ac_status); } &&
16138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16139 { (case "(($ac_try" in
16140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16141 *) ac_try_echo=$ac_try;;
16142esac
16143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16144 (eval "$ac_try") 2>&5
16145 ac_status=$?
16146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147 (exit $ac_status); }; } &&
16148 { ac_try='test -s conftest.$ac_objext'
16149 { (case "(($ac_try" in
16150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16151 *) ac_try_echo=$ac_try;;
16152esac
16153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16154 (eval "$ac_try") 2>&5
16155 ac_status=$?
16156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157 (exit $ac_status); }; }; then
16158 ac_header_compiler=yes
16159else
16160 echo "$as_me: failed program was:" >&5
16161sed 's/^/| /' conftest.$ac_ext >&5
16162
16163 ac_header_compiler=no
16164fi
16165
16166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16167{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16168echo "${ECHO_T}$ac_header_compiler" >&6; }
16169
16170# Is the header present?
16171{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16172echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16173cat >conftest.$ac_ext <<_ACEOF
16174/* confdefs.h. */
16175_ACEOF
16176cat confdefs.h >>conftest.$ac_ext
16177cat >>conftest.$ac_ext <<_ACEOF
16178/* end confdefs.h. */
16179#include <$ac_header>
16180_ACEOF
16181if { (ac_try="$ac_cpp conftest.$ac_ext"
16182case "(($ac_try" in
16183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16184 *) ac_try_echo=$ac_try;;
16185esac
16186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16187 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16188 ac_status=$?
16189 grep -v '^ *+' conftest.er1 >conftest.err
16190 rm -f conftest.er1
16191 cat conftest.err >&5
16192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193 (exit $ac_status); } >/dev/null; then
16194 if test -s conftest.err; then
16195 ac_cpp_err=$ac_c_preproc_warn_flag
16196 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16197 else
16198 ac_cpp_err=
16199 fi
16200else
16201 ac_cpp_err=yes
16202fi
16203if test -z "$ac_cpp_err"; then
16204 ac_header_preproc=yes
16205else
16206 echo "$as_me: failed program was:" >&5
16207sed 's/^/| /' conftest.$ac_ext >&5
16208
16209 ac_header_preproc=no
16210fi
16211
16212rm -f conftest.err conftest.$ac_ext
16213{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16214echo "${ECHO_T}$ac_header_preproc" >&6; }
16215
16216# So? What about this header?
16217case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16218 yes:no: )
16219 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16220echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16222echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16223 ac_header_preproc=yes
16224 ;;
16225 no:yes:* )
16226 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16227echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16228 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16229echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16230 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16231echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16232 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16233echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16235echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16236 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16237echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16238 ( cat <<\_ASBOX
16239## ----------------------------------- ##
16240## Report this to llvmbugs@cs.uiuc.edu ##
16241## ----------------------------------- ##
16242_ASBOX
16243 ) | sed "s/^/$as_me: WARNING: /" >&2
16244 ;;
16245esac
16246{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16247echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16248if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16249 echo $ECHO_N "(cached) $ECHO_C" >&6
16250else
16251 eval "$as_ac_Header=\$ac_header_preproc"
16252fi
16253ac_res=`eval echo '${'$as_ac_Header'}'`
16254 { echo "$as_me:$LINENO: result: $ac_res" >&5
16255echo "${ECHO_T}$ac_res" >&6; }
16256
16257fi
16258if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000016259 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016260#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000016261_ACEOF
16262
16263fi
16264
16265done
Reid Spencer59473af2004-12-25 07:31:29 +000016266
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016267
16268
16269
16270
Daniel Dunbar3e462932011-02-03 02:40:02 +000016271
16272for 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 +000016273do
16274as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16275if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16276 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16277echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16278if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16279 echo $ECHO_N "(cached) $ECHO_C" >&6
16280fi
16281ac_res=`eval echo '${'$as_ac_Header'}'`
16282 { echo "$as_me:$LINENO: result: $ac_res" >&5
16283echo "${ECHO_T}$ac_res" >&6; }
16284else
16285 # Is the header compilable?
16286{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16287echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16288cat >conftest.$ac_ext <<_ACEOF
16289/* confdefs.h. */
16290_ACEOF
16291cat confdefs.h >>conftest.$ac_ext
16292cat >>conftest.$ac_ext <<_ACEOF
16293/* end confdefs.h. */
16294$ac_includes_default
16295#include <$ac_header>
16296_ACEOF
16297rm -f conftest.$ac_objext
16298if { (ac_try="$ac_compile"
16299case "(($ac_try" in
16300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16301 *) ac_try_echo=$ac_try;;
16302esac
16303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16304 (eval "$ac_compile") 2>conftest.er1
16305 ac_status=$?
16306 grep -v '^ *+' conftest.er1 >conftest.err
16307 rm -f conftest.er1
16308 cat conftest.err >&5
16309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16310 (exit $ac_status); } &&
16311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16312 { (case "(($ac_try" in
16313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16314 *) ac_try_echo=$ac_try;;
16315esac
16316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16317 (eval "$ac_try") 2>&5
16318 ac_status=$?
16319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16320 (exit $ac_status); }; } &&
16321 { ac_try='test -s conftest.$ac_objext'
16322 { (case "(($ac_try" in
16323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16324 *) ac_try_echo=$ac_try;;
16325esac
16326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16327 (eval "$ac_try") 2>&5
16328 ac_status=$?
16329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16330 (exit $ac_status); }; }; then
16331 ac_header_compiler=yes
16332else
16333 echo "$as_me: failed program was:" >&5
16334sed 's/^/| /' conftest.$ac_ext >&5
16335
16336 ac_header_compiler=no
16337fi
16338
16339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16340{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16341echo "${ECHO_T}$ac_header_compiler" >&6; }
16342
16343# Is the header present?
16344{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16345echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16346cat >conftest.$ac_ext <<_ACEOF
16347/* confdefs.h. */
16348_ACEOF
16349cat confdefs.h >>conftest.$ac_ext
16350cat >>conftest.$ac_ext <<_ACEOF
16351/* end confdefs.h. */
16352#include <$ac_header>
16353_ACEOF
16354if { (ac_try="$ac_cpp conftest.$ac_ext"
16355case "(($ac_try" in
16356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16357 *) ac_try_echo=$ac_try;;
16358esac
16359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16360 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16361 ac_status=$?
16362 grep -v '^ *+' conftest.er1 >conftest.err
16363 rm -f conftest.er1
16364 cat conftest.err >&5
16365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16366 (exit $ac_status); } >/dev/null; then
16367 if test -s conftest.err; then
16368 ac_cpp_err=$ac_c_preproc_warn_flag
16369 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16370 else
16371 ac_cpp_err=
16372 fi
16373else
16374 ac_cpp_err=yes
16375fi
16376if test -z "$ac_cpp_err"; then
16377 ac_header_preproc=yes
16378else
16379 echo "$as_me: failed program was:" >&5
16380sed 's/^/| /' conftest.$ac_ext >&5
16381
16382 ac_header_preproc=no
16383fi
16384
16385rm -f conftest.err conftest.$ac_ext
16386{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16387echo "${ECHO_T}$ac_header_preproc" >&6; }
16388
16389# So? What about this header?
16390case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16391 yes:no: )
16392 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16393echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16395echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16396 ac_header_preproc=yes
16397 ;;
16398 no:yes:* )
16399 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16400echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16401 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16402echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16403 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16404echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16405 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16406echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16408echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16409 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16410echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16411 ( cat <<\_ASBOX
16412## ----------------------------------- ##
16413## Report this to llvmbugs@cs.uiuc.edu ##
16414## ----------------------------------- ##
16415_ASBOX
16416 ) | sed "s/^/$as_me: WARNING: /" >&2
16417 ;;
16418esac
16419{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16420echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16421if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16422 echo $ECHO_N "(cached) $ECHO_C" >&6
16423else
16424 eval "$as_ac_Header=\$ac_header_preproc"
16425fi
16426ac_res=`eval echo '${'$as_ac_Header'}'`
16427 { echo "$as_me:$LINENO: result: $ac_res" >&5
16428echo "${ECHO_T}$ac_res" >&6; }
16429
16430fi
16431if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016432 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016433#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000016434_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000016435
16436fi
John Criswell7ed43ad2004-07-19 16:12:29 +000016437
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016438done
16439
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016440
16441
16442
16443
Douglas Gregor01746742009-05-11 18:05:52 +000016444for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016445do
16446as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16447if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16448 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16449echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16450if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16451 echo $ECHO_N "(cached) $ECHO_C" >&6
16452fi
16453ac_res=`eval echo '${'$as_ac_Header'}'`
16454 { echo "$as_me:$LINENO: result: $ac_res" >&5
16455echo "${ECHO_T}$ac_res" >&6; }
16456else
16457 # Is the header compilable?
16458{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16459echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16460cat >conftest.$ac_ext <<_ACEOF
16461/* confdefs.h. */
16462_ACEOF
16463cat confdefs.h >>conftest.$ac_ext
16464cat >>conftest.$ac_ext <<_ACEOF
16465/* end confdefs.h. */
16466$ac_includes_default
16467#include <$ac_header>
16468_ACEOF
16469rm -f conftest.$ac_objext
16470if { (ac_try="$ac_compile"
16471case "(($ac_try" in
16472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16473 *) ac_try_echo=$ac_try;;
16474esac
16475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16476 (eval "$ac_compile") 2>conftest.er1
16477 ac_status=$?
16478 grep -v '^ *+' conftest.er1 >conftest.err
16479 rm -f conftest.er1
16480 cat conftest.err >&5
16481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16482 (exit $ac_status); } &&
16483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16484 { (case "(($ac_try" in
16485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16486 *) ac_try_echo=$ac_try;;
16487esac
16488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16489 (eval "$ac_try") 2>&5
16490 ac_status=$?
16491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492 (exit $ac_status); }; } &&
16493 { ac_try='test -s conftest.$ac_objext'
16494 { (case "(($ac_try" in
16495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16496 *) ac_try_echo=$ac_try;;
16497esac
16498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16499 (eval "$ac_try") 2>&5
16500 ac_status=$?
16501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16502 (exit $ac_status); }; }; then
16503 ac_header_compiler=yes
16504else
16505 echo "$as_me: failed program was:" >&5
16506sed 's/^/| /' conftest.$ac_ext >&5
16507
16508 ac_header_compiler=no
16509fi
16510
16511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16512{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16513echo "${ECHO_T}$ac_header_compiler" >&6; }
16514
16515# Is the header present?
16516{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16517echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16518cat >conftest.$ac_ext <<_ACEOF
16519/* confdefs.h. */
16520_ACEOF
16521cat confdefs.h >>conftest.$ac_ext
16522cat >>conftest.$ac_ext <<_ACEOF
16523/* end confdefs.h. */
16524#include <$ac_header>
16525_ACEOF
16526if { (ac_try="$ac_cpp conftest.$ac_ext"
16527case "(($ac_try" in
16528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16529 *) ac_try_echo=$ac_try;;
16530esac
16531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16533 ac_status=$?
16534 grep -v '^ *+' conftest.er1 >conftest.err
16535 rm -f conftest.er1
16536 cat conftest.err >&5
16537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16538 (exit $ac_status); } >/dev/null; then
16539 if test -s conftest.err; then
16540 ac_cpp_err=$ac_c_preproc_warn_flag
16541 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16542 else
16543 ac_cpp_err=
16544 fi
16545else
16546 ac_cpp_err=yes
16547fi
16548if test -z "$ac_cpp_err"; then
16549 ac_header_preproc=yes
16550else
16551 echo "$as_me: failed program was:" >&5
16552sed 's/^/| /' conftest.$ac_ext >&5
16553
16554 ac_header_preproc=no
16555fi
16556
16557rm -f conftest.err conftest.$ac_ext
16558{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16559echo "${ECHO_T}$ac_header_preproc" >&6; }
16560
16561# So? What about this header?
16562case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16563 yes:no: )
16564 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16565echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16567echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16568 ac_header_preproc=yes
16569 ;;
16570 no:yes:* )
16571 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16572echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16573 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16574echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16575 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16576echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16577 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16578echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16580echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16581 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16582echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16583 ( cat <<\_ASBOX
16584## ----------------------------------- ##
16585## Report this to llvmbugs@cs.uiuc.edu ##
16586## ----------------------------------- ##
16587_ASBOX
16588 ) | sed "s/^/$as_me: WARNING: /" >&2
16589 ;;
16590esac
16591{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16592echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16593if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16594 echo $ECHO_N "(cached) $ECHO_C" >&6
16595else
16596 eval "$as_ac_Header=\$ac_header_preproc"
16597fi
16598ac_res=`eval echo '${'$as_ac_Header'}'`
16599 { echo "$as_me:$LINENO: result: $ac_res" >&5
16600echo "${ECHO_T}$ac_res" >&6; }
16601
16602fi
16603if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000016604 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016605#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000016606_ACEOF
16607
16608fi
16609
16610done
16611
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000016612
16613for ac_header in valgrind/valgrind.h
16614do
16615as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16616if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16617 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16618echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16619if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16620 echo $ECHO_N "(cached) $ECHO_C" >&6
16621fi
16622ac_res=`eval echo '${'$as_ac_Header'}'`
16623 { echo "$as_me:$LINENO: result: $ac_res" >&5
16624echo "${ECHO_T}$ac_res" >&6; }
16625else
16626 # Is the header compilable?
16627{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16628echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16629cat >conftest.$ac_ext <<_ACEOF
16630/* confdefs.h. */
16631_ACEOF
16632cat confdefs.h >>conftest.$ac_ext
16633cat >>conftest.$ac_ext <<_ACEOF
16634/* end confdefs.h. */
16635$ac_includes_default
16636#include <$ac_header>
16637_ACEOF
16638rm -f conftest.$ac_objext
16639if { (ac_try="$ac_compile"
16640case "(($ac_try" in
16641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16642 *) ac_try_echo=$ac_try;;
16643esac
16644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16645 (eval "$ac_compile") 2>conftest.er1
16646 ac_status=$?
16647 grep -v '^ *+' conftest.er1 >conftest.err
16648 rm -f conftest.er1
16649 cat conftest.err >&5
16650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16651 (exit $ac_status); } &&
16652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16653 { (case "(($ac_try" in
16654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16655 *) ac_try_echo=$ac_try;;
16656esac
16657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16658 (eval "$ac_try") 2>&5
16659 ac_status=$?
16660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661 (exit $ac_status); }; } &&
16662 { ac_try='test -s conftest.$ac_objext'
16663 { (case "(($ac_try" in
16664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16665 *) ac_try_echo=$ac_try;;
16666esac
16667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16668 (eval "$ac_try") 2>&5
16669 ac_status=$?
16670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671 (exit $ac_status); }; }; then
16672 ac_header_compiler=yes
16673else
16674 echo "$as_me: failed program was:" >&5
16675sed 's/^/| /' conftest.$ac_ext >&5
16676
16677 ac_header_compiler=no
16678fi
16679
16680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16681{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16682echo "${ECHO_T}$ac_header_compiler" >&6; }
16683
16684# Is the header present?
16685{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16686echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16687cat >conftest.$ac_ext <<_ACEOF
16688/* confdefs.h. */
16689_ACEOF
16690cat confdefs.h >>conftest.$ac_ext
16691cat >>conftest.$ac_ext <<_ACEOF
16692/* end confdefs.h. */
16693#include <$ac_header>
16694_ACEOF
16695if { (ac_try="$ac_cpp conftest.$ac_ext"
16696case "(($ac_try" in
16697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16698 *) ac_try_echo=$ac_try;;
16699esac
16700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16702 ac_status=$?
16703 grep -v '^ *+' conftest.er1 >conftest.err
16704 rm -f conftest.er1
16705 cat conftest.err >&5
16706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707 (exit $ac_status); } >/dev/null; then
16708 if test -s conftest.err; then
16709 ac_cpp_err=$ac_c_preproc_warn_flag
16710 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16711 else
16712 ac_cpp_err=
16713 fi
16714else
16715 ac_cpp_err=yes
16716fi
16717if test -z "$ac_cpp_err"; then
16718 ac_header_preproc=yes
16719else
16720 echo "$as_me: failed program was:" >&5
16721sed 's/^/| /' conftest.$ac_ext >&5
16722
16723 ac_header_preproc=no
16724fi
16725
16726rm -f conftest.err conftest.$ac_ext
16727{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16728echo "${ECHO_T}$ac_header_preproc" >&6; }
16729
16730# So? What about this header?
16731case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16732 yes:no: )
16733 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16734echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16736echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16737 ac_header_preproc=yes
16738 ;;
16739 no:yes:* )
16740 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16741echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16742 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16743echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16744 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16745echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16746 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16747echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16749echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16750 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16751echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16752 ( cat <<\_ASBOX
16753## ----------------------------------- ##
16754## Report this to llvmbugs@cs.uiuc.edu ##
16755## ----------------------------------- ##
16756_ASBOX
16757 ) | sed "s/^/$as_me: WARNING: /" >&2
16758 ;;
16759esac
16760{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16761echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16762if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16763 echo $ECHO_N "(cached) $ECHO_C" >&6
16764else
16765 eval "$as_ac_Header=\$ac_header_preproc"
16766fi
16767ac_res=`eval echo '${'$as_ac_Header'}'`
16768 { echo "$as_me:$LINENO: result: $ac_res" >&5
16769echo "${ECHO_T}$ac_res" >&6; }
16770
16771fi
16772if test `eval echo '${'$as_ac_Header'}'` = yes; then
16773 cat >>confdefs.h <<_ACEOF
16774#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16775_ACEOF
16776
16777fi
16778
16779done
16780
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000016781
16782for ac_header in fenv.h
16783do
16784as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16785if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16786 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16787echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16788if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16789 echo $ECHO_N "(cached) $ECHO_C" >&6
16790fi
16791ac_res=`eval echo '${'$as_ac_Header'}'`
16792 { echo "$as_me:$LINENO: result: $ac_res" >&5
16793echo "${ECHO_T}$ac_res" >&6; }
16794else
16795 # Is the header compilable?
16796{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16797echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16798cat >conftest.$ac_ext <<_ACEOF
16799/* confdefs.h. */
16800_ACEOF
16801cat confdefs.h >>conftest.$ac_ext
16802cat >>conftest.$ac_ext <<_ACEOF
16803/* end confdefs.h. */
16804$ac_includes_default
16805#include <$ac_header>
16806_ACEOF
16807rm -f conftest.$ac_objext
16808if { (ac_try="$ac_compile"
16809case "(($ac_try" in
16810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16811 *) ac_try_echo=$ac_try;;
16812esac
16813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16814 (eval "$ac_compile") 2>conftest.er1
16815 ac_status=$?
16816 grep -v '^ *+' conftest.er1 >conftest.err
16817 rm -f conftest.er1
16818 cat conftest.err >&5
16819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820 (exit $ac_status); } &&
16821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16822 { (case "(($ac_try" in
16823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16824 *) ac_try_echo=$ac_try;;
16825esac
16826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16827 (eval "$ac_try") 2>&5
16828 ac_status=$?
16829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16830 (exit $ac_status); }; } &&
16831 { ac_try='test -s conftest.$ac_objext'
16832 { (case "(($ac_try" in
16833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16834 *) ac_try_echo=$ac_try;;
16835esac
16836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16837 (eval "$ac_try") 2>&5
16838 ac_status=$?
16839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840 (exit $ac_status); }; }; then
16841 ac_header_compiler=yes
16842else
16843 echo "$as_me: failed program was:" >&5
16844sed 's/^/| /' conftest.$ac_ext >&5
16845
16846 ac_header_compiler=no
16847fi
16848
16849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16850{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16851echo "${ECHO_T}$ac_header_compiler" >&6; }
16852
16853# Is the header present?
16854{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16855echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16856cat >conftest.$ac_ext <<_ACEOF
16857/* confdefs.h. */
16858_ACEOF
16859cat confdefs.h >>conftest.$ac_ext
16860cat >>conftest.$ac_ext <<_ACEOF
16861/* end confdefs.h. */
16862#include <$ac_header>
16863_ACEOF
16864if { (ac_try="$ac_cpp conftest.$ac_ext"
16865case "(($ac_try" in
16866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16867 *) ac_try_echo=$ac_try;;
16868esac
16869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16870 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16871 ac_status=$?
16872 grep -v '^ *+' conftest.er1 >conftest.err
16873 rm -f conftest.er1
16874 cat conftest.err >&5
16875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876 (exit $ac_status); } >/dev/null; then
16877 if test -s conftest.err; then
16878 ac_cpp_err=$ac_c_preproc_warn_flag
16879 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16880 else
16881 ac_cpp_err=
16882 fi
16883else
16884 ac_cpp_err=yes
16885fi
16886if test -z "$ac_cpp_err"; then
16887 ac_header_preproc=yes
16888else
16889 echo "$as_me: failed program was:" >&5
16890sed 's/^/| /' conftest.$ac_ext >&5
16891
16892 ac_header_preproc=no
16893fi
16894
16895rm -f conftest.err conftest.$ac_ext
16896{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16897echo "${ECHO_T}$ac_header_preproc" >&6; }
16898
16899# So? What about this header?
16900case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16901 yes:no: )
16902 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16903echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16905echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16906 ac_header_preproc=yes
16907 ;;
16908 no:yes:* )
16909 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16910echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16911 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16912echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16913 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16914echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16915 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16916echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16917 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16918echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16919 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16920echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16921 ( cat <<\_ASBOX
16922## ----------------------------------- ##
16923## Report this to llvmbugs@cs.uiuc.edu ##
16924## ----------------------------------- ##
16925_ASBOX
16926 ) | sed "s/^/$as_me: WARNING: /" >&2
16927 ;;
16928esac
16929{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16930echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16931if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16932 echo $ECHO_N "(cached) $ECHO_C" >&6
16933else
16934 eval "$as_ac_Header=\$ac_header_preproc"
16935fi
16936ac_res=`eval echo '${'$as_ac_Header'}'`
16937 { echo "$as_me:$LINENO: result: $ac_res" >&5
16938echo "${ECHO_T}$ac_res" >&6; }
16939
16940fi
16941if test `eval echo '${'$as_ac_Header'}'` = yes; then
16942 cat >>confdefs.h <<_ACEOF
16943#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16944_ACEOF
16945
16946fi
16947
16948done
16949
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000016950if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016951
16952for ac_header in pthread.h
16953do
16954as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16955if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16956 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16957echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16958if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16959 echo $ECHO_N "(cached) $ECHO_C" >&6
16960fi
16961ac_res=`eval echo '${'$as_ac_Header'}'`
16962 { echo "$as_me:$LINENO: result: $ac_res" >&5
16963echo "${ECHO_T}$ac_res" >&6; }
16964else
16965 # Is the header compilable?
16966{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16967echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16968cat >conftest.$ac_ext <<_ACEOF
16969/* confdefs.h. */
16970_ACEOF
16971cat confdefs.h >>conftest.$ac_ext
16972cat >>conftest.$ac_ext <<_ACEOF
16973/* end confdefs.h. */
16974$ac_includes_default
16975#include <$ac_header>
16976_ACEOF
16977rm -f conftest.$ac_objext
16978if { (ac_try="$ac_compile"
16979case "(($ac_try" in
16980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16981 *) ac_try_echo=$ac_try;;
16982esac
16983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16984 (eval "$ac_compile") 2>conftest.er1
16985 ac_status=$?
16986 grep -v '^ *+' conftest.er1 >conftest.err
16987 rm -f conftest.er1
16988 cat conftest.err >&5
16989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990 (exit $ac_status); } &&
16991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16992 { (case "(($ac_try" in
16993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16994 *) ac_try_echo=$ac_try;;
16995esac
16996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16997 (eval "$ac_try") 2>&5
16998 ac_status=$?
16999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17000 (exit $ac_status); }; } &&
17001 { ac_try='test -s conftest.$ac_objext'
17002 { (case "(($ac_try" in
17003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17004 *) ac_try_echo=$ac_try;;
17005esac
17006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17007 (eval "$ac_try") 2>&5
17008 ac_status=$?
17009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17010 (exit $ac_status); }; }; then
17011 ac_header_compiler=yes
17012else
17013 echo "$as_me: failed program was:" >&5
17014sed 's/^/| /' conftest.$ac_ext >&5
17015
17016 ac_header_compiler=no
17017fi
17018
17019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17020{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17021echo "${ECHO_T}$ac_header_compiler" >&6; }
17022
17023# Is the header present?
17024{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17025echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17026cat >conftest.$ac_ext <<_ACEOF
17027/* confdefs.h. */
17028_ACEOF
17029cat confdefs.h >>conftest.$ac_ext
17030cat >>conftest.$ac_ext <<_ACEOF
17031/* end confdefs.h. */
17032#include <$ac_header>
17033_ACEOF
17034if { (ac_try="$ac_cpp conftest.$ac_ext"
17035case "(($ac_try" in
17036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17037 *) ac_try_echo=$ac_try;;
17038esac
17039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17040 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17041 ac_status=$?
17042 grep -v '^ *+' conftest.er1 >conftest.err
17043 rm -f conftest.er1
17044 cat conftest.err >&5
17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); } >/dev/null; then
17047 if test -s conftest.err; then
17048 ac_cpp_err=$ac_c_preproc_warn_flag
17049 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17050 else
17051 ac_cpp_err=
17052 fi
17053else
17054 ac_cpp_err=yes
17055fi
17056if test -z "$ac_cpp_err"; then
17057 ac_header_preproc=yes
17058else
17059 echo "$as_me: failed program was:" >&5
17060sed 's/^/| /' conftest.$ac_ext >&5
17061
17062 ac_header_preproc=no
17063fi
17064
17065rm -f conftest.err conftest.$ac_ext
17066{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17067echo "${ECHO_T}$ac_header_preproc" >&6; }
17068
17069# So? What about this header?
17070case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17071 yes:no: )
17072 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17073echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17075echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17076 ac_header_preproc=yes
17077 ;;
17078 no:yes:* )
17079 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17080echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17081 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17082echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17083 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17084echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17085 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17086echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17088echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17089 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17090echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17091 ( cat <<\_ASBOX
17092## ----------------------------------- ##
17093## Report this to llvmbugs@cs.uiuc.edu ##
17094## ----------------------------------- ##
17095_ASBOX
17096 ) | sed "s/^/$as_me: WARNING: /" >&2
17097 ;;
17098esac
17099{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17100echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17101if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17102 echo $ECHO_N "(cached) $ECHO_C" >&6
17103else
17104 eval "$as_ac_Header=\$ac_header_preproc"
17105fi
17106ac_res=`eval echo '${'$as_ac_Header'}'`
17107 { echo "$as_me:$LINENO: result: $ac_res" >&5
17108echo "${ECHO_T}$ac_res" >&6; }
17109
17110fi
17111if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000017112 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017113#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000017114_ACEOF
17115 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000017116
17117else
17118 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000017119
17120fi
17121
Reid Spencerbe3e4192007-08-17 05:45:26 +000017122done
Reid Spencer1000b732006-12-01 00:37:14 +000017123
17124else
17125 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000017126
17127fi
Reid Spencer8085cff2005-01-16 02:58:39 +000017128
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000017129if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017130
17131
17132for ac_header in ffi.h ffi/ffi.h
17133do
17134as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17135if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17136 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17137echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17138if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17139 echo $ECHO_N "(cached) $ECHO_C" >&6
17140fi
17141ac_res=`eval echo '${'$as_ac_Header'}'`
17142 { echo "$as_me:$LINENO: result: $ac_res" >&5
17143echo "${ECHO_T}$ac_res" >&6; }
17144else
17145 # Is the header compilable?
17146{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17147echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17148cat >conftest.$ac_ext <<_ACEOF
17149/* confdefs.h. */
17150_ACEOF
17151cat confdefs.h >>conftest.$ac_ext
17152cat >>conftest.$ac_ext <<_ACEOF
17153/* end confdefs.h. */
17154$ac_includes_default
17155#include <$ac_header>
17156_ACEOF
17157rm -f conftest.$ac_objext
17158if { (ac_try="$ac_compile"
17159case "(($ac_try" in
17160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17161 *) ac_try_echo=$ac_try;;
17162esac
17163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17164 (eval "$ac_compile") 2>conftest.er1
17165 ac_status=$?
17166 grep -v '^ *+' conftest.er1 >conftest.err
17167 rm -f conftest.er1
17168 cat conftest.err >&5
17169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17170 (exit $ac_status); } &&
17171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17172 { (case "(($ac_try" in
17173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17174 *) ac_try_echo=$ac_try;;
17175esac
17176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17177 (eval "$ac_try") 2>&5
17178 ac_status=$?
17179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17180 (exit $ac_status); }; } &&
17181 { ac_try='test -s conftest.$ac_objext'
17182 { (case "(($ac_try" in
17183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17184 *) ac_try_echo=$ac_try;;
17185esac
17186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17187 (eval "$ac_try") 2>&5
17188 ac_status=$?
17189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190 (exit $ac_status); }; }; then
17191 ac_header_compiler=yes
17192else
17193 echo "$as_me: failed program was:" >&5
17194sed 's/^/| /' conftest.$ac_ext >&5
17195
17196 ac_header_compiler=no
17197fi
17198
17199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17200{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17201echo "${ECHO_T}$ac_header_compiler" >&6; }
17202
17203# Is the header present?
17204{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17205echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17206cat >conftest.$ac_ext <<_ACEOF
17207/* confdefs.h. */
17208_ACEOF
17209cat confdefs.h >>conftest.$ac_ext
17210cat >>conftest.$ac_ext <<_ACEOF
17211/* end confdefs.h. */
17212#include <$ac_header>
17213_ACEOF
17214if { (ac_try="$ac_cpp conftest.$ac_ext"
17215case "(($ac_try" in
17216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17217 *) ac_try_echo=$ac_try;;
17218esac
17219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17220 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17221 ac_status=$?
17222 grep -v '^ *+' conftest.er1 >conftest.err
17223 rm -f conftest.er1
17224 cat conftest.err >&5
17225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17226 (exit $ac_status); } >/dev/null; then
17227 if test -s conftest.err; then
17228 ac_cpp_err=$ac_c_preproc_warn_flag
17229 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17230 else
17231 ac_cpp_err=
17232 fi
17233else
17234 ac_cpp_err=yes
17235fi
17236if test -z "$ac_cpp_err"; then
17237 ac_header_preproc=yes
17238else
17239 echo "$as_me: failed program was:" >&5
17240sed 's/^/| /' conftest.$ac_ext >&5
17241
17242 ac_header_preproc=no
17243fi
17244
17245rm -f conftest.err conftest.$ac_ext
17246{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17247echo "${ECHO_T}$ac_header_preproc" >&6; }
17248
17249# So? What about this header?
17250case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17251 yes:no: )
17252 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17253echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17255echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17256 ac_header_preproc=yes
17257 ;;
17258 no:yes:* )
17259 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17260echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17261 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17262echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17263 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17264echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17265 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17266echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17268echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17269 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17270echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17271 ( cat <<\_ASBOX
17272## ----------------------------------- ##
17273## Report this to llvmbugs@cs.uiuc.edu ##
17274## ----------------------------------- ##
17275_ASBOX
17276 ) | sed "s/^/$as_me: WARNING: /" >&2
17277 ;;
17278esac
17279{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17280echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17281if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17282 echo $ECHO_N "(cached) $ECHO_C" >&6
17283else
17284 eval "$as_ac_Header=\$ac_header_preproc"
17285fi
17286ac_res=`eval echo '${'$as_ac_Header'}'`
17287 { echo "$as_me:$LINENO: result: $ac_res" >&5
17288echo "${ECHO_T}$ac_res" >&6; }
17289
17290fi
17291if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017292 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017293#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017294_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017295
17296fi
17297
17298done
17299
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000017300fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017301
Nick Lewycky2ab1d862009-01-20 00:52:24 +000017302
Eric Christopher654dee42010-06-22 21:01:04 +000017303for ac_header in CrashReporterClient.h
17304do
17305as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17306if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17307 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17308echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17309if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17310 echo $ECHO_N "(cached) $ECHO_C" >&6
17311fi
17312ac_res=`eval echo '${'$as_ac_Header'}'`
17313 { echo "$as_me:$LINENO: result: $ac_res" >&5
17314echo "${ECHO_T}$ac_res" >&6; }
17315else
17316 # Is the header compilable?
17317{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17318echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17319cat >conftest.$ac_ext <<_ACEOF
17320/* confdefs.h. */
17321_ACEOF
17322cat confdefs.h >>conftest.$ac_ext
17323cat >>conftest.$ac_ext <<_ACEOF
17324/* end confdefs.h. */
17325$ac_includes_default
17326#include <$ac_header>
17327_ACEOF
17328rm -f conftest.$ac_objext
17329if { (ac_try="$ac_compile"
17330case "(($ac_try" in
17331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17332 *) ac_try_echo=$ac_try;;
17333esac
17334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17335 (eval "$ac_compile") 2>conftest.er1
17336 ac_status=$?
17337 grep -v '^ *+' conftest.er1 >conftest.err
17338 rm -f conftest.er1
17339 cat conftest.err >&5
17340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17341 (exit $ac_status); } &&
17342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17343 { (case "(($ac_try" in
17344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17345 *) ac_try_echo=$ac_try;;
17346esac
17347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17348 (eval "$ac_try") 2>&5
17349 ac_status=$?
17350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17351 (exit $ac_status); }; } &&
17352 { ac_try='test -s conftest.$ac_objext'
17353 { (case "(($ac_try" in
17354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17355 *) ac_try_echo=$ac_try;;
17356esac
17357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17358 (eval "$ac_try") 2>&5
17359 ac_status=$?
17360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361 (exit $ac_status); }; }; then
17362 ac_header_compiler=yes
17363else
17364 echo "$as_me: failed program was:" >&5
17365sed 's/^/| /' conftest.$ac_ext >&5
17366
17367 ac_header_compiler=no
17368fi
17369
17370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17371{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17372echo "${ECHO_T}$ac_header_compiler" >&6; }
17373
17374# Is the header present?
17375{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17376echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17377cat >conftest.$ac_ext <<_ACEOF
17378/* confdefs.h. */
17379_ACEOF
17380cat confdefs.h >>conftest.$ac_ext
17381cat >>conftest.$ac_ext <<_ACEOF
17382/* end confdefs.h. */
17383#include <$ac_header>
17384_ACEOF
17385if { (ac_try="$ac_cpp conftest.$ac_ext"
17386case "(($ac_try" in
17387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17388 *) ac_try_echo=$ac_try;;
17389esac
17390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17391 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17392 ac_status=$?
17393 grep -v '^ *+' conftest.er1 >conftest.err
17394 rm -f conftest.er1
17395 cat conftest.err >&5
17396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17397 (exit $ac_status); } >/dev/null; then
17398 if test -s conftest.err; then
17399 ac_cpp_err=$ac_c_preproc_warn_flag
17400 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17401 else
17402 ac_cpp_err=
17403 fi
17404else
17405 ac_cpp_err=yes
17406fi
17407if test -z "$ac_cpp_err"; then
17408 ac_header_preproc=yes
17409else
17410 echo "$as_me: failed program was:" >&5
17411sed 's/^/| /' conftest.$ac_ext >&5
17412
17413 ac_header_preproc=no
17414fi
17415
17416rm -f conftest.err conftest.$ac_ext
17417{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17418echo "${ECHO_T}$ac_header_preproc" >&6; }
17419
17420# So? What about this header?
17421case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17422 yes:no: )
17423 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17424echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17425 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17426echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17427 ac_header_preproc=yes
17428 ;;
17429 no:yes:* )
17430 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17431echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17432 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17433echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17434 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17435echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17436 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17437echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17439echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17440 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17441echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17442 ( cat <<\_ASBOX
17443## ----------------------------------- ##
17444## Report this to llvmbugs@cs.uiuc.edu ##
17445## ----------------------------------- ##
17446_ASBOX
17447 ) | sed "s/^/$as_me: WARNING: /" >&2
17448 ;;
17449esac
17450{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17451echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17452if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17453 echo $ECHO_N "(cached) $ECHO_C" >&6
17454else
17455 eval "$as_ac_Header=\$ac_header_preproc"
17456fi
17457ac_res=`eval echo '${'$as_ac_Header'}'`
17458 { echo "$as_me:$LINENO: result: $ac_res" >&5
17459echo "${ECHO_T}$ac_res" >&6; }
17460
17461fi
17462if test `eval echo '${'$as_ac_Header'}'` = yes; then
17463 cat >>confdefs.h <<_ACEOF
17464#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17465_ACEOF
17466
17467fi
17468
17469done
17470
17471
Eric Christopher51e57132010-12-07 02:05:42 +000017472{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17473echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000017474cat >conftest.$ac_ext <<_ACEOF
17475/* confdefs.h. */
17476_ACEOF
17477cat confdefs.h >>conftest.$ac_ext
17478cat >>conftest.$ac_ext <<_ACEOF
17479/* end confdefs.h. */
Eric Christopher51e57132010-12-07 02:05:42 +000017480extern const char *__crashreporter_info__;
17481 int main() {
17482 __crashreporter_info__ = "test";
17483 return 0;
17484 }
Eric Christopher481d4022010-12-03 07:45:22 +000017485
Eric Christopher481d4022010-12-03 07:45:22 +000017486_ACEOF
17487rm -f conftest.$ac_objext conftest$ac_exeext
17488if { (ac_try="$ac_link"
17489case "(($ac_try" in
17490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17491 *) ac_try_echo=$ac_try;;
17492esac
17493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17494 (eval "$ac_link") 2>conftest.er1
17495 ac_status=$?
17496 grep -v '^ *+' conftest.er1 >conftest.err
17497 rm -f conftest.er1
17498 cat conftest.err >&5
17499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500 (exit $ac_status); } &&
17501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17502 { (case "(($ac_try" in
17503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17504 *) ac_try_echo=$ac_try;;
17505esac
17506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17507 (eval "$ac_try") 2>&5
17508 ac_status=$?
17509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510 (exit $ac_status); }; } &&
17511 { ac_try='test -s conftest$ac_exeext'
17512 { (case "(($ac_try" in
17513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17514 *) ac_try_echo=$ac_try;;
17515esac
17516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17517 (eval "$ac_try") 2>&5
17518 ac_status=$?
17519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520 (exit $ac_status); }; }; then
Eric Christopher51e57132010-12-07 02:05:42 +000017521 { echo "$as_me:$LINENO: result: yes" >&5
17522echo "${ECHO_T}yes" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000017523
17524cat >>confdefs.h <<\_ACEOF
17525#define HAVE_CRASHREPORTER_INFO 1
17526_ACEOF
17527
Eric Christopher51e57132010-12-07 02:05:42 +000017528else
17529 echo "$as_me: failed program was:" >&5
17530sed 's/^/| /' conftest.$ac_ext >&5
17531
17532 { echo "$as_me:$LINENO: result: no" >&5
17533echo "${ECHO_T}no" >&6; }
17534
17535cat >>confdefs.h <<\_ACEOF
17536#define HAVE_CRASHREPORTER_INFO 0
17537_ACEOF
17538
Eric Christopher481d4022010-12-03 07:45:22 +000017539fi
Eric Christopher654dee42010-06-22 21:01:04 +000017540
Eric Christopher51e57132010-12-07 02:05:42 +000017541rm -f core conftest.err conftest.$ac_objext \
17542 conftest$ac_exeext conftest.$ac_ext
17543
17544
Reid Spencer8085cff2005-01-16 02:58:39 +000017545
Torok Edwin871384f2010-01-26 08:50:50 +000017546
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017547 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17548echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17549if test "${ac_cv_huge_val_sanity+set}" = set; then
17550 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000017551else
17552
Reid Spencer6a7c0b72006-11-03 19:49:16 +000017553 ac_ext=cpp
17554ac_cpp='$CXXCPP $CPPFLAGS'
17555ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17556ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17557ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000017558
Eric Christopherc7718502010-03-02 05:06:54 +000017559 ac_save_CXXFLAGS=$CXXFLAGS
Reid Spencer6a7c0b72006-11-03 19:49:16 +000017560 CXXFLAGS=-pedantic
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017561 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000017562 ac_cv_huge_val_sanity=yes
17563else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017564 cat >conftest.$ac_ext <<_ACEOF
17565/* confdefs.h. */
17566_ACEOF
17567cat confdefs.h >>conftest.$ac_ext
17568cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000017569/* end confdefs.h. */
17570#include <math.h>
17571int
17572main ()
17573{
17574double x = HUGE_VAL; return x != x;
17575 ;
17576 return 0;
17577}
17578_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017579rm -f conftest$ac_exeext
17580if { (ac_try="$ac_link"
17581case "(($ac_try" in
17582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17583 *) ac_try_echo=$ac_try;;
17584esac
17585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17586 (eval "$ac_link") 2>&5
17587 ac_status=$?
17588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17589 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17590 { (case "(($ac_try" in
17591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17592 *) ac_try_echo=$ac_try;;
17593esac
17594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17595 (eval "$ac_try") 2>&5
17596 ac_status=$?
17597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000017599 ac_cv_huge_val_sanity=yes
17600else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017601 echo "$as_me: program exited with status $ac_status" >&5
17602echo "$as_me: failed program was:" >&5
17603sed 's/^/| /' conftest.$ac_ext >&5
17604
17605( exit $ac_status )
17606ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000017607fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017608rm -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 +000017609fi
17610
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017611
Eric Christopherc7718502010-03-02 05:06:54 +000017612 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000017613 ac_ext=c
17614ac_cpp='$CPP $CPPFLAGS'
17615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17617ac_compiler_gnu=$ac_cv_c_compiler_gnu
17618
17619
17620fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017621{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17622echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000017623 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17624
17625
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017626{ echo "$as_me:$LINENO: checking for pid_t" >&5
17627echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17628if test "${ac_cv_type_pid_t+set}" = set; then
17629 echo $ECHO_N "(cached) $ECHO_C" >&6
17630else
17631 cat >conftest.$ac_ext <<_ACEOF
17632/* confdefs.h. */
17633_ACEOF
17634cat confdefs.h >>conftest.$ac_ext
17635cat >>conftest.$ac_ext <<_ACEOF
17636/* end confdefs.h. */
17637$ac_includes_default
17638typedef pid_t ac__type_new_;
17639int
17640main ()
17641{
17642if ((ac__type_new_ *) 0)
17643 return 0;
17644if (sizeof (ac__type_new_))
17645 return 0;
17646 ;
17647 return 0;
17648}
17649_ACEOF
17650rm -f conftest.$ac_objext
17651if { (ac_try="$ac_compile"
17652case "(($ac_try" in
17653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17654 *) ac_try_echo=$ac_try;;
17655esac
17656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17657 (eval "$ac_compile") 2>conftest.er1
17658 ac_status=$?
17659 grep -v '^ *+' conftest.er1 >conftest.err
17660 rm -f conftest.er1
17661 cat conftest.err >&5
17662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663 (exit $ac_status); } &&
17664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17665 { (case "(($ac_try" in
17666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17667 *) ac_try_echo=$ac_try;;
17668esac
17669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17670 (eval "$ac_try") 2>&5
17671 ac_status=$?
17672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673 (exit $ac_status); }; } &&
17674 { ac_try='test -s conftest.$ac_objext'
17675 { (case "(($ac_try" in
17676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17677 *) ac_try_echo=$ac_try;;
17678esac
17679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17680 (eval "$ac_try") 2>&5
17681 ac_status=$?
17682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683 (exit $ac_status); }; }; then
17684 ac_cv_type_pid_t=yes
17685else
17686 echo "$as_me: failed program was:" >&5
17687sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017688
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017689 ac_cv_type_pid_t=no
17690fi
17691
17692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17693fi
17694{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17695echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17696if test $ac_cv_type_pid_t = yes; then
17697 :
John Criswell7a73b802003-06-30 21:59:07 +000017698else
17699
17700cat >>confdefs.h <<_ACEOF
17701#define pid_t int
17702_ACEOF
17703
17704fi
17705
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017706{ echo "$as_me:$LINENO: checking for size_t" >&5
17707echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17708if test "${ac_cv_type_size_t+set}" = set; then
17709 echo $ECHO_N "(cached) $ECHO_C" >&6
17710else
17711 cat >conftest.$ac_ext <<_ACEOF
17712/* confdefs.h. */
17713_ACEOF
17714cat confdefs.h >>conftest.$ac_ext
17715cat >>conftest.$ac_ext <<_ACEOF
17716/* end confdefs.h. */
17717$ac_includes_default
17718typedef size_t ac__type_new_;
17719int
17720main ()
17721{
17722if ((ac__type_new_ *) 0)
17723 return 0;
17724if (sizeof (ac__type_new_))
17725 return 0;
17726 ;
17727 return 0;
17728}
17729_ACEOF
17730rm -f conftest.$ac_objext
17731if { (ac_try="$ac_compile"
17732case "(($ac_try" in
17733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17734 *) ac_try_echo=$ac_try;;
17735esac
17736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17737 (eval "$ac_compile") 2>conftest.er1
17738 ac_status=$?
17739 grep -v '^ *+' conftest.er1 >conftest.err
17740 rm -f conftest.er1
17741 cat conftest.err >&5
17742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17743 (exit $ac_status); } &&
17744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17745 { (case "(($ac_try" in
17746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17747 *) ac_try_echo=$ac_try;;
17748esac
17749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17750 (eval "$ac_try") 2>&5
17751 ac_status=$?
17752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753 (exit $ac_status); }; } &&
17754 { ac_try='test -s conftest.$ac_objext'
17755 { (case "(($ac_try" in
17756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17757 *) ac_try_echo=$ac_try;;
17758esac
17759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17760 (eval "$ac_try") 2>&5
17761 ac_status=$?
17762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763 (exit $ac_status); }; }; then
17764 ac_cv_type_size_t=yes
17765else
17766 echo "$as_me: failed program was:" >&5
17767sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017768
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017769 ac_cv_type_size_t=no
17770fi
17771
17772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17773fi
17774{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17775echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17776if test $ac_cv_type_size_t = yes; then
17777 :
John Criswell7a73b802003-06-30 21:59:07 +000017778else
17779
17780cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000017781#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000017782_ACEOF
17783
17784fi
17785
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017786
17787cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000017788#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017789_ACEOF
17790
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017791{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17792echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17793if test "${ac_cv_struct_tm+set}" = set; then
17794 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017795else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017796 cat >conftest.$ac_ext <<_ACEOF
17797/* confdefs.h. */
17798_ACEOF
17799cat confdefs.h >>conftest.$ac_ext
17800cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017801/* end confdefs.h. */
17802#include <sys/types.h>
17803#include <time.h>
17804
17805int
17806main ()
17807{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017808struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017809 ;
17810 return 0;
17811}
17812_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017813rm -f conftest.$ac_objext
17814if { (ac_try="$ac_compile"
17815case "(($ac_try" in
17816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17817 *) ac_try_echo=$ac_try;;
17818esac
17819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17820 (eval "$ac_compile") 2>conftest.er1
17821 ac_status=$?
17822 grep -v '^ *+' conftest.er1 >conftest.err
17823 rm -f conftest.er1
17824 cat conftest.err >&5
17825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17826 (exit $ac_status); } &&
17827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17828 { (case "(($ac_try" in
17829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17830 *) ac_try_echo=$ac_try;;
17831esac
17832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17833 (eval "$ac_try") 2>&5
17834 ac_status=$?
17835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836 (exit $ac_status); }; } &&
17837 { ac_try='test -s conftest.$ac_objext'
17838 { (case "(($ac_try" in
17839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17840 *) ac_try_echo=$ac_try;;
17841esac
17842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17843 (eval "$ac_try") 2>&5
17844 ac_status=$?
17845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017847 ac_cv_struct_tm=time.h
17848else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017849 echo "$as_me: failed program was:" >&5
17850sed 's/^/| /' conftest.$ac_ext >&5
17851
17852 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017853fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017854
Reid Spencera773bd52006-08-04 18:18:08 +000017855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017856fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017857{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17858echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017859if test $ac_cv_struct_tm = sys/time.h; then
17860
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017861cat >>confdefs.h <<\_ACEOF
17862#define TM_IN_SYS_TIME 1
17863_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017864
17865fi
17866
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017867{ echo "$as_me:$LINENO: checking for int64_t" >&5
17868echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17869if test "${ac_cv_type_int64_t+set}" = set; then
17870 echo $ECHO_N "(cached) $ECHO_C" >&6
17871else
17872 cat >conftest.$ac_ext <<_ACEOF
17873/* confdefs.h. */
17874_ACEOF
17875cat confdefs.h >>conftest.$ac_ext
17876cat >>conftest.$ac_ext <<_ACEOF
17877/* end confdefs.h. */
17878$ac_includes_default
17879typedef int64_t ac__type_new_;
17880int
17881main ()
17882{
17883if ((ac__type_new_ *) 0)
17884 return 0;
17885if (sizeof (ac__type_new_))
17886 return 0;
17887 ;
17888 return 0;
17889}
17890_ACEOF
17891rm -f conftest.$ac_objext
17892if { (ac_try="$ac_compile"
17893case "(($ac_try" in
17894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17895 *) ac_try_echo=$ac_try;;
17896esac
17897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17898 (eval "$ac_compile") 2>conftest.er1
17899 ac_status=$?
17900 grep -v '^ *+' conftest.er1 >conftest.err
17901 rm -f conftest.er1
17902 cat conftest.err >&5
17903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904 (exit $ac_status); } &&
17905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17906 { (case "(($ac_try" in
17907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17908 *) ac_try_echo=$ac_try;;
17909esac
17910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17911 (eval "$ac_try") 2>&5
17912 ac_status=$?
17913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914 (exit $ac_status); }; } &&
17915 { ac_try='test -s conftest.$ac_objext'
17916 { (case "(($ac_try" in
17917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17918 *) ac_try_echo=$ac_try;;
17919esac
17920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17921 (eval "$ac_try") 2>&5
17922 ac_status=$?
17923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17924 (exit $ac_status); }; }; then
17925 ac_cv_type_int64_t=yes
17926else
17927 echo "$as_me: failed program was:" >&5
17928sed 's/^/| /' conftest.$ac_ext >&5
17929
17930 ac_cv_type_int64_t=no
17931fi
17932
17933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17934fi
17935{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17936echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17937if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017938
17939cat >>confdefs.h <<_ACEOF
17940#define HAVE_INT64_T 1
17941_ACEOF
17942
17943
17944else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017945 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17946echo "$as_me: error: Type int64_t required but not found" >&2;}
17947 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000017948fi
17949
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017950{ echo "$as_me:$LINENO: checking for uint64_t" >&5
17951echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17952if test "${ac_cv_type_uint64_t+set}" = set; then
17953 echo $ECHO_N "(cached) $ECHO_C" >&6
17954else
17955 cat >conftest.$ac_ext <<_ACEOF
17956/* confdefs.h. */
17957_ACEOF
17958cat confdefs.h >>conftest.$ac_ext
17959cat >>conftest.$ac_ext <<_ACEOF
17960/* end confdefs.h. */
17961$ac_includes_default
17962typedef uint64_t ac__type_new_;
17963int
17964main ()
17965{
17966if ((ac__type_new_ *) 0)
17967 return 0;
17968if (sizeof (ac__type_new_))
17969 return 0;
17970 ;
17971 return 0;
17972}
17973_ACEOF
17974rm -f conftest.$ac_objext
17975if { (ac_try="$ac_compile"
17976case "(($ac_try" in
17977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17978 *) ac_try_echo=$ac_try;;
17979esac
17980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17981 (eval "$ac_compile") 2>conftest.er1
17982 ac_status=$?
17983 grep -v '^ *+' conftest.er1 >conftest.err
17984 rm -f conftest.er1
17985 cat conftest.err >&5
17986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987 (exit $ac_status); } &&
17988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17989 { (case "(($ac_try" in
17990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17991 *) ac_try_echo=$ac_try;;
17992esac
17993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17994 (eval "$ac_try") 2>&5
17995 ac_status=$?
17996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997 (exit $ac_status); }; } &&
17998 { ac_try='test -s conftest.$ac_objext'
17999 { (case "(($ac_try" in
18000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18001 *) ac_try_echo=$ac_try;;
18002esac
18003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18004 (eval "$ac_try") 2>&5
18005 ac_status=$?
18006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18007 (exit $ac_status); }; }; then
18008 ac_cv_type_uint64_t=yes
18009else
18010 echo "$as_me: failed program was:" >&5
18011sed 's/^/| /' conftest.$ac_ext >&5
18012
18013 ac_cv_type_uint64_t=no
18014fi
18015
18016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18017fi
18018{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
18019echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
18020if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000018021
18022cat >>confdefs.h <<_ACEOF
18023#define HAVE_UINT64_T 1
18024_ACEOF
18025
18026
18027else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018028 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
18029echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
18030if test "${ac_cv_type_u_int64_t+set}" = set; then
18031 echo $ECHO_N "(cached) $ECHO_C" >&6
18032else
18033 cat >conftest.$ac_ext <<_ACEOF
18034/* confdefs.h. */
18035_ACEOF
18036cat confdefs.h >>conftest.$ac_ext
18037cat >>conftest.$ac_ext <<_ACEOF
18038/* end confdefs.h. */
18039$ac_includes_default
18040typedef u_int64_t ac__type_new_;
18041int
18042main ()
18043{
18044if ((ac__type_new_ *) 0)
18045 return 0;
18046if (sizeof (ac__type_new_))
18047 return 0;
18048 ;
18049 return 0;
18050}
18051_ACEOF
18052rm -f conftest.$ac_objext
18053if { (ac_try="$ac_compile"
18054case "(($ac_try" in
18055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18056 *) ac_try_echo=$ac_try;;
18057esac
18058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18059 (eval "$ac_compile") 2>conftest.er1
18060 ac_status=$?
18061 grep -v '^ *+' conftest.er1 >conftest.err
18062 rm -f conftest.er1
18063 cat conftest.err >&5
18064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18065 (exit $ac_status); } &&
18066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18067 { (case "(($ac_try" in
18068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18069 *) ac_try_echo=$ac_try;;
18070esac
18071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18072 (eval "$ac_try") 2>&5
18073 ac_status=$?
18074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075 (exit $ac_status); }; } &&
18076 { ac_try='test -s conftest.$ac_objext'
18077 { (case "(($ac_try" in
18078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18079 *) ac_try_echo=$ac_try;;
18080esac
18081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18082 (eval "$ac_try") 2>&5
18083 ac_status=$?
18084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18085 (exit $ac_status); }; }; then
18086 ac_cv_type_u_int64_t=yes
18087else
18088 echo "$as_me: failed program was:" >&5
18089sed 's/^/| /' conftest.$ac_ext >&5
18090
18091 ac_cv_type_u_int64_t=no
18092fi
18093
18094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18095fi
18096{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
18097echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
18098if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000018099
18100cat >>confdefs.h <<_ACEOF
18101#define HAVE_U_INT64_T 1
18102_ACEOF
18103
18104
Misha Brukmanceca9042004-09-02 23:02:30 +000018105else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018106 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
18107echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
18108 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000018109fi
18110
John Criswell679ff312004-09-02 18:44:44 +000018111fi
18112
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018113
18114
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018115
18116
18117
18118
18119
18120
18121
Reid Spencerdf3be822006-01-23 08:15:53 +000018122for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018123do
18124as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18125{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18126echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18127if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18128 echo $ECHO_N "(cached) $ECHO_C" >&6
18129else
18130 cat >conftest.$ac_ext <<_ACEOF
18131/* confdefs.h. */
18132_ACEOF
18133cat confdefs.h >>conftest.$ac_ext
18134cat >>conftest.$ac_ext <<_ACEOF
18135/* end confdefs.h. */
18136/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18138#define $ac_func innocuous_$ac_func
18139
18140/* System header to define __stub macros and hopefully few prototypes,
18141 which can conflict with char $ac_func (); below.
18142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18143 <limits.h> exists even on freestanding compilers. */
18144
18145#ifdef __STDC__
18146# include <limits.h>
18147#else
18148# include <assert.h>
18149#endif
18150
18151#undef $ac_func
18152
18153/* Override any GCC internal prototype to avoid an error.
18154 Use char because int might match the return type of a GCC
18155 builtin and then its argument prototype would still apply. */
18156#ifdef __cplusplus
18157extern "C"
18158#endif
18159char $ac_func ();
18160/* The GNU C library defines this for functions which it implements
18161 to always fail with ENOSYS. Some functions are actually named
18162 something starting with __ and the normal name is an alias. */
18163#if defined __stub_$ac_func || defined __stub___$ac_func
18164choke me
18165#endif
18166
18167int
18168main ()
18169{
18170return $ac_func ();
18171 ;
18172 return 0;
18173}
18174_ACEOF
18175rm -f conftest.$ac_objext conftest$ac_exeext
18176if { (ac_try="$ac_link"
18177case "(($ac_try" in
18178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18179 *) ac_try_echo=$ac_try;;
18180esac
18181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18182 (eval "$ac_link") 2>conftest.er1
18183 ac_status=$?
18184 grep -v '^ *+' conftest.er1 >conftest.err
18185 rm -f conftest.er1
18186 cat conftest.err >&5
18187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18188 (exit $ac_status); } &&
18189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18190 { (case "(($ac_try" in
18191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18192 *) ac_try_echo=$ac_try;;
18193esac
18194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18195 (eval "$ac_try") 2>&5
18196 ac_status=$?
18197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18198 (exit $ac_status); }; } &&
18199 { ac_try='test -s conftest$ac_exeext'
18200 { (case "(($ac_try" in
18201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18202 *) ac_try_echo=$ac_try;;
18203esac
18204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18205 (eval "$ac_try") 2>&5
18206 ac_status=$?
18207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18208 (exit $ac_status); }; }; then
18209 eval "$as_ac_var=yes"
18210else
18211 echo "$as_me: failed program was:" >&5
18212sed 's/^/| /' conftest.$ac_ext >&5
18213
18214 eval "$as_ac_var=no"
18215fi
18216
18217rm -f core conftest.err conftest.$ac_objext \
18218 conftest$ac_exeext conftest.$ac_ext
18219fi
18220ac_res=`eval echo '${'$as_ac_var'}'`
18221 { echo "$as_me:$LINENO: result: $ac_res" >&5
18222echo "${ECHO_T}$ac_res" >&6; }
18223if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018224 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018225#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018226_ACEOF
18227
18228fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018229done
John Criswell7a73b802003-06-30 21:59:07 +000018230
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018231
18232
18233
18234
Reid Spencer96cf5872007-07-13 10:05:30 +000018235for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018236do
18237as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18238{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18239echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18240if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18241 echo $ECHO_N "(cached) $ECHO_C" >&6
18242else
18243 cat >conftest.$ac_ext <<_ACEOF
18244/* confdefs.h. */
18245_ACEOF
18246cat confdefs.h >>conftest.$ac_ext
18247cat >>conftest.$ac_ext <<_ACEOF
18248/* end confdefs.h. */
18249/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18250 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18251#define $ac_func innocuous_$ac_func
18252
18253/* System header to define __stub macros and hopefully few prototypes,
18254 which can conflict with char $ac_func (); below.
18255 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18256 <limits.h> exists even on freestanding compilers. */
18257
18258#ifdef __STDC__
18259# include <limits.h>
18260#else
18261# include <assert.h>
18262#endif
18263
18264#undef $ac_func
18265
18266/* Override any GCC internal prototype to avoid an error.
18267 Use char because int might match the return type of a GCC
18268 builtin and then its argument prototype would still apply. */
18269#ifdef __cplusplus
18270extern "C"
18271#endif
18272char $ac_func ();
18273/* The GNU C library defines this for functions which it implements
18274 to always fail with ENOSYS. Some functions are actually named
18275 something starting with __ and the normal name is an alias. */
18276#if defined __stub_$ac_func || defined __stub___$ac_func
18277choke me
18278#endif
18279
18280int
18281main ()
18282{
18283return $ac_func ();
18284 ;
18285 return 0;
18286}
18287_ACEOF
18288rm -f conftest.$ac_objext conftest$ac_exeext
18289if { (ac_try="$ac_link"
18290case "(($ac_try" in
18291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18292 *) ac_try_echo=$ac_try;;
18293esac
18294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18295 (eval "$ac_link") 2>conftest.er1
18296 ac_status=$?
18297 grep -v '^ *+' conftest.er1 >conftest.err
18298 rm -f conftest.er1
18299 cat conftest.err >&5
18300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18301 (exit $ac_status); } &&
18302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18303 { (case "(($ac_try" in
18304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18305 *) ac_try_echo=$ac_try;;
18306esac
18307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18308 (eval "$ac_try") 2>&5
18309 ac_status=$?
18310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18311 (exit $ac_status); }; } &&
18312 { ac_try='test -s conftest$ac_exeext'
18313 { (case "(($ac_try" in
18314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18315 *) ac_try_echo=$ac_try;;
18316esac
18317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18318 (eval "$ac_try") 2>&5
18319 ac_status=$?
18320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18321 (exit $ac_status); }; }; then
18322 eval "$as_ac_var=yes"
18323else
18324 echo "$as_me: failed program was:" >&5
18325sed 's/^/| /' conftest.$ac_ext >&5
18326
18327 eval "$as_ac_var=no"
18328fi
18329
18330rm -f core conftest.err conftest.$ac_objext \
18331 conftest$ac_exeext conftest.$ac_ext
18332fi
18333ac_res=`eval echo '${'$as_ac_var'}'`
18334 { echo "$as_me:$LINENO: result: $ac_res" >&5
18335echo "${ECHO_T}$ac_res" >&6; }
18336if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000018337 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018338#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000018339_ACEOF
18340
18341fi
18342done
18343
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018344
18345
18346
18347
18348
Reid Spencerb90645c2007-02-16 19:17:20 +000018349for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018350do
18351as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18352{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18353echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18354if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18355 echo $ECHO_N "(cached) $ECHO_C" >&6
18356else
18357 cat >conftest.$ac_ext <<_ACEOF
18358/* confdefs.h. */
18359_ACEOF
18360cat confdefs.h >>conftest.$ac_ext
18361cat >>conftest.$ac_ext <<_ACEOF
18362/* end confdefs.h. */
18363/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18364 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18365#define $ac_func innocuous_$ac_func
18366
18367/* System header to define __stub macros and hopefully few prototypes,
18368 which can conflict with char $ac_func (); below.
18369 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18370 <limits.h> exists even on freestanding compilers. */
18371
18372#ifdef __STDC__
18373# include <limits.h>
18374#else
18375# include <assert.h>
18376#endif
18377
18378#undef $ac_func
18379
18380/* Override any GCC internal prototype to avoid an error.
18381 Use char because int might match the return type of a GCC
18382 builtin and then its argument prototype would still apply. */
18383#ifdef __cplusplus
18384extern "C"
18385#endif
18386char $ac_func ();
18387/* The GNU C library defines this for functions which it implements
18388 to always fail with ENOSYS. Some functions are actually named
18389 something starting with __ and the normal name is an alias. */
18390#if defined __stub_$ac_func || defined __stub___$ac_func
18391choke me
18392#endif
18393
18394int
18395main ()
18396{
18397return $ac_func ();
18398 ;
18399 return 0;
18400}
18401_ACEOF
18402rm -f conftest.$ac_objext conftest$ac_exeext
18403if { (ac_try="$ac_link"
18404case "(($ac_try" in
18405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18406 *) ac_try_echo=$ac_try;;
18407esac
18408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18409 (eval "$ac_link") 2>conftest.er1
18410 ac_status=$?
18411 grep -v '^ *+' conftest.er1 >conftest.err
18412 rm -f conftest.er1
18413 cat conftest.err >&5
18414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415 (exit $ac_status); } &&
18416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18417 { (case "(($ac_try" in
18418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18419 *) ac_try_echo=$ac_try;;
18420esac
18421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18422 (eval "$ac_try") 2>&5
18423 ac_status=$?
18424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18425 (exit $ac_status); }; } &&
18426 { ac_try='test -s conftest$ac_exeext'
18427 { (case "(($ac_try" in
18428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18429 *) ac_try_echo=$ac_try;;
18430esac
18431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18432 (eval "$ac_try") 2>&5
18433 ac_status=$?
18434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18435 (exit $ac_status); }; }; then
18436 eval "$as_ac_var=yes"
18437else
18438 echo "$as_me: failed program was:" >&5
18439sed 's/^/| /' conftest.$ac_ext >&5
18440
18441 eval "$as_ac_var=no"
18442fi
18443
18444rm -f core conftest.err conftest.$ac_objext \
18445 conftest$ac_exeext conftest.$ac_ext
18446fi
18447ac_res=`eval echo '${'$as_ac_var'}'`
18448 { echo "$as_me:$LINENO: result: $ac_res" >&5
18449echo "${ECHO_T}$ac_res" >&6; }
18450if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000018451 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018452#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000018453_ACEOF
18454
18455fi
18456done
18457
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018458
18459
18460
Reid Spencerb90645c2007-02-16 19:17:20 +000018461for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018462do
18463as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18464{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18465echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18466if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18467 echo $ECHO_N "(cached) $ECHO_C" >&6
18468else
18469 cat >conftest.$ac_ext <<_ACEOF
18470/* confdefs.h. */
18471_ACEOF
18472cat confdefs.h >>conftest.$ac_ext
18473cat >>conftest.$ac_ext <<_ACEOF
18474/* end confdefs.h. */
18475/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18476 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18477#define $ac_func innocuous_$ac_func
18478
18479/* System header to define __stub macros and hopefully few prototypes,
18480 which can conflict with char $ac_func (); below.
18481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18482 <limits.h> exists even on freestanding compilers. */
18483
18484#ifdef __STDC__
18485# include <limits.h>
18486#else
18487# include <assert.h>
18488#endif
18489
18490#undef $ac_func
18491
18492/* Override any GCC internal prototype to avoid an error.
18493 Use char because int might match the return type of a GCC
18494 builtin and then its argument prototype would still apply. */
18495#ifdef __cplusplus
18496extern "C"
18497#endif
18498char $ac_func ();
18499/* The GNU C library defines this for functions which it implements
18500 to always fail with ENOSYS. Some functions are actually named
18501 something starting with __ and the normal name is an alias. */
18502#if defined __stub_$ac_func || defined __stub___$ac_func
18503choke me
18504#endif
18505
18506int
18507main ()
18508{
18509return $ac_func ();
18510 ;
18511 return 0;
18512}
18513_ACEOF
18514rm -f conftest.$ac_objext conftest$ac_exeext
18515if { (ac_try="$ac_link"
18516case "(($ac_try" in
18517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18518 *) ac_try_echo=$ac_try;;
18519esac
18520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18521 (eval "$ac_link") 2>conftest.er1
18522 ac_status=$?
18523 grep -v '^ *+' conftest.er1 >conftest.err
18524 rm -f conftest.er1
18525 cat conftest.err >&5
18526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527 (exit $ac_status); } &&
18528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18529 { (case "(($ac_try" in
18530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18531 *) ac_try_echo=$ac_try;;
18532esac
18533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18534 (eval "$ac_try") 2>&5
18535 ac_status=$?
18536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18537 (exit $ac_status); }; } &&
18538 { ac_try='test -s conftest$ac_exeext'
18539 { (case "(($ac_try" in
18540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18541 *) ac_try_echo=$ac_try;;
18542esac
18543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18544 (eval "$ac_try") 2>&5
18545 ac_status=$?
18546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547 (exit $ac_status); }; }; then
18548 eval "$as_ac_var=yes"
18549else
18550 echo "$as_me: failed program was:" >&5
18551sed 's/^/| /' conftest.$ac_ext >&5
18552
18553 eval "$as_ac_var=no"
18554fi
18555
18556rm -f core conftest.err conftest.$ac_objext \
18557 conftest$ac_exeext conftest.$ac_ext
18558fi
18559ac_res=`eval echo '${'$as_ac_var'}'`
18560 { echo "$as_me:$LINENO: result: $ac_res" >&5
18561echo "${ECHO_T}$ac_res" >&6; }
18562if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000018563 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018564#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000018565_ACEOF
18566
18567fi
18568done
18569
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018570
18571
18572
18573
18574
Eric Christophere4291822010-04-16 05:14:21 +000018575
18576for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018577do
18578as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18579{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18580echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18581if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18582 echo $ECHO_N "(cached) $ECHO_C" >&6
18583else
18584 cat >conftest.$ac_ext <<_ACEOF
18585/* confdefs.h. */
18586_ACEOF
18587cat confdefs.h >>conftest.$ac_ext
18588cat >>conftest.$ac_ext <<_ACEOF
18589/* end confdefs.h. */
18590/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18591 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18592#define $ac_func innocuous_$ac_func
18593
18594/* System header to define __stub macros and hopefully few prototypes,
18595 which can conflict with char $ac_func (); below.
18596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18597 <limits.h> exists even on freestanding compilers. */
18598
18599#ifdef __STDC__
18600# include <limits.h>
18601#else
18602# include <assert.h>
18603#endif
18604
18605#undef $ac_func
18606
18607/* Override any GCC internal prototype to avoid an error.
18608 Use char because int might match the return type of a GCC
18609 builtin and then its argument prototype would still apply. */
18610#ifdef __cplusplus
18611extern "C"
18612#endif
18613char $ac_func ();
18614/* The GNU C library defines this for functions which it implements
18615 to always fail with ENOSYS. Some functions are actually named
18616 something starting with __ and the normal name is an alias. */
18617#if defined __stub_$ac_func || defined __stub___$ac_func
18618choke me
18619#endif
18620
18621int
18622main ()
18623{
18624return $ac_func ();
18625 ;
18626 return 0;
18627}
18628_ACEOF
18629rm -f conftest.$ac_objext conftest$ac_exeext
18630if { (ac_try="$ac_link"
18631case "(($ac_try" in
18632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18633 *) ac_try_echo=$ac_try;;
18634esac
18635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18636 (eval "$ac_link") 2>conftest.er1
18637 ac_status=$?
18638 grep -v '^ *+' conftest.er1 >conftest.err
18639 rm -f conftest.er1
18640 cat conftest.err >&5
18641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18642 (exit $ac_status); } &&
18643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18644 { (case "(($ac_try" in
18645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18646 *) ac_try_echo=$ac_try;;
18647esac
18648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18649 (eval "$ac_try") 2>&5
18650 ac_status=$?
18651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18652 (exit $ac_status); }; } &&
18653 { ac_try='test -s conftest$ac_exeext'
18654 { (case "(($ac_try" in
18655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18656 *) ac_try_echo=$ac_try;;
18657esac
18658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18659 (eval "$ac_try") 2>&5
18660 ac_status=$?
18661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18662 (exit $ac_status); }; }; then
18663 eval "$as_ac_var=yes"
18664else
18665 echo "$as_me: failed program was:" >&5
18666sed 's/^/| /' conftest.$ac_ext >&5
18667
18668 eval "$as_ac_var=no"
18669fi
18670
18671rm -f core conftest.err conftest.$ac_objext \
18672 conftest$ac_exeext conftest.$ac_ext
18673fi
18674ac_res=`eval echo '${'$as_ac_var'}'`
18675 { echo "$as_me:$LINENO: result: $ac_res" >&5
18676echo "${ECHO_T}$ac_res" >&6; }
18677if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000018678 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018679#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000018680_ACEOF
18681
18682fi
18683done
Reid Spencerdf3be822006-01-23 08:15:53 +000018684
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018685
18686
18687
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000018688for ac_func in strerror strerror_r setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018689do
18690as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18691{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18692echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18693if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18694 echo $ECHO_N "(cached) $ECHO_C" >&6
18695else
18696 cat >conftest.$ac_ext <<_ACEOF
18697/* confdefs.h. */
18698_ACEOF
18699cat confdefs.h >>conftest.$ac_ext
18700cat >>conftest.$ac_ext <<_ACEOF
18701/* end confdefs.h. */
18702/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18704#define $ac_func innocuous_$ac_func
18705
18706/* System header to define __stub macros and hopefully few prototypes,
18707 which can conflict with char $ac_func (); below.
18708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18709 <limits.h> exists even on freestanding compilers. */
18710
18711#ifdef __STDC__
18712# include <limits.h>
18713#else
18714# include <assert.h>
18715#endif
18716
18717#undef $ac_func
18718
18719/* Override any GCC internal prototype to avoid an error.
18720 Use char because int might match the return type of a GCC
18721 builtin and then its argument prototype would still apply. */
18722#ifdef __cplusplus
18723extern "C"
18724#endif
18725char $ac_func ();
18726/* The GNU C library defines this for functions which it implements
18727 to always fail with ENOSYS. Some functions are actually named
18728 something starting with __ and the normal name is an alias. */
18729#if defined __stub_$ac_func || defined __stub___$ac_func
18730choke me
18731#endif
18732
18733int
18734main ()
18735{
18736return $ac_func ();
18737 ;
18738 return 0;
18739}
18740_ACEOF
18741rm -f conftest.$ac_objext conftest$ac_exeext
18742if { (ac_try="$ac_link"
18743case "(($ac_try" in
18744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18745 *) ac_try_echo=$ac_try;;
18746esac
18747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18748 (eval "$ac_link") 2>conftest.er1
18749 ac_status=$?
18750 grep -v '^ *+' conftest.er1 >conftest.err
18751 rm -f conftest.er1
18752 cat conftest.err >&5
18753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18754 (exit $ac_status); } &&
18755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18756 { (case "(($ac_try" in
18757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18758 *) ac_try_echo=$ac_try;;
18759esac
18760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18761 (eval "$ac_try") 2>&5
18762 ac_status=$?
18763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18764 (exit $ac_status); }; } &&
18765 { ac_try='test -s conftest$ac_exeext'
18766 { (case "(($ac_try" in
18767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18768 *) ac_try_echo=$ac_try;;
18769esac
18770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18771 (eval "$ac_try") 2>&5
18772 ac_status=$?
18773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18774 (exit $ac_status); }; }; then
18775 eval "$as_ac_var=yes"
18776else
18777 echo "$as_me: failed program was:" >&5
18778sed 's/^/| /' conftest.$ac_ext >&5
18779
18780 eval "$as_ac_var=no"
18781fi
18782
18783rm -f core conftest.err conftest.$ac_objext \
18784 conftest$ac_exeext conftest.$ac_ext
18785fi
18786ac_res=`eval echo '${'$as_ac_var'}'`
18787 { echo "$as_me:$LINENO: result: $ac_res" >&5
18788echo "${ECHO_T}$ac_res" >&6; }
18789if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000018790 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018791#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000018792_ACEOF
18793
18794fi
18795done
18796
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018797
18798
18799
18800
Chris Lattner511f11d2005-11-14 07:25:50 +000018801for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018802do
18803as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18804{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18805echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18806if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18807 echo $ECHO_N "(cached) $ECHO_C" >&6
18808else
18809 cat >conftest.$ac_ext <<_ACEOF
18810/* confdefs.h. */
18811_ACEOF
18812cat confdefs.h >>conftest.$ac_ext
18813cat >>conftest.$ac_ext <<_ACEOF
18814/* end confdefs.h. */
18815/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18817#define $ac_func innocuous_$ac_func
18818
18819/* System header to define __stub macros and hopefully few prototypes,
18820 which can conflict with char $ac_func (); below.
18821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18822 <limits.h> exists even on freestanding compilers. */
18823
18824#ifdef __STDC__
18825# include <limits.h>
18826#else
18827# include <assert.h>
18828#endif
18829
18830#undef $ac_func
18831
18832/* Override any GCC internal prototype to avoid an error.
18833 Use char because int might match the return type of a GCC
18834 builtin and then its argument prototype would still apply. */
18835#ifdef __cplusplus
18836extern "C"
18837#endif
18838char $ac_func ();
18839/* The GNU C library defines this for functions which it implements
18840 to always fail with ENOSYS. Some functions are actually named
18841 something starting with __ and the normal name is an alias. */
18842#if defined __stub_$ac_func || defined __stub___$ac_func
18843choke me
18844#endif
18845
18846int
18847main ()
18848{
18849return $ac_func ();
18850 ;
18851 return 0;
18852}
18853_ACEOF
18854rm -f conftest.$ac_objext conftest$ac_exeext
18855if { (ac_try="$ac_link"
18856case "(($ac_try" in
18857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18858 *) ac_try_echo=$ac_try;;
18859esac
18860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18861 (eval "$ac_link") 2>conftest.er1
18862 ac_status=$?
18863 grep -v '^ *+' conftest.er1 >conftest.err
18864 rm -f conftest.er1
18865 cat conftest.err >&5
18866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18867 (exit $ac_status); } &&
18868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18869 { (case "(($ac_try" in
18870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18871 *) ac_try_echo=$ac_try;;
18872esac
18873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18874 (eval "$ac_try") 2>&5
18875 ac_status=$?
18876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877 (exit $ac_status); }; } &&
18878 { ac_try='test -s conftest$ac_exeext'
18879 { (case "(($ac_try" in
18880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18881 *) ac_try_echo=$ac_try;;
18882esac
18883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18884 (eval "$ac_try") 2>&5
18885 ac_status=$?
18886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887 (exit $ac_status); }; }; then
18888 eval "$as_ac_var=yes"
18889else
18890 echo "$as_me: failed program was:" >&5
18891sed 's/^/| /' conftest.$ac_ext >&5
18892
18893 eval "$as_ac_var=no"
18894fi
18895
18896rm -f core conftest.err conftest.$ac_objext \
18897 conftest$ac_exeext conftest.$ac_ext
18898fi
18899ac_res=`eval echo '${'$as_ac_var'}'`
18900 { echo "$as_me:$LINENO: result: $ac_res" >&5
18901echo "${ECHO_T}$ac_res" >&6; }
18902if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018903 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018904#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018905_ACEOF
18906
18907fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018908done
John Criswell7a73b802003-06-30 21:59:07 +000018909
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018910
18911
18912
18913
Daniel Dunbar3e462932011-02-03 02:40:02 +000018914
18915for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018916do
18917as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18918{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18919echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18920if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18921 echo $ECHO_N "(cached) $ECHO_C" >&6
18922else
18923 cat >conftest.$ac_ext <<_ACEOF
18924/* confdefs.h. */
18925_ACEOF
18926cat confdefs.h >>conftest.$ac_ext
18927cat >>conftest.$ac_ext <<_ACEOF
18928/* end confdefs.h. */
18929/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18930 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18931#define $ac_func innocuous_$ac_func
18932
18933/* System header to define __stub macros and hopefully few prototypes,
18934 which can conflict with char $ac_func (); below.
18935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18936 <limits.h> exists even on freestanding compilers. */
18937
18938#ifdef __STDC__
18939# include <limits.h>
18940#else
18941# include <assert.h>
18942#endif
18943
18944#undef $ac_func
18945
18946/* Override any GCC internal prototype to avoid an error.
18947 Use char because int might match the return type of a GCC
18948 builtin and then its argument prototype would still apply. */
18949#ifdef __cplusplus
18950extern "C"
18951#endif
18952char $ac_func ();
18953/* The GNU C library defines this for functions which it implements
18954 to always fail with ENOSYS. Some functions are actually named
18955 something starting with __ and the normal name is an alias. */
18956#if defined __stub_$ac_func || defined __stub___$ac_func
18957choke me
18958#endif
18959
18960int
18961main ()
18962{
18963return $ac_func ();
18964 ;
18965 return 0;
18966}
18967_ACEOF
18968rm -f conftest.$ac_objext conftest$ac_exeext
18969if { (ac_try="$ac_link"
18970case "(($ac_try" in
18971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18972 *) ac_try_echo=$ac_try;;
18973esac
18974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18975 (eval "$ac_link") 2>conftest.er1
18976 ac_status=$?
18977 grep -v '^ *+' conftest.er1 >conftest.err
18978 rm -f conftest.er1
18979 cat conftest.err >&5
18980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18981 (exit $ac_status); } &&
18982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18983 { (case "(($ac_try" in
18984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18985 *) ac_try_echo=$ac_try;;
18986esac
18987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18988 (eval "$ac_try") 2>&5
18989 ac_status=$?
18990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991 (exit $ac_status); }; } &&
18992 { ac_try='test -s conftest$ac_exeext'
18993 { (case "(($ac_try" in
18994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18995 *) ac_try_echo=$ac_try;;
18996esac
18997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18998 (eval "$ac_try") 2>&5
18999 ac_status=$?
19000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001 (exit $ac_status); }; }; then
19002 eval "$as_ac_var=yes"
19003else
19004 echo "$as_me: failed program was:" >&5
19005sed 's/^/| /' conftest.$ac_ext >&5
19006
19007 eval "$as_ac_var=no"
19008fi
19009
19010rm -f core conftest.err conftest.$ac_objext \
19011 conftest$ac_exeext conftest.$ac_ext
19012fi
19013ac_res=`eval echo '${'$as_ac_var'}'`
19014 { echo "$as_me:$LINENO: result: $ac_res" >&5
19015echo "${ECHO_T}$ac_res" >&6; }
19016if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000019017 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019018#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000019019_ACEOF
19020
19021fi
19022done
19023
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019024{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
19025echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
19026if test "${llvm_cv_c_printf_a+set}" = set; then
19027 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019028else
Reid Spencer2706f8c2004-09-19 23:53:36 +000019029 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000019030ac_cpp='$CPP $CPPFLAGS'
19031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19033ac_compiler_gnu=$ac_cv_c_compiler_gnu
19034
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019035 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000019036 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000019037else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019038 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000019039
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019040 /* confdefs.h. */
19041_ACEOF
19042cat confdefs.h >>conftest.$ac_ext
19043cat >>conftest.$ac_ext <<_ACEOF
19044/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000019045
John Criswella0137d32003-10-13 16:22:01 +000019046#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000019047#include <stdlib.h>
19048
John Criswella0137d32003-10-13 16:22:01 +000019049int
19050main ()
19051{
19052
Reid Spencer2706f8c2004-09-19 23:53:36 +000019053volatile double A, B;
19054char Buffer[100];
19055A = 1;
19056A /= 10.0;
19057sprintf(Buffer, "%a", A);
19058B = atof(Buffer);
19059if (A != B)
19060 return (1);
19061if (A != 0x1.999999999999ap-4)
19062 return (1);
19063return (0);
John Criswella0137d32003-10-13 16:22:01 +000019064 ;
19065 return 0;
19066}
19067_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019068rm -f conftest$ac_exeext
19069if { (ac_try="$ac_link"
19070case "(($ac_try" in
19071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19072 *) ac_try_echo=$ac_try;;
19073esac
19074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19075 (eval "$ac_link") 2>&5
19076 ac_status=$?
19077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19079 { (case "(($ac_try" in
19080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19081 *) ac_try_echo=$ac_try;;
19082esac
19083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19084 (eval "$ac_try") 2>&5
19085 ac_status=$?
19086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19087 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000019088 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000019089else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019090 echo "$as_me: program exited with status $ac_status" >&5
19091echo "$as_me: failed program was:" >&5
19092sed 's/^/| /' conftest.$ac_ext >&5
19093
19094( exit $ac_status )
19095llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000019096fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019097rm -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 +000019098fi
Reid Spencera773bd52006-08-04 18:18:08 +000019099
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019100
Reid Spencer2706f8c2004-09-19 23:53:36 +000019101 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000019102ac_cpp='$CPP $CPPFLAGS'
19103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19105ac_compiler_gnu=$ac_cv_c_compiler_gnu
19106
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019107fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019108{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
19109echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000019110 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000019111
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019112cat >>confdefs.h <<\_ACEOF
19113#define HAVE_PRINTF_A 1
19114_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000019115
Reid Spencer2706f8c2004-09-19 23:53:36 +000019116 fi
John Criswella0137d32003-10-13 16:22:01 +000019117
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019118
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019119{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
19120echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
19121if test "${ac_cv_func_rand48+set}" = set; then
19122 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019123else
Reid Spencera773bd52006-08-04 18:18:08 +000019124 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019125ac_cpp='$CXXCPP $CPPFLAGS'
19126ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19127ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19128ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19129
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019130 cat >conftest.$ac_ext <<_ACEOF
19131/* confdefs.h. */
19132_ACEOF
19133cat confdefs.h >>conftest.$ac_ext
19134cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019135/* end confdefs.h. */
19136#include <stdlib.h>
19137int
19138main ()
19139{
19140srand48(0);lrand48();drand48();
19141 ;
19142 return 0;
19143}
19144_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019145rm -f conftest.$ac_objext
19146if { (ac_try="$ac_compile"
19147case "(($ac_try" in
19148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19149 *) ac_try_echo=$ac_try;;
19150esac
19151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19152 (eval "$ac_compile") 2>conftest.er1
19153 ac_status=$?
19154 grep -v '^ *+' conftest.er1 >conftest.err
19155 rm -f conftest.er1
19156 cat conftest.err >&5
19157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19158 (exit $ac_status); } &&
19159 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19160 { (case "(($ac_try" in
19161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19162 *) ac_try_echo=$ac_try;;
19163esac
19164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19165 (eval "$ac_try") 2>&5
19166 ac_status=$?
19167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19168 (exit $ac_status); }; } &&
19169 { ac_try='test -s conftest.$ac_objext'
19170 { (case "(($ac_try" in
19171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19172 *) ac_try_echo=$ac_try;;
19173esac
19174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19175 (eval "$ac_try") 2>&5
19176 ac_status=$?
19177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019179 ac_cv_func_rand48=yes
19180else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019181 echo "$as_me: failed program was:" >&5
19182sed 's/^/| /' conftest.$ac_ext >&5
19183
19184 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019185fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019186
Reid Spencera773bd52006-08-04 18:18:08 +000019187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019188 ac_ext=c
19189ac_cpp='$CPP $CPPFLAGS'
19190ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19191ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19192ac_compiler_gnu=$ac_cv_c_compiler_gnu
19193
19194fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019195{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19196echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019197
19198if test "$ac_cv_func_rand48" = "yes" ; then
19199
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019200cat >>confdefs.h <<\_ACEOF
19201#define HAVE_RAND48 1
19202_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019203
19204fi
John Criswell0021c312004-02-13 21:57:29 +000019205
19206
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000019207{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
19208echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
19209if test "${ac_cv_have_decl_strerror_s+set}" = set; then
19210 echo $ECHO_N "(cached) $ECHO_C" >&6
19211else
19212 cat >conftest.$ac_ext <<_ACEOF
19213/* confdefs.h. */
19214_ACEOF
19215cat confdefs.h >>conftest.$ac_ext
19216cat >>conftest.$ac_ext <<_ACEOF
19217/* end confdefs.h. */
19218$ac_includes_default
19219int
19220main ()
19221{
19222#ifndef strerror_s
19223 char *p = (char *) strerror_s;
19224 return !p;
19225#endif
19226
19227 ;
19228 return 0;
19229}
19230_ACEOF
19231rm -f conftest.$ac_objext
19232if { (ac_try="$ac_compile"
19233case "(($ac_try" in
19234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19235 *) ac_try_echo=$ac_try;;
19236esac
19237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19238 (eval "$ac_compile") 2>conftest.er1
19239 ac_status=$?
19240 grep -v '^ *+' conftest.er1 >conftest.err
19241 rm -f conftest.er1
19242 cat conftest.err >&5
19243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244 (exit $ac_status); } &&
19245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19246 { (case "(($ac_try" in
19247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19248 *) ac_try_echo=$ac_try;;
19249esac
19250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19251 (eval "$ac_try") 2>&5
19252 ac_status=$?
19253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254 (exit $ac_status); }; } &&
19255 { ac_try='test -s conftest.$ac_objext'
19256 { (case "(($ac_try" in
19257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19258 *) ac_try_echo=$ac_try;;
19259esac
19260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19261 (eval "$ac_try") 2>&5
19262 ac_status=$?
19263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19264 (exit $ac_status); }; }; then
19265 ac_cv_have_decl_strerror_s=yes
19266else
19267 echo "$as_me: failed program was:" >&5
19268sed 's/^/| /' conftest.$ac_ext >&5
19269
19270 ac_cv_have_decl_strerror_s=no
19271fi
19272
19273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19274fi
19275{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19276echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19277if test $ac_cv_have_decl_strerror_s = yes; then
19278
19279cat >>confdefs.h <<_ACEOF
19280#define HAVE_DECL_STRERROR_S 1
19281_ACEOF
19282
19283
19284else
19285 cat >>confdefs.h <<_ACEOF
19286#define HAVE_DECL_STRERROR_S 0
19287_ACEOF
19288
19289
19290fi
19291
19292
19293
NAKAMURA Takumi1f6832a2011-02-05 15:11:53 +000019294if test "$llvm_cv_os_type" = "MingW" ; then
19295 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19296echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19297if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19298 echo $ECHO_N "(cached) $ECHO_C" >&6
19299else
19300 ac_check_lib_save_LIBS=$LIBS
19301LIBS="-lgcc $LIBS"
19302cat >conftest.$ac_ext <<_ACEOF
19303/* confdefs.h. */
19304_ACEOF
19305cat confdefs.h >>conftest.$ac_ext
19306cat >>conftest.$ac_ext <<_ACEOF
19307/* end confdefs.h. */
19308
19309/* Override any GCC internal prototype to avoid an error.
19310 Use char because int might match the return type of a GCC
19311 builtin and then its argument prototype would still apply. */
19312#ifdef __cplusplus
19313extern "C"
19314#endif
19315char _alloca ();
19316int
19317main ()
19318{
19319return _alloca ();
19320 ;
19321 return 0;
19322}
19323_ACEOF
19324rm -f conftest.$ac_objext conftest$ac_exeext
19325if { (ac_try="$ac_link"
19326case "(($ac_try" in
19327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19328 *) ac_try_echo=$ac_try;;
19329esac
19330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19331 (eval "$ac_link") 2>conftest.er1
19332 ac_status=$?
19333 grep -v '^ *+' conftest.er1 >conftest.err
19334 rm -f conftest.er1
19335 cat conftest.err >&5
19336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337 (exit $ac_status); } &&
19338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19339 { (case "(($ac_try" in
19340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19341 *) ac_try_echo=$ac_try;;
19342esac
19343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19344 (eval "$ac_try") 2>&5
19345 ac_status=$?
19346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19347 (exit $ac_status); }; } &&
19348 { ac_try='test -s conftest$ac_exeext'
19349 { (case "(($ac_try" in
19350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19351 *) ac_try_echo=$ac_try;;
19352esac
19353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19354 (eval "$ac_try") 2>&5
19355 ac_status=$?
19356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19357 (exit $ac_status); }; }; then
19358 ac_cv_lib_gcc__alloca=yes
19359else
19360 echo "$as_me: failed program was:" >&5
19361sed 's/^/| /' conftest.$ac_ext >&5
19362
19363 ac_cv_lib_gcc__alloca=no
19364fi
19365
19366rm -f core conftest.err conftest.$ac_objext \
19367 conftest$ac_exeext conftest.$ac_ext
19368LIBS=$ac_check_lib_save_LIBS
19369fi
19370{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19371echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19372if test $ac_cv_lib_gcc__alloca = yes; then
19373
19374cat >>confdefs.h <<\_ACEOF
19375#define HAVE__ALLOCA 1
19376_ACEOF
19377
19378fi
19379
19380 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19381echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19382if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19383 echo $ECHO_N "(cached) $ECHO_C" >&6
19384else
19385 ac_check_lib_save_LIBS=$LIBS
19386LIBS="-lgcc $LIBS"
19387cat >conftest.$ac_ext <<_ACEOF
19388/* confdefs.h. */
19389_ACEOF
19390cat confdefs.h >>conftest.$ac_ext
19391cat >>conftest.$ac_ext <<_ACEOF
19392/* end confdefs.h. */
19393
19394/* Override any GCC internal prototype to avoid an error.
19395 Use char because int might match the return type of a GCC
19396 builtin and then its argument prototype would still apply. */
19397#ifdef __cplusplus
19398extern "C"
19399#endif
19400char __alloca ();
19401int
19402main ()
19403{
19404return __alloca ();
19405 ;
19406 return 0;
19407}
19408_ACEOF
19409rm -f conftest.$ac_objext conftest$ac_exeext
19410if { (ac_try="$ac_link"
19411case "(($ac_try" in
19412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19413 *) ac_try_echo=$ac_try;;
19414esac
19415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19416 (eval "$ac_link") 2>conftest.er1
19417 ac_status=$?
19418 grep -v '^ *+' conftest.er1 >conftest.err
19419 rm -f conftest.er1
19420 cat conftest.err >&5
19421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422 (exit $ac_status); } &&
19423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19424 { (case "(($ac_try" in
19425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19426 *) ac_try_echo=$ac_try;;
19427esac
19428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19429 (eval "$ac_try") 2>&5
19430 ac_status=$?
19431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432 (exit $ac_status); }; } &&
19433 { ac_try='test -s conftest$ac_exeext'
19434 { (case "(($ac_try" in
19435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19436 *) ac_try_echo=$ac_try;;
19437esac
19438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19439 (eval "$ac_try") 2>&5
19440 ac_status=$?
19441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442 (exit $ac_status); }; }; then
19443 ac_cv_lib_gcc___alloca=yes
19444else
19445 echo "$as_me: failed program was:" >&5
19446sed 's/^/| /' conftest.$ac_ext >&5
19447
19448 ac_cv_lib_gcc___alloca=no
19449fi
19450
19451rm -f core conftest.err conftest.$ac_objext \
19452 conftest$ac_exeext conftest.$ac_ext
19453LIBS=$ac_check_lib_save_LIBS
19454fi
19455{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19456echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19457if test $ac_cv_lib_gcc___alloca = yes; then
19458
19459cat >>confdefs.h <<\_ACEOF
19460#define HAVE___ALLOCA 1
19461_ACEOF
19462
19463fi
19464
19465 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19466echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19467if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19468 echo $ECHO_N "(cached) $ECHO_C" >&6
19469else
19470 ac_check_lib_save_LIBS=$LIBS
19471LIBS="-lgcc $LIBS"
19472cat >conftest.$ac_ext <<_ACEOF
19473/* confdefs.h. */
19474_ACEOF
19475cat confdefs.h >>conftest.$ac_ext
19476cat >>conftest.$ac_ext <<_ACEOF
19477/* end confdefs.h. */
19478
19479/* Override any GCC internal prototype to avoid an error.
19480 Use char because int might match the return type of a GCC
19481 builtin and then its argument prototype would still apply. */
19482#ifdef __cplusplus
19483extern "C"
19484#endif
19485char __chkstk ();
19486int
19487main ()
19488{
19489return __chkstk ();
19490 ;
19491 return 0;
19492}
19493_ACEOF
19494rm -f conftest.$ac_objext conftest$ac_exeext
19495if { (ac_try="$ac_link"
19496case "(($ac_try" in
19497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19498 *) ac_try_echo=$ac_try;;
19499esac
19500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19501 (eval "$ac_link") 2>conftest.er1
19502 ac_status=$?
19503 grep -v '^ *+' conftest.er1 >conftest.err
19504 rm -f conftest.er1
19505 cat conftest.err >&5
19506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507 (exit $ac_status); } &&
19508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19509 { (case "(($ac_try" in
19510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19511 *) ac_try_echo=$ac_try;;
19512esac
19513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19514 (eval "$ac_try") 2>&5
19515 ac_status=$?
19516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517 (exit $ac_status); }; } &&
19518 { ac_try='test -s conftest$ac_exeext'
19519 { (case "(($ac_try" in
19520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19521 *) ac_try_echo=$ac_try;;
19522esac
19523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19524 (eval "$ac_try") 2>&5
19525 ac_status=$?
19526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527 (exit $ac_status); }; }; then
19528 ac_cv_lib_gcc___chkstk=yes
19529else
19530 echo "$as_me: failed program was:" >&5
19531sed 's/^/| /' conftest.$ac_ext >&5
19532
19533 ac_cv_lib_gcc___chkstk=no
19534fi
19535
19536rm -f core conftest.err conftest.$ac_objext \
19537 conftest$ac_exeext conftest.$ac_ext
19538LIBS=$ac_check_lib_save_LIBS
19539fi
19540{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19541echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19542if test $ac_cv_lib_gcc___chkstk = yes; then
19543
19544cat >>confdefs.h <<\_ACEOF
19545#define HAVE___CHKSTK 1
19546_ACEOF
19547
19548fi
19549
19550 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19551echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19552if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19553 echo $ECHO_N "(cached) $ECHO_C" >&6
19554else
19555 ac_check_lib_save_LIBS=$LIBS
19556LIBS="-lgcc $LIBS"
19557cat >conftest.$ac_ext <<_ACEOF
19558/* confdefs.h. */
19559_ACEOF
19560cat confdefs.h >>conftest.$ac_ext
19561cat >>conftest.$ac_ext <<_ACEOF
19562/* end confdefs.h. */
19563
19564/* Override any GCC internal prototype to avoid an error.
19565 Use char because int might match the return type of a GCC
19566 builtin and then its argument prototype would still apply. */
19567#ifdef __cplusplus
19568extern "C"
19569#endif
19570char ___chkstk ();
19571int
19572main ()
19573{
19574return ___chkstk ();
19575 ;
19576 return 0;
19577}
19578_ACEOF
19579rm -f conftest.$ac_objext conftest$ac_exeext
19580if { (ac_try="$ac_link"
19581case "(($ac_try" in
19582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19583 *) ac_try_echo=$ac_try;;
19584esac
19585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19586 (eval "$ac_link") 2>conftest.er1
19587 ac_status=$?
19588 grep -v '^ *+' conftest.er1 >conftest.err
19589 rm -f conftest.er1
19590 cat conftest.err >&5
19591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19592 (exit $ac_status); } &&
19593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19594 { (case "(($ac_try" in
19595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19596 *) ac_try_echo=$ac_try;;
19597esac
19598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19599 (eval "$ac_try") 2>&5
19600 ac_status=$?
19601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19602 (exit $ac_status); }; } &&
19603 { ac_try='test -s conftest$ac_exeext'
19604 { (case "(($ac_try" in
19605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19606 *) ac_try_echo=$ac_try;;
19607esac
19608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19609 (eval "$ac_try") 2>&5
19610 ac_status=$?
19611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19612 (exit $ac_status); }; }; then
19613 ac_cv_lib_gcc____chkstk=yes
19614else
19615 echo "$as_me: failed program was:" >&5
19616sed 's/^/| /' conftest.$ac_ext >&5
19617
19618 ac_cv_lib_gcc____chkstk=no
19619fi
19620
19621rm -f core conftest.err conftest.$ac_objext \
19622 conftest$ac_exeext conftest.$ac_ext
19623LIBS=$ac_check_lib_save_LIBS
19624fi
19625{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19626echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19627if test $ac_cv_lib_gcc____chkstk = yes; then
19628
19629cat >>confdefs.h <<\_ACEOF
19630#define HAVE____CHKSTK 1
19631_ACEOF
19632
19633fi
19634
19635
19636 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19637echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19638if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19639 echo $ECHO_N "(cached) $ECHO_C" >&6
19640else
19641 ac_check_lib_save_LIBS=$LIBS
19642LIBS="-lgcc $LIBS"
19643cat >conftest.$ac_ext <<_ACEOF
19644/* confdefs.h. */
19645_ACEOF
19646cat confdefs.h >>conftest.$ac_ext
19647cat >>conftest.$ac_ext <<_ACEOF
19648/* end confdefs.h. */
19649
19650/* Override any GCC internal prototype to avoid an error.
19651 Use char because int might match the return type of a GCC
19652 builtin and then its argument prototype would still apply. */
19653#ifdef __cplusplus
19654extern "C"
19655#endif
19656char __ashldi3 ();
19657int
19658main ()
19659{
19660return __ashldi3 ();
19661 ;
19662 return 0;
19663}
19664_ACEOF
19665rm -f conftest.$ac_objext conftest$ac_exeext
19666if { (ac_try="$ac_link"
19667case "(($ac_try" in
19668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19669 *) ac_try_echo=$ac_try;;
19670esac
19671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19672 (eval "$ac_link") 2>conftest.er1
19673 ac_status=$?
19674 grep -v '^ *+' conftest.er1 >conftest.err
19675 rm -f conftest.er1
19676 cat conftest.err >&5
19677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678 (exit $ac_status); } &&
19679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19680 { (case "(($ac_try" in
19681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19682 *) ac_try_echo=$ac_try;;
19683esac
19684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19685 (eval "$ac_try") 2>&5
19686 ac_status=$?
19687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688 (exit $ac_status); }; } &&
19689 { ac_try='test -s conftest$ac_exeext'
19690 { (case "(($ac_try" in
19691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19692 *) ac_try_echo=$ac_try;;
19693esac
19694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19695 (eval "$ac_try") 2>&5
19696 ac_status=$?
19697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19698 (exit $ac_status); }; }; then
19699 ac_cv_lib_gcc___ashldi3=yes
19700else
19701 echo "$as_me: failed program was:" >&5
19702sed 's/^/| /' conftest.$ac_ext >&5
19703
19704 ac_cv_lib_gcc___ashldi3=no
19705fi
19706
19707rm -f core conftest.err conftest.$ac_objext \
19708 conftest$ac_exeext conftest.$ac_ext
19709LIBS=$ac_check_lib_save_LIBS
19710fi
19711{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19712echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19713if test $ac_cv_lib_gcc___ashldi3 = yes; then
19714
19715cat >>confdefs.h <<\_ACEOF
19716#define HAVE___ASHLDI3 1
19717_ACEOF
19718
19719fi
19720
19721 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19722echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19723if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19724 echo $ECHO_N "(cached) $ECHO_C" >&6
19725else
19726 ac_check_lib_save_LIBS=$LIBS
19727LIBS="-lgcc $LIBS"
19728cat >conftest.$ac_ext <<_ACEOF
19729/* confdefs.h. */
19730_ACEOF
19731cat confdefs.h >>conftest.$ac_ext
19732cat >>conftest.$ac_ext <<_ACEOF
19733/* end confdefs.h. */
19734
19735/* Override any GCC internal prototype to avoid an error.
19736 Use char because int might match the return type of a GCC
19737 builtin and then its argument prototype would still apply. */
19738#ifdef __cplusplus
19739extern "C"
19740#endif
19741char __ashrdi3 ();
19742int
19743main ()
19744{
19745return __ashrdi3 ();
19746 ;
19747 return 0;
19748}
19749_ACEOF
19750rm -f conftest.$ac_objext conftest$ac_exeext
19751if { (ac_try="$ac_link"
19752case "(($ac_try" in
19753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19754 *) ac_try_echo=$ac_try;;
19755esac
19756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19757 (eval "$ac_link") 2>conftest.er1
19758 ac_status=$?
19759 grep -v '^ *+' conftest.er1 >conftest.err
19760 rm -f conftest.er1
19761 cat conftest.err >&5
19762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19763 (exit $ac_status); } &&
19764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19765 { (case "(($ac_try" in
19766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19767 *) ac_try_echo=$ac_try;;
19768esac
19769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19770 (eval "$ac_try") 2>&5
19771 ac_status=$?
19772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19773 (exit $ac_status); }; } &&
19774 { ac_try='test -s conftest$ac_exeext'
19775 { (case "(($ac_try" in
19776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19777 *) ac_try_echo=$ac_try;;
19778esac
19779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19780 (eval "$ac_try") 2>&5
19781 ac_status=$?
19782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783 (exit $ac_status); }; }; then
19784 ac_cv_lib_gcc___ashrdi3=yes
19785else
19786 echo "$as_me: failed program was:" >&5
19787sed 's/^/| /' conftest.$ac_ext >&5
19788
19789 ac_cv_lib_gcc___ashrdi3=no
19790fi
19791
19792rm -f core conftest.err conftest.$ac_objext \
19793 conftest$ac_exeext conftest.$ac_ext
19794LIBS=$ac_check_lib_save_LIBS
19795fi
19796{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19797echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19798if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19799
19800cat >>confdefs.h <<\_ACEOF
19801#define HAVE___ASHRDI3 1
19802_ACEOF
19803
19804fi
19805
19806 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19807echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19808if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19809 echo $ECHO_N "(cached) $ECHO_C" >&6
19810else
19811 ac_check_lib_save_LIBS=$LIBS
19812LIBS="-lgcc $LIBS"
19813cat >conftest.$ac_ext <<_ACEOF
19814/* confdefs.h. */
19815_ACEOF
19816cat confdefs.h >>conftest.$ac_ext
19817cat >>conftest.$ac_ext <<_ACEOF
19818/* end confdefs.h. */
19819
19820/* Override any GCC internal prototype to avoid an error.
19821 Use char because int might match the return type of a GCC
19822 builtin and then its argument prototype would still apply. */
19823#ifdef __cplusplus
19824extern "C"
19825#endif
19826char __divdi3 ();
19827int
19828main ()
19829{
19830return __divdi3 ();
19831 ;
19832 return 0;
19833}
19834_ACEOF
19835rm -f conftest.$ac_objext conftest$ac_exeext
19836if { (ac_try="$ac_link"
19837case "(($ac_try" in
19838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19839 *) ac_try_echo=$ac_try;;
19840esac
19841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19842 (eval "$ac_link") 2>conftest.er1
19843 ac_status=$?
19844 grep -v '^ *+' conftest.er1 >conftest.err
19845 rm -f conftest.er1
19846 cat conftest.err >&5
19847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848 (exit $ac_status); } &&
19849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19850 { (case "(($ac_try" in
19851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19852 *) ac_try_echo=$ac_try;;
19853esac
19854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19855 (eval "$ac_try") 2>&5
19856 ac_status=$?
19857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858 (exit $ac_status); }; } &&
19859 { ac_try='test -s conftest$ac_exeext'
19860 { (case "(($ac_try" in
19861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19862 *) ac_try_echo=$ac_try;;
19863esac
19864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19865 (eval "$ac_try") 2>&5
19866 ac_status=$?
19867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868 (exit $ac_status); }; }; then
19869 ac_cv_lib_gcc___divdi3=yes
19870else
19871 echo "$as_me: failed program was:" >&5
19872sed 's/^/| /' conftest.$ac_ext >&5
19873
19874 ac_cv_lib_gcc___divdi3=no
19875fi
19876
19877rm -f core conftest.err conftest.$ac_objext \
19878 conftest$ac_exeext conftest.$ac_ext
19879LIBS=$ac_check_lib_save_LIBS
19880fi
19881{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19882echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19883if test $ac_cv_lib_gcc___divdi3 = yes; then
19884
19885cat >>confdefs.h <<\_ACEOF
19886#define HAVE___DIVDI3 1
19887_ACEOF
19888
19889fi
19890
19891 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19892echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19893if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19894 echo $ECHO_N "(cached) $ECHO_C" >&6
19895else
19896 ac_check_lib_save_LIBS=$LIBS
19897LIBS="-lgcc $LIBS"
19898cat >conftest.$ac_ext <<_ACEOF
19899/* confdefs.h. */
19900_ACEOF
19901cat confdefs.h >>conftest.$ac_ext
19902cat >>conftest.$ac_ext <<_ACEOF
19903/* end confdefs.h. */
19904
19905/* Override any GCC internal prototype to avoid an error.
19906 Use char because int might match the return type of a GCC
19907 builtin and then its argument prototype would still apply. */
19908#ifdef __cplusplus
19909extern "C"
19910#endif
19911char __fixdfdi ();
19912int
19913main ()
19914{
19915return __fixdfdi ();
19916 ;
19917 return 0;
19918}
19919_ACEOF
19920rm -f conftest.$ac_objext conftest$ac_exeext
19921if { (ac_try="$ac_link"
19922case "(($ac_try" in
19923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19924 *) ac_try_echo=$ac_try;;
19925esac
19926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19927 (eval "$ac_link") 2>conftest.er1
19928 ac_status=$?
19929 grep -v '^ *+' conftest.er1 >conftest.err
19930 rm -f conftest.er1
19931 cat conftest.err >&5
19932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19933 (exit $ac_status); } &&
19934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19935 { (case "(($ac_try" in
19936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19937 *) ac_try_echo=$ac_try;;
19938esac
19939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19940 (eval "$ac_try") 2>&5
19941 ac_status=$?
19942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943 (exit $ac_status); }; } &&
19944 { ac_try='test -s conftest$ac_exeext'
19945 { (case "(($ac_try" in
19946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19947 *) ac_try_echo=$ac_try;;
19948esac
19949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19950 (eval "$ac_try") 2>&5
19951 ac_status=$?
19952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953 (exit $ac_status); }; }; then
19954 ac_cv_lib_gcc___fixdfdi=yes
19955else
19956 echo "$as_me: failed program was:" >&5
19957sed 's/^/| /' conftest.$ac_ext >&5
19958
19959 ac_cv_lib_gcc___fixdfdi=no
19960fi
19961
19962rm -f core conftest.err conftest.$ac_objext \
19963 conftest$ac_exeext conftest.$ac_ext
19964LIBS=$ac_check_lib_save_LIBS
19965fi
19966{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
19967echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
19968if test $ac_cv_lib_gcc___fixdfdi = yes; then
19969
19970cat >>confdefs.h <<\_ACEOF
19971#define HAVE___FIXDFDI 1
19972_ACEOF
19973
19974fi
19975
19976 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
19977echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
19978if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
19979 echo $ECHO_N "(cached) $ECHO_C" >&6
19980else
19981 ac_check_lib_save_LIBS=$LIBS
19982LIBS="-lgcc $LIBS"
19983cat >conftest.$ac_ext <<_ACEOF
19984/* confdefs.h. */
19985_ACEOF
19986cat confdefs.h >>conftest.$ac_ext
19987cat >>conftest.$ac_ext <<_ACEOF
19988/* end confdefs.h. */
19989
19990/* Override any GCC internal prototype to avoid an error.
19991 Use char because int might match the return type of a GCC
19992 builtin and then its argument prototype would still apply. */
19993#ifdef __cplusplus
19994extern "C"
19995#endif
19996char __fixsfdi ();
19997int
19998main ()
19999{
20000return __fixsfdi ();
20001 ;
20002 return 0;
20003}
20004_ACEOF
20005rm -f conftest.$ac_objext conftest$ac_exeext
20006if { (ac_try="$ac_link"
20007case "(($ac_try" in
20008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20009 *) ac_try_echo=$ac_try;;
20010esac
20011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20012 (eval "$ac_link") 2>conftest.er1
20013 ac_status=$?
20014 grep -v '^ *+' conftest.er1 >conftest.err
20015 rm -f conftest.er1
20016 cat conftest.err >&5
20017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20018 (exit $ac_status); } &&
20019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20020 { (case "(($ac_try" in
20021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20022 *) ac_try_echo=$ac_try;;
20023esac
20024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20025 (eval "$ac_try") 2>&5
20026 ac_status=$?
20027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20028 (exit $ac_status); }; } &&
20029 { ac_try='test -s conftest$ac_exeext'
20030 { (case "(($ac_try" in
20031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20032 *) ac_try_echo=$ac_try;;
20033esac
20034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20035 (eval "$ac_try") 2>&5
20036 ac_status=$?
20037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038 (exit $ac_status); }; }; then
20039 ac_cv_lib_gcc___fixsfdi=yes
20040else
20041 echo "$as_me: failed program was:" >&5
20042sed 's/^/| /' conftest.$ac_ext >&5
20043
20044 ac_cv_lib_gcc___fixsfdi=no
20045fi
20046
20047rm -f core conftest.err conftest.$ac_objext \
20048 conftest$ac_exeext conftest.$ac_ext
20049LIBS=$ac_check_lib_save_LIBS
20050fi
20051{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
20052echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
20053if test $ac_cv_lib_gcc___fixsfdi = yes; then
20054
20055cat >>confdefs.h <<\_ACEOF
20056#define HAVE___FIXSFDI 1
20057_ACEOF
20058
20059fi
20060
20061 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
20062echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
20063if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
20064 echo $ECHO_N "(cached) $ECHO_C" >&6
20065else
20066 ac_check_lib_save_LIBS=$LIBS
20067LIBS="-lgcc $LIBS"
20068cat >conftest.$ac_ext <<_ACEOF
20069/* confdefs.h. */
20070_ACEOF
20071cat confdefs.h >>conftest.$ac_ext
20072cat >>conftest.$ac_ext <<_ACEOF
20073/* end confdefs.h. */
20074
20075/* Override any GCC internal prototype to avoid an error.
20076 Use char because int might match the return type of a GCC
20077 builtin and then its argument prototype would still apply. */
20078#ifdef __cplusplus
20079extern "C"
20080#endif
20081char __floatdidf ();
20082int
20083main ()
20084{
20085return __floatdidf ();
20086 ;
20087 return 0;
20088}
20089_ACEOF
20090rm -f conftest.$ac_objext conftest$ac_exeext
20091if { (ac_try="$ac_link"
20092case "(($ac_try" in
20093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20094 *) ac_try_echo=$ac_try;;
20095esac
20096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20097 (eval "$ac_link") 2>conftest.er1
20098 ac_status=$?
20099 grep -v '^ *+' conftest.er1 >conftest.err
20100 rm -f conftest.er1
20101 cat conftest.err >&5
20102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103 (exit $ac_status); } &&
20104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20105 { (case "(($ac_try" in
20106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20107 *) ac_try_echo=$ac_try;;
20108esac
20109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20110 (eval "$ac_try") 2>&5
20111 ac_status=$?
20112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20113 (exit $ac_status); }; } &&
20114 { ac_try='test -s conftest$ac_exeext'
20115 { (case "(($ac_try" in
20116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20117 *) ac_try_echo=$ac_try;;
20118esac
20119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20120 (eval "$ac_try") 2>&5
20121 ac_status=$?
20122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123 (exit $ac_status); }; }; then
20124 ac_cv_lib_gcc___floatdidf=yes
20125else
20126 echo "$as_me: failed program was:" >&5
20127sed 's/^/| /' conftest.$ac_ext >&5
20128
20129 ac_cv_lib_gcc___floatdidf=no
20130fi
20131
20132rm -f core conftest.err conftest.$ac_objext \
20133 conftest$ac_exeext conftest.$ac_ext
20134LIBS=$ac_check_lib_save_LIBS
20135fi
20136{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
20137echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
20138if test $ac_cv_lib_gcc___floatdidf = yes; then
20139
20140cat >>confdefs.h <<\_ACEOF
20141#define HAVE___FLOATDIDF 1
20142_ACEOF
20143
20144fi
20145
20146 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
20147echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
20148if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
20149 echo $ECHO_N "(cached) $ECHO_C" >&6
20150else
20151 ac_check_lib_save_LIBS=$LIBS
20152LIBS="-lgcc $LIBS"
20153cat >conftest.$ac_ext <<_ACEOF
20154/* confdefs.h. */
20155_ACEOF
20156cat confdefs.h >>conftest.$ac_ext
20157cat >>conftest.$ac_ext <<_ACEOF
20158/* end confdefs.h. */
20159
20160/* Override any GCC internal prototype to avoid an error.
20161 Use char because int might match the return type of a GCC
20162 builtin and then its argument prototype would still apply. */
20163#ifdef __cplusplus
20164extern "C"
20165#endif
20166char __lshrdi3 ();
20167int
20168main ()
20169{
20170return __lshrdi3 ();
20171 ;
20172 return 0;
20173}
20174_ACEOF
20175rm -f conftest.$ac_objext conftest$ac_exeext
20176if { (ac_try="$ac_link"
20177case "(($ac_try" in
20178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20179 *) ac_try_echo=$ac_try;;
20180esac
20181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20182 (eval "$ac_link") 2>conftest.er1
20183 ac_status=$?
20184 grep -v '^ *+' conftest.er1 >conftest.err
20185 rm -f conftest.er1
20186 cat conftest.err >&5
20187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188 (exit $ac_status); } &&
20189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20190 { (case "(($ac_try" in
20191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20192 *) ac_try_echo=$ac_try;;
20193esac
20194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20195 (eval "$ac_try") 2>&5
20196 ac_status=$?
20197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198 (exit $ac_status); }; } &&
20199 { ac_try='test -s conftest$ac_exeext'
20200 { (case "(($ac_try" in
20201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20202 *) ac_try_echo=$ac_try;;
20203esac
20204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20205 (eval "$ac_try") 2>&5
20206 ac_status=$?
20207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20208 (exit $ac_status); }; }; then
20209 ac_cv_lib_gcc___lshrdi3=yes
20210else
20211 echo "$as_me: failed program was:" >&5
20212sed 's/^/| /' conftest.$ac_ext >&5
20213
20214 ac_cv_lib_gcc___lshrdi3=no
20215fi
20216
20217rm -f core conftest.err conftest.$ac_objext \
20218 conftest$ac_exeext conftest.$ac_ext
20219LIBS=$ac_check_lib_save_LIBS
20220fi
20221{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20222echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20223if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20224
20225cat >>confdefs.h <<\_ACEOF
20226#define HAVE___LSHRDI3 1
20227_ACEOF
20228
20229fi
20230
20231 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20232echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20233if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20234 echo $ECHO_N "(cached) $ECHO_C" >&6
20235else
20236 ac_check_lib_save_LIBS=$LIBS
20237LIBS="-lgcc $LIBS"
20238cat >conftest.$ac_ext <<_ACEOF
20239/* confdefs.h. */
20240_ACEOF
20241cat confdefs.h >>conftest.$ac_ext
20242cat >>conftest.$ac_ext <<_ACEOF
20243/* end confdefs.h. */
20244
20245/* Override any GCC internal prototype to avoid an error.
20246 Use char because int might match the return type of a GCC
20247 builtin and then its argument prototype would still apply. */
20248#ifdef __cplusplus
20249extern "C"
20250#endif
20251char __moddi3 ();
20252int
20253main ()
20254{
20255return __moddi3 ();
20256 ;
20257 return 0;
20258}
20259_ACEOF
20260rm -f conftest.$ac_objext conftest$ac_exeext
20261if { (ac_try="$ac_link"
20262case "(($ac_try" in
20263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20264 *) ac_try_echo=$ac_try;;
20265esac
20266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20267 (eval "$ac_link") 2>conftest.er1
20268 ac_status=$?
20269 grep -v '^ *+' conftest.er1 >conftest.err
20270 rm -f conftest.er1
20271 cat conftest.err >&5
20272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273 (exit $ac_status); } &&
20274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20275 { (case "(($ac_try" in
20276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20277 *) ac_try_echo=$ac_try;;
20278esac
20279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20280 (eval "$ac_try") 2>&5
20281 ac_status=$?
20282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20283 (exit $ac_status); }; } &&
20284 { ac_try='test -s conftest$ac_exeext'
20285 { (case "(($ac_try" in
20286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20287 *) ac_try_echo=$ac_try;;
20288esac
20289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20290 (eval "$ac_try") 2>&5
20291 ac_status=$?
20292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293 (exit $ac_status); }; }; then
20294 ac_cv_lib_gcc___moddi3=yes
20295else
20296 echo "$as_me: failed program was:" >&5
20297sed 's/^/| /' conftest.$ac_ext >&5
20298
20299 ac_cv_lib_gcc___moddi3=no
20300fi
20301
20302rm -f core conftest.err conftest.$ac_objext \
20303 conftest$ac_exeext conftest.$ac_ext
20304LIBS=$ac_check_lib_save_LIBS
20305fi
20306{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20307echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20308if test $ac_cv_lib_gcc___moddi3 = yes; then
20309
20310cat >>confdefs.h <<\_ACEOF
20311#define HAVE___MODDI3 1
20312_ACEOF
20313
20314fi
20315
20316 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20317echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20318if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20319 echo $ECHO_N "(cached) $ECHO_C" >&6
20320else
20321 ac_check_lib_save_LIBS=$LIBS
20322LIBS="-lgcc $LIBS"
20323cat >conftest.$ac_ext <<_ACEOF
20324/* confdefs.h. */
20325_ACEOF
20326cat confdefs.h >>conftest.$ac_ext
20327cat >>conftest.$ac_ext <<_ACEOF
20328/* end confdefs.h. */
20329
20330/* Override any GCC internal prototype to avoid an error.
20331 Use char because int might match the return type of a GCC
20332 builtin and then its argument prototype would still apply. */
20333#ifdef __cplusplus
20334extern "C"
20335#endif
20336char __udivdi3 ();
20337int
20338main ()
20339{
20340return __udivdi3 ();
20341 ;
20342 return 0;
20343}
20344_ACEOF
20345rm -f conftest.$ac_objext conftest$ac_exeext
20346if { (ac_try="$ac_link"
20347case "(($ac_try" in
20348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20349 *) ac_try_echo=$ac_try;;
20350esac
20351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20352 (eval "$ac_link") 2>conftest.er1
20353 ac_status=$?
20354 grep -v '^ *+' conftest.er1 >conftest.err
20355 rm -f conftest.er1
20356 cat conftest.err >&5
20357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358 (exit $ac_status); } &&
20359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20360 { (case "(($ac_try" in
20361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20362 *) ac_try_echo=$ac_try;;
20363esac
20364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20365 (eval "$ac_try") 2>&5
20366 ac_status=$?
20367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368 (exit $ac_status); }; } &&
20369 { ac_try='test -s conftest$ac_exeext'
20370 { (case "(($ac_try" in
20371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20372 *) ac_try_echo=$ac_try;;
20373esac
20374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20375 (eval "$ac_try") 2>&5
20376 ac_status=$?
20377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378 (exit $ac_status); }; }; then
20379 ac_cv_lib_gcc___udivdi3=yes
20380else
20381 echo "$as_me: failed program was:" >&5
20382sed 's/^/| /' conftest.$ac_ext >&5
20383
20384 ac_cv_lib_gcc___udivdi3=no
20385fi
20386
20387rm -f core conftest.err conftest.$ac_objext \
20388 conftest$ac_exeext conftest.$ac_ext
20389LIBS=$ac_check_lib_save_LIBS
20390fi
20391{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20392echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20393if test $ac_cv_lib_gcc___udivdi3 = yes; then
20394
20395cat >>confdefs.h <<\_ACEOF
20396#define HAVE___UDIVDI3 1
20397_ACEOF
20398
20399fi
20400
20401 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20402echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20403if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20404 echo $ECHO_N "(cached) $ECHO_C" >&6
20405else
20406 ac_check_lib_save_LIBS=$LIBS
20407LIBS="-lgcc $LIBS"
20408cat >conftest.$ac_ext <<_ACEOF
20409/* confdefs.h. */
20410_ACEOF
20411cat confdefs.h >>conftest.$ac_ext
20412cat >>conftest.$ac_ext <<_ACEOF
20413/* end confdefs.h. */
20414
20415/* Override any GCC internal prototype to avoid an error.
20416 Use char because int might match the return type of a GCC
20417 builtin and then its argument prototype would still apply. */
20418#ifdef __cplusplus
20419extern "C"
20420#endif
20421char __umoddi3 ();
20422int
20423main ()
20424{
20425return __umoddi3 ();
20426 ;
20427 return 0;
20428}
20429_ACEOF
20430rm -f conftest.$ac_objext conftest$ac_exeext
20431if { (ac_try="$ac_link"
20432case "(($ac_try" in
20433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20434 *) ac_try_echo=$ac_try;;
20435esac
20436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20437 (eval "$ac_link") 2>conftest.er1
20438 ac_status=$?
20439 grep -v '^ *+' conftest.er1 >conftest.err
20440 rm -f conftest.er1
20441 cat conftest.err >&5
20442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443 (exit $ac_status); } &&
20444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20445 { (case "(($ac_try" in
20446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20447 *) ac_try_echo=$ac_try;;
20448esac
20449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20450 (eval "$ac_try") 2>&5
20451 ac_status=$?
20452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20453 (exit $ac_status); }; } &&
20454 { ac_try='test -s conftest$ac_exeext'
20455 { (case "(($ac_try" in
20456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20457 *) ac_try_echo=$ac_try;;
20458esac
20459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20460 (eval "$ac_try") 2>&5
20461 ac_status=$?
20462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20463 (exit $ac_status); }; }; then
20464 ac_cv_lib_gcc___umoddi3=yes
20465else
20466 echo "$as_me: failed program was:" >&5
20467sed 's/^/| /' conftest.$ac_ext >&5
20468
20469 ac_cv_lib_gcc___umoddi3=no
20470fi
20471
20472rm -f core conftest.err conftest.$ac_objext \
20473 conftest$ac_exeext conftest.$ac_ext
20474LIBS=$ac_check_lib_save_LIBS
20475fi
20476{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20477echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20478if test $ac_cv_lib_gcc___umoddi3 = yes; then
20479
20480cat >>confdefs.h <<\_ACEOF
20481#define HAVE___UMODDI3 1
20482_ACEOF
20483
20484fi
20485
20486
20487 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20488echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20489if test "${ac_cv_lib_gcc___main+set}" = set; then
20490 echo $ECHO_N "(cached) $ECHO_C" >&6
20491else
20492 ac_check_lib_save_LIBS=$LIBS
20493LIBS="-lgcc $LIBS"
20494cat >conftest.$ac_ext <<_ACEOF
20495/* confdefs.h. */
20496_ACEOF
20497cat confdefs.h >>conftest.$ac_ext
20498cat >>conftest.$ac_ext <<_ACEOF
20499/* end confdefs.h. */
20500
20501/* Override any GCC internal prototype to avoid an error.
20502 Use char because int might match the return type of a GCC
20503 builtin and then its argument prototype would still apply. */
20504#ifdef __cplusplus
20505extern "C"
20506#endif
20507char __main ();
20508int
20509main ()
20510{
20511return __main ();
20512 ;
20513 return 0;
20514}
20515_ACEOF
20516rm -f conftest.$ac_objext conftest$ac_exeext
20517if { (ac_try="$ac_link"
20518case "(($ac_try" in
20519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20520 *) ac_try_echo=$ac_try;;
20521esac
20522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20523 (eval "$ac_link") 2>conftest.er1
20524 ac_status=$?
20525 grep -v '^ *+' conftest.er1 >conftest.err
20526 rm -f conftest.er1
20527 cat conftest.err >&5
20528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20529 (exit $ac_status); } &&
20530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20531 { (case "(($ac_try" in
20532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20533 *) ac_try_echo=$ac_try;;
20534esac
20535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20536 (eval "$ac_try") 2>&5
20537 ac_status=$?
20538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20539 (exit $ac_status); }; } &&
20540 { ac_try='test -s conftest$ac_exeext'
20541 { (case "(($ac_try" in
20542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20543 *) ac_try_echo=$ac_try;;
20544esac
20545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20546 (eval "$ac_try") 2>&5
20547 ac_status=$?
20548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20549 (exit $ac_status); }; }; then
20550 ac_cv_lib_gcc___main=yes
20551else
20552 echo "$as_me: failed program was:" >&5
20553sed 's/^/| /' conftest.$ac_ext >&5
20554
20555 ac_cv_lib_gcc___main=no
20556fi
20557
20558rm -f core conftest.err conftest.$ac_objext \
20559 conftest$ac_exeext conftest.$ac_ext
20560LIBS=$ac_check_lib_save_LIBS
20561fi
20562{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20563echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20564if test $ac_cv_lib_gcc___main = yes; then
20565
20566cat >>confdefs.h <<\_ACEOF
20567#define HAVE___MAIN 1
20568_ACEOF
20569
20570fi
20571
20572 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20573echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20574if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20575 echo $ECHO_N "(cached) $ECHO_C" >&6
20576else
20577 ac_check_lib_save_LIBS=$LIBS
20578LIBS="-lgcc $LIBS"
20579cat >conftest.$ac_ext <<_ACEOF
20580/* confdefs.h. */
20581_ACEOF
20582cat confdefs.h >>conftest.$ac_ext
20583cat >>conftest.$ac_ext <<_ACEOF
20584/* end confdefs.h. */
20585
20586/* Override any GCC internal prototype to avoid an error.
20587 Use char because int might match the return type of a GCC
20588 builtin and then its argument prototype would still apply. */
20589#ifdef __cplusplus
20590extern "C"
20591#endif
20592char __cmpdi2 ();
20593int
20594main ()
20595{
20596return __cmpdi2 ();
20597 ;
20598 return 0;
20599}
20600_ACEOF
20601rm -f conftest.$ac_objext conftest$ac_exeext
20602if { (ac_try="$ac_link"
20603case "(($ac_try" in
20604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20605 *) ac_try_echo=$ac_try;;
20606esac
20607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20608 (eval "$ac_link") 2>conftest.er1
20609 ac_status=$?
20610 grep -v '^ *+' conftest.er1 >conftest.err
20611 rm -f conftest.er1
20612 cat conftest.err >&5
20613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20614 (exit $ac_status); } &&
20615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20616 { (case "(($ac_try" in
20617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20618 *) ac_try_echo=$ac_try;;
20619esac
20620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20621 (eval "$ac_try") 2>&5
20622 ac_status=$?
20623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20624 (exit $ac_status); }; } &&
20625 { ac_try='test -s conftest$ac_exeext'
20626 { (case "(($ac_try" in
20627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20628 *) ac_try_echo=$ac_try;;
20629esac
20630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20631 (eval "$ac_try") 2>&5
20632 ac_status=$?
20633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634 (exit $ac_status); }; }; then
20635 ac_cv_lib_gcc___cmpdi2=yes
20636else
20637 echo "$as_me: failed program was:" >&5
20638sed 's/^/| /' conftest.$ac_ext >&5
20639
20640 ac_cv_lib_gcc___cmpdi2=no
20641fi
20642
20643rm -f core conftest.err conftest.$ac_objext \
20644 conftest$ac_exeext conftest.$ac_ext
20645LIBS=$ac_check_lib_save_LIBS
20646fi
20647{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20648echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20649if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20650
20651cat >>confdefs.h <<\_ACEOF
20652#define HAVE___CMPDI2 1
20653_ACEOF
20654
20655fi
20656
20657fi
20658
Torok Edwin871384f2010-01-26 08:50:50 +000020659
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020660{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20661echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20662if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20663 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020664else
Reid Spencera773bd52006-08-04 18:18:08 +000020665 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000020666ac_cpp='$CXXCPP $CPPFLAGS'
20667ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20668ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20669ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20670
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020671 cat >conftest.$ac_ext <<_ACEOF
20672/* confdefs.h. */
20673_ACEOF
20674cat confdefs.h >>conftest.$ac_ext
20675cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020676/* end confdefs.h. */
20677#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000020678int
20679main ()
20680{
20681float f; isnan(f);
20682 ;
20683 return 0;
20684}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020685_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020686rm -f conftest.$ac_objext
20687if { (ac_try="$ac_compile"
20688case "(($ac_try" in
20689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20690 *) ac_try_echo=$ac_try;;
20691esac
20692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20693 (eval "$ac_compile") 2>conftest.er1
20694 ac_status=$?
20695 grep -v '^ *+' conftest.er1 >conftest.err
20696 rm -f conftest.er1
20697 cat conftest.err >&5
20698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699 (exit $ac_status); } &&
20700 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20701 { (case "(($ac_try" in
20702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20703 *) ac_try_echo=$ac_try;;
20704esac
20705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20706 (eval "$ac_try") 2>&5
20707 ac_status=$?
20708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20709 (exit $ac_status); }; } &&
20710 { ac_try='test -s conftest.$ac_objext'
20711 { (case "(($ac_try" in
20712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20713 *) ac_try_echo=$ac_try;;
20714esac
20715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20716 (eval "$ac_try") 2>&5
20717 ac_status=$?
20718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20719 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020720 ac_cv_func_isnan_in_math_h=yes
20721else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020722 echo "$as_me: failed program was:" >&5
20723sed 's/^/| /' conftest.$ac_ext >&5
20724
20725 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020726fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020727
Reid Spencera773bd52006-08-04 18:18:08 +000020728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020729 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020730ac_cpp='$CPP $CPPFLAGS'
20731ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20732ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20733ac_compiler_gnu=$ac_cv_c_compiler_gnu
20734
20735fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020736{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20737echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020738
20739
20740if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020741
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020742cat >>confdefs.h <<\_ACEOF
20743#define HAVE_ISNAN_IN_MATH_H 1
20744_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020745
Reid Spencerabec8f92004-10-27 23:03:44 +000020746fi
20747
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020748{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20749echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20750if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20751 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020752else
Reid Spencera773bd52006-08-04 18:18:08 +000020753 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020754ac_cpp='$CXXCPP $CPPFLAGS'
20755ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20756ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20757ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20758
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020759 cat >conftest.$ac_ext <<_ACEOF
20760/* confdefs.h. */
20761_ACEOF
20762cat confdefs.h >>conftest.$ac_ext
20763cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020764/* end confdefs.h. */
20765#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000020766int
20767main ()
20768{
20769float f; isnan(f);
20770 ;
20771 return 0;
20772}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020773_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020774rm -f conftest.$ac_objext
20775if { (ac_try="$ac_compile"
20776case "(($ac_try" in
20777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20778 *) ac_try_echo=$ac_try;;
20779esac
20780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20781 (eval "$ac_compile") 2>conftest.er1
20782 ac_status=$?
20783 grep -v '^ *+' conftest.er1 >conftest.err
20784 rm -f conftest.er1
20785 cat conftest.err >&5
20786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787 (exit $ac_status); } &&
20788 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20789 { (case "(($ac_try" in
20790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20791 *) ac_try_echo=$ac_try;;
20792esac
20793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20794 (eval "$ac_try") 2>&5
20795 ac_status=$?
20796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797 (exit $ac_status); }; } &&
20798 { ac_try='test -s conftest.$ac_objext'
20799 { (case "(($ac_try" in
20800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20801 *) ac_try_echo=$ac_try;;
20802esac
20803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20804 (eval "$ac_try") 2>&5
20805 ac_status=$?
20806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020808 ac_cv_func_isnan_in_cmath=yes
20809else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020810 echo "$as_me: failed program was:" >&5
20811sed 's/^/| /' conftest.$ac_ext >&5
20812
20813 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020814fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020815
Reid Spencera773bd52006-08-04 18:18:08 +000020816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020817 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020818ac_cpp='$CPP $CPPFLAGS'
20819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20821ac_compiler_gnu=$ac_cv_c_compiler_gnu
20822
20823fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020824{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20825echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020826
20827if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020828
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020829cat >>confdefs.h <<\_ACEOF
20830#define HAVE_ISNAN_IN_CMATH 1
20831_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020832
Reid Spencerabec8f92004-10-27 23:03:44 +000020833fi
20834
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020835{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20836echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20837if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20838 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020839else
Reid Spencera773bd52006-08-04 18:18:08 +000020840 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020841ac_cpp='$CXXCPP $CPPFLAGS'
20842ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20843ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20844ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20845
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020846 cat >conftest.$ac_ext <<_ACEOF
20847/* confdefs.h. */
20848_ACEOF
20849cat confdefs.h >>conftest.$ac_ext
20850cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020851/* end confdefs.h. */
20852#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000020853int
20854main ()
20855{
20856float f; std::isnan(f);
20857 ;
20858 return 0;
20859}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020860_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020861rm -f conftest.$ac_objext
20862if { (ac_try="$ac_compile"
20863case "(($ac_try" in
20864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20865 *) ac_try_echo=$ac_try;;
20866esac
20867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20868 (eval "$ac_compile") 2>conftest.er1
20869 ac_status=$?
20870 grep -v '^ *+' conftest.er1 >conftest.err
20871 rm -f conftest.er1
20872 cat conftest.err >&5
20873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874 (exit $ac_status); } &&
20875 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20876 { (case "(($ac_try" in
20877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20878 *) ac_try_echo=$ac_try;;
20879esac
20880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20881 (eval "$ac_try") 2>&5
20882 ac_status=$?
20883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20884 (exit $ac_status); }; } &&
20885 { ac_try='test -s conftest.$ac_objext'
20886 { (case "(($ac_try" in
20887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20888 *) ac_try_echo=$ac_try;;
20889esac
20890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20891 (eval "$ac_try") 2>&5
20892 ac_status=$?
20893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20894 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020895 ac_cv_func_std_isnan_in_cmath=yes
20896else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020897 echo "$as_me: failed program was:" >&5
20898sed 's/^/| /' conftest.$ac_ext >&5
20899
20900 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020901fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020902
Reid Spencera773bd52006-08-04 18:18:08 +000020903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020904 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020905ac_cpp='$CPP $CPPFLAGS'
20906ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20907ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20908ac_compiler_gnu=$ac_cv_c_compiler_gnu
20909
20910fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020911{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20912echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020913
20914if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020915
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020916cat >>confdefs.h <<\_ACEOF
20917#define HAVE_STD_ISNAN_IN_CMATH 1
20918_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020919
Reid Spencerabec8f92004-10-27 23:03:44 +000020920fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020921
20922
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020923{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20924echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
20925if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20926 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000020927else
Reid Spencera773bd52006-08-04 18:18:08 +000020928 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000020929ac_cpp='$CXXCPP $CPPFLAGS'
20930ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20931ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20932ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20933
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020934 cat >conftest.$ac_ext <<_ACEOF
20935/* confdefs.h. */
20936_ACEOF
20937cat confdefs.h >>conftest.$ac_ext
20938cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000020939/* end confdefs.h. */
20940#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000020941int
20942main ()
20943{
20944float f; isinf(f);
20945 ;
20946 return 0;
20947}
Brian Gaeke52a551d2004-07-21 03:14:12 +000020948_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020949rm -f conftest.$ac_objext
20950if { (ac_try="$ac_compile"
20951case "(($ac_try" in
20952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20953 *) ac_try_echo=$ac_try;;
20954esac
20955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20956 (eval "$ac_compile") 2>conftest.er1
20957 ac_status=$?
20958 grep -v '^ *+' conftest.er1 >conftest.err
20959 rm -f conftest.er1
20960 cat conftest.err >&5
20961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20962 (exit $ac_status); } &&
20963 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20964 { (case "(($ac_try" in
20965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20966 *) ac_try_echo=$ac_try;;
20967esac
20968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20969 (eval "$ac_try") 2>&5
20970 ac_status=$?
20971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20972 (exit $ac_status); }; } &&
20973 { ac_try='test -s conftest.$ac_objext'
20974 { (case "(($ac_try" in
20975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20976 *) ac_try_echo=$ac_try;;
20977esac
20978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20979 (eval "$ac_try") 2>&5
20980 ac_status=$?
20981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020983 ac_cv_func_isinf_in_math_h=yes
20984else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020985 echo "$as_me: failed program was:" >&5
20986sed 's/^/| /' conftest.$ac_ext >&5
20987
20988 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000020989fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020990
Reid Spencera773bd52006-08-04 18:18:08 +000020991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020992 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000020993ac_cpp='$CPP $CPPFLAGS'
20994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20996ac_compiler_gnu=$ac_cv_c_compiler_gnu
20997
20998fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020999{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21000echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000021001
21002if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000021003
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021004cat >>confdefs.h <<\_ACEOF
21005#define HAVE_ISINF_IN_MATH_H 1
21006_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021007
Reid Spencerabec8f92004-10-27 23:03:44 +000021008fi
21009
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021010{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21011echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
21012if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21013 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000021014else
Reid Spencera773bd52006-08-04 18:18:08 +000021015 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000021016ac_cpp='$CXXCPP $CPPFLAGS'
21017ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21018ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21019ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21020
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021021 cat >conftest.$ac_ext <<_ACEOF
21022/* confdefs.h. */
21023_ACEOF
21024cat confdefs.h >>conftest.$ac_ext
21025cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021026/* end confdefs.h. */
21027#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000021028int
21029main ()
21030{
21031float f; isinf(f);
21032 ;
21033 return 0;
21034}
Brian Gaeke52a551d2004-07-21 03:14:12 +000021035_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021036rm -f conftest.$ac_objext
21037if { (ac_try="$ac_compile"
21038case "(($ac_try" in
21039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21040 *) ac_try_echo=$ac_try;;
21041esac
21042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21043 (eval "$ac_compile") 2>conftest.er1
21044 ac_status=$?
21045 grep -v '^ *+' conftest.er1 >conftest.err
21046 rm -f conftest.er1
21047 cat conftest.err >&5
21048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21049 (exit $ac_status); } &&
21050 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21051 { (case "(($ac_try" in
21052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21053 *) ac_try_echo=$ac_try;;
21054esac
21055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21056 (eval "$ac_try") 2>&5
21057 ac_status=$?
21058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059 (exit $ac_status); }; } &&
21060 { ac_try='test -s conftest.$ac_objext'
21061 { (case "(($ac_try" in
21062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21063 *) ac_try_echo=$ac_try;;
21064esac
21065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21066 (eval "$ac_try") 2>&5
21067 ac_status=$?
21068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21069 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000021070 ac_cv_func_isinf_in_cmath=yes
21071else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021072 echo "$as_me: failed program was:" >&5
21073sed 's/^/| /' conftest.$ac_ext >&5
21074
21075 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000021076fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021077
Reid Spencera773bd52006-08-04 18:18:08 +000021078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000021079 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000021080ac_cpp='$CPP $CPPFLAGS'
21081ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21082ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21083ac_compiler_gnu=$ac_cv_c_compiler_gnu
21084
21085fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021086{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21087echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000021088
21089if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000021090
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021091cat >>confdefs.h <<\_ACEOF
21092#define HAVE_ISINF_IN_CMATH 1
21093_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021094
Reid Spencerabec8f92004-10-27 23:03:44 +000021095fi
21096
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021097{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21098echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
21099if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21100 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000021101else
Reid Spencera773bd52006-08-04 18:18:08 +000021102 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000021103ac_cpp='$CXXCPP $CPPFLAGS'
21104ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21105ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21106ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21107
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021108 cat >conftest.$ac_ext <<_ACEOF
21109/* confdefs.h. */
21110_ACEOF
21111cat confdefs.h >>conftest.$ac_ext
21112cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021113/* end confdefs.h. */
21114#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000021115int
21116main ()
21117{
21118float f; std::isinf(f)}
21119 ;
21120 return 0;
21121}
Brian Gaeke52a551d2004-07-21 03:14:12 +000021122_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021123rm -f conftest.$ac_objext
21124if { (ac_try="$ac_compile"
21125case "(($ac_try" in
21126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21127 *) ac_try_echo=$ac_try;;
21128esac
21129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21130 (eval "$ac_compile") 2>conftest.er1
21131 ac_status=$?
21132 grep -v '^ *+' conftest.er1 >conftest.err
21133 rm -f conftest.er1
21134 cat conftest.err >&5
21135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21136 (exit $ac_status); } &&
21137 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21138 { (case "(($ac_try" in
21139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21140 *) ac_try_echo=$ac_try;;
21141esac
21142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21143 (eval "$ac_try") 2>&5
21144 ac_status=$?
21145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146 (exit $ac_status); }; } &&
21147 { ac_try='test -s conftest.$ac_objext'
21148 { (case "(($ac_try" in
21149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21150 *) ac_try_echo=$ac_try;;
21151esac
21152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21153 (eval "$ac_try") 2>&5
21154 ac_status=$?
21155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21156 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000021157 ac_cv_func_std_isinf_in_cmath=yes
21158else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021159 echo "$as_me: failed program was:" >&5
21160sed 's/^/| /' conftest.$ac_ext >&5
21161
21162 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000021163fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021164
Reid Spencera773bd52006-08-04 18:18:08 +000021165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000021166 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000021167ac_cpp='$CPP $CPPFLAGS'
21168ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21169ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21170ac_compiler_gnu=$ac_cv_c_compiler_gnu
21171
21172fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021173{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21174echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000021175
21176if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000021177
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021178cat >>confdefs.h <<\_ACEOF
21179#define HAVE_STD_ISINF_IN_CMATH 1
21180_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021181
Reid Spencerabec8f92004-10-27 23:03:44 +000021182fi
21183
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021184{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21185echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21186if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21187 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000021188else
Reid Spencera773bd52006-08-04 18:18:08 +000021189 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000021190ac_cpp='$CXXCPP $CPPFLAGS'
21191ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21192ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21193ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21194
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021195 cat >conftest.$ac_ext <<_ACEOF
21196/* confdefs.h. */
21197_ACEOF
21198cat confdefs.h >>conftest.$ac_ext
21199cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000021200/* end confdefs.h. */
21201#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000021202int
21203main ()
21204{
21205float f; finite(f);
21206 ;
21207 return 0;
21208}
Brian Gaeked59a6472004-07-21 03:33:58 +000021209_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021210rm -f conftest.$ac_objext
21211if { (ac_try="$ac_compile"
21212case "(($ac_try" in
21213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21214 *) ac_try_echo=$ac_try;;
21215esac
21216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21217 (eval "$ac_compile") 2>conftest.er1
21218 ac_status=$?
21219 grep -v '^ *+' conftest.er1 >conftest.err
21220 rm -f conftest.er1
21221 cat conftest.err >&5
21222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21223 (exit $ac_status); } &&
21224 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21225 { (case "(($ac_try" in
21226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21227 *) ac_try_echo=$ac_try;;
21228esac
21229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21230 (eval "$ac_try") 2>&5
21231 ac_status=$?
21232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233 (exit $ac_status); }; } &&
21234 { ac_try='test -s conftest.$ac_objext'
21235 { (case "(($ac_try" in
21236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21237 *) ac_try_echo=$ac_try;;
21238esac
21239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21240 (eval "$ac_try") 2>&5
21241 ac_status=$?
21242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21243 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000021244 ac_cv_func_finite_in_ieeefp_h=yes
21245else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021246 echo "$as_me: failed program was:" >&5
21247sed 's/^/| /' conftest.$ac_ext >&5
21248
21249 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000021250fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021251
Reid Spencera773bd52006-08-04 18:18:08 +000021252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000021253 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000021254ac_cpp='$CPP $CPPFLAGS'
21255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21257ac_compiler_gnu=$ac_cv_c_compiler_gnu
21258
21259fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021260{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21261echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000021262
Brian Gaeke6802b552004-10-28 05:06:45 +000021263if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000021264
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021265cat >>confdefs.h <<\_ACEOF
21266#define HAVE_FINITE_IN_IEEEFP_H 1
21267_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000021268
Reid Spencerabec8f92004-10-27 23:03:44 +000021269fi
21270
21271
21272
Reid Spencer30fe5262007-01-20 07:48:49 +000021273if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000021274
21275
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021276for ac_header in stdlib.h unistd.h
21277do
21278as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21279if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21280 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21281echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21282if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21283 echo $ECHO_N "(cached) $ECHO_C" >&6
21284fi
21285ac_res=`eval echo '${'$as_ac_Header'}'`
21286 { echo "$as_me:$LINENO: result: $ac_res" >&5
21287echo "${ECHO_T}$ac_res" >&6; }
21288else
21289 # Is the header compilable?
21290{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21291echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21292cat >conftest.$ac_ext <<_ACEOF
21293/* confdefs.h. */
21294_ACEOF
21295cat confdefs.h >>conftest.$ac_ext
21296cat >>conftest.$ac_ext <<_ACEOF
21297/* end confdefs.h. */
21298$ac_includes_default
21299#include <$ac_header>
21300_ACEOF
21301rm -f conftest.$ac_objext
21302if { (ac_try="$ac_compile"
21303case "(($ac_try" in
21304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21305 *) ac_try_echo=$ac_try;;
21306esac
21307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21308 (eval "$ac_compile") 2>conftest.er1
21309 ac_status=$?
21310 grep -v '^ *+' conftest.er1 >conftest.err
21311 rm -f conftest.er1
21312 cat conftest.err >&5
21313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21314 (exit $ac_status); } &&
21315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21316 { (case "(($ac_try" in
21317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21318 *) ac_try_echo=$ac_try;;
21319esac
21320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21321 (eval "$ac_try") 2>&5
21322 ac_status=$?
21323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21324 (exit $ac_status); }; } &&
21325 { ac_try='test -s conftest.$ac_objext'
21326 { (case "(($ac_try" in
21327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21328 *) ac_try_echo=$ac_try;;
21329esac
21330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21331 (eval "$ac_try") 2>&5
21332 ac_status=$?
21333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21334 (exit $ac_status); }; }; then
21335 ac_header_compiler=yes
21336else
21337 echo "$as_me: failed program was:" >&5
21338sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021339
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021340 ac_header_compiler=no
21341fi
21342
21343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21344{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21345echo "${ECHO_T}$ac_header_compiler" >&6; }
21346
21347# Is the header present?
21348{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21349echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21350cat >conftest.$ac_ext <<_ACEOF
21351/* confdefs.h. */
21352_ACEOF
21353cat confdefs.h >>conftest.$ac_ext
21354cat >>conftest.$ac_ext <<_ACEOF
21355/* end confdefs.h. */
21356#include <$ac_header>
21357_ACEOF
21358if { (ac_try="$ac_cpp conftest.$ac_ext"
21359case "(($ac_try" in
21360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21361 *) ac_try_echo=$ac_try;;
21362esac
21363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21364 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21365 ac_status=$?
21366 grep -v '^ *+' conftest.er1 >conftest.err
21367 rm -f conftest.er1
21368 cat conftest.err >&5
21369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21370 (exit $ac_status); } >/dev/null; then
21371 if test -s conftest.err; then
21372 ac_cpp_err=$ac_c_preproc_warn_flag
21373 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21374 else
21375 ac_cpp_err=
21376 fi
21377else
21378 ac_cpp_err=yes
21379fi
21380if test -z "$ac_cpp_err"; then
21381 ac_header_preproc=yes
21382else
21383 echo "$as_me: failed program was:" >&5
21384sed 's/^/| /' conftest.$ac_ext >&5
21385
21386 ac_header_preproc=no
21387fi
21388
21389rm -f conftest.err conftest.$ac_ext
21390{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21391echo "${ECHO_T}$ac_header_preproc" >&6; }
21392
21393# So? What about this header?
21394case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21395 yes:no: )
21396 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21397echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21399echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21400 ac_header_preproc=yes
21401 ;;
21402 no:yes:* )
21403 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21404echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21405 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21406echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21407 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21408echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21409 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21410echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21411 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21412echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21413 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21414echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21415 ( cat <<\_ASBOX
21416## ----------------------------------- ##
21417## Report this to llvmbugs@cs.uiuc.edu ##
21418## ----------------------------------- ##
21419_ASBOX
21420 ) | sed "s/^/$as_me: WARNING: /" >&2
21421 ;;
21422esac
21423{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21424echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21425if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21426 echo $ECHO_N "(cached) $ECHO_C" >&6
21427else
21428 eval "$as_ac_Header=\$ac_header_preproc"
21429fi
21430ac_res=`eval echo '${'$as_ac_Header'}'`
21431 { echo "$as_me:$LINENO: result: $ac_res" >&5
21432echo "${ECHO_T}$ac_res" >&6; }
21433
21434fi
21435if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000021436 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021437#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000021438_ACEOF
21439
21440fi
21441
21442done
21443
21444
21445for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021446do
21447as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21448{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21449echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21450if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21451 echo $ECHO_N "(cached) $ECHO_C" >&6
21452else
21453 cat >conftest.$ac_ext <<_ACEOF
21454/* confdefs.h. */
21455_ACEOF
21456cat confdefs.h >>conftest.$ac_ext
21457cat >>conftest.$ac_ext <<_ACEOF
21458/* end confdefs.h. */
21459/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21460 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21461#define $ac_func innocuous_$ac_func
21462
21463/* System header to define __stub macros and hopefully few prototypes,
21464 which can conflict with char $ac_func (); below.
21465 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21466 <limits.h> exists even on freestanding compilers. */
21467
21468#ifdef __STDC__
21469# include <limits.h>
21470#else
21471# include <assert.h>
21472#endif
21473
21474#undef $ac_func
21475
21476/* Override any GCC internal prototype to avoid an error.
21477 Use char because int might match the return type of a GCC
21478 builtin and then its argument prototype would still apply. */
21479#ifdef __cplusplus
21480extern "C"
21481#endif
21482char $ac_func ();
21483/* The GNU C library defines this for functions which it implements
21484 to always fail with ENOSYS. Some functions are actually named
21485 something starting with __ and the normal name is an alias. */
21486#if defined __stub_$ac_func || defined __stub___$ac_func
21487choke me
21488#endif
21489
21490int
21491main ()
21492{
21493return $ac_func ();
21494 ;
21495 return 0;
21496}
21497_ACEOF
21498rm -f conftest.$ac_objext conftest$ac_exeext
21499if { (ac_try="$ac_link"
21500case "(($ac_try" in
21501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21502 *) ac_try_echo=$ac_try;;
21503esac
21504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21505 (eval "$ac_link") 2>conftest.er1
21506 ac_status=$?
21507 grep -v '^ *+' conftest.er1 >conftest.err
21508 rm -f conftest.er1
21509 cat conftest.err >&5
21510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21511 (exit $ac_status); } &&
21512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21513 { (case "(($ac_try" in
21514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21515 *) ac_try_echo=$ac_try;;
21516esac
21517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21518 (eval "$ac_try") 2>&5
21519 ac_status=$?
21520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21521 (exit $ac_status); }; } &&
21522 { ac_try='test -s conftest$ac_exeext'
21523 { (case "(($ac_try" in
21524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21525 *) ac_try_echo=$ac_try;;
21526esac
21527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21528 (eval "$ac_try") 2>&5
21529 ac_status=$?
21530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21531 (exit $ac_status); }; }; then
21532 eval "$as_ac_var=yes"
21533else
21534 echo "$as_me: failed program was:" >&5
21535sed 's/^/| /' conftest.$ac_ext >&5
21536
21537 eval "$as_ac_var=no"
21538fi
21539
21540rm -f core conftest.err conftest.$ac_objext \
21541 conftest$ac_exeext conftest.$ac_ext
21542fi
21543ac_res=`eval echo '${'$as_ac_var'}'`
21544 { echo "$as_me:$LINENO: result: $ac_res" >&5
21545echo "${ECHO_T}$ac_res" >&6; }
21546if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000021547 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021548#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000021549_ACEOF
21550
21551fi
21552done
21553
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021554{ echo "$as_me:$LINENO: checking for working mmap" >&5
21555echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21556if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21557 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000021558else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021559 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000021560 ac_cv_func_mmap_fixed_mapped=no
21561else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021562 cat >conftest.$ac_ext <<_ACEOF
21563/* confdefs.h. */
21564_ACEOF
21565cat confdefs.h >>conftest.$ac_ext
21566cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021567/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021568$ac_includes_default
21569/* malloc might have been renamed as rpl_malloc. */
21570#undef malloc
21571
21572/* Thanks to Mike Haertel and Jim Avera for this test.
21573 Here is a matrix of mmap possibilities:
21574 mmap private not fixed
21575 mmap private fixed at somewhere currently unmapped
21576 mmap private fixed at somewhere already mapped
21577 mmap shared not fixed
21578 mmap shared fixed at somewhere currently unmapped
21579 mmap shared fixed at somewhere already mapped
21580 For private mappings, we should verify that changes cannot be read()
21581 back from the file, nor mmap's back from the file at a different
21582 address. (There have been systems where private was not correctly
21583 implemented like the infamous i386 svr4.0, and systems where the
21584 VM page cache was not coherent with the file system buffer cache
21585 like early versions of FreeBSD and possibly contemporary NetBSD.)
21586 For shared mappings, we should conversely verify that changes get
21587 propagated back to all the places they're supposed to be.
21588
21589 Grep wants private fixed already mapped.
21590 The main things grep needs to know about mmap are:
21591 * does it exist and is it safe to write into the mmap'd area
21592 * how to use it (BSD variants) */
21593
21594#include <fcntl.h>
21595#include <sys/mman.h>
21596
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021597#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000021598char *malloc ();
21599#endif
21600
21601/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021602#if !HAVE_GETPAGESIZE
21603/* Assume that all systems that can run configure have sys/param.h. */
21604# if !HAVE_SYS_PARAM_H
21605# define HAVE_SYS_PARAM_H 1
21606# endif
21607
John Criswell7a73b802003-06-30 21:59:07 +000021608# ifdef _SC_PAGESIZE
21609# define getpagesize() sysconf(_SC_PAGESIZE)
21610# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021611# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000021612# include <sys/param.h>
21613# ifdef EXEC_PAGESIZE
21614# define getpagesize() EXEC_PAGESIZE
21615# else /* no EXEC_PAGESIZE */
21616# ifdef NBPG
21617# define getpagesize() NBPG * CLSIZE
21618# ifndef CLSIZE
21619# define CLSIZE 1
21620# endif /* no CLSIZE */
21621# else /* no NBPG */
21622# ifdef NBPC
21623# define getpagesize() NBPC
21624# else /* no NBPC */
21625# ifdef PAGESIZE
21626# define getpagesize() PAGESIZE
21627# endif /* PAGESIZE */
21628# endif /* no NBPC */
21629# endif /* no NBPG */
21630# endif /* no EXEC_PAGESIZE */
21631# else /* no HAVE_SYS_PARAM_H */
21632# define getpagesize() 8192 /* punt totally */
21633# endif /* no HAVE_SYS_PARAM_H */
21634# endif /* no _SC_PAGESIZE */
21635
21636#endif /* no HAVE_GETPAGESIZE */
21637
21638int
21639main ()
21640{
21641 char *data, *data2, *data3;
21642 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021643 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000021644
21645 pagesize = getpagesize ();
21646
21647 /* First, make a file with some known garbage in it. */
21648 data = (char *) malloc (pagesize);
21649 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000021650 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021651 for (i = 0; i < pagesize; ++i)
21652 *(data + i) = rand ();
21653 umask (0);
21654 fd = creat ("conftest.mmap", 0600);
21655 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021656 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021657 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021658 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021659 close (fd);
21660
21661 /* Next, try to mmap the file at a fixed address which already has
21662 something else allocated at it. If we can, also make sure that
21663 we see the same garbage. */
21664 fd = open ("conftest.mmap", O_RDWR);
21665 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021666 return 1;
21667 data2 = (char *) malloc (2 * pagesize);
21668 if (!data2)
21669 return 1;
21670 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000021671 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000021672 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021673 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021674 for (i = 0; i < pagesize; ++i)
21675 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021676 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021677
21678 /* Finally, make sure that changes to the mapped area do not
21679 percolate back to the file as seen by read(). (This is a bug on
21680 some variants of i386 svr4.0.) */
21681 for (i = 0; i < pagesize; ++i)
21682 *(data2 + i) = *(data2 + i) + 1;
21683 data3 = (char *) malloc (pagesize);
21684 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021685 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021686 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021687 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021688 for (i = 0; i < pagesize; ++i)
21689 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021690 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021691 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000021692 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021693}
21694_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021695rm -f conftest$ac_exeext
21696if { (ac_try="$ac_link"
21697case "(($ac_try" in
21698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21699 *) ac_try_echo=$ac_try;;
21700esac
21701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21702 (eval "$ac_link") 2>&5
21703 ac_status=$?
21704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21705 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21706 { (case "(($ac_try" in
21707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21708 *) ac_try_echo=$ac_try;;
21709esac
21710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21711 (eval "$ac_try") 2>&5
21712 ac_status=$?
21713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21714 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000021715 ac_cv_func_mmap_fixed_mapped=yes
21716else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021717 echo "$as_me: program exited with status $ac_status" >&5
21718echo "$as_me: failed program was:" >&5
21719sed 's/^/| /' conftest.$ac_ext >&5
21720
21721( exit $ac_status )
21722ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000021723fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021724rm -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 +000021725fi
Reid Spencera773bd52006-08-04 18:18:08 +000021726
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021727
John Criswell7a73b802003-06-30 21:59:07 +000021728fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021729{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21730echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000021731if test $ac_cv_func_mmap_fixed_mapped = yes; then
21732
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021733cat >>confdefs.h <<\_ACEOF
21734#define HAVE_MMAP 1
21735_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021736
21737fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021738rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000021739
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021740 { echo "$as_me:$LINENO: checking for mmap of files" >&5
21741echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21742if test "${ac_cv_func_mmap_file+set}" = set; then
21743 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000021744else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021745 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000021746ac_cpp='$CPP $CPPFLAGS'
21747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21749ac_compiler_gnu=$ac_cv_c_compiler_gnu
21750
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021751 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000021752 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000021753else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021754 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000021755
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021756 /* confdefs.h. */
21757_ACEOF
21758cat confdefs.h >>conftest.$ac_ext
21759cat >>conftest.$ac_ext <<_ACEOF
21760/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000021761
John Criswell7a73b802003-06-30 21:59:07 +000021762#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000021763#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000021764#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000021765
21766int
21767main ()
21768{
John Criswell7a73b802003-06-30 21:59:07 +000021769
21770 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000021771 fd = creat ("foo",0777);
21772 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21773 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000021774 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000021775 ;
21776 return 0;
21777}
John Criswell7a73b802003-06-30 21:59:07 +000021778_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021779rm -f conftest$ac_exeext
21780if { (ac_try="$ac_link"
21781case "(($ac_try" in
21782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21783 *) ac_try_echo=$ac_try;;
21784esac
21785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21786 (eval "$ac_link") 2>&5
21787 ac_status=$?
21788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21789 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21790 { (case "(($ac_try" in
21791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21792 *) ac_try_echo=$ac_try;;
21793esac
21794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21795 (eval "$ac_try") 2>&5
21796 ac_status=$?
21797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000021799 ac_cv_func_mmap_file=yes
21800else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021801 echo "$as_me: program exited with status $ac_status" >&5
21802echo "$as_me: failed program was:" >&5
21803sed 's/^/| /' conftest.$ac_ext >&5
21804
21805( exit $ac_status )
21806ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000021807fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021808rm -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 +000021809fi
Reid Spencera773bd52006-08-04 18:18:08 +000021810
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021811
John Criswell7a73b802003-06-30 21:59:07 +000021812 ac_ext=c
21813ac_cpp='$CPP $CPPFLAGS'
21814ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21815ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21816ac_compiler_gnu=$ac_cv_c_compiler_gnu
21817
21818
21819fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021820{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21821echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000021822if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000021823
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021824cat >>confdefs.h <<\_ACEOF
21825#define HAVE_MMAP_FILE
21826_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021827
21828 MMAP_FILE=yes
21829
21830fi
21831
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021832 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21833echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21834if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21835 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000021836else
Reid Spencer582a23c2004-12-29 07:07:57 +000021837 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000021838 ac_cv_need_dev_zero_for_mmap=yes
21839 else
21840 ac_cv_need_dev_zero_for_mmap=no
21841 fi
21842
21843fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021844{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21845echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000021846if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21847
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021848cat >>confdefs.h <<\_ACEOF
21849#define NEED_DEV_ZERO_FOR_MMAP 1
21850_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000021851
21852fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021853
Reid Spencer30fe5262007-01-20 07:48:49 +000021854 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21855 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021856 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21857echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000021858 fi
21859 if test "$ac_cv_func_mmap_file" = "no"
21860 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021861 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21862echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000021863 fi
John Criswellb13092b2003-07-22 21:00:24 +000021864fi
John Criswell7a73b802003-06-30 21:59:07 +000021865
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021866{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21867echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000021868ac_ext=cpp
21869ac_cpp='$CXXCPP $CPPFLAGS'
21870ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21871ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21872ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21873
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021874cat >conftest.$ac_ext <<_ACEOF
21875/* confdefs.h. */
21876_ACEOF
21877cat confdefs.h >>conftest.$ac_ext
21878cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000021879/* end confdefs.h. */
21880int main() {
Owen Andersona8603702009-05-19 22:18:56 +000021881 volatile unsigned long val = 1;
21882 __sync_synchronize();
21883 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000021884 __sync_add_and_fetch(&val, 1);
21885 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000021886 return 0;
21887 }
Owen Andersond4b272b2009-05-18 23:58:51 +000021888
21889_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021890rm -f conftest.$ac_objext conftest$ac_exeext
21891if { (ac_try="$ac_link"
21892case "(($ac_try" in
21893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21894 *) ac_try_echo=$ac_try;;
21895esac
21896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21897 (eval "$ac_link") 2>conftest.er1
21898 ac_status=$?
21899 grep -v '^ *+' conftest.er1 >conftest.err
21900 rm -f conftest.er1
21901 cat conftest.err >&5
21902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21903 (exit $ac_status); } &&
21904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21905 { (case "(($ac_try" in
21906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21907 *) ac_try_echo=$ac_try;;
21908esac
21909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21910 (eval "$ac_try") 2>&5
21911 ac_status=$?
21912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21913 (exit $ac_status); }; } &&
21914 { ac_try='test -s conftest$ac_exeext'
21915 { (case "(($ac_try" in
21916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21917 *) ac_try_echo=$ac_try;;
21918esac
21919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21920 (eval "$ac_try") 2>&5
21921 ac_status=$?
21922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21923 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000021924 ac_ext=c
21925ac_cpp='$CPP $CPPFLAGS'
21926ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21927ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21928ac_compiler_gnu=$ac_cv_c_compiler_gnu
21929
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021930 { echo "$as_me:$LINENO: result: yes" >&5
21931echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000021932
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021933cat >>confdefs.h <<\_ACEOF
21934#define LLVM_MULTITHREADED 1
21935_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000021936
Owen Andersond4b272b2009-05-18 23:58:51 +000021937else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021938 echo "$as_me: failed program was:" >&5
21939sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000021940
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021941 { echo "$as_me:$LINENO: result: no" >&5
21942echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000021943
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021944cat >>confdefs.h <<\_ACEOF
21945#define LLVM_MULTITHREADED 0
21946_ACEOF
21947
21948 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
21949echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000021950fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021951
Owen Andersond4b272b2009-05-18 23:58:51 +000021952rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021953 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000021954
John Criswell7a73b802003-06-30 21:59:07 +000021955
Nick Lewycky4372e692009-09-29 06:18:23 +000021956if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021957 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
21958echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
21959if test "${llvm_cv_linux_mixed+set}" = set; then
21960 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000021961else
21962 ac_ext=c
21963ac_cpp='$CPP $CPPFLAGS'
21964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21966ac_compiler_gnu=$ac_cv_c_compiler_gnu
21967
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021968 cat >conftest.$ac_ext <<_ACEOF
21969/* confdefs.h. */
21970_ACEOF
21971cat confdefs.h >>conftest.$ac_ext
21972cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000021973/* end confdefs.h. */
21974#ifndef __x86_64__
21975 error: Not x86-64 even if uname says so!
21976 #endif
21977
21978int
21979main ()
21980{
21981
21982 ;
21983 return 0;
21984}
21985_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021986rm -f conftest.$ac_objext
21987if { (ac_try="$ac_compile"
21988case "(($ac_try" in
21989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21990 *) ac_try_echo=$ac_try;;
21991esac
21992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21993 (eval "$ac_compile") 2>conftest.er1
21994 ac_status=$?
21995 grep -v '^ *+' conftest.er1 >conftest.err
21996 rm -f conftest.er1
21997 cat conftest.err >&5
21998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21999 (exit $ac_status); } &&
22000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22001 { (case "(($ac_try" in
22002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22003 *) ac_try_echo=$ac_try;;
22004esac
22005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22006 (eval "$ac_try") 2>&5
22007 ac_status=$?
22008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22009 (exit $ac_status); }; } &&
22010 { ac_try='test -s conftest.$ac_objext'
22011 { (case "(($ac_try" in
22012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22013 *) ac_try_echo=$ac_try;;
22014esac
22015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22016 (eval "$ac_try") 2>&5
22017 ac_status=$?
22018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22019 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000022020 llvm_cv_linux_mixed=no
22021else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022022 echo "$as_me: failed program was:" >&5
22023sed 's/^/| /' conftest.$ac_ext >&5
22024
22025 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000022026fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022027
Nick Lewycky4372e692009-09-29 06:18:23 +000022028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22029 ac_ext=c
22030ac_cpp='$CPP $CPPFLAGS'
22031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22033ac_compiler_gnu=$ac_cv_c_compiler_gnu
22034
22035
22036fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022037{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
22038echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000022039
22040 if test "$llvm_cv_linux_mixed" = "yes"; then
22041 llvm_cv_target_arch="x86"
22042 ARCH="x86"
22043 fi
22044fi
22045
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022046
Reid Spencer9372f152007-07-30 20:13:24 +000022047for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022048do
22049as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22050{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22051echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22052if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22053 echo $ECHO_N "(cached) $ECHO_C" >&6
22054else
22055 cat >conftest.$ac_ext <<_ACEOF
22056/* confdefs.h. */
22057_ACEOF
22058cat confdefs.h >>conftest.$ac_ext
22059cat >>conftest.$ac_ext <<_ACEOF
22060/* end confdefs.h. */
22061/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22062 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22063#define $ac_func innocuous_$ac_func
22064
22065/* System header to define __stub macros and hopefully few prototypes,
22066 which can conflict with char $ac_func (); below.
22067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22068 <limits.h> exists even on freestanding compilers. */
22069
22070#ifdef __STDC__
22071# include <limits.h>
22072#else
22073# include <assert.h>
22074#endif
22075
22076#undef $ac_func
22077
22078/* Override any GCC internal prototype to avoid an error.
22079 Use char because int might match the return type of a GCC
22080 builtin and then its argument prototype would still apply. */
22081#ifdef __cplusplus
22082extern "C"
22083#endif
22084char $ac_func ();
22085/* The GNU C library defines this for functions which it implements
22086 to always fail with ENOSYS. Some functions are actually named
22087 something starting with __ and the normal name is an alias. */
22088#if defined __stub_$ac_func || defined __stub___$ac_func
22089choke me
22090#endif
22091
22092int
22093main ()
22094{
22095return $ac_func ();
22096 ;
22097 return 0;
22098}
22099_ACEOF
22100rm -f conftest.$ac_objext conftest$ac_exeext
22101if { (ac_try="$ac_link"
22102case "(($ac_try" in
22103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22104 *) ac_try_echo=$ac_try;;
22105esac
22106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22107 (eval "$ac_link") 2>conftest.er1
22108 ac_status=$?
22109 grep -v '^ *+' conftest.er1 >conftest.err
22110 rm -f conftest.er1
22111 cat conftest.err >&5
22112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22113 (exit $ac_status); } &&
22114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22115 { (case "(($ac_try" in
22116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22117 *) ac_try_echo=$ac_try;;
22118esac
22119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22120 (eval "$ac_try") 2>&5
22121 ac_status=$?
22122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22123 (exit $ac_status); }; } &&
22124 { ac_try='test -s conftest$ac_exeext'
22125 { (case "(($ac_try" in
22126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22127 *) ac_try_echo=$ac_try;;
22128esac
22129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22130 (eval "$ac_try") 2>&5
22131 ac_status=$?
22132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22133 (exit $ac_status); }; }; then
22134 eval "$as_ac_var=yes"
22135else
22136 echo "$as_me: failed program was:" >&5
22137sed 's/^/| /' conftest.$ac_ext >&5
22138
22139 eval "$as_ac_var=no"
22140fi
22141
22142rm -f core conftest.err conftest.$ac_objext \
22143 conftest$ac_exeext conftest.$ac_ext
22144fi
22145ac_res=`eval echo '${'$as_ac_var'}'`
22146 { echo "$as_me:$LINENO: result: $ac_res" >&5
22147echo "${ECHO_T}$ac_res" >&6; }
22148if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000022149 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022150#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000022151_ACEOF
22152
22153fi
22154done
22155
22156
Tobias Grossera84b5672010-11-10 16:31:34 +000022157{ echo "$as_me:$LINENO: checking whether llvm-gcc is dragonegg" >&5
22158echo $ECHO_N "checking whether llvm-gcc is dragonegg... $ECHO_C" >&6; }
22159if test "${llvm_cv_llvmgcc_dragonegg+set}" = set; then
22160 echo $ECHO_N "(cached) $ECHO_C" >&6
22161else
22162 llvm_cv_llvmgcc_dragonegg="no"
Duncan Sands1526b192010-11-25 17:47:42 +000022163if test -n "$LLVMGCC" ; then
Tobias Grossera84b5672010-11-10 16:31:34 +000022164 cp /dev/null conftest.c
Duncan Sands1526b192010-11-25 17:47:42 +000022165 $LLVMGCC -fplugin-arg-dragonegg-emit-ir -S -o - conftest.c > /dev/null 2>&1
Tobias Grossera84b5672010-11-10 16:31:34 +000022166 if test $? -eq 0 ; then
22167 llvm_cv_llvmgcc_dragonegg="yes"
22168 fi
22169 rm conftest.c
22170fi
22171fi
22172{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_dragonegg" >&5
22173echo "${ECHO_T}$llvm_cv_llvmgcc_dragonegg" >&6; }
22174
22175if test "$llvm_cv_llvmgcc_dragonegg" = "yes" ; then
22176 LLVMCC_EMITIR_FLAG="-fplugin-arg-dragonegg-emit-ir"
Duncan Sands1ac320e2010-11-25 17:57:43 +000022177 LLVMCC_DISABLEOPT_FLAGS="-fplugin-arg-dragonegg-disable-llvm-optzns"
Tobias Grossera84b5672010-11-10 16:31:34 +000022178else
22179 LLVMCC_EMITIR_FLAG="-emit-llvm"
Duncan Sands1ac320e2010-11-25 17:57:43 +000022180 LLVMCC_DISABLEOPT_FLAGS="-mllvm -disable-llvm-optzns"
Tobias Grossera84b5672010-11-10 16:31:34 +000022181fi
22182
22183
22184
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022185{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
22186echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
22187if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
22188 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022189else
22190 llvm_cv_llvmgcc_sanity="no"
Duncan Sands1526b192010-11-25 17:47:42 +000022191if test -n "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022192 cp /dev/null conftest.c
Duncan Sands1526b192010-11-25 17:47:42 +000022193 $LLVMGCC "$LLVMCC_EMITIR_FLAG" -S -o - conftest.c | \
Reid Spencer585e0882007-03-29 15:38:33 +000022194 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022195 if test $? -eq 0 ; then
22196 llvm_cv_llvmgcc_sanity="yes"
22197 fi
22198 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000022199fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022200fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022201{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
22202echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022203
22204if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022205 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
22206echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Duncan Sands1526b192010-11-25 17:47:42 +000022207 llvmcc1path=`$LLVMGCC --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022208 LLVMCC1=$llvmcc1path
22209
Duncan Sands1526b192010-11-25 17:47:42 +000022210 llvmcc1pluspath=`$LLVMGCC --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022211 LLVMCC1PLUS=$llvmcc1pluspath
22212
Reid Spencer502935f2004-12-22 05:56:56 +000022213 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
22214 LLVMGCCDIR=$llvmgccdir
22215
Duncan Sands1526b192010-11-25 17:47:42 +000022216 llvmgcclangs=`$LLVMGCC -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000022217 LLVMGCC_LANGS=$llvmgcclangs
22218
Tobias Grossera84b5672010-11-10 16:31:34 +000022219 LLVMGCC_DRAGONEGG=$llvm_cv_llvmgcc_dragonegg
22220
22221
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022222 { echo "$as_me:$LINENO: result: ok" >&5
22223echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000022224fi
22225
Reid Spencer2bc7bd52004-11-29 12:29:58 +000022226SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000022227
22228
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022229SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22230
22231
Reid Spencere9de0912004-08-20 09:03:57 +000022232# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022233# information into substitutions that will end up in Makefile.config.in
22234# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000022235if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000022236 prefix="/usr/local"
22237fi
Reid Spencere9de0912004-08-20 09:03:57 +000022238eval LLVM_PREFIX="${prefix}";
22239eval LLVM_BINDIR="${prefix}/bin";
22240eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000022241eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000022242eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000022243eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000022244eval LLVM_INCLUDEDIR="${prefix}/include";
22245eval LLVM_INFODIR="${prefix}/info";
22246eval LLVM_MANDIR="${prefix}/man";
22247LLVM_CONFIGTIME=`date`
22248
22249
22250
22251
22252
22253
22254
22255
22256
22257
22258
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022259# Place the various directores into the config.h file as #defines so that we
22260# can know about the installation paths within LLVM.
22261
Reid Spencere9de0912004-08-20 09:03:57 +000022262cat >>confdefs.h <<_ACEOF
22263#define LLVM_PREFIX "$LLVM_PREFIX"
22264_ACEOF
22265
22266
22267cat >>confdefs.h <<_ACEOF
22268#define LLVM_BINDIR "$LLVM_BINDIR"
22269_ACEOF
22270
22271
22272cat >>confdefs.h <<_ACEOF
22273#define LLVM_LIBDIR "$LLVM_LIBDIR"
22274_ACEOF
22275
22276
22277cat >>confdefs.h <<_ACEOF
22278#define LLVM_DATADIR "$LLVM_DATADIR"
22279_ACEOF
22280
22281
22282cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000022283#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000022284_ACEOF
22285
22286
22287cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000022288#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000022289_ACEOF
22290
22291
22292cat >>confdefs.h <<_ACEOF
22293#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22294_ACEOF
22295
22296
22297cat >>confdefs.h <<_ACEOF
22298#define LLVM_INFODIR "$LLVM_INFODIR"
22299_ACEOF
22300
22301
22302cat >>confdefs.h <<_ACEOF
22303#define LLVM_MANDIR "$LLVM_MANDIR"
22304_ACEOF
22305
22306
22307cat >>confdefs.h <<_ACEOF
22308#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22309_ACEOF
22310
22311
Eric Christopher790e11c2007-12-01 00:34:39 +000022312cat >>confdefs.h <<_ACEOF
22313#define LLVM_HOSTTRIPLE "$host"
22314_ACEOF
22315
22316
Gordon Henriksenc0efff82007-10-02 09:50:32 +000022317# Determine which bindings to build.
22318if test "$BINDINGS_TO_BUILD" = auto ; then
22319 BINDINGS_TO_BUILD=""
22320 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22321 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22322 fi
22323fi
22324BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22325
22326
22327# This isn't really configurey, but it avoids having to repeat the list in
22328# other files.
22329ALL_BINDINGS=ocaml
22330
22331
Gordon Henriksenf0915682007-10-02 16:42:22 +000022332# Do any work necessary to ensure that bindings have what they need.
22333binding_prereqs_failed=0
22334for a_binding in $BINDINGS_TO_BUILD ; do
22335 case "$a_binding" in
22336 ocaml)
22337 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022338 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22339echo "$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 +000022340 binding_prereqs_failed=1
22341 fi
22342 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022343 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22344echo "$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 +000022345 binding_prereqs_failed=1
22346 fi
22347 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022348 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22349echo "$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 +000022350 fi
22351 if test "x$with_ocaml_libdir" != xauto ; then
22352 OCAML_LIBDIR=$with_ocaml_libdir
22353
22354 else
22355 ocaml_stdlib="`"$OCAMLC" -where`"
22356 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22357 then
22358 # ocaml stdlib is beneath our prefix; use stdlib
22359 OCAML_LIBDIR=$ocaml_stdlib
22360
22361 else
22362 # ocaml stdlib is outside our prefix; use libdir/ocaml
22363 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
22364
22365 fi
22366 fi
22367 ;;
22368 esac
22369done
22370if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022371 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22372echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22373 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000022374fi
22375
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022376{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22377echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22378if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22379 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000022380else
22381 ac_ext=cpp
22382ac_cpp='$CXXCPP $CPPFLAGS'
22383ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22384ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22385ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22386
22387 oldcxxflags="$CXXFLAGS"
22388 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022389 cat >conftest.$ac_ext <<_ACEOF
22390/* confdefs.h. */
22391_ACEOF
22392cat confdefs.h >>conftest.$ac_ext
22393cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000022394/* end confdefs.h. */
22395
22396int
22397main ()
22398{
22399
22400 ;
22401 return 0;
22402}
22403_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022404rm -f conftest.$ac_objext
22405if { (ac_try="$ac_compile"
22406case "(($ac_try" in
22407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22408 *) ac_try_echo=$ac_try;;
22409esac
22410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22411 (eval "$ac_compile") 2>conftest.er1
22412 ac_status=$?
22413 grep -v '^ *+' conftest.er1 >conftest.err
22414 rm -f conftest.er1
22415 cat conftest.err >&5
22416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22417 (exit $ac_status); } &&
22418 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22419 { (case "(($ac_try" in
22420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22421 *) ac_try_echo=$ac_try;;
22422esac
22423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22424 (eval "$ac_try") 2>&5
22425 ac_status=$?
22426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22427 (exit $ac_status); }; } &&
22428 { ac_try='test -s conftest.$ac_objext'
22429 { (case "(($ac_try" in
22430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22431 *) ac_try_echo=$ac_try;;
22432esac
22433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22434 (eval "$ac_try") 2>&5
22435 ac_status=$?
22436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22437 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000022438 llvm_cv_cxx_visibility_inlines_hidden=yes
22439else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022440 echo "$as_me: failed program was:" >&5
22441sed 's/^/| /' conftest.$ac_ext >&5
22442
22443 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000022444fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022445
Daniel Dunbardcf114e2008-08-30 01:16:19 +000022446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22447 CXXFLAGS="$oldcxxflags"
22448 ac_ext=c
22449ac_cpp='$CPP $CPPFLAGS'
22450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22452ac_compiler_gnu=$ac_cv_c_compiler_gnu
22453
22454
22455fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022456{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22457echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000022458if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22459 ENABLE_VISIBILITY_INLINES_HIDDEN=1
22460
22461else
22462 ENABLE_VISIBILITY_INLINES_HIDDEN=0
22463
22464fi
22465
Gordon Henriksenf0915682007-10-02 16:42:22 +000022466
Nick Lewycky731c6ab2009-03-05 08:20:44 +000022467if test "$llvm_cv_link_use_r" = "yes" ; then
22468 RPATH="-Wl,-R"
22469else
22470 RPATH="-Wl,-rpath"
22471fi
22472
22473
22474if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22475 RDYNAMIC="-Wl,-export-dynamic"
22476else
22477 RDYNAMIC=""
22478fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000022479
22480
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022481
Eric Christophera1cba682010-08-08 02:44:25 +000022482ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022483
Eric Christopher21d3eeb2010-08-08 09:20:39 +000022484
22485
22486
22487
22488
Douglas Gregor1555a232009-06-16 20:12:29 +000022489ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22490
22491ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22492
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000022493ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22494
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000022495ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22496
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000022497ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022498
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022499
Reid Spencera773bd52006-08-04 18:18:08 +000022500ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022501
22502
Reid Spencerea949cf2006-08-16 00:45:38 +000022503ac_config_files="$ac_config_files llvm.spec"
22504
22505
Mikhail Glushenkov4b643c02010-08-15 07:07:17 +000022506ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000022507
22508
Reid Spencera773bd52006-08-04 18:18:08 +000022509ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000022510
22511
Reid Spencera773bd52006-08-04 18:18:08 +000022512ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000022513
Reid Spencera773bd52006-08-04 18:18:08 +000022514ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022515
22516
Reid Spencera773bd52006-08-04 18:18:08 +000022517ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022518
22519
Reid Spencera773bd52006-08-04 18:18:08 +000022520ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022521
22522
Reid Spencera773bd52006-08-04 18:18:08 +000022523ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022524
22525
Reid Spencer8b2e1412006-11-17 03:32:33 +000022526ac_config_commands="$ac_config_commands runtime/Makefile"
22527
22528
Reid Spencera773bd52006-08-04 18:18:08 +000022529ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022530
22531
Reid Spencera773bd52006-08-04 18:18:08 +000022532ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022533
22534
Bill Wendlingf24eb392009-01-04 23:12:30 +000022535ac_config_commands="$ac_config_commands unittests/Makefile"
22536
22537
Reid Spencera773bd52006-08-04 18:18:08 +000022538ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022539
22540
Reid Spencera773bd52006-08-04 18:18:08 +000022541ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022542
22543
Reid Spencera773bd52006-08-04 18:18:08 +000022544ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022545
22546
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022547ac_config_commands="$ac_config_commands bindings/Makefile"
22548
22549
22550ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22551
22552
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022553
John Criswell7a73b802003-06-30 21:59:07 +000022554cat >confcache <<\_ACEOF
22555# This file is a shell script that caches the results of configure
22556# tests run on this system so they can be shared between configure
22557# scripts and configure runs, see configure's option --config-cache.
22558# It is not useful on other systems. If it contains results you don't
22559# want to keep, you may remove or edit it.
22560#
22561# config.status only pays attention to the cache file if you give it
22562# the --recheck option to rerun configure.
22563#
John Criswell0c38eaf2003-09-10 15:17:25 +000022564# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000022565# loading this file, other *unset* `ac_cv_foo' will be assigned the
22566# following values.
22567
22568_ACEOF
22569
22570# The following way of writing the cache mishandles newlines in values,
22571# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000022572# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000022573# Ultrix sh set writes to stderr and can't be redirected directly,
22574# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000022575(
22576 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22577 eval ac_val=\$$ac_var
22578 case $ac_val in #(
22579 *${as_nl}*)
22580 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022581 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22582echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022583 esac
22584 case $ac_var in #(
22585 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022586 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022587 esac ;;
22588 esac
22589 done
22590
John Criswell7a73b802003-06-30 21:59:07 +000022591 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000022592 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22593 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022594 # `set' does not quote correctly, so add quotes (double-quote
22595 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000022596 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022597 "s/'/'\\\\''/g;
22598 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000022599 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000022600 *)
22601 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000022602 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000022603 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022604 esac |
22605 sort
22606) |
John Criswell7a73b802003-06-30 21:59:07 +000022607 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000022608 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000022609 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000022610 :clear
John Criswell7a73b802003-06-30 21:59:07 +000022611 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22612 t end
Reid Spencera773bd52006-08-04 18:18:08 +000022613 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22614 :end' >>confcache
22615if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22616 if test -w "$cache_file"; then
22617 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022618 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22619echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022620 cat confcache >$cache_file
22621 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022622 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22623echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022624 fi
22625fi
22626rm -f confcache
22627
22628test "x$prefix" = xNONE && prefix=$ac_default_prefix
22629# Let make expand exec_prefix.
22630test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22631
John Criswell7a73b802003-06-30 21:59:07 +000022632DEFS=-DHAVE_CONFIG_H
22633
John Criswell0c38eaf2003-09-10 15:17:25 +000022634ac_libobjs=
22635ac_ltlibobjs=
22636for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22637 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000022638 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022639 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000022640 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22641 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022642 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22643 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000022644done
22645LIBOBJS=$ac_libobjs
22646
22647LTLIBOBJS=$ac_ltlibobjs
22648
22649
Reid Spencer2bc7bd52004-11-29 12:29:58 +000022650if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022651 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22652Usually this means the macro was only invoked conditionally." >&5
22653echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22654Usually this means the macro was only invoked conditionally." >&2;}
22655 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000022656fi
22657if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022658 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22659Usually this means the macro was only invoked conditionally." >&5
22660echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22661Usually this means the macro was only invoked conditionally." >&2;}
22662 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000022663fi
John Criswell7a73b802003-06-30 21:59:07 +000022664
22665: ${CONFIG_STATUS=./config.status}
22666ac_clean_files_save=$ac_clean_files
22667ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022668{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22669echo "$as_me: creating $CONFIG_STATUS" >&6;}
22670cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022671#! $SHELL
22672# Generated by $as_me.
22673# Run this file to recreate the current configuration.
22674# Compiler output produced by configure, useful for debugging
22675# configure, is in config.log if it exists.
22676
22677debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000022678ac_cs_recheck=false
22679ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000022680SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022681_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022682
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022683cat >>$CONFIG_STATUS <<\_ACEOF
22684## --------------------- ##
22685## M4sh Initialization. ##
22686## --------------------- ##
22687
22688# Be Bourne compatible
22689if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000022690 emulate sh
22691 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022692 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000022693 # is contrary to our usage. Disable this feature.
22694 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000022695 setopt NO_GLOB_SUBST
22696else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022697 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000022698fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022699BIN_SH=xpg4; export BIN_SH # for Tru64
22700DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000022701
John Criswell7a73b802003-06-30 21:59:07 +000022702
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022703# PATH needs CR
22704# Avoid depending upon Character Ranges.
22705as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22706as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22707as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22708as_cr_digits='0123456789'
22709as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000022710
22711# The user is always right.
22712if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022713 echo "#! /bin/sh" >conf$$.sh
22714 echo "exit 0" >>conf$$.sh
22715 chmod +x conf$$.sh
22716 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22717 PATH_SEPARATOR=';'
22718 else
22719 PATH_SEPARATOR=:
22720 fi
22721 rm -f conf$$.sh
22722fi
22723
22724# Support unset when possible.
22725if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22726 as_unset=unset
22727else
22728 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000022729fi
John Criswell7a73b802003-06-30 21:59:07 +000022730
Reid Spencera773bd52006-08-04 18:18:08 +000022731
22732# IFS
22733# We need space, tab and new line, in precisely that order. Quoting is
22734# there to prevent editors from complaining about space-tab.
22735# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22736# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022737as_nl='
22738'
Reid Spencera773bd52006-08-04 18:18:08 +000022739IFS=" "" $as_nl"
22740
22741# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022742case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000022743 *[\\/]* ) as_myself=$0 ;;
22744 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000022745for as_dir in $PATH
22746do
22747 IFS=$as_save_IFS
22748 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022749 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22750done
Reid Spencera773bd52006-08-04 18:18:08 +000022751IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000022752
Reid Spencera773bd52006-08-04 18:18:08 +000022753 ;;
22754esac
22755# We did not find ourselves, most probably we were run as `sh COMMAND'
22756# in which case we are not to be found in the path.
22757if test "x$as_myself" = x; then
22758 as_myself=$0
22759fi
22760if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022761 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22762 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000022763fi
22764
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022765# Work around bugs in pre-3.0 UWIN ksh.
22766for as_var in ENV MAIL MAILPATH
22767do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000022768done
22769PS1='$ '
22770PS2='> '
22771PS4='+ '
22772
22773# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022774for as_var in \
22775 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22776 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22777 LC_TELEPHONE LC_TIME
22778do
22779 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22780 eval $as_var=C; export $as_var
22781 else
22782 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000022783 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022784done
Torok Edwin871384f2010-01-26 08:50:50 +000022785
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022786# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000022787if expr a : '\(a\)' >/dev/null 2>&1 &&
22788 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22789 as_expr=expr
22790else
22791 as_expr=false
22792fi
22793
22794if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22795 as_basename=basename
22796else
22797 as_basename=false
22798fi
22799
22800
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022801# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000022802as_me=`$as_basename -- "$0" ||
22803$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22804 X"$0" : 'X\(//\)$' \| \
22805 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022806echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000022807 sed '/^.*\/\([^/][^/]*\)\/*$/{
22808 s//\1/
22809 q
22810 }
22811 /^X\/\(\/\/\)$/{
22812 s//\1/
22813 q
22814 }
22815 /^X\/\(\/\).*/{
22816 s//\1/
22817 q
22818 }
22819 s/.*/./; q'`
22820
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022821# CDPATH.
22822$as_unset CDPATH
22823
22824
22825
22826 as_lineno_1=$LINENO
22827 as_lineno_2=$LINENO
22828 test "x$as_lineno_1" != "x$as_lineno_2" &&
22829 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22830
22831 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22832 # uniformly replaced by the line number. The first 'sed' inserts a
22833 # line-number line after each line using $LINENO; the second 'sed'
22834 # does the real work. The second script uses 'N' to pair each
22835 # line-number line with the line containing $LINENO, and appends
22836 # trailing '-' during substitution so that $LINENO is not a special
22837 # case at line end.
22838 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22839 # scripts with optimization help from Paolo Bonzini. Blame Lee
22840 # E. McMahon (1931-1989) for sed's syntax. :-)
22841 sed -n '
22842 p
22843 /[$]LINENO/=
22844 ' <$as_myself |
22845 sed '
22846 s/[$]LINENO.*/&-/
22847 t lineno
22848 b
22849 :lineno
22850 N
22851 :loop
22852 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22853 t loop
22854 s/-\n.*//
22855 ' >$as_me.lineno &&
22856 chmod +x "$as_me.lineno" ||
22857 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22858 { (exit 1); exit 1; }; }
22859
22860 # Don't try to exec as it changes $[0], causing all sort of problems
22861 # (the dirname of $[0] is not the place where we might find the
22862 # original and so on. Autoconf is especially sensitive to this).
22863 . "./$as_me.lineno"
22864 # Exit status is that of the last command.
22865 exit
22866}
22867
22868
22869if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22870 as_dirname=dirname
22871else
22872 as_dirname=false
22873fi
Reid Spencera773bd52006-08-04 18:18:08 +000022874
22875ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022876case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000022877-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022878 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000022879 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022880 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000022881 esac;;
22882*)
22883 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000022884esac
22885
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022886if expr a : '\(a\)' >/dev/null 2>&1 &&
22887 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22888 as_expr=expr
22889else
22890 as_expr=false
22891fi
22892
John Criswell7a73b802003-06-30 21:59:07 +000022893rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000022894if test -d conf$$.dir; then
22895 rm -f conf$$.dir/conf$$.file
22896else
22897 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022898 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000022899fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022900echo >conf$$.file
22901if ln -s conf$$.file conf$$ 2>/dev/null; then
22902 as_ln_s='ln -s'
22903 # ... but there are two gotchas:
22904 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22905 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22906 # In both cases, we have to default to `cp -p'.
22907 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000022908 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022909elif ln conf$$.file conf$$ 2>/dev/null; then
22910 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000022911else
22912 as_ln_s='cp -p'
22913fi
Reid Spencera773bd52006-08-04 18:18:08 +000022914rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22915rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000022916
John Criswell0c38eaf2003-09-10 15:17:25 +000022917if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022918 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022919else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022920 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000022921 as_mkdir_p=false
22922fi
22923
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022924# Find out whether ``test -x'' works. Don't use a zero-byte file, as
22925# systems may use methods other than mode bits to determine executability.
22926cat >conf$$.file <<_ASEOF
22927#! /bin/sh
22928exit 0
22929_ASEOF
22930chmod +x conf$$.file
22931if test -x conf$$.file >/dev/null 2>&1; then
22932 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000022933else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022934 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000022935fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022936rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000022937
22938# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022939as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000022940
22941# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022942as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000022943
22944
John Criswell7a73b802003-06-30 21:59:07 +000022945exec 6>&1
22946
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022947# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000022948# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000022949# values after options handling.
22950ac_log="
Bill Wendlingebc2fc12011-03-08 03:00:02 +000022951This file was extended by llvm $as_me 3.0svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022952generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000022953
22954 CONFIG_FILES = $CONFIG_FILES
22955 CONFIG_HEADERS = $CONFIG_HEADERS
22956 CONFIG_LINKS = $CONFIG_LINKS
22957 CONFIG_COMMANDS = $CONFIG_COMMANDS
22958 $ $0 $@
22959
Reid Spencera773bd52006-08-04 18:18:08 +000022960on `(hostname || uname -n) 2>/dev/null | sed 1q`
22961"
22962
John Criswell7a73b802003-06-30 21:59:07 +000022963_ACEOF
22964
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022965cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022966# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000022967config_files="$ac_config_files"
22968config_headers="$ac_config_headers"
22969config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000022970
Reid Spencera773bd52006-08-04 18:18:08 +000022971_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022972
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022973cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022974ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022975\`$as_me' instantiates files from templates according to the
22976current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000022977
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022978Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000022979
22980 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022981 -V, --version print version number, then exit
22982 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000022983 -d, --debug don't remove temporary files
22984 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022985 --file=FILE[:TEMPLATE]
22986 instantiate the configuration file FILE
22987 --header=FILE[:TEMPLATE]
22988 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000022989
22990Configuration files:
22991$config_files
22992
22993Configuration headers:
22994$config_headers
22995
John Criswellc764fbc2003-09-06 15:17:13 +000022996Configuration commands:
22997$config_commands
22998
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022999Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000023000
Reid Spencera773bd52006-08-04 18:18:08 +000023001_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023002cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023003ac_cs_version="\\
Bill Wendlingebc2fc12011-03-08 03:00:02 +000023004llvm config.status 3.0svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023005configured by $0, generated by GNU Autoconf 2.60,
23006 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000023007
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023008Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000023009This config.status script is free software; the Free Software Foundation
23010gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000023011
23012ac_pwd='$ac_pwd'
23013srcdir='$srcdir'
23014INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000023015_ACEOF
23016
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023017cat >>$CONFIG_STATUS <<\_ACEOF
23018# If no file are specified by the user, then we need to provide default
23019# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000023020ac_need_defaults=:
23021while test $# != 0
23022do
23023 case $1 in
23024 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000023025 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23026 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023027 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000023028 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023029 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000023030 ac_option=$1
23031 ac_optarg=$2
23032 ac_shift=shift
23033 ;;
John Criswell7a73b802003-06-30 21:59:07 +000023034 esac
23035
John Criswell0c38eaf2003-09-10 15:17:25 +000023036 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000023037 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000023038 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23039 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023040 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023041 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023042 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000023043 debug=: ;;
23044 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000023045 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023046 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023047 ac_need_defaults=false;;
23048 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000023049 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023050 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023051 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000023052 --he | --h)
23053 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023054 { echo "$as_me: error: ambiguous option: $1
23055Try \`$0 --help' for more information." >&2
23056 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000023057 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023058 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023059 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23060 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23061 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023062
23063 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023064 -*) { echo "$as_me: error: unrecognized option: $1
23065Try \`$0 --help' for more information." >&2
23066 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000023067
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023068 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000023069 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000023070
23071 esac
23072 shift
23073done
23074
John Criswell0c38eaf2003-09-10 15:17:25 +000023075ac_configure_extra_args=
23076
23077if $ac_cs_silent; then
23078 exec 6>/dev/null
23079 ac_configure_extra_args="$ac_configure_extra_args --silent"
23080fi
23081
23082_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023083cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023084if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023085 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23086 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000023087 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023088 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000023089fi
23090
John Criswell7a73b802003-06-30 21:59:07 +000023091_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023092cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000023093exec 5>>config.log
23094{
23095 echo
23096 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23097## Running $as_me. ##
23098_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023099 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000023100} >&5
John Criswell7a73b802003-06-30 21:59:07 +000023101
Reid Spencera773bd52006-08-04 18:18:08 +000023102_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023103cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000023104#
Reid Spencera773bd52006-08-04 18:18:08 +000023105# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000023106#
Reid Spencerc0682832005-02-24 19:05:19 +000023107llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000023108
23109_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023110
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023111cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000023112
23113# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000023114for ac_config_target in $ac_config_targets
23115do
Reid Spencera773bd52006-08-04 18:18:08 +000023116 case $ac_config_target in
23117 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000023118 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000023119 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
23120 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000023121 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000023122 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000023123 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023124 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000023125 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Mikhail Glushenkov4b643c02010-08-15 07:07:17 +000023126 "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023127 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
23128 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
23129 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23130 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23131 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
23132 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000023133 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023134 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23135 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000023136 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023137 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23138 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23139 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000023140 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
23141 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023142
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023143 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23144echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23145 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000023146 esac
23147done
23148
Reid Spencera773bd52006-08-04 18:18:08 +000023149
John Criswell7a73b802003-06-30 21:59:07 +000023150# If the user did not use the arguments to specify the items to instantiate,
23151# then the envvar interface is used. Set only those that are not.
23152# We use the long form for the default assignment because of an extremely
23153# bizarre bug on SunOS 4.1.3.
23154if $ac_need_defaults; then
23155 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23156 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000023157 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000023158fi
23159
John Criswell0c38eaf2003-09-10 15:17:25 +000023160# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000023161# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000023162# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000023163# Hook for its removal unless debugging.
23164# Note that there is a small window in which the directory will not be cleaned:
23165# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000023166$debug ||
23167{
Reid Spencera773bd52006-08-04 18:18:08 +000023168 tmp=
23169 trap 'exit_status=$?
23170 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23171' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023172 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000023173}
John Criswell7a73b802003-06-30 21:59:07 +000023174# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000023175
John Criswell7a73b802003-06-30 21:59:07 +000023176{
Reid Spencera773bd52006-08-04 18:18:08 +000023177 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000023178 test -n "$tmp" && test -d "$tmp"
23179} ||
23180{
Reid Spencera773bd52006-08-04 18:18:08 +000023181 tmp=./conf$$-$RANDOM
23182 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023183} ||
23184{
23185 echo "$me: cannot create a temporary directory in ." >&2
23186 { (exit 1); exit 1; }
23187}
John Criswell7a73b802003-06-30 21:59:07 +000023188
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023189#
23190# Set up the sed scripts for CONFIG_FILES section.
23191#
23192
23193# No need to generate the scripts if there are no CONFIG_FILES.
23194# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000023195if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000023196
23197_ACEOF
23198
Reid Spencera773bd52006-08-04 18:18:08 +000023199
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023200
Reid Spencera773bd52006-08-04 18:18:08 +000023201ac_delim='%!_!# '
23202for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023203 cat >conf$$subs.sed <<_ACEOF
23204SHELL!$SHELL$ac_delim
23205PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23206PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23207PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23208PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23209PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23210PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23211exec_prefix!$exec_prefix$ac_delim
23212prefix!$prefix$ac_delim
23213program_transform_name!$program_transform_name$ac_delim
23214bindir!$bindir$ac_delim
23215sbindir!$sbindir$ac_delim
23216libexecdir!$libexecdir$ac_delim
23217datarootdir!$datarootdir$ac_delim
23218datadir!$datadir$ac_delim
23219sysconfdir!$sysconfdir$ac_delim
23220sharedstatedir!$sharedstatedir$ac_delim
23221localstatedir!$localstatedir$ac_delim
23222includedir!$includedir$ac_delim
23223oldincludedir!$oldincludedir$ac_delim
23224docdir!$docdir$ac_delim
23225infodir!$infodir$ac_delim
23226htmldir!$htmldir$ac_delim
23227dvidir!$dvidir$ac_delim
23228pdfdir!$pdfdir$ac_delim
23229psdir!$psdir$ac_delim
23230libdir!$libdir$ac_delim
23231localedir!$localedir$ac_delim
23232mandir!$mandir$ac_delim
23233DEFS!$DEFS$ac_delim
23234ECHO_C!$ECHO_C$ac_delim
23235ECHO_N!$ECHO_N$ac_delim
23236ECHO_T!$ECHO_T$ac_delim
23237LIBS!$LIBS$ac_delim
23238build_alias!$build_alias$ac_delim
23239host_alias!$host_alias$ac_delim
23240target_alias!$target_alias$ac_delim
23241LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23242subdirs!$subdirs$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000023243ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23244LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023245build!$build$ac_delim
23246build_cpu!$build_cpu$ac_delim
23247build_vendor!$build_vendor$ac_delim
23248build_os!$build_os$ac_delim
23249host!$host$ac_delim
23250host_cpu!$host_cpu$ac_delim
23251host_vendor!$host_vendor$ac_delim
23252host_os!$host_os$ac_delim
23253target!$target$ac_delim
23254target_cpu!$target_cpu$ac_delim
23255target_vendor!$target_vendor$ac_delim
23256target_os!$target_os$ac_delim
23257OS!$OS$ac_delim
23258HOST_OS!$HOST_OS$ac_delim
23259TARGET_OS!$TARGET_OS$ac_delim
23260LINKALL!$LINKALL$ac_delim
23261NOLINKALL!$NOLINKALL$ac_delim
23262LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23263LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23264ARCH!$ARCH$ac_delim
23265ENDIAN!$ENDIAN$ac_delim
23266CC!$CC$ac_delim
23267CFLAGS!$CFLAGS$ac_delim
23268LDFLAGS!$LDFLAGS$ac_delim
23269CPPFLAGS!$CPPFLAGS$ac_delim
23270ac_ct_CC!$ac_ct_CC$ac_delim
23271EXEEXT!$EXEEXT$ac_delim
23272OBJEXT!$OBJEXT$ac_delim
23273CPP!$CPP$ac_delim
23274GREP!$GREP$ac_delim
23275EGREP!$EGREP$ac_delim
23276LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23277BUILD_CC!$BUILD_CC$ac_delim
23278BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23279BUILD_CXX!$BUILD_CXX$ac_delim
23280CVSBUILD!$CVSBUILD$ac_delim
23281ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23282ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23283DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23284ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23285EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23286DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23287DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23288JIT!$JIT$ac_delim
23289TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000023290ENABLE_DOCS!$ENABLE_DOCS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023291ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23292ENABLE_THREADS!$ENABLE_THREADS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000023293ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023294ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000023295ENABLE_SHARED!$ENABLE_SHARED$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000023296ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
Daniel Dunbardd464df2010-05-10 20:11:56 +000023297ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023298TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23299LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23300LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023301_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000023302
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023303 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000023304 break
23305 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023306 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23307echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23308 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000023309 else
23310 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000023311 fi
Reid Spencera773bd52006-08-04 18:18:08 +000023312done
23313
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023314ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23315if test -n "$ac_eof"; then
23316 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23317 ac_eof=`expr $ac_eof + 1`
23318fi
23319
23320cat >>$CONFIG_STATUS <<_ACEOF
23321cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23322/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000023323_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023324sed '
23325s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23326s/^/s,@/; s/!/@,|#_!!_#|/
23327:n
23328t n
23329s/'"$ac_delim"'$/,g/; t
23330s/$/\\/; p
23331N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23332' >>$CONFIG_STATUS <conf$$subs.sed
23333rm -f conf$$subs.sed
23334cat >>$CONFIG_STATUS <<_ACEOF
23335CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000023336_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023337
23338
23339ac_delim='%!_!# '
23340for ac_last_try in false false false false false :; do
23341 cat >conf$$subs.sed <<_ACEOF
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000023342LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000023343LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000023344ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000023345CLANGPATH!$CLANGPATH$ac_delim
23346CLANGXXPATH!$CLANGXXPATH$ac_delim
Daniel Dunbardd464df2010-05-10 20:11:56 +000023347ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000023348OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000023349EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23350BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023351CXX!$CXX$ac_delim
23352CXXFLAGS!$CXXFLAGS$ac_delim
23353ac_ct_CXX!$ac_ct_CXX$ac_delim
23354NM!$NM$ac_delim
23355ifGNUmake!$ifGNUmake$ac_delim
23356LN_S!$LN_S$ac_delim
23357CMP!$CMP$ac_delim
23358CP!$CP$ac_delim
23359DATE!$DATE$ac_delim
23360FIND!$FIND$ac_delim
23361MKDIR!$MKDIR$ac_delim
23362MV!$MV$ac_delim
23363RANLIB!$RANLIB$ac_delim
23364AR!$AR$ac_delim
23365RM!$RM$ac_delim
23366SED!$SED$ac_delim
23367TAR!$TAR$ac_delim
23368BINPWD!$BINPWD$ac_delim
23369GRAPHVIZ!$GRAPHVIZ$ac_delim
23370DOT!$DOT$ac_delim
23371FDP!$FDP$ac_delim
23372NEATO!$NEATO$ac_delim
23373TWOPI!$TWOPI$ac_delim
23374CIRCO!$CIRCO$ac_delim
23375GV!$GV$ac_delim
23376DOTTY!$DOTTY$ac_delim
Dan Gohman48fd5a72010-09-27 16:28:34 +000023377XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023378PERL!$PERL$ac_delim
23379HAVE_PERL!$HAVE_PERL$ac_delim
23380INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23381INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23382INSTALL_DATA!$INSTALL_DATA$ac_delim
23383BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000023384CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023385DOXYGEN!$DOXYGEN$ac_delim
23386GROFF!$GROFF$ac_delim
Eric Christopher031d3072010-12-10 01:31:51 +000023387GZIPBIN!$GZIPBIN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023388POD2HTML!$POD2HTML$ac_delim
23389POD2MAN!$POD2MAN$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000023390PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023391RUNTEST!$RUNTEST$ac_delim
23392TCLSH!$TCLSH$ac_delim
23393ZIP!$ZIP$ac_delim
23394OCAMLC!$OCAMLC$ac_delim
23395OCAMLOPT!$OCAMLOPT$ac_delim
23396OCAMLDEP!$OCAMLDEP$ac_delim
23397OCAMLDOC!$OCAMLDOC$ac_delim
23398GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000023399HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023400INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23401INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23402CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23403CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23404LIBADD_DL!$LIBADD_DL$ac_delim
23405LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
23406LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
23407LLVMGCC!$LLVMGCC$ac_delim
23408LLVMGXX!$LLVMGXX$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000023409LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023410NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23411NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23412USE_UDIS86!$USE_UDIS86$ac_delim
23413USE_OPROFILE!$USE_OPROFILE$ac_delim
23414HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23415HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23416MMAP_FILE!$MMAP_FILE$ac_delim
Tobias Grossera84b5672010-11-10 16:31:34 +000023417LLVMCC_EMITIR_FLAG!$LLVMCC_EMITIR_FLAG$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023418LLVMCC1!$LLVMCC1$ac_delim
23419LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
23420LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023421LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Tobias Grossera84b5672010-11-10 16:31:34 +000023422LLVMGCC_DRAGONEGG!$LLVMGCC_DRAGONEGG$ac_delim
Eric Christopher481d4022010-12-03 07:45:22 +000023423LLVMCC_DISABLEOPT_FLAGS!$LLVMCC_DISABLEOPT_FLAGS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023424SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000023425SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023426LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23427LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23428LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
23429LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23430LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23431LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23432LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23433LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23434LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23435LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23436BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23437ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23438OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000023439_ACEOF
23440
Tobias Grossera84b5672010-11-10 16:31:34 +000023441 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023442 break
23443 elif $ac_last_try; then
23444 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23445echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23446 { (exit 1); exit 1; }; }
23447 else
23448 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23449 fi
23450done
23451
23452ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23453if test -n "$ac_eof"; then
23454 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23455 ac_eof=`expr $ac_eof + 1`
23456fi
23457
23458cat >>$CONFIG_STATUS <<_ACEOF
23459cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Tobias Grosserbaaadb22010-10-30 00:54:26 +000023460/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023461_ACEOF
23462sed '
23463s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23464s/^/s,@/; s/!/@,|#_!!_#|/
23465:n
23466t n
23467s/'"$ac_delim"'$/,g/; t
23468s/$/\\/; p
23469N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23470' >>$CONFIG_STATUS <conf$$subs.sed
23471rm -f conf$$subs.sed
23472cat >>$CONFIG_STATUS <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023473CEOF$ac_eof
23474_ACEOF
23475
23476
Tobias Grossera84b5672010-11-10 16:31:34 +000023477ac_delim='%!_!# '
23478for ac_last_try in false false false false false :; do
23479 cat >conf$$subs.sed <<_ACEOF
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000023480ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000023481RPATH!$RPATH$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000023482RDYNAMIC!$RDYNAMIC$ac_delim
Tobias Grossera84b5672010-11-10 16:31:34 +000023483LIBOBJS!$LIBOBJS$ac_delim
23484LTLIBOBJS!$LTLIBOBJS$ac_delim
23485_ACEOF
23486
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000023487 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 5; then
Tobias Grossera84b5672010-11-10 16:31:34 +000023488 break
23489 elif $ac_last_try; then
23490 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23491echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23492 { (exit 1); exit 1; }; }
23493 else
23494 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23495 fi
23496done
23497
23498ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23499if test -n "$ac_eof"; then
23500 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23501 ac_eof=`expr $ac_eof + 1`
23502fi
23503
23504cat >>$CONFIG_STATUS <<_ACEOF
23505cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23506/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23507_ACEOF
23508sed '
23509s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23510s/^/s,@/; s/!/@,|#_!!_#|/
23511:n
23512t n
23513s/'"$ac_delim"'$/,g/; t
23514s/$/\\/; p
23515N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23516' >>$CONFIG_STATUS <conf$$subs.sed
23517rm -f conf$$subs.sed
23518cat >>$CONFIG_STATUS <<_ACEOF
23519:end
23520s/|#_!!_#|//g
23521CEOF$ac_eof
23522_ACEOF
23523
23524
Reid Spencera773bd52006-08-04 18:18:08 +000023525# VPATH may cause trouble with some makes, so we remove $(srcdir),
23526# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23527# trailing colons and then remove the whole line if VPATH becomes empty
23528# (actually we leave an empty line to preserve line numbers).
23529if test "x$srcdir" = x.; then
23530 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23531s/:*\$(srcdir):*/:/
23532s/:*\${srcdir}:*/:/
23533s/:*@srcdir@:*/:/
23534s/^\([^=]*=[ ]*\):*/\1/
23535s/:*$//
23536s/^[^=]*=[ ]*$//
23537}'
23538fi
23539
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023540cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023541fi # test -n "$CONFIG_FILES"
23542
Reid Spencera773bd52006-08-04 18:18:08 +000023543
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023544for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000023545do
23546 case $ac_tag in
23547 :[FHLC]) ac_mode=$ac_tag; continue;;
23548 esac
23549 case $ac_mode$ac_tag in
23550 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023551 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23552echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23553 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000023554 :[FH]-) ac_tag=-:-;;
23555 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23556 esac
23557 ac_save_IFS=$IFS
23558 IFS=:
23559 set x $ac_tag
23560 IFS=$ac_save_IFS
23561 shift
23562 ac_file=$1
23563 shift
23564
23565 case $ac_mode in
23566 :L) ac_source=$1;;
23567 :[FH])
23568 ac_file_inputs=
23569 for ac_f
23570 do
23571 case $ac_f in
23572 -) ac_f="$tmp/stdin";;
23573 *) # Look for the file first in the build tree, then in the source tree
23574 # (if the path is not absolute). The absolute path cannot be DOS-style,
23575 # because $ac_f cannot contain `:'.
23576 test -f "$ac_f" ||
23577 case $ac_f in
23578 [\\/$]*) false;;
23579 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23580 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023581 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23582echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23583 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000023584 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023585 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000023586 done
23587
23588 # Let's still pretend it is `configure' which instantiates (i.e., don't
23589 # use $as_me), people would be surprised to read:
23590 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023591 configure_input="Generated from "`IFS=:
23592 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000023593 if test x"$ac_file" != x-; then
23594 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023595 { echo "$as_me:$LINENO: creating $ac_file" >&5
23596echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000023597 fi
23598
23599 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023600 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000023601 esac
23602 ;;
John Criswell7a73b802003-06-30 21:59:07 +000023603 esac
23604
Reid Spencera773bd52006-08-04 18:18:08 +000023605 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000023606$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000023607 X"$ac_file" : 'X\(//\)[^/]' \| \
23608 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000023609 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023610echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000023611 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23612 s//\1/
23613 q
23614 }
23615 /^X\(\/\/\)[^/].*/{
23616 s//\1/
23617 q
23618 }
23619 /^X\(\/\/\)$/{
23620 s//\1/
23621 q
23622 }
23623 /^X\(\/\).*/{
23624 s//\1/
23625 q
23626 }
23627 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023628 { as_dir="$ac_dir"
23629 case $as_dir in #(
23630 -*) as_dir=./$as_dir;;
23631 esac
23632 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23633 as_dirs=
23634 while :; do
23635 case $as_dir in #(
23636 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23637 *) as_qdir=$as_dir;;
23638 esac
23639 as_dirs="'$as_qdir' $as_dirs"
23640 as_dir=`$as_dirname -- "$as_dir" ||
23641$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23642 X"$as_dir" : 'X\(//\)[^/]' \| \
23643 X"$as_dir" : 'X\(//\)$' \| \
23644 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23645echo X"$as_dir" |
23646 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23647 s//\1/
23648 q
23649 }
23650 /^X\(\/\/\)[^/].*/{
23651 s//\1/
23652 q
23653 }
23654 /^X\(\/\/\)$/{
23655 s//\1/
23656 q
23657 }
23658 /^X\(\/\).*/{
23659 s//\1/
23660 q
23661 }
23662 s/.*/./; q'`
23663 test -d "$as_dir" && break
23664 done
23665 test -z "$as_dirs" || eval "mkdir $as_dirs"
23666 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23667echo "$as_me: error: cannot create directory $as_dir" >&2;}
23668 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000023669 ac_builddir=.
23670
Reid Spencera773bd52006-08-04 18:18:08 +000023671case "$ac_dir" in
23672.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23673*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023674 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000023675 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023676 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000023677 case $ac_top_builddir_sub in
23678 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23679 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23680 esac ;;
23681esac
23682ac_abs_top_builddir=$ac_pwd
23683ac_abs_builddir=$ac_pwd$ac_dir_suffix
23684# for backward compatibility:
23685ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000023686
23687case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000023688 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000023689 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000023690 ac_top_srcdir=$ac_top_builddir_sub
23691 ac_abs_top_srcdir=$ac_pwd ;;
23692 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000023693 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000023694 ac_top_srcdir=$srcdir
23695 ac_abs_top_srcdir=$srcdir ;;
23696 *) # Relative name.
23697 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23698 ac_top_srcdir=$ac_top_build_prefix$srcdir
23699 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000023700esac
Reid Spencera773bd52006-08-04 18:18:08 +000023701ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000023702
John Criswell7a73b802003-06-30 21:59:07 +000023703
Reid Spencera773bd52006-08-04 18:18:08 +000023704 case $ac_mode in
23705 :F)
23706 #
23707 # CONFIG_FILE
23708 #
John Criswell7a73b802003-06-30 21:59:07 +000023709
23710 case $INSTALL in
23711 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023712 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000023713 esac
John Criswell7a73b802003-06-30 21:59:07 +000023714_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000023715
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023716cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000023717# If the template does not know about datarootdir, expand it.
23718# FIXME: This hack should be removed a few years after 2.60.
23719ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023720
23721case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000023722 p
23723 q
23724}
23725/@datadir@/p
23726/@docdir@/p
23727/@infodir@/p
23728/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023729/@mandir@/p
23730' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000023731*datarootdir*) ac_datarootdir_seen=yes;;
23732*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023733 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23734echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000023735_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023736cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000023737 ac_datarootdir_hack='
23738 s&@datadir@&$datadir&g
23739 s&@docdir@&$docdir&g
23740 s&@infodir@&$infodir&g
23741 s&@localedir@&$localedir&g
23742 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023743 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023744esac
23745_ACEOF
23746
23747# Neutralize VPATH when `$srcdir' = `.'.
23748# Shell code in configure.ac might set extrasub.
23749# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023750cat >>$CONFIG_STATUS <<_ACEOF
23751 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000023752$extrasub
23753_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023754cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023755:t
23756/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023757s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000023758s&@top_builddir@&$ac_top_builddir_sub&;t t
23759s&@srcdir@&$ac_srcdir&;t t
23760s&@abs_srcdir@&$ac_abs_srcdir&;t t
23761s&@top_srcdir@&$ac_top_srcdir&;t t
23762s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23763s&@builddir@&$ac_builddir&;t t
23764s&@abs_builddir@&$ac_abs_builddir&;t t
23765s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23766s&@INSTALL@&$ac_INSTALL&;t t
23767$ac_datarootdir_hack
Tobias Grossera84b5672010-11-10 16:31:34 +000023768" $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 +000023769
Reid Spencera773bd52006-08-04 18:18:08 +000023770test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23771 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23772 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023773 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000023774which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023775echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000023776which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000023777
Reid Spencera773bd52006-08-04 18:18:08 +000023778 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000023779 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023780 -) cat "$tmp/out"; rm -f "$tmp/out";;
23781 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23782 esac
Reid Spencera773bd52006-08-04 18:18:08 +000023783 ;;
23784 :H)
23785 #
23786 # CONFIG_HEADER
23787 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023788_ACEOF
23789
23790# Transform confdefs.h into a sed script `conftest.defines', that
23791# substitutes the proper values into config.h.in to produce config.h.
23792rm -f conftest.defines conftest.tail
23793# First, append a space to every undef/define line, to ease matching.
23794echo 's/$/ /' >conftest.defines
23795# Then, protect against being on the right side of a sed subst, or in
23796# an unquoted here document, in config.status. If some macros were
23797# called several times there might be several #defines for the same
23798# symbol, which is useless. But do not sort them, since the last
23799# AC_DEFINE must be honored.
23800ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23801# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23802# NAME is the cpp macro being defined, VALUE is the value it is being given.
23803# PARAMS is the parameter list in the macro definition--in most cases, it's
23804# just an empty string.
23805ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23806ac_dB='\\)[ (].*,\\1define\\2'
23807ac_dC=' '
23808ac_dD=' ,'
23809
23810uniq confdefs.h |
23811 sed -n '
23812 t rset
23813 :rset
23814 s/^[ ]*#[ ]*define[ ][ ]*//
23815 t ok
23816 d
23817 :ok
23818 s/[\\&,]/\\&/g
23819 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23820 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23821 ' >>conftest.defines
23822
23823# Remove the space that was appended to ease matching.
23824# Then replace #undef with comments. This is necessary, for
23825# example, in the case of _POSIX_SOURCE, which is predefined and required
23826# on some systems where configure will not decide to define it.
23827# (The regexp can be short, since the line contains either #define or #undef.)
23828echo 's/ $//
23829s,^[ #]*u.*,/* & */,' >>conftest.defines
23830
23831# Break up conftest.defines:
23832ac_max_sed_lines=50
23833
23834# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23835# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23836# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23837# et cetera.
23838ac_in='$ac_file_inputs'
23839ac_out='"$tmp/out1"'
23840ac_nxt='"$tmp/out2"'
23841
23842while :
23843do
23844 # Write a here document:
23845 cat >>$CONFIG_STATUS <<_ACEOF
23846 # First, check the format of the line:
23847 cat >"\$tmp/defines.sed" <<\\CEOF
23848/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23849/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23850b
23851:def
23852_ACEOF
23853 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23854 echo 'CEOF
23855 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23856 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23857 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23858 grep . conftest.tail >/dev/null || break
23859 rm -f conftest.defines
23860 mv conftest.tail conftest.defines
23861done
23862rm -f conftest.defines conftest.tail
23863
23864echo "ac_result=$ac_in" >>$CONFIG_STATUS
23865cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023866 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023867 echo "/* $configure_input */" >"$tmp/config.h"
23868 cat "$ac_result" >>"$tmp/config.h"
23869 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23870 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23871echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000023872 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023873 rm -f $ac_file
23874 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000023875 fi
23876 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023877 echo "/* $configure_input */"
23878 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000023879 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023880 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000023881 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023882
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023883 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23884echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000023885 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023886 esac
John Criswell7a73b802003-06-30 21:59:07 +000023887
Reid Spencera773bd52006-08-04 18:18:08 +000023888
23889 case $ac_file$ac_mode in
23890 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023891 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023892 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000023893 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023894 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023895 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023896 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023897 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000023898 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023899 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023900 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023901 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023902 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000023903 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000023904 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023905 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023906 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023907 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023908 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023909 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023910 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023911 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000023912 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023913 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000023914 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000023915 ${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 +000023916
23917 esac
23918done # for ac_tag
23919
John Criswell7a73b802003-06-30 21:59:07 +000023920
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023921{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000023922_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023923chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000023924ac_clean_files=$ac_clean_files_save
23925
23926
23927# configure is writing to config.log, and then calls config.status.
23928# config.status does its own redirection, appending to config.log.
23929# Unfortunately, on DOS this fails, as config.log is still kept open
23930# by configure, so config.status won't be able to write to it; its
23931# output is simply discarded. So we exec the FD to /dev/null,
23932# effectively closing config.log, so it can be properly (re)opened and
23933# appended to by config.status. When coming back to configure, we
23934# need to make the FD available again.
23935if test "$no_create" != yes; then
23936 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000023937 ac_config_status_args=
23938 test "$silent" = yes &&
23939 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000023940 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000023941 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000023942 exec 5>>config.log
23943 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23944 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023945 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000023946fi
23947
John Criswell12399a12003-09-30 15:55:44 +000023948#
23949# CONFIG_SUBDIRS section.
23950#
23951if test "$no_recursion" != yes; then
23952
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023953 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000023954 ac_sub_configure_args=
23955 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000023956 eval "set x $ac_configure_args"
23957 shift
23958 for ac_arg
23959 do
John Criswell12399a12003-09-30 15:55:44 +000023960 if test -n "$ac_prev"; then
23961 ac_prev=
23962 continue
23963 fi
23964 case $ac_arg in
23965 -cache-file | --cache-file | --cache-fil | --cache-fi \
23966 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23967 ac_prev=cache_file ;;
23968 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23969 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23970 | --c=*)
23971 ;;
23972 --config-cache | -C)
23973 ;;
23974 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23975 ac_prev=srcdir ;;
23976 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23977 ;;
23978 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23979 ac_prev=prefix ;;
23980 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23981 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023982 *)
23983 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023984 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023985 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023986 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000023987 esac
23988 done
23989
23990 # Always prepend --prefix to ensure using the same prefix
23991 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000023992 ac_arg="--prefix=$prefix"
23993 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023994 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023995 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023996 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000023997
23998 ac_popdir=`pwd`
23999 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24000
24001 # Do not complain, so a configure script can configure whichever
24002 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000024003 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000024004
Reid Spencera773bd52006-08-04 18:18:08 +000024005 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024006 echo "$as_me:$LINENO: $ac_msg" >&5
24007 echo "$ac_msg" >&6
24008 { as_dir="$ac_dir"
24009 case $as_dir in #(
24010 -*) as_dir=./$as_dir;;
24011 esac
24012 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24013 as_dirs=
24014 while :; do
24015 case $as_dir in #(
24016 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24017 *) as_qdir=$as_dir;;
24018 esac
24019 as_dirs="'$as_qdir' $as_dirs"
24020 as_dir=`$as_dirname -- "$as_dir" ||
24021$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24022 X"$as_dir" : 'X\(//\)[^/]' \| \
24023 X"$as_dir" : 'X\(//\)$' \| \
24024 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24025echo X"$as_dir" |
24026 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24027 s//\1/
24028 q
24029 }
24030 /^X\(\/\/\)[^/].*/{
24031 s//\1/
24032 q
24033 }
24034 /^X\(\/\/\)$/{
24035 s//\1/
24036 q
24037 }
24038 /^X\(\/\).*/{
24039 s//\1/
24040 q
24041 }
24042 s/.*/./; q'`
24043 test -d "$as_dir" && break
24044 done
24045 test -z "$as_dirs" || eval "mkdir $as_dirs"
24046 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24047echo "$as_me: error: cannot create directory $as_dir" >&2;}
24048 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000024049 ac_builddir=.
24050
Reid Spencera773bd52006-08-04 18:18:08 +000024051case "$ac_dir" in
24052.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24053*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024054 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000024055 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024056 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000024057 case $ac_top_builddir_sub in
24058 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24059 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24060 esac ;;
24061esac
24062ac_abs_top_builddir=$ac_pwd
24063ac_abs_builddir=$ac_pwd$ac_dir_suffix
24064# for backward compatibility:
24065ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000024066
24067case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000024068 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000024069 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000024070 ac_top_srcdir=$ac_top_builddir_sub
24071 ac_abs_top_srcdir=$ac_pwd ;;
24072 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000024073 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000024074 ac_top_srcdir=$srcdir
24075 ac_abs_top_srcdir=$srcdir ;;
24076 *) # Relative name.
24077 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24078 ac_top_srcdir=$ac_top_build_prefix$srcdir
24079 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000024080esac
Reid Spencera773bd52006-08-04 18:18:08 +000024081ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000024082
24083
Reid Spencera773bd52006-08-04 18:18:08 +000024084 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000024085
24086 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000024087 if test -f "$ac_srcdir/configure.gnu"; then
24088 ac_sub_configure=$ac_srcdir/configure.gnu
24089 elif test -f "$ac_srcdir/configure"; then
24090 ac_sub_configure=$ac_srcdir/configure
24091 elif test -f "$ac_srcdir/configure.in"; then
24092 # This should be Cygnus configure.
24093 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000024094 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024095 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24096echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000024097 ac_sub_configure=
24098 fi
24099
24100 # The recursion is here.
24101 if test -n "$ac_sub_configure"; then
24102 # Make the cache file name correct relative to the subdirectory.
24103 case $cache_file in
24104 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024105 *) # Relative name.
24106 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000024107 esac
24108
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024109 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24110echo "$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 +000024111 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000024112 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24113 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024114 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24115echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24116 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000024117 fi
24118
Reid Spencera773bd52006-08-04 18:18:08 +000024119 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000024120 done
24121fi
24122