blob: bf64e7ea7abc1648bc994a54d04362a7548b1f19 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Bill Wendlingebc2fc12011-03-08 03:00:02 +00003# Generated by GNU Autoconf 2.60 for llvm 3.0svn.
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
Reid Spencera773bd52006-08-04 18:18:08 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011#
Benjamin Kramerb73cd942011-06-12 15:26:54 +000012# Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000016
Daniel Dunbar195d2de2010-04-10 18:56:24 +000017# Be Bourne compatible
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell0c38eaf2003-09-10 15:17:25 +000019 emulate sh
20 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000022 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000024 setopt NO_GLOB_SUBST
25else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell0c38eaf2003-09-10 15:17:25 +000027fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000030
John Criswell0c38eaf2003-09-10 15:17:25 +000031
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000032# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell0c38eaf2003-09-10 15:17:25 +000039
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000042 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000058fi
John Criswell0c38eaf2003-09-10 15:17:25 +000059
Reid Spencera773bd52006-08-04 18:18:08 +000060
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000066as_nl='
67'
Reid Spencera773bd52006-08-04 18:18:08 +000068IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000071case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000072 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell0c38eaf2003-09-10 15:17:25 +000074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000078 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Reid Spencera773bd52006-08-04 18:18:08 +000080IFS=$as_save_IFS
John Criswell0c38eaf2003-09-10 15:17:25 +000081
Reid Spencera773bd52006-08-04 18:18:08 +000082 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000090 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000092fi
93
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000094# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000097done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
Torok Edwin871384f2010-01-26 08:50:50 +0000107do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
Torok Edwin871384f2010-01-26 08:50:50 +0000110 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +0000112 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000113done
Torok Edwin871384f2010-01-26 08:50:50 +0000114
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000115# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +0000116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000130# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +0000131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000135echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +0000136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000150# CDPATH.
151$as_unset CDPATH
Reid Spencera773bd52006-08-04 18:18:08 +0000152
153
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240# Be Bourne compatible
241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248else
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250fi
251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
253
254:
255_ASEOF
256}; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260# Be Bourne compatible
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270fi
271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
273
274:
275(as_func_return () {
276 (exit $1)
277}
278as_func_success () {
279 as_func_return 0
280}
281as_func_failure () {
282 as_func_return 1
283}
284as_func_ret_success () {
285 return 0
286}
287as_func_ret_failure () {
288 return 1
289}
290
291exitcode=0
292if as_func_success; then
293 :
294else
295 exitcode=1
296 echo as_func_success failed.
297fi
298
299if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
302fi
303
304if as_func_ret_success; then
305 :
306else
307 exitcode=1
308 echo as_func_ret_success failed.
309fi
310
311if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
314fi
315
316if ( set x; as_func_ret_success y && test x = "$1" ); then
317 :
318else
319 exitcode=1
320 echo positional parameters were not saved.
321fi
322
323test $exitcode = 0) || { (exit 1); exit 1; }
324
325(
326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331_ASEOF
332}; then
333 break
334fi
335
336fi
337
338 done
339
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 done
344 export CONFIG_SHELL
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346fi
347
348
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
355fi
356
357
358fi
359
360fi
361
362
363
364(eval "as_func_return () {
365 (exit \$1)
366}
367as_func_success () {
368 as_func_return 0
369}
370as_func_failure () {
371 as_func_return 1
372}
373as_func_ret_success () {
374 return 0
375}
376as_func_ret_failure () {
377 return 1
378}
379
380exitcode=0
381if as_func_success; then
382 :
383else
384 exitcode=1
385 echo as_func_success failed.
386fi
387
388if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
391fi
392
393if as_func_ret_success; then
394 :
395else
396 exitcode=1
397 echo as_func_ret_success failed.
398fi
399
400if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
403fi
404
405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406 :
407else
408 exitcode=1
409 echo positional parameters were not saved.
410fi
411
412test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
416 echo message
417}
418
419
420
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
432 # case at line end.
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
Reid Spencera773bd52006-08-04 18:18:08 +0000436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
John Criswell0c38eaf2003-09-10 15:17:25 +0000440 sed '
Reid Spencera773bd52006-08-04 18:18:08 +0000441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
John Criswell0c38eaf2003-09-10 15:17:25 +0000445 N
Reid Spencera773bd52006-08-04 18:18:08 +0000446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell0c38eaf2003-09-10 15:17:25 +0000448 t loop
Reid Spencera773bd52006-08-04 18:18:08 +0000449 s/-\n.*//
John Criswell0c38eaf2003-09-10 15:17:25 +0000450 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +0000451 chmod +x "$as_me.lineno" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
John Criswell0c38eaf2003-09-10 15:17:25 +0000454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +0000457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
John Criswell0c38eaf2003-09-10 15:17:25 +0000459 # Exit status is that of the last command.
460 exit
461}
462
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000463
464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466else
467 as_dirname=false
468fi
469
Reid Spencera773bd52006-08-04 18:18:08 +0000470ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000471case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +0000472-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000473 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +0000474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000475 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +0000476 esac;;
477*)
478 ECHO_N='-n';;
John Criswell0c38eaf2003-09-10 15:17:25 +0000479esac
480
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000481if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
483 as_expr=expr
484else
485 as_expr=false
486fi
487
John Criswell0c38eaf2003-09-10 15:17:25 +0000488rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +0000489if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491else
492 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000493 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +0000494fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000495echo >conf$$.file
496if ln -s conf$$.file conf$$ 2>/dev/null; then
497 as_ln_s='ln -s'
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000503 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000504elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
John Criswell0c38eaf2003-09-10 15:17:25 +0000506else
507 as_ln_s='cp -p'
508fi
Reid Spencera773bd52006-08-04 18:18:08 +0000509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +0000511
512if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000513 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +0000514else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000515 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000516 as_mkdir_p=false
517fi
518
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000519# Find out whether ``test -x'' works. Don't use a zero-byte file, as
520# systems may use methods other than mode bits to determine executability.
521cat >conf$$.file <<_ASEOF
522#! /bin/sh
523exit 0
524_ASEOF
525chmod +x conf$$.file
526if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +0000528else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000529 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +0000530fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000531rm -f conf$$.file
John Criswell0c38eaf2003-09-10 15:17:25 +0000532
533# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000535
536# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000538
539
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000540
541exec 7<&0 </dev/null 6>&1
Reid Spencera773bd52006-08-04 18:18:08 +0000542
John Criswell7a73b802003-06-30 21:59:07 +0000543# Name of the host.
544# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545# so uname gets run too.
546ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
John Criswell7a73b802003-06-30 21:59:07 +0000548#
549# Initializations.
550#
551ac_default_prefix=/usr/local
Reid Spencera773bd52006-08-04 18:18:08 +0000552ac_clean_files=
John Criswell0c38eaf2003-09-10 15:17:25 +0000553ac_config_libobj_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000554LIBOBJS=
John Criswell7a73b802003-06-30 21:59:07 +0000555cross_compiling=no
556subdirs=
557MFLAGS=
558MAKEFLAGS=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000559SHELL=${CONFIG_SHELL-/bin/sh}
John Criswell7a73b802003-06-30 21:59:07 +0000560
John Criswell7a73b802003-06-30 21:59:07 +0000561# Identity of this package.
Reid Spencerabec8f92004-10-27 23:03:44 +0000562PACKAGE_NAME='llvm'
Reid Spencer2b51a082004-08-04 00:34:49 +0000563PACKAGE_TARNAME='-llvm-'
Bill Wendlingebc2fc12011-03-08 03:00:02 +0000564PACKAGE_VERSION='3.0svn'
565PACKAGE_STRING='llvm 3.0svn'
John Criswell7a73b802003-06-30 21:59:07 +0000566PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
567
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000568ac_unique_file="lib/VMCore/Module.cpp"
John Criswell7a73b802003-06-30 21:59:07 +0000569# Factoring default headers for most tests.
570ac_includes_default="\
571#include <stdio.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000572#if HAVE_SYS_TYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000573# include <sys/types.h>
574#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000575#if HAVE_SYS_STAT_H
John Criswell7a73b802003-06-30 21:59:07 +0000576# include <sys/stat.h>
577#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000578#if STDC_HEADERS
John Criswell7a73b802003-06-30 21:59:07 +0000579# include <stdlib.h>
580# include <stddef.h>
581#else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000582# if HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +0000583# include <stdlib.h>
584# endif
585#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000586#if HAVE_STRING_H
587# if !STDC_HEADERS && HAVE_MEMORY_H
John Criswell7a73b802003-06-30 21:59:07 +0000588# include <memory.h>
589# endif
590# include <string.h>
591#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000592#if HAVE_STRINGS_H
John Criswell7a73b802003-06-30 21:59:07 +0000593# include <strings.h>
594#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000595#if HAVE_INTTYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000596# include <inttypes.h>
Reid Spencera773bd52006-08-04 18:18:08 +0000597#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000598#if HAVE_STDINT_H
Reid Spencera773bd52006-08-04 18:18:08 +0000599# include <stdint.h>
John Criswell7a73b802003-06-30 21:59:07 +0000600#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000601#if HAVE_UNISTD_H
John Criswell7a73b802003-06-30 21:59:07 +0000602# include <unistd.h>
603#endif"
604
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000605ac_subst_vars='SHELL
Torok Edwin871384f2010-01-26 08:50:50 +0000606PATH_SEPARATOR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000607PACKAGE_NAME
608PACKAGE_TARNAME
609PACKAGE_VERSION
610PACKAGE_STRING
611PACKAGE_BUGREPORT
612exec_prefix
613prefix
614program_transform_name
615bindir
616sbindir
617libexecdir
618datarootdir
619datadir
620sysconfdir
621sharedstatedir
622localstatedir
623includedir
624oldincludedir
625docdir
626infodir
627htmldir
628dvidir
629pdfdir
630psdir
631libdir
632localedir
633mandir
634DEFS
635ECHO_C
636ECHO_N
637ECHO_T
638LIBS
639build_alias
640host_alias
641target_alias
642LLVM_COPYRIGHT
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
Daniel Dunbared344d22011-06-16 22:30:41 +0000710EXTRA_LD_OPTIONS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000711BINUTILS_INCDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000712CXX
713CXXFLAGS
714ac_ct_CXX
715NM
716ifGNUmake
717LN_S
718CMP
719CP
720DATE
721FIND
722MKDIR
723MV
724RANLIB
725AR
726RM
727SED
728TAR
729BINPWD
730GRAPHVIZ
731DOT
732FDP
733NEATO
734TWOPI
735CIRCO
736GV
737DOTTY
Dan Gohman48fd5a72010-09-27 16:28:34 +0000738XDOT_PY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000739PERL
740HAVE_PERL
741INSTALL_PROGRAM
742INSTALL_SCRIPT
743INSTALL_DATA
744BZIP2
mike-m68cb3192010-05-06 23:45:43 +0000745CAT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000746DOXYGEN
747GROFF
Eric Christopher031d3072010-12-10 01:31:51 +0000748GZIPBIN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000749POD2HTML
750POD2MAN
mike-m68cb3192010-05-06 23:45:43 +0000751PDFROFF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000752RUNTEST
753TCLSH
754ZIP
755OCAMLC
756OCAMLOPT
757OCAMLDEP
758OCAMLDOC
759GAS
Dan Gohmanda612d62010-06-01 14:56:56 +0000760HAVE_LINK_VERSION_SCRIPT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000761INSTALL_LTDL_TRUE
762INSTALL_LTDL_FALSE
763CONVENIENCE_LTDL_TRUE
764CONVENIENCE_LTDL_FALSE
765LIBADD_DL
766LLVMGCCCOMMAND
767LLVMGXXCOMMAND
768LLVMGCC
769LLVMGXX
Daniel Dunbar98515672010-02-23 10:00:49 +0000770LLVMCC_OPTION
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000771NO_VARIADIC_MACROS
772NO_MISSING_FIELD_INITIALIZERS
773USE_UDIS86
774USE_OPROFILE
775HAVE_PTHREAD
776HUGE_VAL_SANITY
777MMAP_FILE
Tobias Grossera84b5672010-11-10 16:31:34 +0000778LLVMCC_EMITIR_FLAG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000779LLVMCC1
780LLVMCC1PLUS
781LLVMGCCDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000782LLVMGCC_LANGS
Tobias Grossera84b5672010-11-10 16:31:34 +0000783LLVMGCC_DRAGONEGG
Eric Christopher481d4022010-12-03 07:45:22 +0000784LLVMCC_DISABLEOPT_FLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000785SHLIBEXT
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000786SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000787LLVM_PREFIX
788LLVM_BINDIR
789LLVM_LIBDIR
790LLVM_DATADIR
791LLVM_DOCSDIR
792LLVM_ETCDIR
793LLVM_INCLUDEDIR
794LLVM_INFODIR
795LLVM_MANDIR
796LLVM_CONFIGTIME
797BINDINGS_TO_BUILD
798ALL_BINDINGS
799OCAML_LIBDIR
800ENABLE_VISIBILITY_INLINES_HIDDEN
801RPATH
802RDYNAMIC
803LIBOBJS
804LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000805ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000806 ac_precious_vars='build_alias
807host_alias
808target_alias
809CC
810CFLAGS
811LDFLAGS
812CPPFLAGS
813CPP
814CXX
815CXXFLAGS
Torok Edwin871384f2010-01-26 08:50:50 +0000816CCC'
John Criswell0157f502010-03-19 21:31:39 +0000817ac_subdirs_all='projects/llvm-gcc
818projects/test-suite
819projects/llvm-test
820projects/poolalloc
821projects/llvm-poolalloc
822projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000823projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000824projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000825projects/llvm-reopt
Reid Spencera773bd52006-08-04 18:18:08 +0000826projects/llvm-java
827projects/llvm-tv
John Criswell7def2932010-02-25 22:57:19 +0000828projects/safecode
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000829projects/llvm-kernel
830tools/polly'
John Criswell7a73b802003-06-30 21:59:07 +0000831
832# Initialize some variables set by options.
833ac_init_help=
834ac_init_version=false
835# The variables have the same names as the options, with
836# dashes changed to underlines.
837cache_file=/dev/null
838exec_prefix=NONE
839no_create=
840no_recursion=
841prefix=NONE
842program_prefix=NONE
843program_suffix=NONE
844program_transform_name=s,x,x,
845silent=
846site=
847srcdir=
848verbose=
849x_includes=NONE
850x_libraries=NONE
851
852# Installation directory options.
853# These are left unexpanded so users can "make install exec_prefix=/foo"
854# and all the variables that are supposed to be based on exec_prefix
855# by default will actually change.
856# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000857# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000858bindir='${exec_prefix}/bin'
859sbindir='${exec_prefix}/sbin'
860libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000861datarootdir='${prefix}/share'
862datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000863sysconfdir='${prefix}/etc'
864sharedstatedir='${prefix}/com'
865localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000866includedir='${prefix}/include'
867oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000868docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
869infodir='${datarootdir}/info'
870htmldir='${docdir}'
871dvidir='${docdir}'
872pdfdir='${docdir}'
873psdir='${docdir}'
874libdir='${exec_prefix}/lib'
875localedir='${datarootdir}/locale'
876mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000877
878ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000879ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000880for ac_option
881do
882 # If the previous option needs an argument, assign it.
883 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000884 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000885 ac_prev=
886 continue
887 fi
888
Reid Spencera773bd52006-08-04 18:18:08 +0000889 case $ac_option in
890 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
891 *) ac_optarg=yes ;;
892 esac
John Criswell7a73b802003-06-30 21:59:07 +0000893
894 # Accept the important Cygnus configure options, so we can diagnose typos.
895
Reid Spencera773bd52006-08-04 18:18:08 +0000896 case $ac_dashdash$ac_option in
897 --)
898 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000899
900 -bindir | --bindir | --bindi | --bind | --bin | --bi)
901 ac_prev=bindir ;;
902 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
903 bindir=$ac_optarg ;;
904
905 -build | --build | --buil | --bui | --bu)
906 ac_prev=build_alias ;;
907 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
908 build_alias=$ac_optarg ;;
909
910 -cache-file | --cache-file | --cache-fil | --cache-fi \
911 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
912 ac_prev=cache_file ;;
913 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
914 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
915 cache_file=$ac_optarg ;;
916
917 --config-cache | -C)
918 cache_file=config.cache ;;
919
Reid Spencera773bd52006-08-04 18:18:08 +0000920 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000921 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000922 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000923 datadir=$ac_optarg ;;
924
Reid Spencera773bd52006-08-04 18:18:08 +0000925 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
926 | --dataroo | --dataro | --datar)
927 ac_prev=datarootdir ;;
928 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
929 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
930 datarootdir=$ac_optarg ;;
931
John Criswell7a73b802003-06-30 21:59:07 +0000932 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000933 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000934 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000935 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
936 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
937 { (exit 1); exit 1; }; }
938 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
939 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000940
941 -docdir | --docdir | --docdi | --doc | --do)
942 ac_prev=docdir ;;
943 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
944 docdir=$ac_optarg ;;
945
946 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
947 ac_prev=dvidir ;;
948 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
949 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000950
951 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000952 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000953 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000954 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
955 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
956 { (exit 1); exit 1; }; }
957 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
958 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000959
960 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
961 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
962 | --exec | --exe | --ex)
963 ac_prev=exec_prefix ;;
964 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
965 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
966 | --exec=* | --exe=* | --ex=*)
967 exec_prefix=$ac_optarg ;;
968
969 -gas | --gas | --ga | --g)
970 # Obsolete; use --with-gas.
971 with_gas=yes ;;
972
973 -help | --help | --hel | --he | -h)
974 ac_init_help=long ;;
975 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
976 ac_init_help=recursive ;;
977 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
978 ac_init_help=short ;;
979
980 -host | --host | --hos | --ho)
981 ac_prev=host_alias ;;
982 -host=* | --host=* | --hos=* | --ho=*)
983 host_alias=$ac_optarg ;;
984
Reid Spencera773bd52006-08-04 18:18:08 +0000985 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
986 ac_prev=htmldir ;;
987 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
988 | --ht=*)
989 htmldir=$ac_optarg ;;
990
John Criswell7a73b802003-06-30 21:59:07 +0000991 -includedir | --includedir | --includedi | --included | --include \
992 | --includ | --inclu | --incl | --inc)
993 ac_prev=includedir ;;
994 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
995 | --includ=* | --inclu=* | --incl=* | --inc=*)
996 includedir=$ac_optarg ;;
997
998 -infodir | --infodir | --infodi | --infod | --info | --inf)
999 ac_prev=infodir ;;
1000 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1001 infodir=$ac_optarg ;;
1002
1003 -libdir | --libdir | --libdi | --libd)
1004 ac_prev=libdir ;;
1005 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1006 libdir=$ac_optarg ;;
1007
1008 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1009 | --libexe | --libex | --libe)
1010 ac_prev=libexecdir ;;
1011 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1012 | --libexe=* | --libex=* | --libe=*)
1013 libexecdir=$ac_optarg ;;
1014
Reid Spencera773bd52006-08-04 18:18:08 +00001015 -localedir | --localedir | --localedi | --localed | --locale)
1016 ac_prev=localedir ;;
1017 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1018 localedir=$ac_optarg ;;
1019
John Criswell7a73b802003-06-30 21:59:07 +00001020 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001021 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001022 ac_prev=localstatedir ;;
1023 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001024 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001025 localstatedir=$ac_optarg ;;
1026
1027 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1028 ac_prev=mandir ;;
1029 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1030 mandir=$ac_optarg ;;
1031
1032 -nfp | --nfp | --nf)
1033 # Obsolete; use --without-fp.
1034 with_fp=no ;;
1035
1036 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1037 | --no-cr | --no-c | -n)
1038 no_create=yes ;;
1039
1040 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1041 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1042 no_recursion=yes ;;
1043
1044 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1045 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1046 | --oldin | --oldi | --old | --ol | --o)
1047 ac_prev=oldincludedir ;;
1048 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1049 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1050 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1051 oldincludedir=$ac_optarg ;;
1052
1053 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1054 ac_prev=prefix ;;
1055 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1056 prefix=$ac_optarg ;;
1057
1058 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1059 | --program-pre | --program-pr | --program-p)
1060 ac_prev=program_prefix ;;
1061 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1062 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1063 program_prefix=$ac_optarg ;;
1064
1065 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1066 | --program-suf | --program-su | --program-s)
1067 ac_prev=program_suffix ;;
1068 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1069 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1070 program_suffix=$ac_optarg ;;
1071
1072 -program-transform-name | --program-transform-name \
1073 | --program-transform-nam | --program-transform-na \
1074 | --program-transform-n | --program-transform- \
1075 | --program-transform | --program-transfor \
1076 | --program-transfo | --program-transf \
1077 | --program-trans | --program-tran \
1078 | --progr-tra | --program-tr | --program-t)
1079 ac_prev=program_transform_name ;;
1080 -program-transform-name=* | --program-transform-name=* \
1081 | --program-transform-nam=* | --program-transform-na=* \
1082 | --program-transform-n=* | --program-transform-=* \
1083 | --program-transform=* | --program-transfor=* \
1084 | --program-transfo=* | --program-transf=* \
1085 | --program-trans=* | --program-tran=* \
1086 | --progr-tra=* | --program-tr=* | --program-t=*)
1087 program_transform_name=$ac_optarg ;;
1088
Reid Spencera773bd52006-08-04 18:18:08 +00001089 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1090 ac_prev=pdfdir ;;
1091 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1092 pdfdir=$ac_optarg ;;
1093
1094 -psdir | --psdir | --psdi | --psd | --ps)
1095 ac_prev=psdir ;;
1096 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1097 psdir=$ac_optarg ;;
1098
John Criswell7a73b802003-06-30 21:59:07 +00001099 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1100 | -silent | --silent | --silen | --sile | --sil)
1101 silent=yes ;;
1102
1103 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1104 ac_prev=sbindir ;;
1105 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1106 | --sbi=* | --sb=*)
1107 sbindir=$ac_optarg ;;
1108
1109 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1110 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1111 | --sharedst | --shareds | --shared | --share | --shar \
1112 | --sha | --sh)
1113 ac_prev=sharedstatedir ;;
1114 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1115 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1116 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1117 | --sha=* | --sh=*)
1118 sharedstatedir=$ac_optarg ;;
1119
1120 -site | --site | --sit)
1121 ac_prev=site ;;
1122 -site=* | --site=* | --sit=*)
1123 site=$ac_optarg ;;
1124
1125 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1126 ac_prev=srcdir ;;
1127 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1128 srcdir=$ac_optarg ;;
1129
1130 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1131 | --syscon | --sysco | --sysc | --sys | --sy)
1132 ac_prev=sysconfdir ;;
1133 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1134 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1135 sysconfdir=$ac_optarg ;;
1136
1137 -target | --target | --targe | --targ | --tar | --ta | --t)
1138 ac_prev=target_alias ;;
1139 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1140 target_alias=$ac_optarg ;;
1141
1142 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1143 verbose=yes ;;
1144
1145 -version | --version | --versio | --versi | --vers | -V)
1146 ac_init_version=: ;;
1147
1148 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001149 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001150 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001151 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1152 { echo "$as_me: error: invalid package name: $ac_package" >&2
1153 { (exit 1); exit 1; }; }
1154 ac_package=`echo $ac_package| sed 's/-/_/g'`
1155 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001156
1157 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001158 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001159 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001160 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1161 { echo "$as_me: error: invalid package name: $ac_package" >&2
1162 { (exit 1); exit 1; }; }
1163 ac_package=`echo $ac_package | sed 's/-/_/g'`
1164 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001165
1166 --x)
1167 # Obsolete; use --with-x.
1168 with_x=yes ;;
1169
1170 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1171 | --x-incl | --x-inc | --x-in | --x-i)
1172 ac_prev=x_includes ;;
1173 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1174 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1175 x_includes=$ac_optarg ;;
1176
1177 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1178 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1179 ac_prev=x_libraries ;;
1180 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1181 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1182 x_libraries=$ac_optarg ;;
1183
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001184 -*) { echo "$as_me: error: unrecognized option: $ac_option
1185Try \`$0 --help' for more information." >&2
1186 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001187 ;;
1188
1189 *=*)
1190 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1191 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001192 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1193 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1194 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001195 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001196 export $ac_envvar ;;
1197
1198 *)
1199 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001200 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001201 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001202 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001203 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1204 ;;
1205
1206 esac
1207done
1208
1209if test -n "$ac_prev"; then
1210 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001211 { echo "$as_me: error: missing argument to $ac_option" >&2
1212 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001213fi
1214
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001215# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001216for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1217 datadir sysconfdir sharedstatedir localstatedir includedir \
1218 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1219 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001220do
Reid Spencera773bd52006-08-04 18:18:08 +00001221 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001222 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001223 [\\/$]* | ?:[\\/]* ) continue;;
1224 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001225 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001226 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1227 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001228done
1229
1230# There might be people who depend on the old broken behavior: `$host'
1231# used to hold the argument of --host etc.
1232# FIXME: To remove some day.
1233build=$build_alias
1234host=$host_alias
1235target=$target_alias
1236
1237# FIXME: To remove some day.
1238if test "x$host_alias" != x; then
1239 if test "x$build_alias" = x; then
1240 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001241 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001242 If a cross compiler is detected then cross compile mode will be used." >&2
1243 elif test "x$build_alias" != "x$host_alias"; then
1244 cross_compiling=yes
1245 fi
1246fi
1247
1248ac_tool_prefix=
1249test -n "$host_alias" && ac_tool_prefix=$host_alias-
1250
1251test "$silent" = yes && exec 6>/dev/null
1252
1253
Reid Spencera773bd52006-08-04 18:18:08 +00001254ac_pwd=`pwd` && test -n "$ac_pwd" &&
1255ac_ls_di=`ls -di .` &&
1256ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001257 { echo "$as_me: error: Working directory cannot be determined" >&2
1258 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001259test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001260 { echo "$as_me: error: pwd does not report name of working directory" >&2
1261 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001262
1263
John Criswell7a73b802003-06-30 21:59:07 +00001264# Find the source files, if location was not specified.
1265if test -z "$srcdir"; then
1266 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001267 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001268 ac_confdir=`$as_dirname -- "$0" ||
1269$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270 X"$0" : 'X\(//\)[^/]' \| \
1271 X"$0" : 'X\(//\)$' \| \
1272 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1273echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1275 s//\1/
1276 q
1277 }
1278 /^X\(\/\/\)[^/].*/{
1279 s//\1/
1280 q
1281 }
1282 /^X\(\/\/\)$/{
1283 s//\1/
1284 q
1285 }
1286 /^X\(\/\).*/{
1287 s//\1/
1288 q
1289 }
1290 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001291 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001292 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001293 srcdir=..
1294 fi
1295else
1296 ac_srcdir_defaulted=no
1297fi
Reid Spencera773bd52006-08-04 18:18:08 +00001298if test ! -r "$srcdir/$ac_unique_file"; then
1299 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001300 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1301 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001302fi
Reid Spencera773bd52006-08-04 18:18:08 +00001303ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1304ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001305 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1306 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001307 pwd)`
1308# When building in place, set srcdir=.
1309if test "$ac_abs_confdir" = "$ac_pwd"; then
1310 srcdir=.
1311fi
1312# Remove unnecessary trailing slashes from srcdir.
1313# Double slashes in file names in object file debugging info
1314# mess up M-x gdb in Emacs.
1315case $srcdir in
1316*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1317esac
1318for ac_var in $ac_precious_vars; do
1319 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_env_${ac_var}_value=\$${ac_var}
1321 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1322 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1323done
John Criswell7a73b802003-06-30 21:59:07 +00001324
1325#
1326# Report the --help message.
1327#
1328if test "$ac_init_help" = "long"; then
1329 # Omit some internal or obsolete options to make the list less imposing.
1330 # This message is too long to be a string in the A/UX 3.1 sh.
1331 cat <<_ACEOF
Bill Wendlingebc2fc12011-03-08 03:00:02 +00001332\`configure' configures llvm 3.0svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001333
1334Usage: $0 [OPTION]... [VAR=VALUE]...
1335
1336To assign environment variables (e.g., CC, CFLAGS...), specify them as
1337VAR=VALUE. See below for descriptions of some of the useful variables.
1338
1339Defaults for the options are specified in brackets.
1340
1341Configuration:
1342 -h, --help display this help and exit
1343 --help=short display options specific to this package
1344 --help=recursive display the short help of all the included packages
1345 -V, --version display version information and exit
1346 -q, --quiet, --silent do not print \`checking...' messages
1347 --cache-file=FILE cache test results in FILE [disabled]
1348 -C, --config-cache alias for \`--cache-file=config.cache'
1349 -n, --no-create do not create output files
1350 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1351
John Criswell7a73b802003-06-30 21:59:07 +00001352Installation directories:
1353 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001354 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001355 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001356 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001357
1358By default, \`make install' will install all the files in
1359\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1360an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1361for instance \`--prefix=\$HOME'.
1362
1363For better control, use the options below.
1364
1365Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001366 --bindir=DIR user executables [EPREFIX/bin]
1367 --sbindir=DIR system admin executables [EPREFIX/sbin]
1368 --libexecdir=DIR program executables [EPREFIX/libexec]
1369 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1370 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1371 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1372 --libdir=DIR object code libraries [EPREFIX/lib]
1373 --includedir=DIR C header files [PREFIX/include]
1374 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1375 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1376 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1377 --infodir=DIR info documentation [DATAROOTDIR/info]
1378 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1379 --mandir=DIR man documentation [DATAROOTDIR/man]
1380 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1381 --htmldir=DIR html documentation [DOCDIR]
1382 --dvidir=DIR dvi documentation [DOCDIR]
1383 --pdfdir=DIR pdf documentation [DOCDIR]
1384 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001385_ACEOF
1386
1387 cat <<\_ACEOF
1388
1389System types:
1390 --build=BUILD configure for building on BUILD [guessed]
1391 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1392 --target=TARGET configure for building compilers for TARGET [HOST]
1393_ACEOF
1394fi
1395
1396if test -n "$ac_init_help"; then
1397 case $ac_init_help in
Bill Wendlingebc2fc12011-03-08 03:00:02 +00001398 short | recursive ) echo "Configuration of llvm 3.0svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001399 esac
1400 cat <<\_ACEOF
1401
1402Optional Features:
1403 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1404 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Tobias Grosserbaaadb22010-10-30 00:54:26 +00001405 --enable-polly Use polly if available (default is YES)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001406 --enable-optimized Compile with optimizations enabled (default is NO)
1407 --enable-profiling Compile with profiling enabled (default is NO)
1408 --enable-assertions Compile with assertion checks enabled (default is
1409 YES)
David Greenea696d242007-06-28 19:36:08 +00001410 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001411 Compile with expensive debug checks enabled (default
1412 is NO)
1413 --enable-debug-runtime Build runtime libs with debug symbols (default is
1414 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001415 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1416 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001417 --enable-jit Enable Just In Time Compiling (default is YES)
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00001418 --enable-docs Build documents (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001419 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001420 --enable-threads Use threads if available (default is YES)
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00001421 --enable-pthreads Use pthreads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001422 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001423 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001424 --enable-shared Build a shared library and link tools against it
1425 (default is NO)
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00001426 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1427 Win32 DLL (default is YES)
Daniel Dunbardd464df2010-05-10 20:11:56 +00001428 --enable-timestamps Enable embedding timestamp information in build
1429 (default is YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001430 --enable-targets Build specific host targets: all or
1431 target1,target2,... Valid targets are: host, x86,
1432 x86_64, sparc, powerpc, alpha, arm, mips, spu,
Eric Christopher14074e82010-10-12 02:42:05 +00001433 xcore, msp430, systemz, blackfin, ptx, cbe, and cpp
1434 (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001435 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1436 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001437 --enable-bindings Build specific language bindings:
1438 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001439 --enable-libffi Check for the presence of libffi (default is NO)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001440 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001441
1442Optional Packages:
1443 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1444 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001445 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1446 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001447 --with-llvmgcc Specify location of llvm-gcc driver (default
1448 searches PATH)
1449 --with-llvmgxx Specify location of llvm-g++ driver (default
1450 searches PATH)
Daniel Dunbar98515672010-02-23 10:00:49 +00001451 --with-clang Specify location of clang compiler (default is
1452 --with-built-clang)
1453 --with-built-clang Use the compiled Clang as the LLVM compiler
1454 (default=check)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001455 --with-optimize-option Select the compiler options to use for optimized
1456 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001457 --with-extra-options Specify additional options to compile LLVM with
Daniel Dunbared344d22011-06-16 22:30:41 +00001458 --with-extra-ld-options Specify additional options to link LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001459 --with-ocaml-libdir Specify install location for ocaml bindings (default
1460 is stdlib)
Chandler Carruth6b241162010-10-19 08:21:25 +00001461 --with-clang-resource-dir
1462 Relative directory from the Clang binary for
1463 resource files
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001464 --with-c-include-dirs Colon separated list of directories clang will
1465 search for headers
Rafael Espindola420d23c2009-11-16 19:46:55 +00001466 --with-cxx-include-root Directory with the libstdc++ headers.
1467 --with-cxx-include-arch Architecture of the libstdc++ headers.
1468 --with-cxx-include-32bit-dir
1469 32 bit multilib dir.
1470 --with-cxx-include-64bit-dir
1471 64 bit multilib directory.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001472 --with-binutils-include Specify path to binutils/include/ containing
1473 plugin-api.h file for gold plugin.
Eric Christopher91e7ccd2011-07-20 17:04:49 +00001474 --with-bug-report-url Specify the URL where bug reports should be
1475 submitted (default=http://llvm.org)
Reid Spencer0fcb9412004-11-30 08:11:54 +00001476 --with-tclinclude directory where tcl headers are
Daniel Dunbar98515672010-02-23 10:00:49 +00001477 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1478 clang, or none; default=check)
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001479 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001480 --with-oprofile=<prefix>
1481 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001482
1483Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001484 CC C compiler command
1485 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001486 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1487 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001488 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001489 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001490 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001491 CXX C++ compiler command
1492 CXXFLAGS C++ compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001493
1494Use these variables to override the choices made by `configure' or to help
1495it to find libraries and programs with nonstandard names/locations.
1496
1497Report bugs to <llvmbugs@cs.uiuc.edu>.
1498_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001499ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001500fi
1501
1502if test "$ac_init_help" = "recursive"; then
1503 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001504 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001505 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001506 ac_builddir=.
1507
Reid Spencera773bd52006-08-04 18:18:08 +00001508case "$ac_dir" in
1509.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1510*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001511 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001512 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001513 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001514 case $ac_top_builddir_sub in
1515 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1516 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1517 esac ;;
1518esac
1519ac_abs_top_builddir=$ac_pwd
1520ac_abs_builddir=$ac_pwd$ac_dir_suffix
1521# for backward compatibility:
1522ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001523
1524case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001525 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001526 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001527 ac_top_srcdir=$ac_top_builddir_sub
1528 ac_abs_top_srcdir=$ac_pwd ;;
1529 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001530 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001531 ac_top_srcdir=$srcdir
1532 ac_abs_top_srcdir=$srcdir ;;
1533 *) # Relative name.
1534 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1535 ac_top_srcdir=$ac_top_build_prefix$srcdir
1536 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001537esac
Reid Spencera773bd52006-08-04 18:18:08 +00001538ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001539
Reid Spencera773bd52006-08-04 18:18:08 +00001540 cd "$ac_dir" || { ac_status=$?; continue; }
1541 # Check for guested configure.
1542 if test -f "$ac_srcdir/configure.gnu"; then
1543 echo &&
1544 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1545 elif test -f "$ac_srcdir/configure"; then
1546 echo &&
1547 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001548 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001549 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001550 fi || ac_status=$?
1551 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001552 done
1553fi
1554
Reid Spencera773bd52006-08-04 18:18:08 +00001555test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001556if $ac_init_version; then
1557 cat <<\_ACEOF
Bill Wendlingebc2fc12011-03-08 03:00:02 +00001558llvm configure 3.0svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001559generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001560
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001561Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15622002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001563This configure script is free software; the Free Software Foundation
1564gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001565
Benjamin Kramerb73cd942011-06-12 15:26:54 +00001566Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001567_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001568 exit
John Criswell7a73b802003-06-30 21:59:07 +00001569fi
Reid Spencera773bd52006-08-04 18:18:08 +00001570cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001571This file contains any messages produced by compilers while
1572running configure, to aid debugging if configure makes a mistake.
1573
Bill Wendlingebc2fc12011-03-08 03:00:02 +00001574It was created by llvm $as_me 3.0svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001575generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001576
1577 $ $0 $@
1578
1579_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001580exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001581{
1582cat <<_ASUNAME
1583## --------- ##
1584## Platform. ##
1585## --------- ##
1586
1587hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1588uname -m = `(uname -m) 2>/dev/null || echo unknown`
1589uname -r = `(uname -r) 2>/dev/null || echo unknown`
1590uname -s = `(uname -s) 2>/dev/null || echo unknown`
1591uname -v = `(uname -v) 2>/dev/null || echo unknown`
1592
1593/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1594/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1595
1596/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1597/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1598/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001599/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001600/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1601/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1602/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1603
1604_ASUNAME
1605
1606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607for as_dir in $PATH
1608do
1609 IFS=$as_save_IFS
1610 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001611 echo "PATH: $as_dir"
1612done
Reid Spencera773bd52006-08-04 18:18:08 +00001613IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001614
1615} >&5
1616
1617cat >&5 <<_ACEOF
1618
1619
1620## ----------- ##
1621## Core tests. ##
1622## ----------- ##
1623
1624_ACEOF
1625
1626
1627# Keep a trace of the command line.
1628# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001629# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001630# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001631# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001632ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001633ac_configure_args0=
1634ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001635ac_must_keep_next=false
1636for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001637do
John Criswell0c38eaf2003-09-10 15:17:25 +00001638 for ac_arg
1639 do
1640 case $ac_arg in
1641 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1642 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1643 | -silent | --silent | --silen | --sile | --sil)
1644 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001645 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001646 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001647 esac
1648 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001649 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001650 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001651 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001652 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001653 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001654 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001655 case $ac_arg in
1656 *=* | --config-cache | -C | -disable-* | --disable-* \
1657 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1658 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1659 | -with-* | --with-* | -without-* | --without-* | --x)
1660 case "$ac_configure_args0 " in
1661 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1662 esac
1663 ;;
1664 -* ) ac_must_keep_next=true ;;
1665 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001666 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001667 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001668 ;;
1669 esac
1670 done
John Criswell7a73b802003-06-30 21:59:07 +00001671done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001672$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1673$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 +00001674
1675# When interrupted or exit'd, cleanup temporary files, and complete
1676# config.log. We remove comments because anyway the quotes in there
1677# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001678# WARNING: Use '\'' to represent an apostrophe within the trap.
1679# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001680trap 'exit_status=$?
1681 # Save into config.log some information that might help in debugging.
1682 {
1683 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001684
John Criswell7a73b802003-06-30 21:59:07 +00001685 cat <<\_ASBOX
1686## ---------------- ##
1687## Cache variables. ##
1688## ---------------- ##
1689_ASBOX
1690 echo
1691 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001692(
1693 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1694 eval ac_val=\$$ac_var
1695 case $ac_val in #(
1696 *${as_nl}*)
1697 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001698 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1699echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001700 esac
1701 case $ac_var in #(
1702 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001703 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001704 esac ;;
1705 esac
1706 done
John Criswell7a73b802003-06-30 21:59:07 +00001707 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001708 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1709 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001710 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001711 "s/'\''/'\''\\\\'\'''\''/g;
1712 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1713 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001714 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001715 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001716 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001717 esac |
1718 sort
1719)
John Criswell7a73b802003-06-30 21:59:07 +00001720 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001721
1722 cat <<\_ASBOX
1723## ----------------- ##
1724## Output variables. ##
1725## ----------------- ##
1726_ASBOX
1727 echo
1728 for ac_var in $ac_subst_vars
1729 do
Reid Spencera773bd52006-08-04 18:18:08 +00001730 eval ac_val=\$$ac_var
1731 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001732 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001733 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001734 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001735 done | sort
1736 echo
1737
1738 if test -n "$ac_subst_files"; then
1739 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001740## ------------------- ##
1741## File substitutions. ##
1742## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001743_ASBOX
1744 echo
1745 for ac_var in $ac_subst_files
1746 do
Reid Spencera773bd52006-08-04 18:18:08 +00001747 eval ac_val=\$$ac_var
1748 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001749 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001750 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001751 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001752 done | sort
1753 echo
1754 fi
1755
John Criswell7a73b802003-06-30 21:59:07 +00001756 if test -s confdefs.h; then
1757 cat <<\_ASBOX
1758## ----------- ##
1759## confdefs.h. ##
1760## ----------- ##
1761_ASBOX
1762 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001763 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001764 echo
1765 fi
1766 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001767 echo "$as_me: caught signal $ac_signal"
1768 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001769 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001770 rm -f core *.core core.conftest.* &&
1771 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001772 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001773' 0
John Criswell7a73b802003-06-30 21:59:07 +00001774for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001775 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001776done
1777ac_signal=0
1778
1779# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001780rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001781
1782# Predefined preprocessor variables.
1783
1784cat >>confdefs.h <<_ACEOF
1785#define PACKAGE_NAME "$PACKAGE_NAME"
1786_ACEOF
1787
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001788
John Criswell7a73b802003-06-30 21:59:07 +00001789cat >>confdefs.h <<_ACEOF
1790#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1791_ACEOF
1792
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001793
John Criswell7a73b802003-06-30 21:59:07 +00001794cat >>confdefs.h <<_ACEOF
1795#define PACKAGE_VERSION "$PACKAGE_VERSION"
1796_ACEOF
1797
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001798
John Criswell7a73b802003-06-30 21:59:07 +00001799cat >>confdefs.h <<_ACEOF
1800#define PACKAGE_STRING "$PACKAGE_STRING"
1801_ACEOF
1802
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001803
John Criswell7a73b802003-06-30 21:59:07 +00001804cat >>confdefs.h <<_ACEOF
1805#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1806_ACEOF
1807
1808
1809# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001810# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001811if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001812 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001813elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001814 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001815else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001816 set x "$ac_default_prefix/share/config.site" \
1817 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001818fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001819shift
1820for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001821do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001822 if test -r "$ac_site_file"; then
1823 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1824echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001825 sed 's/^/| /' "$ac_site_file" >&5
1826 . "$ac_site_file"
1827 fi
1828done
1829
1830if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001831 # Some versions of bash will fail to source /dev/null (special
1832 # files actually), so we avoid doing that.
1833 if test -f "$cache_file"; then
1834 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1835echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001836 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001837 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1838 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001839 esac
1840 fi
1841else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001842 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1843echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001844 >$cache_file
1845fi
1846
1847# Check that the precious variables saved in the cache have kept the same
1848# value.
1849ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001850for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001851 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1852 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001853 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1854 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001855 case $ac_old_set,$ac_new_set in
1856 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001857 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1858echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001859 ac_cache_corrupted=: ;;
1860 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001861 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1862echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001863 ac_cache_corrupted=: ;;
1864 ,);;
1865 *)
1866 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001867 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1868echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1869 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1870echo "$as_me: former value: $ac_old_val" >&2;}
1871 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1872echo "$as_me: current value: $ac_new_val" >&2;}
1873 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001874 fi;;
1875 esac
1876 # Pass precious variables to config.status.
1877 if test "$ac_new_set" = set; then
1878 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001879 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001880 *) ac_arg=$ac_var=$ac_new_val ;;
1881 esac
1882 case " $ac_configure_args " in
1883 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001884 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001885 esac
1886 fi
1887done
1888if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001889 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1890echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1891 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1892echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1893 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001894fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
Reid Spencera773bd52006-08-04 18:18:08 +00001919
John Criswell7a73b802003-06-30 21:59:07 +00001920ac_ext=c
1921ac_cpp='$CPP $CPPFLAGS'
1922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1924ac_compiler_gnu=$ac_cv_c_compiler_gnu
1925
1926
1927
Benjamin Kramerb73cd942011-06-12 15:26:54 +00001928LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001929
1930
1931
1932
1933
1934
1935
John Criswell7a73b802003-06-30 21:59:07 +00001936ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001937for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001938 if 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/install.sh"; then
1943 ac_aux_dir=$ac_dir
1944 ac_install_sh="$ac_aux_dir/install.sh -c"
1945 break
1946 elif test -f "$ac_dir/shtool"; then
1947 ac_aux_dir=$ac_dir
1948 ac_install_sh="$ac_aux_dir/shtool install -c"
1949 break
1950 fi
John Criswell7a73b802003-06-30 21:59:07 +00001951done
1952if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001953 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1954echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1955 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001956fi
Reid Spencera773bd52006-08-04 18:18:08 +00001957
1958# These three variables are undocumented and unsupported,
1959# and are intended to be withdrawn in a future Autoconf release.
1960# They can cause serious problems if a builder's source tree is in a directory
1961# whose full name contains unusual characters.
1962ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1963ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1964ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1965
John Criswell7a73b802003-06-30 21:59:07 +00001966
John Criswell392aaa32003-07-22 19:18:09 +00001967
Reid Spencer2706f8c2004-09-19 23:53:36 +00001968if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001969 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001970 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1971echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1972 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001973 fi
John Criswell93e1c722003-09-15 17:04:06 +00001974fi
1975
John Criswell0157f502010-03-19 21:31:39 +00001976
1977
1978if test -d ${srcdir}/projects/llvm-gcc ; then
1979 subdirs="$subdirs projects/llvm-gcc"
1980
1981fi
1982
1983if test -d ${srcdir}/projects/test-suite ; then
1984 subdirs="$subdirs projects/test-suite"
1985
1986fi
1987
1988if test -d ${srcdir}/projects/llvm-test ; then
1989 subdirs="$subdirs projects/llvm-test"
1990
1991fi
1992
1993if test -d ${srcdir}/projects/poolalloc ; then
1994 subdirs="$subdirs projects/poolalloc"
1995
1996fi
1997
1998if test -d ${srcdir}/projects/llvm-poolalloc ; then
1999 subdirs="$subdirs projects/llvm-poolalloc"
2000
2001fi
2002
John Criswell33a911a2003-11-25 20:36:46 +00002003for i in `ls ${srcdir}/projects`
2004do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002005 if test -d ${srcdir}/projects/${i} ; then
2006 case ${i} in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002007 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002008 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002009 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002010 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002011 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002012 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002013 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002014;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002015 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002016 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002017 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002018 ;;
John Criswell7def2932010-02-25 22:57:19 +00002019 safecode) subdirs="$subdirs projects/safecode"
2020 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002021 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002022 ;;
John Criswell52c02862010-03-25 13:59:09 +00002023 llvm-gcc) ;;
2024 test-suite) ;;
2025 llvm-test) ;;
2026 poolalloc) ;;
2027 llvm-poolalloc) ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002028 *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002029 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2030echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002031 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002032 esac
John Criswell33a911a2003-11-25 20:36:46 +00002033 fi
2034done
John Criswell559a6c12003-09-30 16:31:48 +00002035
Tobias Grosserbaaadb22010-10-30 00:54:26 +00002036# Check whether --enable-polly was given.
2037if test "${enable_polly+set}" = set; then
2038 enableval=$enable_polly;
2039else
2040 enableval=default
2041fi
2042
2043case "$enableval" in
2044 yes) ENABLE_POLLY=1
2045 ;;
2046 no) ENABLE_POLLY=0
2047 ;;
2048 default) ENABLE_POLLY=1
2049 ;;
2050 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
2051echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
2052 { (exit 1); exit 1; }; } ;;
2053esac
2054
2055
2056if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
2057 LLVM_HAS_POLLY=1
2058
2059 subdirs="$subdirs tools/polly"
2060
2061fi
2062
John Criswell7a73b802003-06-30 21:59:07 +00002063
2064# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002065$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002066 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2067echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2068 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002069
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002070{ echo "$as_me:$LINENO: checking build system type" >&5
2071echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2072if test "${ac_cv_build+set}" = set; then
2073 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002074else
Reid Spencera773bd52006-08-04 18:18:08 +00002075 ac_build_alias=$build_alias
2076test "x$ac_build_alias" = x &&
2077 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2078test "x$ac_build_alias" = x &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002079 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2080echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2081 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002082ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002083 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2084echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2085 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002086
2087fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002088{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2089echo "${ECHO_T}$ac_cv_build" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002090case $ac_cv_build in
2091*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002092*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2093echo "$as_me: error: invalid value of canonical build" >&2;}
2094 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002095esac
John Criswell7a73b802003-06-30 21:59:07 +00002096build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002097ac_save_IFS=$IFS; IFS='-'
2098set x $ac_cv_build
2099shift
2100build_cpu=$1
2101build_vendor=$2
2102shift; shift
2103# Remember, the first character of IFS is used to create $*,
2104# except with old shells:
2105build_os=$*
2106IFS=$ac_save_IFS
2107case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002108
2109
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002110{ echo "$as_me:$LINENO: checking host system type" >&5
2111echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2112if test "${ac_cv_host+set}" = set; then
2113 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002114else
Reid Spencera773bd52006-08-04 18:18:08 +00002115 if test "x$host_alias" = x; then
2116 ac_cv_host=$ac_cv_build
2117else
2118 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002119 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2120echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2121 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002122fi
John Criswell7a73b802003-06-30 21:59:07 +00002123
2124fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002125{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2126echo "${ECHO_T}$ac_cv_host" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002127case $ac_cv_host in
2128*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002129*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2130echo "$as_me: error: invalid value of canonical host" >&2;}
2131 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002132esac
John Criswell7a73b802003-06-30 21:59:07 +00002133host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002134ac_save_IFS=$IFS; IFS='-'
2135set x $ac_cv_host
2136shift
2137host_cpu=$1
2138host_vendor=$2
2139shift; shift
2140# Remember, the first character of IFS is used to create $*,
2141# except with old shells:
2142host_os=$*
2143IFS=$ac_save_IFS
2144case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002145
2146
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002147{ echo "$as_me:$LINENO: checking target system type" >&5
2148echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2149if test "${ac_cv_target+set}" = set; then
2150 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002151else
Reid Spencera773bd52006-08-04 18:18:08 +00002152 if test "x$target_alias" = x; then
2153 ac_cv_target=$ac_cv_host
2154else
2155 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002156 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2157echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2158 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002159fi
John Criswell7a73b802003-06-30 21:59:07 +00002160
2161fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002162{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2163echo "${ECHO_T}$ac_cv_target" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002164case $ac_cv_target in
2165*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002166*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2167echo "$as_me: error: invalid value of canonical target" >&2;}
2168 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002169esac
John Criswell7a73b802003-06-30 21:59:07 +00002170target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002171ac_save_IFS=$IFS; IFS='-'
2172set x $ac_cv_target
2173shift
2174target_cpu=$1
2175target_vendor=$2
2176shift; shift
2177# Remember, the first character of IFS is used to create $*,
2178# except with old shells:
2179target_os=$*
2180IFS=$ac_save_IFS
2181case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002182
2183
2184# The aliases save the names the user supplied, while $host etc.
2185# will get canonicalized.
2186test -n "$target_alias" &&
2187 test "$program_prefix$program_suffix$program_transform_name" = \
2188 NONENONEs,x,x, &&
2189 program_prefix=${target_alias}-
2190
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002191{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2192echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2193if test "${llvm_cv_os_type+set}" = set; then
2194 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002195else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002196 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002197 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002198 llvm_cv_link_all_option="-Wl,--whole-archive"
2199 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002200 llvm_cv_os_type="AIX"
2201 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002202 *-*-irix*)
2203 llvm_cv_link_all_option="-Wl,--whole-archive"
2204 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2205 llvm_cv_os_type="IRIX"
2206 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002207 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002208 llvm_cv_link_all_option="-Wl,--whole-archive"
2209 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002210 llvm_cv_os_type="Cygwin"
2211 llvm_cv_platform_type="Unix" ;;
2212 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002213 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002214 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002215 llvm_cv_os_type="Darwin"
2216 llvm_cv_platform_type="Unix" ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00002217 *-*-minix*)
2218 llvm_cv_link_all_option="-Wl,-all_load"
2219 llvm_cv_no_link_all_option="-Wl,-noall_load"
2220 llvm_cv_os_type="Minix"
2221 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002222 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002223 llvm_cv_link_all_option="-Wl,--whole-archive"
2224 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002225 llvm_cv_os_type="FreeBSD"
2226 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002227 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002228 llvm_cv_link_all_option="-Wl,--whole-archive"
2229 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002230 llvm_cv_os_type="OpenBSD"
2231 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002232 *-*-netbsd*)
2233 llvm_cv_link_all_option="-Wl,--whole-archive"
2234 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2235 llvm_cv_os_type="NetBSD"
2236 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002237 *-*-dragonfly*)
2238 llvm_cv_link_all_option="-Wl,--whole-archive"
2239 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2240 llvm_cv_os_type="DragonFly"
2241 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002242 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002243 llvm_cv_link_all_option="-Wl,--whole-archive"
2244 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002245 llvm_cv_os_type="HP-UX"
2246 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002247 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002248 llvm_cv_link_all_option="-Wl,--whole-archive"
2249 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002250 llvm_cv_os_type="Interix"
2251 llvm_cv_platform_type="Unix" ;;
2252 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002253 llvm_cv_link_all_option="-Wl,--whole-archive"
2254 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002255 llvm_cv_os_type="Linux"
2256 llvm_cv_platform_type="Unix" ;;
2257 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002258 llvm_cv_link_all_option="-Wl,-z,allextract"
2259 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002260 llvm_cv_os_type="SunOS"
2261 llvm_cv_platform_type="Unix" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002262 *-*-auroraux*)
2263 llvm_cv_link_all_option="-Wl,-z,allextract"
2264 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2265 llvm_cv_os_type="AuroraUX"
2266 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002267 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002268 llvm_cv_link_all_option="-Wl,--whole-archive"
2269 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002270 llvm_cv_os_type="Win32"
2271 llvm_cv_platform_type="Win32" ;;
2272 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002273 llvm_cv_link_all_option="-Wl,--whole-archive"
2274 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002275 llvm_cv_os_type="MingW"
2276 llvm_cv_platform_type="Win32" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002277 *-*-haiku*)
2278 llvm_cv_link_all_option="-Wl,--whole-archive"
2279 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2280 llvm_cv_os_type="Haiku"
2281 llvm_cv_platform_type="Unix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002282 *-unknown-eabi*)
2283 llvm_cv_link_all_option="-Wl,--whole-archive"
2284 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2285 llvm_cv_os_type="Freestanding"
2286 llvm_cv_platform_type="Unix" ;;
2287 *-unknown-elf*)
2288 llvm_cv_link_all_option="-Wl,--whole-archive"
2289 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2290 llvm_cv_os_type="Freestanding"
2291 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002292 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002293 llvm_cv_link_all_option=""
2294 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002295 llvm_cv_os_type="Unknown"
2296 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002297esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002298fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002299{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2300echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002301
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002302{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2303echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2304if test "${llvm_cv_target_os_type+set}" = set; then
2305 echo $ECHO_N "(cached) $ECHO_C" >&6
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002306else
2307 case $target in
2308 *-*-aix*)
2309 llvm_cv_target_os_type="AIX" ;;
2310 *-*-irix*)
2311 llvm_cv_target_os_type="IRIX" ;;
2312 *-*-cygwin*)
2313 llvm_cv_target_os_type="Cygwin" ;;
2314 *-*-darwin*)
2315 llvm_cv_target_os_type="Darwin" ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00002316 *-*-minix*)
2317 llvm_cv_target_os_type="Minix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002318 *-*-freebsd*)
2319 llvm_cv_target_os_type="FreeBSD" ;;
2320 *-*-openbsd*)
2321 llvm_cv_target_os_type="OpenBSD" ;;
2322 *-*-netbsd*)
2323 llvm_cv_target_os_type="NetBSD" ;;
2324 *-*-dragonfly*)
2325 llvm_cv_target_os_type="DragonFly" ;;
2326 *-*-hpux*)
2327 llvm_cv_target_os_type="HP-UX" ;;
2328 *-*-interix*)
2329 llvm_cv_target_os_type="Interix" ;;
2330 *-*-linux*)
2331 llvm_cv_target_os_type="Linux" ;;
2332 *-*-solaris*)
2333 llvm_cv_target_os_type="SunOS" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002334 *-*-auroraux*)
2335 llvm_cv_target_os_type="AuroraUX" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002336 *-*-win32*)
2337 llvm_cv_target_os_type="Win32" ;;
2338 *-*-mingw*)
2339 llvm_cv_target_os_type="MingW" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002340 *-*-haiku*)
2341 llvm_cv_target_os_type="Haiku" ;;
Douglas Gregor6ced1d12011-07-01 22:41:06 +00002342 *-*-rtems*)
2343 llvm_cv_target_os_type="RTEMS" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002344 *-unknown-eabi*)
2345 llvm_cv_target_os_type="Freestanding" ;;
2346 *)
2347 llvm_cv_target_os_type="Unknown" ;;
2348esac
2349fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002350{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2351echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002352
Reid Spencer7b3e8512004-12-24 06:29:05 +00002353if test "$llvm_cv_os_type" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002354 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2355echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2356 { (exit 1); exit 1; }; }
Reid Spencer886e9512004-08-31 01:34:10 +00002357fi
2358
Reid Spencer7b3e8512004-12-24 06:29:05 +00002359OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002360
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002361HOST_OS=$llvm_cv_os_type
2362
2363TARGET_OS=$llvm_cv_target_os_type
2364
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002365
Reid Spencera773bd52006-08-04 18:18:08 +00002366LINKALL=$llvm_cv_link_all_option
2367
2368NOLINKALL=$llvm_cv_no_link_all_option
2369
2370
Reid Spencer7b3e8512004-12-24 06:29:05 +00002371case $llvm_cv_platform_type in
2372 Unix)
2373
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002374cat >>confdefs.h <<\_ACEOF
2375#define LLVM_ON_UNIX 1
2376_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002377
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002378 LLVM_ON_UNIX=1
2379
2380 LLVM_ON_WIN32=0
2381
Reid Spencer7b3e8512004-12-24 06:29:05 +00002382 ;;
2383 Win32)
2384
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002385cat >>confdefs.h <<\_ACEOF
2386#define LLVM_ON_WIN32 1
2387_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002388
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002389 LLVM_ON_UNIX=0
2390
2391 LLVM_ON_WIN32=1
2392
Reid Spencer7b3e8512004-12-24 06:29:05 +00002393 ;;
2394esac
2395
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002396{ echo "$as_me:$LINENO: checking target architecture" >&5
2397echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2398if test "${llvm_cv_target_arch+set}" = set; then
2399 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002400else
2401 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002402 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002403 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002404 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2405 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002406 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Nick Lewyckyfa8ffc12009-04-18 18:11:26 +00002407 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002408 mips-*) llvm_cv_target_arch="Mips" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002409 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00002410 msp430-*) llvm_cv_target_arch="MSP430" ;;
Anton Korobeynikov4403b932009-07-16 13:27:25 +00002411 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00002412 bfin-*) llvm_cv_target_arch="Blackfin" ;;
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00002413 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00002414 ptx-*) llvm_cv_target_arch="PTX" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002415 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002416esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002417fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002418{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2419echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002420
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002421if test "$llvm_cv_target_arch" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002422 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2423echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002424fi
John Criswell76595452003-07-01 22:07:39 +00002425
Nick Lewycky83fc4472009-09-29 05:48:51 +00002426# Determine the LLVM native architecture for the target
2427case "$llvm_cv_target_arch" in
2428 x86) LLVM_NATIVE_ARCH="X86" ;;
2429 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2430 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2431esac
2432
2433ARCH=$llvm_cv_target_arch
2434
2435
2436ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002437ac_cpp='$CPP $CPPFLAGS'
2438ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2439ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2440ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002441if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002442 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2443set dummy ${ac_tool_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002444{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2445echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2446if test "${ac_cv_prog_CC+set}" = set; then
2447 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002448else
2449 if test -n "$CC"; then
2450 ac_cv_prog_CC="$CC" # Let the user override the test.
2451else
2452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453for as_dir in $PATH
2454do
2455 IFS=$as_save_IFS
2456 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002457 for ac_exec_ext in '' $ac_executable_extensions; do
2458 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 +00002459 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002461 break 2
2462 fi
2463done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002464done
Reid Spencera773bd52006-08-04 18:18:08 +00002465IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002466
2467fi
2468fi
2469CC=$ac_cv_prog_CC
2470if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002471 { echo "$as_me:$LINENO: result: $CC" >&5
2472echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002473else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002474 { echo "$as_me:$LINENO: result: no" >&5
2475echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002476fi
2477
Reid Spencera773bd52006-08-04 18:18:08 +00002478
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002479fi
2480if test -z "$ac_cv_prog_CC"; then
2481 ac_ct_CC=$CC
2482 # Extract the first word of "gcc", so it can be a program name with args.
2483set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002484{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2485echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2486if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2487 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002488else
2489 if test -n "$ac_ct_CC"; then
2490 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2491else
2492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493for as_dir in $PATH
2494do
2495 IFS=$as_save_IFS
2496 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002497 for ac_exec_ext in '' $ac_executable_extensions; do
2498 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 +00002499 ac_cv_prog_ac_ct_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002501 break 2
2502 fi
2503done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002504done
Reid Spencera773bd52006-08-04 18:18:08 +00002505IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002506
2507fi
2508fi
2509ac_ct_CC=$ac_cv_prog_ac_ct_CC
2510if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002511 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2512echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002513else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002514 { echo "$as_me:$LINENO: result: no" >&5
2515echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002516fi
2517
Reid Spencera773bd52006-08-04 18:18:08 +00002518 if test "x$ac_ct_CC" = x; then
2519 CC=""
2520 else
2521 case $cross_compiling:$ac_tool_warned in
2522yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002523{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2524whose name does not start with the host triplet. If you think this
2525configuration is useful to you, please write to autoconf@gnu.org." >&5
2526echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2527whose name does not start with the host triplet. If you think this
2528configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002529ac_tool_warned=yes ;;
2530esac
2531 CC=$ac_ct_CC
2532 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002533else
2534 CC="$ac_cv_prog_CC"
2535fi
2536
2537if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002538 if test -n "$ac_tool_prefix"; then
2539 # 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 +00002540set dummy ${ac_tool_prefix}cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002541{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2542echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2543if test "${ac_cv_prog_CC+set}" = set; then
2544 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002545else
2546 if test -n "$CC"; then
2547 ac_cv_prog_CC="$CC" # Let the user override the test.
2548else
2549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2550for as_dir in $PATH
2551do
2552 IFS=$as_save_IFS
2553 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002554 for ac_exec_ext in '' $ac_executable_extensions; do
2555 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 +00002556 ac_cv_prog_CC="${ac_tool_prefix}cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002558 break 2
2559 fi
2560done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002561done
Reid Spencera773bd52006-08-04 18:18:08 +00002562IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002563
2564fi
2565fi
2566CC=$ac_cv_prog_CC
2567if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002568 { echo "$as_me:$LINENO: result: $CC" >&5
2569echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002570else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002571 { echo "$as_me:$LINENO: result: no" >&5
2572echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002573fi
2574
Reid Spencera773bd52006-08-04 18:18:08 +00002575
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002576 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002577fi
2578if test -z "$CC"; then
2579 # Extract the first word of "cc", so it can be a program name with args.
2580set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002581{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2582echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2583if test "${ac_cv_prog_CC+set}" = set; then
2584 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002585else
2586 if test -n "$CC"; then
2587 ac_cv_prog_CC="$CC" # Let the user override the test.
2588else
2589 ac_prog_rejected=no
2590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2591for as_dir in $PATH
2592do
2593 IFS=$as_save_IFS
2594 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002595 for ac_exec_ext in '' $ac_executable_extensions; do
2596 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 +00002597 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2598 ac_prog_rejected=yes
2599 continue
2600 fi
2601 ac_cv_prog_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002603 break 2
2604 fi
2605done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002606done
Reid Spencera773bd52006-08-04 18:18:08 +00002607IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002608
2609if test $ac_prog_rejected = yes; then
2610 # We found a bogon in the path, so make sure we never use it.
2611 set dummy $ac_cv_prog_CC
2612 shift
2613 if test $# != 0; then
2614 # We chose a different compiler from the bogus one.
2615 # However, it has the same basename, so the bogon will be chosen
2616 # first if we set CC to just the basename; use the full file name.
2617 shift
2618 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2619 fi
2620fi
2621fi
2622fi
2623CC=$ac_cv_prog_CC
2624if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002625 { echo "$as_me:$LINENO: result: $CC" >&5
2626echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002627else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002628 { echo "$as_me:$LINENO: result: no" >&5
2629echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002630fi
2631
Reid Spencera773bd52006-08-04 18:18:08 +00002632
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002633fi
2634if test -z "$CC"; then
2635 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002636 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002637 do
2638 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2639set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002640{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2641echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2642if test "${ac_cv_prog_CC+set}" = set; then
2643 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002644else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002645 if test -n "$CC"; then
2646 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002647else
2648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649for as_dir in $PATH
2650do
2651 IFS=$as_save_IFS
2652 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002653 for ac_exec_ext in '' $ac_executable_extensions; do
2654 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 +00002655 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002657 break 2
2658 fi
2659done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002660done
Reid Spencera773bd52006-08-04 18:18:08 +00002661IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002662
2663fi
2664fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002665CC=$ac_cv_prog_CC
2666if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002667 { echo "$as_me:$LINENO: result: $CC" >&5
2668echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002669else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002670 { echo "$as_me:$LINENO: result: no" >&5
2671echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002672fi
2673
Reid Spencera773bd52006-08-04 18:18:08 +00002674
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002675 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002676 done
2677fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002678if test -z "$CC"; then
2679 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002680 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002681do
2682 # Extract the first word of "$ac_prog", so it can be a program name with args.
2683set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002684{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2685echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2686if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2687 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002688else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002689 if test -n "$ac_ct_CC"; then
2690 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002691else
2692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693for as_dir in $PATH
2694do
2695 IFS=$as_save_IFS
2696 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002697 for ac_exec_ext in '' $ac_executable_extensions; do
2698 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 +00002699 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002701 break 2
2702 fi
2703done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002704done
Reid Spencera773bd52006-08-04 18:18:08 +00002705IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002706
2707fi
2708fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002709ac_ct_CC=$ac_cv_prog_ac_ct_CC
2710if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002711 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2712echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002713else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002714 { echo "$as_me:$LINENO: result: no" >&5
2715echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002716fi
2717
Reid Spencera773bd52006-08-04 18:18:08 +00002718
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002719 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002720done
John Criswell7a73b802003-06-30 21:59:07 +00002721
Reid Spencera773bd52006-08-04 18:18:08 +00002722 if test "x$ac_ct_CC" = x; then
2723 CC=""
2724 else
2725 case $cross_compiling:$ac_tool_warned in
2726yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002727{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2728whose name does not start with the host triplet. If you think this
2729configuration is useful to you, please write to autoconf@gnu.org." >&5
2730echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2731whose name does not start with the host triplet. If you think this
2732configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002733ac_tool_warned=yes ;;
2734esac
2735 CC=$ac_ct_CC
2736 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002737fi
2738
John Criswell7a73b802003-06-30 21:59:07 +00002739fi
2740
2741
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002742test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2743See \`config.log' for more details." >&5
2744echo "$as_me: error: no acceptable C compiler found in \$PATH
2745See \`config.log' for more details." >&2;}
2746 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002747
John Criswell7a73b802003-06-30 21:59:07 +00002748# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002749echo "$as_me:$LINENO: checking for C compiler version" >&5
2750ac_compiler=`set X $ac_compile; echo $2`
2751{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002752case "(($ac_try" in
2753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2754 *) ac_try_echo=$ac_try;;
2755esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2757 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002758 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); }
2761{ (ac_try="$ac_compiler -v >&5"
2762case "(($ac_try" in
2763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2764 *) ac_try_echo=$ac_try;;
2765esac
2766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2767 (eval "$ac_compiler -v >&5") 2>&5
2768 ac_status=$?
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); }
2771{ (ac_try="$ac_compiler -V >&5"
2772case "(($ac_try" in
2773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2774 *) ac_try_echo=$ac_try;;
2775esac
2776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2777 (eval "$ac_compiler -V >&5") 2>&5
2778 ac_status=$?
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002781
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002782cat >conftest.$ac_ext <<_ACEOF
2783/* confdefs.h. */
2784_ACEOF
2785cat confdefs.h >>conftest.$ac_ext
2786cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002787/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002788
John Criswell7a73b802003-06-30 21:59:07 +00002789int
2790main ()
2791{
2792
2793 ;
2794 return 0;
2795}
2796_ACEOF
2797ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002798ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002799# Try to create an executable without -o first, disregard a.out.
2800# It will help us diagnose broken compilers, and finding out an intuition
2801# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002802{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2803echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2804ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2805#
2806# List of possible output files, starting from the most likely.
2807# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2808# only as a last resort. b.out is created by i960 compilers.
2809ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2810#
2811# The IRIX 6 linker writes into existing files which may not be
2812# executable, retaining their permissions. Remove them first so a
2813# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002814ac_rmfiles=
2815for ac_file in $ac_files
2816do
2817 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002818 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002819 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2820 esac
2821done
2822rm -f $ac_rmfiles
2823
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002824if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002825case "(($ac_try" in
2826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2827 *) ac_try_echo=$ac_try;;
2828esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002830 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002831 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002834 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2835# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2836# in a Makefile. We should not override ac_cv_exeext if it was cached,
2837# so that the user can short-circuit this test for compilers unknown to
2838# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002839for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002840do
2841 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002842 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002843 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002844 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002845 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002846 # We found the default executable, but exeext='' is most
2847 # certainly right.
2848 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002849 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002850 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002851 then :; else
2852 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2853 fi
2854 # We set ac_cv_exeext here because the later test for it is not
2855 # safe: cross compilers may not add the suffix if given an `-o'
2856 # argument, so we may need to know it at that point already.
2857 # Even if this section looks crufty: it has the advantage of
2858 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002859 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002860 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002861 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002862 esac
2863done
Reid Spencera773bd52006-08-04 18:18:08 +00002864test "$ac_cv_exeext" = no && ac_cv_exeext=
2865
John Criswell7a73b802003-06-30 21:59:07 +00002866else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002867 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002868sed 's/^/| /' conftest.$ac_ext >&5
2869
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002870{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2871See \`config.log' for more details." >&5
2872echo "$as_me: error: C compiler cannot create executables
2873See \`config.log' for more details." >&2;}
2874 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002875fi
John Criswell7a73b802003-06-30 21:59:07 +00002876
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002877ac_exeext=$ac_cv_exeext
2878{ echo "$as_me:$LINENO: result: $ac_file" >&5
2879echo "${ECHO_T}$ac_file" >&6; }
2880
2881# Check that the compiler produces executables we can run. If not, either
2882# the compiler is broken, or we cross compile.
2883{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2884echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2885# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2886# If not cross compiling, check that we can run a simple program.
2887if test "$cross_compiling" != yes; then
2888 if { ac_try='./$ac_file'
2889 { (case "(($ac_try" in
2890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2891 *) ac_try_echo=$ac_try;;
2892esac
2893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2894 (eval "$ac_try") 2>&5
2895 ac_status=$?
2896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897 (exit $ac_status); }; }; then
2898 cross_compiling=no
2899 else
2900 if test "$cross_compiling" = maybe; then
2901 cross_compiling=yes
2902 else
2903 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2904If you meant to cross compile, use \`--host'.
2905See \`config.log' for more details." >&5
2906echo "$as_me: error: cannot run C compiled programs.
2907If you meant to cross compile, use \`--host'.
2908See \`config.log' for more details." >&2;}
2909 { (exit 1); exit 1; }; }
2910 fi
2911 fi
2912fi
2913{ echo "$as_me:$LINENO: result: yes" >&5
2914echo "${ECHO_T}yes" >&6; }
2915
2916rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002917ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002918# Check that the compiler produces executables we can run. If not, either
2919# the compiler is broken, or we cross compile.
2920{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2921echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2922{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2923echo "${ECHO_T}$cross_compiling" >&6; }
2924
2925{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2926echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2927if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002928case "(($ac_try" in
2929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2930 *) ac_try_echo=$ac_try;;
2931esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002933 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002934 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002937 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2938# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2939# work properly (i.e., refer to `conftest.exe'), while it won't with
2940# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002941for ac_file in conftest.exe conftest conftest.*; do
2942 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002943 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002944 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002945 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002946 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002947 * ) break;;
2948 esac
2949done
2950else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002951 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2952See \`config.log' for more details." >&5
2953echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2954See \`config.log' for more details." >&2;}
2955 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002956fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002957
2958rm -f conftest$ac_cv_exeext
2959{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2960echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002961
2962rm -f conftest.$ac_ext
2963EXEEXT=$ac_cv_exeext
2964ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002965{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2966echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2967if test "${ac_cv_objext+set}" = set; then
2968 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002969else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002970 cat >conftest.$ac_ext <<_ACEOF
2971/* confdefs.h. */
2972_ACEOF
2973cat confdefs.h >>conftest.$ac_ext
2974cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002975/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002976
John Criswell7a73b802003-06-30 21:59:07 +00002977int
2978main ()
2979{
2980
2981 ;
2982 return 0;
2983}
2984_ACEOF
2985rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002986if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002987case "(($ac_try" in
2988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989 *) ac_try_echo=$ac_try;;
2990esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002992 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002993 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002996 for ac_file in conftest.o conftest.obj conftest.*; do
2997 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002998 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002999 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00003000 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3001 break;;
3002 esac
3003done
3004else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003005 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003006sed 's/^/| /' conftest.$ac_ext >&5
3007
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003008{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3009See \`config.log' for more details." >&5
3010echo "$as_me: error: cannot compute suffix of object files: cannot compile
3011See \`config.log' for more details." >&2;}
3012 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00003013fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003014
John Criswell7a73b802003-06-30 21:59:07 +00003015rm -f conftest.$ac_cv_objext conftest.$ac_ext
3016fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003017{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3018echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003019OBJEXT=$ac_cv_objext
3020ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003021{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3022echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3023if test "${ac_cv_c_compiler_gnu+set}" = set; then
3024 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003025else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003026 cat >conftest.$ac_ext <<_ACEOF
3027/* confdefs.h. */
3028_ACEOF
3029cat confdefs.h >>conftest.$ac_ext
3030cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003031/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003032
John Criswell7a73b802003-06-30 21:59:07 +00003033int
3034main ()
3035{
3036#ifndef __GNUC__
3037 choke me
3038#endif
3039
3040 ;
3041 return 0;
3042}
3043_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003044rm -f conftest.$ac_objext
3045if { (ac_try="$ac_compile"
3046case "(($ac_try" in
3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048 *) ac_try_echo=$ac_try;;
3049esac
3050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051 (eval "$ac_compile") 2>conftest.er1
3052 ac_status=$?
3053 grep -v '^ *+' conftest.er1 >conftest.err
3054 rm -f conftest.er1
3055 cat conftest.err >&5
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); } &&
3058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3059 { (case "(($ac_try" in
3060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061 *) ac_try_echo=$ac_try;;
3062esac
3063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064 (eval "$ac_try") 2>&5
3065 ac_status=$?
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); }; } &&
3068 { ac_try='test -s conftest.$ac_objext'
3069 { (case "(($ac_try" in
3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;;
3072esac
3073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3074 (eval "$ac_try") 2>&5
3075 ac_status=$?
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003078 ac_compiler_gnu=yes
3079else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003080 echo "$as_me: failed program was:" >&5
3081sed 's/^/| /' conftest.$ac_ext >&5
3082
3083 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003084fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003085
Reid Spencera773bd52006-08-04 18:18:08 +00003086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003087ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003088
3089fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003090{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3091echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3092GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003093ac_test_CFLAGS=${CFLAGS+set}
3094ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003095{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3096echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3097if test "${ac_cv_prog_cc_g+set}" = set; then
3098 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003099else
Reid Spencera773bd52006-08-04 18:18:08 +00003100 ac_save_c_werror_flag=$ac_c_werror_flag
3101 ac_c_werror_flag=yes
3102 ac_cv_prog_cc_g=no
3103 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003104 cat >conftest.$ac_ext <<_ACEOF
3105/* confdefs.h. */
3106_ACEOF
3107cat confdefs.h >>conftest.$ac_ext
3108cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003109/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003110
John Criswell7a73b802003-06-30 21:59:07 +00003111int
3112main ()
3113{
3114
3115 ;
3116 return 0;
3117}
3118_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003119rm -f conftest.$ac_objext
3120if { (ac_try="$ac_compile"
3121case "(($ac_try" in
3122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123 *) ac_try_echo=$ac_try;;
3124esac
3125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3126 (eval "$ac_compile") 2>conftest.er1
3127 ac_status=$?
3128 grep -v '^ *+' conftest.er1 >conftest.err
3129 rm -f conftest.er1
3130 cat conftest.err >&5
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); } &&
3133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3134 { (case "(($ac_try" in
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3137esac
3138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139 (eval "$ac_try") 2>&5
3140 ac_status=$?
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); }; } &&
3143 { ac_try='test -s conftest.$ac_objext'
3144 { (case "(($ac_try" in
3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3147esac
3148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3149 (eval "$ac_try") 2>&5
3150 ac_status=$?
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003153 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003154else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003155 echo "$as_me: failed program was:" >&5
3156sed 's/^/| /' conftest.$ac_ext >&5
3157
3158 CFLAGS=""
3159 cat >conftest.$ac_ext <<_ACEOF
3160/* confdefs.h. */
3161_ACEOF
3162cat confdefs.h >>conftest.$ac_ext
3163cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003164/* end confdefs.h. */
3165
3166int
3167main ()
3168{
3169
3170 ;
3171 return 0;
3172}
3173_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003174rm -f conftest.$ac_objext
3175if { (ac_try="$ac_compile"
3176case "(($ac_try" in
3177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178 *) ac_try_echo=$ac_try;;
3179esac
3180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3181 (eval "$ac_compile") 2>conftest.er1
3182 ac_status=$?
3183 grep -v '^ *+' conftest.er1 >conftest.err
3184 rm -f conftest.er1
3185 cat conftest.err >&5
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); } &&
3188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3189 { (case "(($ac_try" in
3190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191 *) ac_try_echo=$ac_try;;
3192esac
3193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3194 (eval "$ac_try") 2>&5
3195 ac_status=$?
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); }; } &&
3198 { ac_try='test -s conftest.$ac_objext'
3199 { (case "(($ac_try" in
3200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201 *) ac_try_echo=$ac_try;;
3202esac
3203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3204 (eval "$ac_try") 2>&5
3205 ac_status=$?
3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); }; }; then
3208 :
Torok Edwin871384f2010-01-26 08:50:50 +00003209else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003210 echo "$as_me: failed program was:" >&5
3211sed 's/^/| /' conftest.$ac_ext >&5
3212
3213 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00003214 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003215 cat >conftest.$ac_ext <<_ACEOF
3216/* confdefs.h. */
3217_ACEOF
3218cat confdefs.h >>conftest.$ac_ext
3219cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003220/* end confdefs.h. */
3221
3222int
3223main ()
3224{
3225
3226 ;
3227 return 0;
3228}
3229_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003230rm -f conftest.$ac_objext
3231if { (ac_try="$ac_compile"
3232case "(($ac_try" in
3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234 *) ac_try_echo=$ac_try;;
3235esac
3236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3237 (eval "$ac_compile") 2>conftest.er1
3238 ac_status=$?
3239 grep -v '^ *+' conftest.er1 >conftest.err
3240 rm -f conftest.er1
3241 cat conftest.err >&5
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); } &&
3244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3245 { (case "(($ac_try" in
3246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3247 *) ac_try_echo=$ac_try;;
3248esac
3249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3250 (eval "$ac_try") 2>&5
3251 ac_status=$?
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); }; } &&
3254 { ac_try='test -s conftest.$ac_objext'
3255 { (case "(($ac_try" in
3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257 *) ac_try_echo=$ac_try;;
3258esac
3259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3260 (eval "$ac_try") 2>&5
3261 ac_status=$?
3262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003264 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003265else
3266 echo "$as_me: failed program was:" >&5
3267sed 's/^/| /' conftest.$ac_ext >&5
3268
3269
John Criswell7a73b802003-06-30 21:59:07 +00003270fi
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
John Criswell7a73b802003-06-30 21:59:07 +00003273fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003274
Reid Spencera773bd52006-08-04 18:18:08 +00003275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3276fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003277
Reid Spencera773bd52006-08-04 18:18:08 +00003278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3279 ac_c_werror_flag=$ac_save_c_werror_flag
3280fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003281{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3282echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003283if test "$ac_test_CFLAGS" = set; then
3284 CFLAGS=$ac_save_CFLAGS
3285elif test $ac_cv_prog_cc_g = yes; then
3286 if test "$GCC" = yes; then
3287 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003288 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003289 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003290 fi
3291else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003292 if test "$GCC" = yes; then
3293 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003294 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003295 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003296 fi
3297fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003298{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3299echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3300if test "${ac_cv_prog_cc_c89+set}" = set; then
3301 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003302else
Reid Spencera773bd52006-08-04 18:18:08 +00003303 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003304ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003305cat >conftest.$ac_ext <<_ACEOF
3306/* confdefs.h. */
3307_ACEOF
3308cat confdefs.h >>conftest.$ac_ext
3309cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003310/* end confdefs.h. */
3311#include <stdarg.h>
3312#include <stdio.h>
3313#include <sys/types.h>
3314#include <sys/stat.h>
3315/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3316struct buf { int x; };
3317FILE * (*rcsopen) (struct buf *, struct stat *, int);
3318static char *e (p, i)
3319 char **p;
3320 int i;
3321{
3322 return p[i];
3323}
3324static char *f (char * (*g) (char **, int), char **p, ...)
3325{
3326 char *s;
3327 va_list v;
3328 va_start (v,p);
3329 s = g (p, va_arg (v,int));
3330 va_end (v);
3331 return s;
3332}
3333
3334/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3335 function prototypes and stuff, but not '\xHH' hex character constants.
3336 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003337 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003338 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3339 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003340 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003341int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3342
Reid Spencera773bd52006-08-04 18:18:08 +00003343/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3344 inside strings and character constants. */
3345#define FOO(x) 'x'
3346int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3347
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003348int test (int i, double x);
3349struct s1 {int (*f) (int a);};
3350struct s2 {int (*f) (double a);};
3351int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3352int argc;
3353char **argv;
3354int
3355main ()
3356{
3357return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3358 ;
3359 return 0;
3360}
3361_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003362for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3363 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003364do
3365 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003366 rm -f conftest.$ac_objext
3367if { (ac_try="$ac_compile"
3368case "(($ac_try" in
3369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3370 *) ac_try_echo=$ac_try;;
3371esac
3372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3373 (eval "$ac_compile") 2>conftest.er1
3374 ac_status=$?
3375 grep -v '^ *+' conftest.er1 >conftest.err
3376 rm -f conftest.er1
3377 cat conftest.err >&5
3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); } &&
3380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3381 { (case "(($ac_try" in
3382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383 *) ac_try_echo=$ac_try;;
3384esac
3385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3386 (eval "$ac_try") 2>&5
3387 ac_status=$?
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); }; } &&
3390 { ac_try='test -s conftest.$ac_objext'
3391 { (case "(($ac_try" in
3392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393 *) ac_try_echo=$ac_try;;
3394esac
3395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3396 (eval "$ac_try") 2>&5
3397 ac_status=$?
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003400 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003401else
3402 echo "$as_me: failed program was:" >&5
3403sed 's/^/| /' conftest.$ac_ext >&5
3404
3405
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003406fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003407
Reid Spencera773bd52006-08-04 18:18:08 +00003408rm -f core conftest.err conftest.$ac_objext
3409 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003410done
Reid Spencera773bd52006-08-04 18:18:08 +00003411rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003412CC=$ac_save_CC
3413
3414fi
Reid Spencera773bd52006-08-04 18:18:08 +00003415# AC_CACHE_VAL
3416case "x$ac_cv_prog_cc_c89" in
3417 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003418 { echo "$as_me:$LINENO: result: none needed" >&5
3419echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00003420 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003421 { echo "$as_me:$LINENO: result: unsupported" >&5
3422echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003423 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003424 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003425 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3426echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003427esac
3428
John Criswell0c38eaf2003-09-10 15:17:25 +00003429
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003430ac_ext=c
3431ac_cpp='$CPP $CPPFLAGS'
3432ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3433ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3434ac_compiler_gnu=$ac_cv_c_compiler_gnu
3435
3436
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003437ac_ext=c
3438ac_cpp='$CPP $CPPFLAGS'
3439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3441ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003442{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3443echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003444# On Suns, sometimes $CPP names a directory.
3445if test -n "$CPP" && test -d "$CPP"; then
3446 CPP=
3447fi
3448if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003449 if test "${ac_cv_prog_CPP+set}" = set; then
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003451else
3452 # Double quotes because CPP needs to be expanded
3453 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3454 do
3455 ac_preproc_ok=false
3456for ac_c_preproc_warn_flag in '' yes
3457do
3458 # Use a header file that comes with gcc, so configuring glibc
3459 # with a fresh cross-compiler works.
3460 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3461 # <limits.h> exists even on freestanding compilers.
3462 # On the NeXT, cc -E runs the code through the compiler's parser,
3463 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003464 cat >conftest.$ac_ext <<_ACEOF
3465/* confdefs.h. */
3466_ACEOF
3467cat confdefs.h >>conftest.$ac_ext
3468cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003469/* end confdefs.h. */
3470#ifdef __STDC__
3471# include <limits.h>
3472#else
3473# include <assert.h>
3474#endif
3475 Syntax error
3476_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003477if { (ac_try="$ac_cpp conftest.$ac_ext"
3478case "(($ac_try" in
3479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480 *) ac_try_echo=$ac_try;;
3481esac
3482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3484 ac_status=$?
3485 grep -v '^ *+' conftest.er1 >conftest.err
3486 rm -f conftest.er1
3487 cat conftest.err >&5
3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); } >/dev/null; then
3490 if test -s conftest.err; then
3491 ac_cpp_err=$ac_c_preproc_warn_flag
3492 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3493 else
3494 ac_cpp_err=
3495 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003496else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003497 ac_cpp_err=yes
3498fi
3499if test -z "$ac_cpp_err"; then
3500 :
3501else
3502 echo "$as_me: failed program was:" >&5
3503sed 's/^/| /' conftest.$ac_ext >&5
3504
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003505 # Broken: fails on valid input.
3506continue
3507fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003508
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003509rm -f conftest.err conftest.$ac_ext
3510
Reid Spencera773bd52006-08-04 18:18:08 +00003511 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003512 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003513 cat >conftest.$ac_ext <<_ACEOF
3514/* confdefs.h. */
3515_ACEOF
3516cat confdefs.h >>conftest.$ac_ext
3517cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003518/* end confdefs.h. */
3519#include <ac_nonexistent.h>
3520_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003521if { (ac_try="$ac_cpp conftest.$ac_ext"
3522case "(($ac_try" in
3523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524 *) ac_try_echo=$ac_try;;
3525esac
3526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3528 ac_status=$?
3529 grep -v '^ *+' conftest.er1 >conftest.err
3530 rm -f conftest.er1
3531 cat conftest.err >&5
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); } >/dev/null; then
3534 if test -s conftest.err; then
3535 ac_cpp_err=$ac_c_preproc_warn_flag
3536 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3537 else
3538 ac_cpp_err=
3539 fi
3540else
3541 ac_cpp_err=yes
3542fi
3543if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003544 # Broken: success on invalid input.
3545continue
3546else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003547 echo "$as_me: failed program was:" >&5
3548sed 's/^/| /' conftest.$ac_ext >&5
3549
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003550 # Passes both tests.
3551ac_preproc_ok=:
3552break
3553fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003554
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003555rm -f conftest.err conftest.$ac_ext
3556
3557done
3558# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3559rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003560if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003561 break
3562fi
3563
3564 done
3565 ac_cv_prog_CPP=$CPP
3566
3567fi
3568 CPP=$ac_cv_prog_CPP
3569else
3570 ac_cv_prog_CPP=$CPP
3571fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003572{ echo "$as_me:$LINENO: result: $CPP" >&5
3573echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003574ac_preproc_ok=false
3575for ac_c_preproc_warn_flag in '' yes
3576do
3577 # Use a header file that comes with gcc, so configuring glibc
3578 # with a fresh cross-compiler works.
3579 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3580 # <limits.h> exists even on freestanding compilers.
3581 # On the NeXT, cc -E runs the code through the compiler's parser,
3582 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003583 cat >conftest.$ac_ext <<_ACEOF
3584/* confdefs.h. */
3585_ACEOF
3586cat confdefs.h >>conftest.$ac_ext
3587cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003588/* end confdefs.h. */
3589#ifdef __STDC__
3590# include <limits.h>
3591#else
3592# include <assert.h>
3593#endif
3594 Syntax error
3595_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003596if { (ac_try="$ac_cpp conftest.$ac_ext"
3597case "(($ac_try" in
3598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599 *) ac_try_echo=$ac_try;;
3600esac
3601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3603 ac_status=$?
3604 grep -v '^ *+' conftest.er1 >conftest.err
3605 rm -f conftest.er1
3606 cat conftest.err >&5
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); } >/dev/null; then
3609 if test -s conftest.err; then
3610 ac_cpp_err=$ac_c_preproc_warn_flag
3611 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3612 else
3613 ac_cpp_err=
3614 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003615else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003616 ac_cpp_err=yes
3617fi
3618if test -z "$ac_cpp_err"; then
3619 :
3620else
3621 echo "$as_me: failed program was:" >&5
3622sed 's/^/| /' conftest.$ac_ext >&5
3623
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003624 # Broken: fails on valid input.
3625continue
3626fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003627
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003628rm -f conftest.err conftest.$ac_ext
3629
Reid Spencera773bd52006-08-04 18:18:08 +00003630 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003631 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003632 cat >conftest.$ac_ext <<_ACEOF
3633/* confdefs.h. */
3634_ACEOF
3635cat confdefs.h >>conftest.$ac_ext
3636cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003637/* end confdefs.h. */
3638#include <ac_nonexistent.h>
3639_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003640if { (ac_try="$ac_cpp conftest.$ac_ext"
3641case "(($ac_try" in
3642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3643 *) ac_try_echo=$ac_try;;
3644esac
3645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3646 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3647 ac_status=$?
3648 grep -v '^ *+' conftest.er1 >conftest.err
3649 rm -f conftest.er1
3650 cat conftest.err >&5
3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); } >/dev/null; then
3653 if test -s conftest.err; then
3654 ac_cpp_err=$ac_c_preproc_warn_flag
3655 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3656 else
3657 ac_cpp_err=
3658 fi
3659else
3660 ac_cpp_err=yes
3661fi
3662if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003663 # Broken: success on invalid input.
3664continue
3665else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003666 echo "$as_me: failed program was:" >&5
3667sed 's/^/| /' conftest.$ac_ext >&5
3668
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003669 # Passes both tests.
3670ac_preproc_ok=:
3671break
3672fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003673
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003674rm -f conftest.err conftest.$ac_ext
3675
3676done
3677# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3678rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003679if $ac_preproc_ok; then
3680 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003681else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003682 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3683See \`config.log' for more details." >&5
3684echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3685See \`config.log' for more details." >&2;}
3686 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003687fi
3688
John Criswell7a73b802003-06-30 21:59:07 +00003689ac_ext=c
3690ac_cpp='$CPP $CPPFLAGS'
3691ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3692ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3693ac_compiler_gnu=$ac_cv_c_compiler_gnu
3694
John Criswell7a73b802003-06-30 21:59:07 +00003695
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003696{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3697echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3698if test "${ac_cv_path_GREP+set}" = set; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003700else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003701 # Extract the first word of "grep ggrep" to use in msg output
3702if test -z "$GREP"; then
3703set dummy grep ggrep; ac_prog_name=$2
3704if test "${ac_cv_path_GREP+set}" = set; then
3705 echo $ECHO_N "(cached) $ECHO_C" >&6
3706else
Reid Spencera773bd52006-08-04 18:18:08 +00003707 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003708# Loop through the user's path and test for each of PROGNAME-LIST
3709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003710for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003711do
3712 IFS=$as_save_IFS
3713 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003714 for ac_prog in grep ggrep; do
3715 for ac_exec_ext in '' $ac_executable_extensions; do
3716 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3717 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3718 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003719 # Check for GNU $ac_path_GREP
3720case `"$ac_path_GREP" --version 2>&1` in
3721*GNU*)
3722 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3723*)
3724 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003725 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003726 while :
3727 do
3728 cat "conftest.in" "conftest.in" >"conftest.tmp"
3729 mv "conftest.tmp" "conftest.in"
3730 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003731 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003732 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3733 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003734 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003735 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3736 # Best one so far, save it but keep looking for a better one
3737 ac_cv_path_GREP="$ac_path_GREP"
3738 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003739 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003740 # 10*(2^10) chars as input seems more than enough
3741 test $ac_count -gt 10 && break
3742 done
3743 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3744esac
3745
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003746
3747 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003748 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003749done
3750
3751done
Reid Spencera773bd52006-08-04 18:18:08 +00003752IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003753
3754
3755fi
3756
3757GREP="$ac_cv_path_GREP"
3758if test -z "$GREP"; then
3759 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3760echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3761 { (exit 1); exit 1; }; }
3762fi
3763
Reid Spencera773bd52006-08-04 18:18:08 +00003764else
3765 ac_cv_path_GREP=$GREP
3766fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003767
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003768
Reid Spencera773bd52006-08-04 18:18:08 +00003769fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003770{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3771echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003772 GREP="$ac_cv_path_GREP"
3773
3774
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003775{ echo "$as_me:$LINENO: checking for egrep" >&5
3776echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3777if test "${ac_cv_path_EGREP+set}" = set; then
3778 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00003779else
3780 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3781 then ac_cv_path_EGREP="$GREP -E"
3782 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003783 # Extract the first word of "egrep" to use in msg output
3784if test -z "$EGREP"; then
3785set dummy egrep; ac_prog_name=$2
3786if test "${ac_cv_path_EGREP+set}" = set; then
3787 echo $ECHO_N "(cached) $ECHO_C" >&6
3788else
Reid Spencera773bd52006-08-04 18:18:08 +00003789 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003790# Loop through the user's path and test for each of PROGNAME-LIST
3791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003792for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3793do
3794 IFS=$as_save_IFS
3795 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003796 for ac_prog in egrep; do
3797 for ac_exec_ext in '' $ac_executable_extensions; do
3798 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3799 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3800 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003801 # Check for GNU $ac_path_EGREP
3802case `"$ac_path_EGREP" --version 2>&1` in
3803*GNU*)
3804 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3805*)
3806 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003807 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003808 while :
3809 do
3810 cat "conftest.in" "conftest.in" >"conftest.tmp"
3811 mv "conftest.tmp" "conftest.in"
3812 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003813 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003814 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3815 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003816 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003817 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3818 # Best one so far, save it but keep looking for a better one
3819 ac_cv_path_EGREP="$ac_path_EGREP"
3820 ac_path_EGREP_max=$ac_count
3821 fi
3822 # 10*(2^10) chars as input seems more than enough
3823 test $ac_count -gt 10 && break
3824 done
3825 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3826esac
3827
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003828
3829 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003830 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003831done
3832
3833done
Reid Spencera773bd52006-08-04 18:18:08 +00003834IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003835
3836
3837fi
3838
3839EGREP="$ac_cv_path_EGREP"
3840if test -z "$EGREP"; then
3841 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3842echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3843 { (exit 1); exit 1; }; }
3844fi
3845
Reid Spencera773bd52006-08-04 18:18:08 +00003846else
3847 ac_cv_path_EGREP=$EGREP
3848fi
3849
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003850
Reid Spencera773bd52006-08-04 18:18:08 +00003851 fi
3852fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003853{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3854echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003855 EGREP="$ac_cv_path_EGREP"
3856
3857
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003858{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3859echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3860if test "${ac_cv_header_stdc+set}" = set; then
3861 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003862else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003863 cat >conftest.$ac_ext <<_ACEOF
3864/* confdefs.h. */
3865_ACEOF
3866cat confdefs.h >>conftest.$ac_ext
3867cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003868/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003869#include <stdlib.h>
3870#include <stdarg.h>
3871#include <string.h>
3872#include <float.h>
3873
John Criswell0c38eaf2003-09-10 15:17:25 +00003874int
3875main ()
3876{
3877
3878 ;
3879 return 0;
3880}
John Criswell7a73b802003-06-30 21:59:07 +00003881_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003882rm -f conftest.$ac_objext
3883if { (ac_try="$ac_compile"
3884case "(($ac_try" in
3885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3886 *) ac_try_echo=$ac_try;;
3887esac
3888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3889 (eval "$ac_compile") 2>conftest.er1
3890 ac_status=$?
3891 grep -v '^ *+' conftest.er1 >conftest.err
3892 rm -f conftest.er1
3893 cat conftest.err >&5
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); } &&
3896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3897 { (case "(($ac_try" in
3898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3899 *) ac_try_echo=$ac_try;;
3900esac
3901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3902 (eval "$ac_try") 2>&5
3903 ac_status=$?
3904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905 (exit $ac_status); }; } &&
3906 { ac_try='test -s conftest.$ac_objext'
3907 { (case "(($ac_try" in
3908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3909 *) ac_try_echo=$ac_try;;
3910esac
3911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3912 (eval "$ac_try") 2>&5
3913 ac_status=$?
3914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003916 ac_cv_header_stdc=yes
3917else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003918 echo "$as_me: failed program was:" >&5
3919sed 's/^/| /' conftest.$ac_ext >&5
3920
3921 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003922fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003923
Reid Spencera773bd52006-08-04 18:18:08 +00003924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003925
3926if test $ac_cv_header_stdc = yes; then
3927 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003928 cat >conftest.$ac_ext <<_ACEOF
3929/* confdefs.h. */
3930_ACEOF
3931cat confdefs.h >>conftest.$ac_ext
3932cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003933/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003934#include <string.h>
3935
3936_ACEOF
3937if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003938 $EGREP "memchr" >/dev/null 2>&1; then
3939 :
John Criswell7a73b802003-06-30 21:59:07 +00003940else
3941 ac_cv_header_stdc=no
3942fi
3943rm -f conftest*
3944
3945fi
3946
3947if test $ac_cv_header_stdc = yes; then
3948 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003949 cat >conftest.$ac_ext <<_ACEOF
3950/* confdefs.h. */
3951_ACEOF
3952cat confdefs.h >>conftest.$ac_ext
3953cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003954/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003955#include <stdlib.h>
3956
3957_ACEOF
3958if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003959 $EGREP "free" >/dev/null 2>&1; then
3960 :
John Criswell7a73b802003-06-30 21:59:07 +00003961else
3962 ac_cv_header_stdc=no
3963fi
3964rm -f conftest*
3965
3966fi
3967
3968if test $ac_cv_header_stdc = yes; then
3969 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003970 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00003971 :
3972else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003973 cat >conftest.$ac_ext <<_ACEOF
3974/* confdefs.h. */
3975_ACEOF
3976cat confdefs.h >>conftest.$ac_ext
3977cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003978/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003979#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003980#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003981#if ((' ' & 0x0FF) == 0x020)
3982# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3983# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3984#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003985# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003986 (('a' <= (c) && (c) <= 'i') \
3987 || ('j' <= (c) && (c) <= 'r') \
3988 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003989# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3990#endif
3991
3992#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3993int
3994main ()
3995{
3996 int i;
3997 for (i = 0; i < 256; i++)
3998 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003999 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00004000 return 2;
4001 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004002}
4003_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004004rm -f conftest$ac_exeext
4005if { (ac_try="$ac_link"
4006case "(($ac_try" in
4007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4008 *) ac_try_echo=$ac_try;;
4009esac
4010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4011 (eval "$ac_link") 2>&5
4012 ac_status=$?
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4015 { (case "(($ac_try" in
4016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4017 *) ac_try_echo=$ac_try;;
4018esac
4019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4020 (eval "$ac_try") 2>&5
4021 ac_status=$?
4022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023 (exit $ac_status); }; }; then
4024 :
John Criswell7a73b802003-06-30 21:59:07 +00004025else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004026 echo "$as_me: program exited with status $ac_status" >&5
4027echo "$as_me: failed program was:" >&5
4028sed 's/^/| /' conftest.$ac_ext >&5
4029
4030( exit $ac_status )
4031ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004032fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004033rm -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 +00004034fi
4035
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004036
John Criswell7a73b802003-06-30 21:59:07 +00004037fi
4038fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004039{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4040echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004041if test $ac_cv_header_stdc = yes; then
4042
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004043cat >>confdefs.h <<\_ACEOF
4044#define STDC_HEADERS 1
4045_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00004046
4047fi
4048
Reid Spencera773bd52006-08-04 18:18:08 +00004049# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004050
4051
4052
4053
4054
4055
4056
4057
4058
Reid Spencera773bd52006-08-04 18:18:08 +00004059for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4060 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004061do
4062as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4063{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4064echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4065if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4066 echo $ECHO_N "(cached) $ECHO_C" >&6
4067else
4068 cat >conftest.$ac_ext <<_ACEOF
4069/* confdefs.h. */
4070_ACEOF
4071cat confdefs.h >>conftest.$ac_ext
4072cat >>conftest.$ac_ext <<_ACEOF
4073/* end confdefs.h. */
4074$ac_includes_default
4075
4076#include <$ac_header>
4077_ACEOF
4078rm -f conftest.$ac_objext
4079if { (ac_try="$ac_compile"
4080case "(($ac_try" in
4081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4082 *) ac_try_echo=$ac_try;;
4083esac
4084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4085 (eval "$ac_compile") 2>conftest.er1
4086 ac_status=$?
4087 grep -v '^ *+' conftest.er1 >conftest.err
4088 rm -f conftest.er1
4089 cat conftest.err >&5
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); } &&
4092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4093 { (case "(($ac_try" in
4094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4095 *) ac_try_echo=$ac_try;;
4096esac
4097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4098 (eval "$ac_try") 2>&5
4099 ac_status=$?
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); }; } &&
4102 { ac_try='test -s conftest.$ac_objext'
4103 { (case "(($ac_try" in
4104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4105 *) ac_try_echo=$ac_try;;
4106esac
4107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4108 (eval "$ac_try") 2>&5
4109 ac_status=$?
4110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111 (exit $ac_status); }; }; then
4112 eval "$as_ac_Header=yes"
4113else
4114 echo "$as_me: failed program was:" >&5
4115sed 's/^/| /' conftest.$ac_ext >&5
4116
4117 eval "$as_ac_Header=no"
4118fi
4119
4120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4121fi
4122ac_res=`eval echo '${'$as_ac_Header'}'`
4123 { echo "$as_me:$LINENO: result: $ac_res" >&5
4124echo "${ECHO_T}$ac_res" >&6; }
4125if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004126 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004127#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004128_ACEOF
4129
4130fi
4131
4132done
4133
4134
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004135{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4136echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4137if test "${ac_cv_c_bigendian+set}" = set; then
4138 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004139else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004140 # See if sys/param.h defines the BYTE_ORDER macro.
4141cat >conftest.$ac_ext <<_ACEOF
4142/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004143_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004144cat confdefs.h >>conftest.$ac_ext
4145cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004146/* end confdefs.h. */
4147#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004148#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004149
4150int
4151main ()
4152{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004153#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4154 bogus endian macros
4155#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004156
4157 ;
4158 return 0;
4159}
4160_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004161rm -f conftest.$ac_objext
4162if { (ac_try="$ac_compile"
4163case "(($ac_try" in
4164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4165 *) ac_try_echo=$ac_try;;
4166esac
4167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4168 (eval "$ac_compile") 2>conftest.er1
4169 ac_status=$?
4170 grep -v '^ *+' conftest.er1 >conftest.err
4171 rm -f conftest.er1
4172 cat conftest.err >&5
4173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174 (exit $ac_status); } &&
4175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4176 { (case "(($ac_try" in
4177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4178 *) ac_try_echo=$ac_try;;
4179esac
4180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4181 (eval "$ac_try") 2>&5
4182 ac_status=$?
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); }; } &&
4185 { ac_try='test -s conftest.$ac_objext'
4186 { (case "(($ac_try" in
4187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4188 *) ac_try_echo=$ac_try;;
4189esac
4190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4191 (eval "$ac_try") 2>&5
4192 ac_status=$?
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004195 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004196cat >conftest.$ac_ext <<_ACEOF
4197/* confdefs.h. */
4198_ACEOF
4199cat confdefs.h >>conftest.$ac_ext
4200cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004201/* end confdefs.h. */
4202#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004203#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004204
4205int
4206main ()
4207{
4208#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004209 not big endian
4210#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004211
4212 ;
4213 return 0;
4214}
4215_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004216rm -f conftest.$ac_objext
4217if { (ac_try="$ac_compile"
4218case "(($ac_try" in
4219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220 *) ac_try_echo=$ac_try;;
4221esac
4222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4223 (eval "$ac_compile") 2>conftest.er1
4224 ac_status=$?
4225 grep -v '^ *+' conftest.er1 >conftest.err
4226 rm -f conftest.er1
4227 cat conftest.err >&5
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); } &&
4230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4231 { (case "(($ac_try" in
4232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4233 *) ac_try_echo=$ac_try;;
4234esac
4235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4236 (eval "$ac_try") 2>&5
4237 ac_status=$?
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); }; } &&
4240 { ac_try='test -s conftest.$ac_objext'
4241 { (case "(($ac_try" in
4242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4243 *) ac_try_echo=$ac_try;;
4244esac
4245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4246 (eval "$ac_try") 2>&5
4247 ac_status=$?
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004250 ac_cv_c_bigendian=yes
4251else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004252 echo "$as_me: failed program was:" >&5
4253sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004254
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004255 ac_cv_c_bigendian=no
4256fi
4257
4258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4259else
4260 echo "$as_me: failed program was:" >&5
4261sed 's/^/| /' conftest.$ac_ext >&5
4262
4263 # It does not; compile a test program.
4264if test "$cross_compiling" = yes; then
4265 # try to guess the endianness by grepping values into an object file
4266 ac_cv_c_bigendian=unknown
4267 cat >conftest.$ac_ext <<_ACEOF
4268/* confdefs.h. */
4269_ACEOF
4270cat confdefs.h >>conftest.$ac_ext
4271cat >>conftest.$ac_ext <<_ACEOF
4272/* end confdefs.h. */
4273short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4274short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4275void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4276short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4277short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4278void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004279int
4280main ()
4281{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004282 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004283 ;
4284 return 0;
4285}
4286_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004287rm -f conftest.$ac_objext
4288if { (ac_try="$ac_compile"
4289case "(($ac_try" in
4290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4291 *) ac_try_echo=$ac_try;;
4292esac
4293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4294 (eval "$ac_compile") 2>conftest.er1
4295 ac_status=$?
4296 grep -v '^ *+' conftest.er1 >conftest.err
4297 rm -f conftest.er1
4298 cat conftest.err >&5
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); } &&
4301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4302 { (case "(($ac_try" in
4303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4304 *) ac_try_echo=$ac_try;;
4305esac
4306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4307 (eval "$ac_try") 2>&5
4308 ac_status=$?
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); }; } &&
4311 { ac_try='test -s conftest.$ac_objext'
4312 { (case "(($ac_try" in
4313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4314 *) ac_try_echo=$ac_try;;
4315esac
4316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4317 (eval "$ac_try") 2>&5
4318 ac_status=$?
4319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320 (exit $ac_status); }; }; then
4321 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004322 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004323fi
4324if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4325 if test "$ac_cv_c_bigendian" = unknown; then
4326 ac_cv_c_bigendian=no
4327 else
4328 # finding both strings is unlikely to happen, but who knows?
4329 ac_cv_c_bigendian=unknown
4330 fi
4331fi
Reid Spencera773bd52006-08-04 18:18:08 +00004332else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004333 echo "$as_me: failed program was:" >&5
4334sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004335
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004336
Torok Edwin871384f2010-01-26 08:50:50 +00004337fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004338
Reid Spencera773bd52006-08-04 18:18:08 +00004339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4340else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004341 cat >conftest.$ac_ext <<_ACEOF
4342/* confdefs.h. */
4343_ACEOF
4344cat confdefs.h >>conftest.$ac_ext
4345cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004346/* end confdefs.h. */
4347$ac_includes_default
4348int
4349main ()
4350{
4351
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004352 /* Are we little or big endian? From Harbison&Steele. */
4353 union
4354 {
4355 long int l;
4356 char c[sizeof (long int)];
4357 } u;
4358 u.l = 1;
4359 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004360
4361 ;
4362 return 0;
4363}
4364_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004365rm -f conftest$ac_exeext
4366if { (ac_try="$ac_link"
4367case "(($ac_try" in
4368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4369 *) ac_try_echo=$ac_try;;
4370esac
4371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4372 (eval "$ac_link") 2>&5
4373 ac_status=$?
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4376 { (case "(($ac_try" in
4377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4378 *) ac_try_echo=$ac_try;;
4379esac
4380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4381 (eval "$ac_try") 2>&5
4382 ac_status=$?
4383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004385 ac_cv_c_bigendian=no
4386else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004387 echo "$as_me: program exited with status $ac_status" >&5
4388echo "$as_me: failed program was:" >&5
4389sed 's/^/| /' conftest.$ac_ext >&5
4390
4391( exit $ac_status )
4392ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004393fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004394rm -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 +00004395fi
4396
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004397
Reid Spencera773bd52006-08-04 18:18:08 +00004398fi
4399
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4401fi
4402{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4403echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4404case $ac_cv_c_bigendian in
4405 yes)
4406 ENDIAN=big
4407 ;;
4408 no)
4409 ENDIAN=little
4410 ;;
4411 *)
4412 { { echo "$as_me:$LINENO: error: unknown endianness
4413presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4414echo "$as_me: error: unknown endianness
4415presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4416 { (exit 1); exit 1; }; } ;;
4417esac
Reid Spencera773bd52006-08-04 18:18:08 +00004418
4419
4420if test "$cross_compiling" = yes; then
4421 LLVM_CROSS_COMPILING=1
4422
4423
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004424{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4425echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4426if test "${ac_cv_build_exeext+set}" = set; then
4427 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004428else
4429 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4430 ac_cv_build_exeext=.exe
4431else
4432 ac_build_prefix=${build_alias}-
4433
4434 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4435set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004436{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4437echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4438if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4439 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004440else
4441 if test -n "$BUILD_CC"; then
4442 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4443else
4444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445for as_dir in $PATH
4446do
4447 IFS=$as_save_IFS
4448 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004449 for ac_exec_ext in '' $ac_executable_extensions; do
4450 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 +00004451 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004453 break 2
4454 fi
4455done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004456done
Reid Spencera773bd52006-08-04 18:18:08 +00004457IFS=$as_save_IFS
4458
4459fi
4460fi
4461BUILD_CC=$ac_cv_prog_BUILD_CC
4462if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004463 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4464echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004465else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004466 { echo "$as_me:$LINENO: result: no" >&5
4467echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004468fi
4469
4470
4471 if test -z "$BUILD_CC"; then
4472 # Extract the first word of "gcc", so it can be a program name with args.
4473set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004474{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4476if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004478else
4479 if test -n "$BUILD_CC"; then
4480 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4481else
4482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4483for as_dir in $PATH
4484do
4485 IFS=$as_save_IFS
4486 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004487 for ac_exec_ext in '' $ac_executable_extensions; do
4488 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 +00004489 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004491 break 2
4492 fi
4493done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004494done
Reid Spencera773bd52006-08-04 18:18:08 +00004495IFS=$as_save_IFS
4496
4497fi
4498fi
4499BUILD_CC=$ac_cv_prog_BUILD_CC
4500if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004501 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4502echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004503else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004504 { echo "$as_me:$LINENO: result: no" >&5
4505echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004506fi
4507
4508
4509 if test -z "$BUILD_CC"; then
4510 # Extract the first word of "cc", so it can be a program name with args.
4511set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004512{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4514if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4515 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004516else
4517 if test -n "$BUILD_CC"; then
4518 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4519else
4520 ac_prog_rejected=no
4521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522for as_dir in $PATH
4523do
4524 IFS=$as_save_IFS
4525 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004526 for ac_exec_ext in '' $ac_executable_extensions; do
4527 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 +00004528 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4529 ac_prog_rejected=yes
4530 continue
4531 fi
4532 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004534 break 2
4535 fi
4536done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004537done
Reid Spencera773bd52006-08-04 18:18:08 +00004538IFS=$as_save_IFS
4539
4540if test $ac_prog_rejected = yes; then
4541 # We found a bogon in the path, so make sure we never use it.
4542 set dummy $ac_cv_prog_BUILD_CC
4543 shift
4544 if test $# != 0; then
4545 # We chose a different compiler from the bogus one.
4546 # However, it has the same basename, so the bogon will be chosen
4547 # first if we set BUILD_CC to just the basename; use the full file name.
4548 shift
4549 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4550 fi
4551fi
4552fi
4553fi
4554BUILD_CC=$ac_cv_prog_BUILD_CC
4555if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004556 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4557echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004558else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004559 { echo "$as_me:$LINENO: result: no" >&5
4560echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004561fi
4562
4563
4564 fi
4565 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004566 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4567echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4568 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004569 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4570 rm -f conftest*
4571 echo 'int main () { return 0; }' > conftest.$ac_ext
4572 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004573 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004574 (eval $ac_build_link) 2>&5
4575 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004578 for file in conftest.*; do
4579 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004580 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004581 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4582 esac
4583 done
4584 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004585 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4586echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4587 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004588 fi
4589 rm -f conftest*
4590 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4591fi
4592fi
4593
4594BUILD_EXEEXT=""
4595test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004596{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4597echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004598ac_build_exeext=$BUILD_EXEEXT
4599
Jim Grosbach673612e2008-10-02 22:56:44 +00004600 ac_build_prefix=${build_alias}-
4601 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4602set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004603{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4605if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4606 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004607else
4608 if test -n "$BUILD_CXX"; then
4609 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4610else
4611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4612for as_dir in $PATH
4613do
4614 IFS=$as_save_IFS
4615 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004616 for ac_exec_ext in '' $ac_executable_extensions; do
4617 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 +00004618 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004620 break 2
4621 fi
4622done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004623done
Jim Grosbach673612e2008-10-02 22:56:44 +00004624IFS=$as_save_IFS
4625
4626fi
4627fi
4628BUILD_CXX=$ac_cv_prog_BUILD_CXX
4629if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004630 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4631echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004632else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004633 { echo "$as_me:$LINENO: result: no" >&5
4634echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004635fi
4636
4637
4638 if test -z "$BUILD_CXX"; then
4639 # Extract the first word of "g++", so it can be a program name with args.
4640set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004641{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4642echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4643if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4644 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004645else
4646 if test -n "$BUILD_CXX"; then
4647 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4648else
4649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4650for as_dir in $PATH
4651do
4652 IFS=$as_save_IFS
4653 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004654 for ac_exec_ext in '' $ac_executable_extensions; do
4655 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 +00004656 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004658 break 2
4659 fi
4660done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004661done
Jim Grosbach673612e2008-10-02 22:56:44 +00004662IFS=$as_save_IFS
4663
4664fi
4665fi
4666BUILD_CXX=$ac_cv_prog_BUILD_CXX
4667if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004668 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4669echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004670else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004671 { echo "$as_me:$LINENO: result: no" >&5
4672echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004673fi
4674
4675
4676 if test -z "$BUILD_CXX"; then
4677 # Extract the first word of "c++", so it can be a program name with args.
4678set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004679{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4681if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4682 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004683else
4684 if test -n "$BUILD_CXX"; then
4685 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4686else
4687 ac_prog_rejected=no
4688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4689for as_dir in $PATH
4690do
4691 IFS=$as_save_IFS
4692 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004693 for ac_exec_ext in '' $ac_executable_extensions; do
4694 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 +00004695 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4696 ac_prog_rejected=yes
4697 continue
4698 fi
4699 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004701 break 2
4702 fi
4703done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004704done
Jim Grosbach673612e2008-10-02 22:56:44 +00004705IFS=$as_save_IFS
4706
4707if test $ac_prog_rejected = yes; then
4708 # We found a bogon in the path, so make sure we never use it.
4709 set dummy $ac_cv_prog_BUILD_CXX
4710 shift
4711 if test $# != 0; then
4712 # We chose a different compiler from the bogus one.
4713 # However, it has the same basename, so the bogon will be chosen
4714 # first if we set BUILD_CXX to just the basename; use the full file name.
4715 shift
4716 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4717 fi
4718fi
4719fi
4720fi
4721BUILD_CXX=$ac_cv_prog_BUILD_CXX
4722if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004723 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4724echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004725else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004726 { echo "$as_me:$LINENO: result: no" >&5
4727echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004728fi
4729
4730
4731 fi
4732 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004733else
4734 LLVM_CROSS_COMPILING=0
4735
4736fi
4737
Dan Gohman56fb5f92010-08-04 16:25:01 +00004738if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004739 cvsbuild="yes"
4740 optimize="no"
4741 CVSBUILD=CVSBUILD=1
4742
4743else
4744 cvsbuild="no"
4745 optimize="yes"
4746fi
4747
4748
4749# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004750if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004751 enableval=$enable_optimized;
4752else
4753 enableval=$optimize
4754fi
4755
4756if test ${enableval} = "no" ; then
4757 ENABLE_OPTIMIZED=
4758
4759else
4760 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4761
4762fi
4763
David Greene2a5a12c2009-04-17 14:50:39 +00004764# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004765if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00004766 enableval=$enable_profiling;
4767else
4768 enableval="no"
4769fi
4770
4771if test ${enableval} = "no" ; then
4772 ENABLE_PROFILING=
4773
4774else
4775 ENABLE_PROFILING=ENABLE_PROFILING=1
4776
4777fi
4778
Reid Spencera773bd52006-08-04 18:18:08 +00004779# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004780if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004781 enableval=$enable_assertions;
4782else
4783 enableval="yes"
4784fi
4785
4786if test ${enableval} = "yes" ; then
4787 DISABLE_ASSERTIONS=
4788
4789else
4790 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4791
4792fi
4793
David Greenea696d242007-06-28 19:36:08 +00004794# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004795if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00004796 enableval=$enable_expensive_checks;
4797else
4798 enableval="no"
4799fi
4800
4801if test ${enableval} = "yes" ; then
4802 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4803
4804 EXPENSIVE_CHECKS=yes
4805
4806else
4807 ENABLE_EXPENSIVE_CHECKS=
4808
4809 EXPENSIVE_CHECKS=no
4810
4811fi
4812
Reid Spencer8b2e1412006-11-17 03:32:33 +00004813# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004814if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00004815 enableval=$enable_debug_runtime;
4816else
4817 enableval=no
4818fi
4819
4820if test ${enableval} = "no" ; then
4821 DEBUG_RUNTIME=
4822
4823else
4824 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4825
4826fi
4827
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004828# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004829if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004830 enableval=$enable_debug_symbols;
4831else
4832 enableval=no
4833fi
4834
4835if test ${enableval} = "no" ; then
4836 DEBUG_SYMBOLS=
4837
4838else
4839 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4840
4841fi
4842
Reid Spencera773bd52006-08-04 18:18:08 +00004843# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004844if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004845 enableval=$enable_jit;
4846else
4847 enableval=default
4848fi
4849
4850if test ${enableval} = "no"
4851then
4852 JIT=
4853
4854else
4855 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004856 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004857 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004858 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004859 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004860 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004861 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004862 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004863 ;;
Chris Lattnerc476ed92010-11-14 18:24:41 +00004864 Alpha) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004865 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00004866 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00004867 ;;
Bruno Cardoso Lopesdca6cdd2011-07-21 16:28:51 +00004868 Mips) TARGET_HAS_JIT=1
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004869 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004870 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00004871 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004872 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004873 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004874 SystemZ) TARGET_HAS_JIT=0
Anton Korobeynikov4403b932009-07-16 13:27:25 +00004875 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004876 Blackfin) TARGET_HAS_JIT=0
4877 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004878 MBlaze) TARGET_HAS_JIT=0
4879 ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00004880 PTX) TARGET_HAS_JIT=0
4881 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004882 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004883 ;;
4884 esac
4885fi
4886
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00004887# Check whether --enable-docs was given.
4888if test "${enable_docs+set}" = set; then
4889 enableval=$enable_docs;
4890else
4891 enableval=default
4892fi
4893
4894case "$enableval" in
4895 yes) ENABLE_DOCS=1
4896 ;;
4897 no) ENABLE_DOCS=0
4898 ;;
4899 default) ENABLE_DOCS=1
4900 ;;
4901 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
4902echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
4903 { (exit 1); exit 1; }; } ;;
4904esac
4905
Reid Spencera773bd52006-08-04 18:18:08 +00004906# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004907if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004908 enableval=$enable_doxygen;
4909else
4910 enableval=default
4911fi
4912
4913case "$enableval" in
4914 yes) ENABLE_DOXYGEN=1
4915 ;;
4916 no) ENABLE_DOXYGEN=0
4917 ;;
4918 default) ENABLE_DOXYGEN=0
4919 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004920 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4921echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4922 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004923esac
4924
4925# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004926if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004927 enableval=$enable_threads;
4928else
Reid Spencer65c5d752006-11-05 17:08:18 +00004929 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004930fi
4931
4932case "$enableval" in
4933 yes) ENABLE_THREADS=1
4934 ;;
4935 no) ENABLE_THREADS=0
4936 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004937 default) ENABLE_THREADS=1
4938 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004939 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4940echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4941 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004942esac
4943
Owen Andersona8603702009-05-19 22:18:56 +00004944cat >>confdefs.h <<_ACEOF
4945#define ENABLE_THREADS $ENABLE_THREADS
4946_ACEOF
4947
4948
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00004949# Check whether --enable-pthreads was given.
4950if test "${enable_pthreads+set}" = set; then
4951 enableval=$enable_pthreads;
4952else
4953 enableval=default
4954fi
4955
4956case "$enableval" in
4957 yes) ENABLE_PTHREADS=1
4958 ;;
4959 no) ENABLE_PTHREADS=0
4960 ;;
4961 default) ENABLE_PTHREADS=1
4962 ;;
4963 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
4964echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
4965 { (exit 1); exit 1; }; } ;;
4966esac
4967
Reid Spencer89b0d992006-12-16 22:07:52 +00004968# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004969if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00004970 enableval=$enable_pic;
4971else
4972 enableval=default
4973fi
4974
4975case "$enableval" in
4976 yes) ENABLE_PIC=1
4977 ;;
4978 no) ENABLE_PIC=0
4979 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00004980 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00004981 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004982 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4983echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4984 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00004985esac
4986
4987cat >>confdefs.h <<_ACEOF
4988#define ENABLE_PIC $ENABLE_PIC
4989_ACEOF
4990
4991
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00004992# Check whether --enable-shared was given.
4993if test "${enable_shared+set}" = set; then
4994 enableval=$enable_shared;
4995else
4996 enableval=default
4997fi
4998
4999case "$enableval" in
5000 yes) ENABLE_SHARED=1
5001 ;;
5002 no) ENABLE_SHARED=0
5003 ;;
5004 default) ENABLE_SHARED=0
5005 ;;
5006 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5007echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5008 { (exit 1); exit 1; }; } ;;
5009esac
5010
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005011# Check whether --enable-embed-stdcxx was given.
5012if test "${enable_embed_stdcxx+set}" = set; then
5013 enableval=$enable_embed_stdcxx;
5014else
5015 enableval=default
5016fi
5017
5018case "$enableval" in
5019 yes) ENABLE_EMBED_STDCXX=1
5020 ;;
5021 no) ENABLE_EMBED_STDCXX=0
5022 ;;
5023 default) ENABLE_EMBED_STDCXX=1
5024 ;;
5025 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5026echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5027 { (exit 1); exit 1; }; } ;;
5028esac
5029
Daniel Dunbardd464df2010-05-10 20:11:56 +00005030# Check whether --enable-timestamps was given.
5031if test "${enable_timestamps+set}" = set; then
5032 enableval=$enable_timestamps;
5033else
5034 enableval=default
5035fi
5036
5037case "$enableval" in
5038 yes) ENABLE_TIMESTAMPS=1
5039 ;;
5040 no) ENABLE_TIMESTAMPS=0
5041 ;;
5042 default) ENABLE_TIMESTAMPS=1
5043 ;;
5044 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5045echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5046 { (exit 1); exit 1; }; } ;;
5047esac
5048
5049cat >>confdefs.h <<_ACEOF
5050#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5051_ACEOF
5052
5053
Reid Spencera773bd52006-08-04 18:18:08 +00005054TARGETS_TO_BUILD=""
5055# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005056if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005057 enableval=$enable_targets;
5058else
5059 enableval=all
5060fi
5061
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005062if test "$enableval" = host-only ; then
5063 enableval=host
5064fi
Reid Spencera773bd52006-08-04 18:18:08 +00005065case "$enableval" in
Chris Lattner60cb5282010-10-11 05:44:40 +00005066 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 +00005067 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5068 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005069 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5070 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5071 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5072 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5073 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5074 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5075 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5076 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005077 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5078 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5079 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5080 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5081 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005082 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005083 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005084 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005085 host) case "$llvm_cv_target_arch" in
5086 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5087 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5088 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5089 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5090 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5091 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5092 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005093 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005094 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005095 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5096 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Anton Korobeynikov6ca835d2010-01-05 20:45:43 +00005097 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005098 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005099 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005100 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5101echo "$as_me: error: Can not set target to build" >&2;}
5102 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005103 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005104 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5105echo "$as_me: error: Unrecognized target $a_target" >&2;}
5106 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005107 esac
5108 done
5109 ;;
5110esac
Reid Spencera773bd52006-08-04 18:18:08 +00005111TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5112
5113
Douglas Gregor0711c302009-06-17 00:43:20 +00005114# Determine whether we are building LLVM support for the native architecture.
5115# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5116for a_target in $TARGETS_TO_BUILD; do
5117 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5118
5119cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005120#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5121_ACEOF
5122
5123 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5124 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
Evan Chenge78085a2011-07-22 21:58:54 +00005125 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
Eric Christopher753f3262010-08-30 18:34:48 +00005126 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005127 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5128 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5129 fi
Eric Christopher753f3262010-08-30 18:34:48 +00005130
5131cat >>confdefs.h <<_ACEOF
5132#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005133_ACEOF
5134
5135
5136cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005137#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5138_ACEOF
5139
5140
5141cat >>confdefs.h <<_ACEOF
Evan Chenge78085a2011-07-22 21:58:54 +00005142#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
Evan Cheng43966132011-07-19 06:37:02 +00005143_ACEOF
5144
5145
5146cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005147#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005148_ACEOF
5149
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005150 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
Jan Sjödindd54ffd2011-03-09 17:25:46 +00005151
5152cat >>confdefs.h <<_ACEOF
5153#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5154_ACEOF
5155
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005156 fi
Douglas Gregor0711c302009-06-17 00:43:20 +00005157 fi
5158done
5159
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005160# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5161# target feature def files.
Douglas Gregor1555a232009-06-16 20:12:29 +00005162LLVM_ENUM_TARGETS=""
5163LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005164LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005165LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005166for target_to_build in $TARGETS_TO_BUILD; do
5167 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattnere15f2e12010-11-14 19:10:47 +00005168 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach7ac16092010-10-01 22:39:28 +00005169 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5170 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005171 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5172 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5173 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005174 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5175 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5176 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005177done
5178
5179
5180
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005181
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005182
Reid Spencer65c5d752006-11-05 17:08:18 +00005183# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005184if test "${enable_cbe_printf_a+set}" = set; then
Reid Spencer65c5d752006-11-05 17:08:18 +00005185 enableval=$enable_cbe_printf_a;
5186else
5187 enableval=default
5188fi
5189
5190case "$enableval" in
5191 yes) ENABLE_CBE_PRINTF_A=1
5192 ;;
5193 no) ENABLE_CBE_PRINTF_A=0
5194 ;;
5195 default) ENABLE_CBE_PRINTF_A=1
5196 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005197 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5198echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5199 { (exit 1); exit 1; }; } ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005200esac
5201
5202cat >>confdefs.h <<_ACEOF
5203#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5204_ACEOF
5205
5206
Reid Spencera773bd52006-08-04 18:18:08 +00005207
5208# Check whether --with-llvmgccdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005209if test "${with_llvmgccdir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005210 withval=$with_llvmgccdir;
5211else
5212 withval=default
5213fi
5214
5215case "$withval" in
5216 default) WITH_LLVMGCCDIR=default ;;
5217 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005218 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5219echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5220 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005221esac
5222
5223
Devang Patel5d28b882007-12-04 22:54:47 +00005224# Check whether --with-llvmgcc was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005225if test "${with_llvmgcc+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005226 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5227 WITH_LLVMGCCDIR=""
5228fi
5229
5230
5231
5232# Check whether --with-llvmgxx was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005233if test "${with_llvmgxx+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005234 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5235 WITH_LLVMGCCDIR=""
5236fi
5237
Douglas Gregor01746742009-05-11 18:05:52 +00005238
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00005239if test -n "$LLVMGCC"; then
5240 LLVMGCCCOMMAND="$LLVMGCC"
5241fi
5242
5243if test -n "$LLVMGXX"; then
5244 LLVMGXXCOMMAND="$LLVMGXX"
5245fi
Devang Patel5d28b882007-12-04 22:54:47 +00005246
5247if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005248 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5249echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5250 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005251fi
5252
5253if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005254 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5255echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5256 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005257fi
5258
5259
Daniel Dunbar98515672010-02-23 10:00:49 +00005260# Check whether --with-clang was given.
5261if test "${with_clang+set}" = set; then
5262 withval=$with_clang;
5263else
5264 with_clang=default
5265fi
5266
5267
5268
5269# Check whether --with-built-clang was given.
5270if test "${with_built_clang+set}" = set; then
5271 withval=$with_built_clang;
5272else
5273 with_built_clang=check
5274fi
5275
5276
5277{ echo "$as_me:$LINENO: checking clang compiler" >&5
5278echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5279WITH_CLANGPATH=""
5280WITH_BUILT_CLANG=0
5281if test "$with_clang" != "default"; then
5282 WITH_CLANGPATH="$with_clang"
5283 if ! test -x "$WITH_CLANGPATH"; then
5284 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5285echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5286 { (exit 1); exit 1; }; }
5287 fi
5288elif test "$with_built_clang" = "yes"; then
5289 WITH_BUILT_CLANG=1
5290elif test "$with_built_clang" = "no"; then
5291 WITH_BUILT_CLANG=0
5292else
5293 if test "$with_built_clang" != "check"; then
5294 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5295echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5296 { (exit 1); exit 1; }; }
5297 fi
5298
5299 if test -f ${srcdir}/tools/clang/README.txt; then
5300 WITH_BUILT_CLANG=1
5301 fi
5302fi
5303
5304if ! test -z "$WITH_CLANGPATH"; then
5305 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5306echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5307 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5308elif test "$WITH_BUILT_CLANG" = "1"; then
5309 { echo "$as_me:$LINENO: result: built" >&5
5310echo "${ECHO_T}built" >&6; }
5311else
5312 { echo "$as_me:$LINENO: result: none" >&5
5313echo "${ECHO_T}none" >&6; }
5314fi
5315CLANGPATH=$WITH_CLANGPATH
5316
5317CLANGXXPATH=$WITH_CLANGXXPATH
5318
5319ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5320
5321
5322
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005323# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005324if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005325 withval=$with_optimize_option;
5326else
5327 withval=default
5328fi
5329
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005330{ echo "$as_me:$LINENO: checking optimization flags" >&5
5331echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005332case "$withval" in
5333 default)
5334 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005335 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005336 MingW) optimize_option=-O2 ;;
5337 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005338 esac ;;
5339 *) optimize_option="$withval" ;;
5340esac
5341OPTIMIZE_OPTION=$optimize_option
5342
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005343{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5344echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005345
5346
Reid Spencera773bd52006-08-04 18:18:08 +00005347# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005348if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005349 withval=$with_extra_options;
5350else
5351 withval=default
5352fi
5353
5354case "$withval" in
5355 default) EXTRA_OPTIONS= ;;
5356 *) EXTRA_OPTIONS=$withval ;;
5357esac
5358EXTRA_OPTIONS=$EXTRA_OPTIONS
5359
5360
Daniel Dunbared344d22011-06-16 22:30:41 +00005361
5362# Check whether --with-extra-ld-options was given.
5363if test "${with_extra_ld_options+set}" = set; then
5364 withval=$with_extra_ld_options;
5365else
5366 withval=default
5367fi
5368
5369case "$withval" in
5370 default) EXTRA_LD_OPTIONS= ;;
5371 *) EXTRA_LD_OPTIONS=$withval ;;
5372esac
5373EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5374
5375
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005376# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005377if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005378 enableval=$enable_bindings;
5379else
5380 enableval=default
5381fi
5382
5383BINDINGS_TO_BUILD=""
5384case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005385 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005386 all ) BINDINGS_TO_BUILD="ocaml" ;;
5387 none | no) BINDINGS_TO_BUILD="" ;;
5388 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5389 case "$a_binding" in
5390 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005391 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5392echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5393 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005394 esac
5395 done
5396 ;;
5397esac
5398
Reid Spencera773bd52006-08-04 18:18:08 +00005399
Gordon Henriksenf0915682007-10-02 16:42:22 +00005400# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005401if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005402 withval=$with_ocaml_libdir;
5403else
5404 withval=auto
5405fi
5406
5407case "$withval" in
5408 auto) with_ocaml_libdir="$withval" ;;
5409 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005410 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5411echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5412 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005413esac
5414
5415
Chandler Carruth6b241162010-10-19 08:21:25 +00005416# Check whether --with-clang-resource-dir was given.
5417if test "${with_clang_resource_dir+set}" = set; then
5418 withval=$with_clang_resource_dir;
5419else
5420 withval=""
5421fi
5422
5423
5424cat >>confdefs.h <<_ACEOF
5425#define CLANG_RESOURCE_DIR "$withval"
5426_ACEOF
5427
5428
5429
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005430# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005431if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005432 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005433else
5434 withval=""
5435fi
5436
5437
5438cat >>confdefs.h <<_ACEOF
5439#define C_INCLUDE_DIRS "$withval"
5440_ACEOF
5441
5442
5443
Rafael Espindola420d23c2009-11-16 19:46:55 +00005444# Check whether --with-cxx-include-root was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005445if test "${with_cxx_include_root+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005446 withval=$with_cxx_include_root;
5447else
5448 withval=""
5449fi
5450
5451
5452cat >>confdefs.h <<_ACEOF
5453#define CXX_INCLUDE_ROOT "$withval"
5454_ACEOF
5455
5456
5457
5458# Check whether --with-cxx-include-arch was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005459if test "${with_cxx_include_arch+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005460 withval=$with_cxx_include_arch;
5461else
5462 withval=""
5463fi
5464
5465
5466cat >>confdefs.h <<_ACEOF
5467#define CXX_INCLUDE_ARCH "$withval"
5468_ACEOF
5469
5470
5471
5472# Check whether --with-cxx-include-32bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005473if test "${with_cxx_include_32bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005474 withval=$with_cxx_include_32bit_dir;
5475else
5476 withval=""
5477fi
5478
5479
5480cat >>confdefs.h <<_ACEOF
5481#define CXX_INCLUDE_32BIT_DIR "$withval"
5482_ACEOF
5483
5484
5485
5486# Check whether --with-cxx-include-64bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005487if test "${with_cxx_include_64bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005488 withval=$with_cxx_include_64bit_dir;
5489else
5490 withval=""
5491fi
5492
5493
5494cat >>confdefs.h <<_ACEOF
5495#define CXX_INCLUDE_64BIT_DIR "$withval"
5496_ACEOF
5497
5498
5499
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005500# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005501if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005502 withval=$with_binutils_include;
5503else
5504 withval=default
5505fi
5506
5507case "$withval" in
5508 default) WITH_BINUTILS_INCDIR=default ;;
5509 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005510 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5511echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5512 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005513esac
5514if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5515 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5516
5517 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5518 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005519 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5520echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5521 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005522 fi
5523fi
5524
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005525
5526# Check whether --with-bug-report-url was given.
5527if test "${with_bug_report_url+set}" = set; then
5528 withval=$with_bug_report_url;
5529else
5530 withval="http://llvm.org"
5531fi
5532
5533
5534cat >>confdefs.h <<_ACEOF
5535#define BUG_REPORT_URL "$withval"
5536_ACEOF
5537
5538
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005539# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005540if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005541 enableval=$enable_libffi; case "$enableval" in
5542 yes) llvm_cv_enable_libffi="yes" ;;
5543 no) llvm_cv_enable_libffi="no" ;;
5544 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005545echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5546 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005547 esac
5548else
5549 llvm_cv_enable_libffi=no
5550fi
5551
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005552
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005553
Reid Spencera773bd52006-08-04 18:18:08 +00005554ac_ext=c
5555ac_cpp='$CPP $CPPFLAGS'
5556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5558ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005559{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5560echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005561# On Suns, sometimes $CPP names a directory.
5562if test -n "$CPP" && test -d "$CPP"; then
5563 CPP=
5564fi
5565if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005566 if test "${ac_cv_prog_CPP+set}" = set; then
5567 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005568else
5569 # Double quotes because CPP needs to be expanded
5570 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5571 do
5572 ac_preproc_ok=false
5573for ac_c_preproc_warn_flag in '' yes
5574do
5575 # Use a header file that comes with gcc, so configuring glibc
5576 # with a fresh cross-compiler works.
5577 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5578 # <limits.h> exists even on freestanding compilers.
5579 # On the NeXT, cc -E runs the code through the compiler's parser,
5580 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005581 cat >conftest.$ac_ext <<_ACEOF
5582/* confdefs.h. */
5583_ACEOF
5584cat confdefs.h >>conftest.$ac_ext
5585cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005586/* end confdefs.h. */
5587#ifdef __STDC__
5588# include <limits.h>
5589#else
5590# include <assert.h>
5591#endif
5592 Syntax error
5593_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005594if { (ac_try="$ac_cpp conftest.$ac_ext"
5595case "(($ac_try" in
5596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5597 *) ac_try_echo=$ac_try;;
5598esac
5599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5601 ac_status=$?
5602 grep -v '^ *+' conftest.er1 >conftest.err
5603 rm -f conftest.er1
5604 cat conftest.err >&5
5605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606 (exit $ac_status); } >/dev/null; then
5607 if test -s conftest.err; then
5608 ac_cpp_err=$ac_c_preproc_warn_flag
5609 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5610 else
5611 ac_cpp_err=
5612 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005613else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005614 ac_cpp_err=yes
5615fi
5616if test -z "$ac_cpp_err"; then
5617 :
5618else
5619 echo "$as_me: failed program was:" >&5
5620sed 's/^/| /' conftest.$ac_ext >&5
5621
Reid Spencera773bd52006-08-04 18:18:08 +00005622 # Broken: fails on valid input.
5623continue
5624fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005625
Reid Spencera773bd52006-08-04 18:18:08 +00005626rm -f conftest.err conftest.$ac_ext
5627
5628 # OK, works on sane cases. Now check whether nonexistent headers
5629 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005630 cat >conftest.$ac_ext <<_ACEOF
5631/* confdefs.h. */
5632_ACEOF
5633cat confdefs.h >>conftest.$ac_ext
5634cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005635/* end confdefs.h. */
5636#include <ac_nonexistent.h>
5637_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005638if { (ac_try="$ac_cpp conftest.$ac_ext"
5639case "(($ac_try" in
5640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5641 *) ac_try_echo=$ac_try;;
5642esac
5643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5645 ac_status=$?
5646 grep -v '^ *+' conftest.er1 >conftest.err
5647 rm -f conftest.er1
5648 cat conftest.err >&5
5649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650 (exit $ac_status); } >/dev/null; then
5651 if test -s conftest.err; then
5652 ac_cpp_err=$ac_c_preproc_warn_flag
5653 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5654 else
5655 ac_cpp_err=
5656 fi
5657else
5658 ac_cpp_err=yes
5659fi
5660if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005661 # Broken: success on invalid input.
5662continue
5663else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005664 echo "$as_me: failed program was:" >&5
5665sed 's/^/| /' conftest.$ac_ext >&5
5666
Reid Spencera773bd52006-08-04 18:18:08 +00005667 # Passes both tests.
5668ac_preproc_ok=:
5669break
5670fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005671
Reid Spencera773bd52006-08-04 18:18:08 +00005672rm -f conftest.err conftest.$ac_ext
5673
5674done
5675# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5676rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005677if $ac_preproc_ok; then
Reid Spencera773bd52006-08-04 18:18:08 +00005678 break
5679fi
5680
5681 done
5682 ac_cv_prog_CPP=$CPP
5683
5684fi
5685 CPP=$ac_cv_prog_CPP
5686else
5687 ac_cv_prog_CPP=$CPP
5688fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005689{ echo "$as_me:$LINENO: result: $CPP" >&5
5690echo "${ECHO_T}$CPP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005691ac_preproc_ok=false
5692for ac_c_preproc_warn_flag in '' yes
5693do
5694 # Use a header file that comes with gcc, so configuring glibc
5695 # with a fresh cross-compiler works.
5696 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5697 # <limits.h> exists even on freestanding compilers.
5698 # On the NeXT, cc -E runs the code through the compiler's parser,
5699 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005700 cat >conftest.$ac_ext <<_ACEOF
5701/* confdefs.h. */
5702_ACEOF
5703cat confdefs.h >>conftest.$ac_ext
5704cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005705/* end confdefs.h. */
5706#ifdef __STDC__
5707# include <limits.h>
5708#else
5709# include <assert.h>
5710#endif
5711 Syntax error
5712_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005713if { (ac_try="$ac_cpp conftest.$ac_ext"
5714case "(($ac_try" in
5715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5716 *) ac_try_echo=$ac_try;;
5717esac
5718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5719 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5720 ac_status=$?
5721 grep -v '^ *+' conftest.er1 >conftest.err
5722 rm -f conftest.er1
5723 cat conftest.err >&5
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); } >/dev/null; then
5726 if test -s conftest.err; then
5727 ac_cpp_err=$ac_c_preproc_warn_flag
5728 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5729 else
5730 ac_cpp_err=
5731 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005732else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005733 ac_cpp_err=yes
5734fi
5735if test -z "$ac_cpp_err"; then
5736 :
5737else
5738 echo "$as_me: failed program was:" >&5
5739sed 's/^/| /' conftest.$ac_ext >&5
5740
Reid Spencera773bd52006-08-04 18:18:08 +00005741 # Broken: fails on valid input.
5742continue
5743fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005744
Reid Spencera773bd52006-08-04 18:18:08 +00005745rm -f conftest.err conftest.$ac_ext
5746
5747 # OK, works on sane cases. Now check whether nonexistent headers
5748 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005749 cat >conftest.$ac_ext <<_ACEOF
5750/* confdefs.h. */
5751_ACEOF
5752cat confdefs.h >>conftest.$ac_ext
5753cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005754/* end confdefs.h. */
5755#include <ac_nonexistent.h>
5756_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005757if { (ac_try="$ac_cpp conftest.$ac_ext"
5758case "(($ac_try" in
5759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5760 *) ac_try_echo=$ac_try;;
5761esac
5762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5764 ac_status=$?
5765 grep -v '^ *+' conftest.er1 >conftest.err
5766 rm -f conftest.er1
5767 cat conftest.err >&5
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); } >/dev/null; then
5770 if test -s conftest.err; then
5771 ac_cpp_err=$ac_c_preproc_warn_flag
5772 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5773 else
5774 ac_cpp_err=
5775 fi
5776else
5777 ac_cpp_err=yes
5778fi
5779if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005780 # Broken: success on invalid input.
5781continue
5782else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005783 echo "$as_me: failed program was:" >&5
5784sed 's/^/| /' conftest.$ac_ext >&5
5785
Reid Spencera773bd52006-08-04 18:18:08 +00005786 # Passes both tests.
5787ac_preproc_ok=:
5788break
5789fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005790
Reid Spencera773bd52006-08-04 18:18:08 +00005791rm -f conftest.err conftest.$ac_ext
5792
5793done
5794# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5795rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005796if $ac_preproc_ok; then
5797 :
Reid Spencera773bd52006-08-04 18:18:08 +00005798else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005799 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5800See \`config.log' for more details." >&5
5801echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5802See \`config.log' for more details." >&2;}
5803 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005804fi
5805
5806ac_ext=c
5807ac_cpp='$CPP $CPPFLAGS'
5808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5810ac_compiler_gnu=$ac_cv_c_compiler_gnu
5811
5812ac_ext=c
5813ac_cpp='$CPP $CPPFLAGS'
5814ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5815ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5816ac_compiler_gnu=$ac_cv_c_compiler_gnu
5817if test -n "$ac_tool_prefix"; then
5818 for ac_prog in gcc
5819 do
5820 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5821set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005822{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5824if test "${ac_cv_prog_CC+set}" = set; then
5825 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005826else
5827 if test -n "$CC"; then
5828 ac_cv_prog_CC="$CC" # Let the user override the test.
5829else
5830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5831for as_dir in $PATH
5832do
5833 IFS=$as_save_IFS
5834 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005835 for ac_exec_ext in '' $ac_executable_extensions; do
5836 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 +00005837 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005839 break 2
5840 fi
5841done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005842done
Reid Spencera773bd52006-08-04 18:18:08 +00005843IFS=$as_save_IFS
5844
5845fi
5846fi
5847CC=$ac_cv_prog_CC
5848if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005849 { echo "$as_me:$LINENO: result: $CC" >&5
5850echo "${ECHO_T}$CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005851else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005852 { echo "$as_me:$LINENO: result: no" >&5
5853echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005854fi
5855
5856
5857 test -n "$CC" && break
5858 done
5859fi
5860if test -z "$CC"; then
5861 ac_ct_CC=$CC
5862 for ac_prog in gcc
5863do
5864 # Extract the first word of "$ac_prog", so it can be a program name with args.
5865set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005866{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5868if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5869 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005870else
5871 if test -n "$ac_ct_CC"; then
5872 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5873else
5874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5875for as_dir in $PATH
5876do
5877 IFS=$as_save_IFS
5878 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005879 for ac_exec_ext in '' $ac_executable_extensions; do
5880 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 +00005881 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005883 break 2
5884 fi
5885done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005886done
Reid Spencera773bd52006-08-04 18:18:08 +00005887IFS=$as_save_IFS
5888
5889fi
5890fi
5891ac_ct_CC=$ac_cv_prog_ac_ct_CC
5892if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005893 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5894echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005895else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005896 { echo "$as_me:$LINENO: result: no" >&5
5897echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005898fi
5899
5900
5901 test -n "$ac_ct_CC" && break
5902done
5903
5904 if test "x$ac_ct_CC" = x; then
5905 CC=""
5906 else
5907 case $cross_compiling:$ac_tool_warned in
5908yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005909{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5910whose name does not start with the host triplet. If you think this
5911configuration is useful to you, please write to autoconf@gnu.org." >&5
5912echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5913whose name does not start with the host triplet. If you think this
5914configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00005915ac_tool_warned=yes ;;
5916esac
5917 CC=$ac_ct_CC
5918 fi
5919fi
5920
5921
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005922test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5923See \`config.log' for more details." >&5
5924echo "$as_me: error: no acceptable C compiler found in \$PATH
5925See \`config.log' for more details." >&2;}
5926 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005927
5928# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005929echo "$as_me:$LINENO: checking for C compiler version" >&5
5930ac_compiler=`set X $ac_compile; echo $2`
5931{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00005932case "(($ac_try" in
5933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5934 *) ac_try_echo=$ac_try;;
5935esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5937 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00005938 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); }
5941{ (ac_try="$ac_compiler -v >&5"
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_compiler -v >&5") 2>&5
5948 ac_status=$?
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); }
5951{ (ac_try="$ac_compiler -V >&5"
5952case "(($ac_try" in
5953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5954 *) ac_try_echo=$ac_try;;
5955esac
5956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5957 (eval "$ac_compiler -V >&5") 2>&5
5958 ac_status=$?
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00005961
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005962{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5963echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5964if test "${ac_cv_c_compiler_gnu+set}" = set; then
5965 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005966else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005967 cat >conftest.$ac_ext <<_ACEOF
5968/* confdefs.h. */
5969_ACEOF
5970cat confdefs.h >>conftest.$ac_ext
5971cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005972/* end confdefs.h. */
5973
5974int
5975main ()
5976{
5977#ifndef __GNUC__
5978 choke me
5979#endif
5980
5981 ;
5982 return 0;
5983}
5984_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005985rm -f conftest.$ac_objext
5986if { (ac_try="$ac_compile"
5987case "(($ac_try" in
5988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5989 *) ac_try_echo=$ac_try;;
5990esac
5991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5992 (eval "$ac_compile") 2>conftest.er1
5993 ac_status=$?
5994 grep -v '^ *+' conftest.er1 >conftest.err
5995 rm -f conftest.er1
5996 cat conftest.err >&5
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); } &&
5999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6000 { (case "(($ac_try" in
6001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6002 *) ac_try_echo=$ac_try;;
6003esac
6004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6005 (eval "$ac_try") 2>&5
6006 ac_status=$?
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); }; } &&
6009 { ac_try='test -s conftest.$ac_objext'
6010 { (case "(($ac_try" in
6011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6012 *) ac_try_echo=$ac_try;;
6013esac
6014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6015 (eval "$ac_try") 2>&5
6016 ac_status=$?
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006019 ac_compiler_gnu=yes
6020else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006021 echo "$as_me: failed program was:" >&5
6022sed 's/^/| /' conftest.$ac_ext >&5
6023
6024 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00006025fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006026
Reid Spencera773bd52006-08-04 18:18:08 +00006027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6028ac_cv_c_compiler_gnu=$ac_compiler_gnu
6029
6030fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006031{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
6032echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
6033GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00006034ac_test_CFLAGS=${CFLAGS+set}
6035ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006036{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
6037echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
6038if test "${ac_cv_prog_cc_g+set}" = set; then
6039 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006040else
6041 ac_save_c_werror_flag=$ac_c_werror_flag
6042 ac_c_werror_flag=yes
6043 ac_cv_prog_cc_g=no
6044 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006045 cat >conftest.$ac_ext <<_ACEOF
6046/* confdefs.h. */
6047_ACEOF
6048cat confdefs.h >>conftest.$ac_ext
6049cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006050/* end confdefs.h. */
6051
6052int
6053main ()
6054{
6055
6056 ;
6057 return 0;
6058}
6059_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006060rm -f conftest.$ac_objext
6061if { (ac_try="$ac_compile"
6062case "(($ac_try" in
6063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6064 *) ac_try_echo=$ac_try;;
6065esac
6066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6067 (eval "$ac_compile") 2>conftest.er1
6068 ac_status=$?
6069 grep -v '^ *+' conftest.er1 >conftest.err
6070 rm -f conftest.er1
6071 cat conftest.err >&5
6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); } &&
6074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6075 { (case "(($ac_try" in
6076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6077 *) ac_try_echo=$ac_try;;
6078esac
6079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6080 (eval "$ac_try") 2>&5
6081 ac_status=$?
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); }; } &&
6084 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006094 ac_cv_prog_cc_g=yes
6095else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006096 echo "$as_me: failed program was:" >&5
6097sed 's/^/| /' conftest.$ac_ext >&5
6098
6099 CFLAGS=""
6100 cat >conftest.$ac_ext <<_ACEOF
6101/* confdefs.h. */
6102_ACEOF
6103cat confdefs.h >>conftest.$ac_ext
6104cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006105/* end confdefs.h. */
6106
6107int
6108main ()
6109{
6110
6111 ;
6112 return 0;
6113}
6114_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006115rm -f conftest.$ac_objext
6116if { (ac_try="$ac_compile"
6117case "(($ac_try" in
6118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6119 *) ac_try_echo=$ac_try;;
6120esac
6121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6122 (eval "$ac_compile") 2>conftest.er1
6123 ac_status=$?
6124 grep -v '^ *+' conftest.er1 >conftest.err
6125 rm -f conftest.er1
6126 cat conftest.err >&5
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); } &&
6129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6130 { (case "(($ac_try" in
6131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6132 *) ac_try_echo=$ac_try;;
6133esac
6134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6135 (eval "$ac_try") 2>&5
6136 ac_status=$?
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); }; } &&
6139 { ac_try='test -s conftest.$ac_objext'
6140 { (case "(($ac_try" in
6141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6142 *) ac_try_echo=$ac_try;;
6143esac
6144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6145 (eval "$ac_try") 2>&5
6146 ac_status=$?
6147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148 (exit $ac_status); }; }; then
6149 :
Torok Edwin871384f2010-01-26 08:50:50 +00006150else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006151 echo "$as_me: failed program was:" >&5
6152sed 's/^/| /' conftest.$ac_ext >&5
6153
6154 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00006155 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006156 cat >conftest.$ac_ext <<_ACEOF
6157/* confdefs.h. */
6158_ACEOF
6159cat confdefs.h >>conftest.$ac_ext
6160cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006161/* end confdefs.h. */
6162
6163int
6164main ()
6165{
6166
6167 ;
6168 return 0;
6169}
6170_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006171rm -f conftest.$ac_objext
6172if { (ac_try="$ac_compile"
6173case "(($ac_try" in
6174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6175 *) ac_try_echo=$ac_try;;
6176esac
6177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6178 (eval "$ac_compile") 2>conftest.er1
6179 ac_status=$?
6180 grep -v '^ *+' conftest.er1 >conftest.err
6181 rm -f conftest.er1
6182 cat conftest.err >&5
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); } &&
6185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6186 { (case "(($ac_try" in
6187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6188 *) ac_try_echo=$ac_try;;
6189esac
6190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6191 (eval "$ac_try") 2>&5
6192 ac_status=$?
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); }; } &&
6195 { ac_try='test -s conftest.$ac_objext'
6196 { (case "(($ac_try" in
6197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6198 *) ac_try_echo=$ac_try;;
6199esac
6200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6201 (eval "$ac_try") 2>&5
6202 ac_status=$?
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006205 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006206else
6207 echo "$as_me: failed program was:" >&5
6208sed 's/^/| /' conftest.$ac_ext >&5
6209
6210
Reid Spencera773bd52006-08-04 18:18:08 +00006211fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006212
Reid Spencera773bd52006-08-04 18:18:08 +00006213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6214fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006215
Reid Spencera773bd52006-08-04 18:18:08 +00006216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6217fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006218
Reid Spencera773bd52006-08-04 18:18:08 +00006219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6220 ac_c_werror_flag=$ac_save_c_werror_flag
6221fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006222{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6223echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006224if test "$ac_test_CFLAGS" = set; then
6225 CFLAGS=$ac_save_CFLAGS
6226elif test $ac_cv_prog_cc_g = yes; then
6227 if test "$GCC" = yes; then
6228 CFLAGS="-g -O2"
6229 else
6230 CFLAGS="-g"
6231 fi
6232else
6233 if test "$GCC" = yes; then
6234 CFLAGS="-O2"
6235 else
6236 CFLAGS=
6237 fi
6238fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006239{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6240echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6241if test "${ac_cv_prog_cc_c89+set}" = set; then
6242 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006243else
6244 ac_cv_prog_cc_c89=no
6245ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006246cat >conftest.$ac_ext <<_ACEOF
6247/* confdefs.h. */
6248_ACEOF
6249cat confdefs.h >>conftest.$ac_ext
6250cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006251/* end confdefs.h. */
6252#include <stdarg.h>
6253#include <stdio.h>
6254#include <sys/types.h>
6255#include <sys/stat.h>
6256/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6257struct buf { int x; };
6258FILE * (*rcsopen) (struct buf *, struct stat *, int);
6259static char *e (p, i)
6260 char **p;
6261 int i;
6262{
6263 return p[i];
6264}
6265static char *f (char * (*g) (char **, int), char **p, ...)
6266{
6267 char *s;
6268 va_list v;
6269 va_start (v,p);
6270 s = g (p, va_arg (v,int));
6271 va_end (v);
6272 return s;
6273}
6274
6275/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6276 function prototypes and stuff, but not '\xHH' hex character constants.
6277 These don't provoke an error unfortunately, instead are silently treated
6278 as 'x'. The following induces an error, until -std is added to get
6279 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6280 array size at least. It's necessary to write '\x00'==0 to get something
6281 that's true only with -std. */
6282int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6283
6284/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6285 inside strings and character constants. */
6286#define FOO(x) 'x'
6287int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6288
6289int test (int i, double x);
6290struct s1 {int (*f) (int a);};
6291struct s2 {int (*f) (double a);};
6292int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6293int argc;
6294char **argv;
6295int
6296main ()
6297{
6298return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6299 ;
6300 return 0;
6301}
6302_ACEOF
6303for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6304 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6305do
6306 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006307 rm -f conftest.$ac_objext
6308if { (ac_try="$ac_compile"
6309case "(($ac_try" in
6310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6311 *) ac_try_echo=$ac_try;;
6312esac
6313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6314 (eval "$ac_compile") 2>conftest.er1
6315 ac_status=$?
6316 grep -v '^ *+' conftest.er1 >conftest.err
6317 rm -f conftest.er1
6318 cat conftest.err >&5
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); } &&
6321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6322 { (case "(($ac_try" in
6323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6324 *) ac_try_echo=$ac_try;;
6325esac
6326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6327 (eval "$ac_try") 2>&5
6328 ac_status=$?
6329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330 (exit $ac_status); }; } &&
6331 { ac_try='test -s conftest.$ac_objext'
6332 { (case "(($ac_try" in
6333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6334 *) ac_try_echo=$ac_try;;
6335esac
6336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6337 (eval "$ac_try") 2>&5
6338 ac_status=$?
6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006341 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006342else
6343 echo "$as_me: failed program was:" >&5
6344sed 's/^/| /' conftest.$ac_ext >&5
6345
6346
Reid Spencera773bd52006-08-04 18:18:08 +00006347fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006348
Reid Spencera773bd52006-08-04 18:18:08 +00006349rm -f core conftest.err conftest.$ac_objext
6350 test "x$ac_cv_prog_cc_c89" != "xno" && break
6351done
6352rm -f conftest.$ac_ext
6353CC=$ac_save_CC
6354
6355fi
6356# AC_CACHE_VAL
6357case "x$ac_cv_prog_cc_c89" in
6358 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006359 { echo "$as_me:$LINENO: result: none needed" >&5
6360echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006361 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006362 { echo "$as_me:$LINENO: result: unsupported" >&5
6363echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006364 *)
6365 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006366 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6367echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006368esac
6369
6370
6371ac_ext=c
6372ac_cpp='$CPP $CPPFLAGS'
6373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6375ac_compiler_gnu=$ac_cv_c_compiler_gnu
6376
6377ac_ext=cpp
6378ac_cpp='$CXXCPP $CPPFLAGS'
6379ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6380ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6381ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6382if test -z "$CXX"; then
6383 if test -n "$CCC"; then
6384 CXX=$CCC
6385 else
6386 if test -n "$ac_tool_prefix"; then
6387 for ac_prog in g++
6388 do
6389 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6390set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006391{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6392echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6393if test "${ac_cv_prog_CXX+set}" = set; then
6394 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006395else
6396 if test -n "$CXX"; then
6397 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6398else
6399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6400for as_dir in $PATH
6401do
6402 IFS=$as_save_IFS
6403 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006404 for ac_exec_ext in '' $ac_executable_extensions; do
6405 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 +00006406 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006408 break 2
6409 fi
6410done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006411done
Reid Spencera773bd52006-08-04 18:18:08 +00006412IFS=$as_save_IFS
6413
6414fi
6415fi
6416CXX=$ac_cv_prog_CXX
6417if test -n "$CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006418 { echo "$as_me:$LINENO: result: $CXX" >&5
6419echo "${ECHO_T}$CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006420else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006421 { echo "$as_me:$LINENO: result: no" >&5
6422echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006423fi
6424
6425
6426 test -n "$CXX" && break
6427 done
6428fi
6429if test -z "$CXX"; then
6430 ac_ct_CXX=$CXX
6431 for ac_prog in g++
6432do
6433 # Extract the first word of "$ac_prog", so it can be a program name with args.
6434set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006435{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6437if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6438 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006439else
6440 if test -n "$ac_ct_CXX"; then
6441 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6442else
6443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6444for as_dir in $PATH
6445do
6446 IFS=$as_save_IFS
6447 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006448 for ac_exec_ext in '' $ac_executable_extensions; do
6449 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 +00006450 ac_cv_prog_ac_ct_CXX="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006452 break 2
6453 fi
6454done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006455done
Reid Spencera773bd52006-08-04 18:18:08 +00006456IFS=$as_save_IFS
6457
6458fi
6459fi
6460ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6461if test -n "$ac_ct_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006462 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6463echo "${ECHO_T}$ac_ct_CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006464else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006465 { echo "$as_me:$LINENO: result: no" >&5
6466echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006467fi
6468
6469
6470 test -n "$ac_ct_CXX" && break
6471done
6472
6473 if test "x$ac_ct_CXX" = x; then
6474 CXX="g++"
6475 else
6476 case $cross_compiling:$ac_tool_warned in
6477yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006478{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6479whose name does not start with the host triplet. If you think this
6480configuration is useful to you, please write to autoconf@gnu.org." >&5
6481echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6482whose name does not start with the host triplet. If you think this
6483configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006484ac_tool_warned=yes ;;
6485esac
6486 CXX=$ac_ct_CXX
6487 fi
6488fi
6489
6490 fi
6491fi
6492# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006493echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6494ac_compiler=`set X $ac_compile; echo $2`
6495{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00006496case "(($ac_try" in
6497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6498 *) ac_try_echo=$ac_try;;
6499esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6501 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00006502 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504 (exit $ac_status); }
6505{ (ac_try="$ac_compiler -v >&5"
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_compiler -v >&5") 2>&5
6512 ac_status=$?
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); }
6515{ (ac_try="$ac_compiler -V >&5"
6516case "(($ac_try" in
6517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6518 *) ac_try_echo=$ac_try;;
6519esac
6520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6521 (eval "$ac_compiler -V >&5") 2>&5
6522 ac_status=$?
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00006525
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006526{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6527echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6528if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6529 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006530else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006531 cat >conftest.$ac_ext <<_ACEOF
6532/* confdefs.h. */
6533_ACEOF
6534cat confdefs.h >>conftest.$ac_ext
6535cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006536/* end confdefs.h. */
6537
6538int
6539main ()
6540{
6541#ifndef __GNUC__
6542 choke me
6543#endif
6544
6545 ;
6546 return 0;
6547}
6548_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006549rm -f conftest.$ac_objext
6550if { (ac_try="$ac_compile"
6551case "(($ac_try" in
6552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6553 *) ac_try_echo=$ac_try;;
6554esac
6555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6556 (eval "$ac_compile") 2>conftest.er1
6557 ac_status=$?
6558 grep -v '^ *+' conftest.er1 >conftest.err
6559 rm -f conftest.er1
6560 cat conftest.err >&5
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); } &&
6563 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6564 { (case "(($ac_try" in
6565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6566 *) ac_try_echo=$ac_try;;
6567esac
6568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6569 (eval "$ac_try") 2>&5
6570 ac_status=$?
6571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572 (exit $ac_status); }; } &&
6573 { ac_try='test -s conftest.$ac_objext'
6574 { (case "(($ac_try" in
6575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6576 *) ac_try_echo=$ac_try;;
6577esac
6578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6579 (eval "$ac_try") 2>&5
6580 ac_status=$?
6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006583 ac_compiler_gnu=yes
6584else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006585 echo "$as_me: failed program was:" >&5
6586sed 's/^/| /' conftest.$ac_ext >&5
6587
6588 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00006589fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006590
Reid Spencera773bd52006-08-04 18:18:08 +00006591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6592ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6593
6594fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006595{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6596echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6597GXX=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00006598ac_test_CXXFLAGS=${CXXFLAGS+set}
6599ac_save_CXXFLAGS=$CXXFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006600{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6601echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6602if test "${ac_cv_prog_cxx_g+set}" = set; then
6603 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006604else
6605 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6606 ac_cxx_werror_flag=yes
6607 ac_cv_prog_cxx_g=no
6608 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006609 cat >conftest.$ac_ext <<_ACEOF
6610/* confdefs.h. */
6611_ACEOF
6612cat confdefs.h >>conftest.$ac_ext
6613cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006614/* end confdefs.h. */
6615
6616int
6617main ()
6618{
6619
6620 ;
6621 return 0;
6622}
6623_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006624rm -f conftest.$ac_objext
6625if { (ac_try="$ac_compile"
6626case "(($ac_try" in
6627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6628 *) ac_try_echo=$ac_try;;
6629esac
6630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6631 (eval "$ac_compile") 2>conftest.er1
6632 ac_status=$?
6633 grep -v '^ *+' conftest.er1 >conftest.err
6634 rm -f conftest.er1
6635 cat conftest.err >&5
6636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637 (exit $ac_status); } &&
6638 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6639 { (case "(($ac_try" in
6640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6641 *) ac_try_echo=$ac_try;;
6642esac
6643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6644 (eval "$ac_try") 2>&5
6645 ac_status=$?
6646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647 (exit $ac_status); }; } &&
6648 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006658 ac_cv_prog_cxx_g=yes
6659else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006660 echo "$as_me: failed program was:" >&5
6661sed 's/^/| /' conftest.$ac_ext >&5
6662
6663 CXXFLAGS=""
6664 cat >conftest.$ac_ext <<_ACEOF
6665/* confdefs.h. */
6666_ACEOF
6667cat confdefs.h >>conftest.$ac_ext
6668cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006669/* end confdefs.h. */
6670
6671int
6672main ()
6673{
6674
6675 ;
6676 return 0;
6677}
6678_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006679rm -f conftest.$ac_objext
6680if { (ac_try="$ac_compile"
6681case "(($ac_try" in
6682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6683 *) ac_try_echo=$ac_try;;
6684esac
6685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6686 (eval "$ac_compile") 2>conftest.er1
6687 ac_status=$?
6688 grep -v '^ *+' conftest.er1 >conftest.err
6689 rm -f conftest.er1
6690 cat conftest.err >&5
6691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692 (exit $ac_status); } &&
6693 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6694 { (case "(($ac_try" in
6695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6696 *) ac_try_echo=$ac_try;;
6697esac
6698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6699 (eval "$ac_try") 2>&5
6700 ac_status=$?
6701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702 (exit $ac_status); }; } &&
6703 { ac_try='test -s conftest.$ac_objext'
6704 { (case "(($ac_try" in
6705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6706 *) ac_try_echo=$ac_try;;
6707esac
6708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6709 (eval "$ac_try") 2>&5
6710 ac_status=$?
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); }; }; then
6713 :
Torok Edwin871384f2010-01-26 08:50:50 +00006714else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006715 echo "$as_me: failed program was:" >&5
6716sed 's/^/| /' conftest.$ac_ext >&5
6717
6718 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00006719 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006720 cat >conftest.$ac_ext <<_ACEOF
6721/* confdefs.h. */
6722_ACEOF
6723cat confdefs.h >>conftest.$ac_ext
6724cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006725/* end confdefs.h. */
6726
6727int
6728main ()
6729{
6730
6731 ;
6732 return 0;
6733}
6734_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006735rm -f conftest.$ac_objext
6736if { (ac_try="$ac_compile"
6737case "(($ac_try" in
6738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6739 *) ac_try_echo=$ac_try;;
6740esac
6741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6742 (eval "$ac_compile") 2>conftest.er1
6743 ac_status=$?
6744 grep -v '^ *+' conftest.er1 >conftest.err
6745 rm -f conftest.er1
6746 cat conftest.err >&5
6747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748 (exit $ac_status); } &&
6749 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6750 { (case "(($ac_try" in
6751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6752 *) ac_try_echo=$ac_try;;
6753esac
6754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6755 (eval "$ac_try") 2>&5
6756 ac_status=$?
6757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758 (exit $ac_status); }; } &&
6759 { ac_try='test -s conftest.$ac_objext'
6760 { (case "(($ac_try" in
6761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6762 *) ac_try_echo=$ac_try;;
6763esac
6764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6765 (eval "$ac_try") 2>&5
6766 ac_status=$?
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006769 ac_cv_prog_cxx_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006770else
6771 echo "$as_me: failed program was:" >&5
6772sed 's/^/| /' conftest.$ac_ext >&5
6773
6774
Reid Spencera773bd52006-08-04 18:18:08 +00006775fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006776
Reid Spencera773bd52006-08-04 18:18:08 +00006777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6778fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006779
Reid Spencera773bd52006-08-04 18:18:08 +00006780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6781fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006782
Reid Spencera773bd52006-08-04 18:18:08 +00006783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6784 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6785fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006786{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6787echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006788if test "$ac_test_CXXFLAGS" = set; then
6789 CXXFLAGS=$ac_save_CXXFLAGS
6790elif test $ac_cv_prog_cxx_g = yes; then
6791 if test "$GXX" = yes; then
6792 CXXFLAGS="-g -O2"
6793 else
6794 CXXFLAGS="-g"
6795 fi
6796else
6797 if test "$GXX" = yes; then
6798 CXXFLAGS="-O2"
6799 else
6800 CXXFLAGS=
6801 fi
6802fi
6803ac_ext=c
6804ac_cpp='$CPP $CPPFLAGS'
6805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6807ac_compiler_gnu=$ac_cv_c_compiler_gnu
6808
Reid Spencera773bd52006-08-04 18:18:08 +00006809
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006810{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6811echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6812if test "${lt_cv_path_NM+set}" = set; then
6813 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006814else
6815 if test -n "$NM"; then
6816 # Let the user override the test.
6817 lt_cv_path_NM="$NM"
6818else
6819 lt_nm_to_check="${ac_tool_prefix}nm"
6820 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6821 lt_nm_to_check="$lt_nm_to_check nm"
6822 fi
6823 for lt_tmp_nm in $lt_nm_to_check; do
6824 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6825 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6826 IFS="$lt_save_ifs"
6827 test -z "$ac_dir" && ac_dir=.
6828 tmp_nm="$ac_dir/$lt_tmp_nm"
6829 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6830 # Check to see if the nm accepts a BSD-compat flag.
6831 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6832 # nm: unknown option "B" ignored
6833 # Tru64's nm complains that /dev/null is an invalid object file
6834 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6835 */dev/null* | *'Invalid file or object type'*)
6836 lt_cv_path_NM="$tmp_nm -B"
6837 break
6838 ;;
6839 *)
6840 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6841 */dev/null*)
6842 lt_cv_path_NM="$tmp_nm -p"
6843 break
6844 ;;
6845 *)
6846 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6847 continue # so that we can try to find one that supports BSD flags
6848 ;;
6849 esac
6850 ;;
6851 esac
6852 fi
6853 done
6854 IFS="$lt_save_ifs"
6855 done
6856 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6857fi
6858fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006859{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6860echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006861NM="$lt_cv_path_NM"
6862
6863
6864
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006865{ echo "$as_me:$LINENO: checking for GNU make" >&5
6866echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6867if test "${llvm_cv_gnu_make_command+set}" = set; then
6868 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006869else
6870 llvm_cv_gnu_make_command=''
6871 for a in "$MAKE" make gmake gnumake ; do
6872 if test -z "$a" ; then continue ; fi ;
6873 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6874 then
6875 llvm_cv_gnu_make_command=$a ;
6876 break;
6877 fi
6878 done
6879fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006880{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6881echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006882 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6883 ifGNUmake='' ;
6884 else
6885 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006886 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6887echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00006888 fi
6889
6890
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006891{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6892echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006893LN_S=$as_ln_s
6894if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006895 { echo "$as_me:$LINENO: result: yes" >&5
6896echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006897else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006898 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6899echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006900fi
6901
6902# Extract the first word of "cmp", so it can be a program name with args.
6903set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006904{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6906if test "${ac_cv_path_CMP+set}" = set; then
6907 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006908else
6909 case $CMP in
6910 [\\/]* | ?:[\\/]*)
6911 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6912 ;;
6913 *)
6914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6915for as_dir in $PATH
6916do
6917 IFS=$as_save_IFS
6918 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006919 for ac_exec_ext in '' $ac_executable_extensions; do
6920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006921 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006923 break 2
6924 fi
6925done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006926done
Reid Spencera773bd52006-08-04 18:18:08 +00006927IFS=$as_save_IFS
6928
6929 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6930 ;;
6931esac
6932fi
6933CMP=$ac_cv_path_CMP
6934if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006935 { echo "$as_me:$LINENO: result: $CMP" >&5
6936echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006937else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006938 { echo "$as_me:$LINENO: result: no" >&5
6939echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006940fi
6941
6942
6943# Extract the first word of "cp", so it can be a program name with args.
6944set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006945{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6946echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6947if test "${ac_cv_path_CP+set}" = set; then
6948 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006949else
6950 case $CP in
6951 [\\/]* | ?:[\\/]*)
6952 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6953 ;;
6954 *)
6955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6956for as_dir in $PATH
6957do
6958 IFS=$as_save_IFS
6959 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006960 for ac_exec_ext in '' $ac_executable_extensions; do
6961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006962 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006964 break 2
6965 fi
6966done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006967done
Reid Spencera773bd52006-08-04 18:18:08 +00006968IFS=$as_save_IFS
6969
6970 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6971 ;;
6972esac
6973fi
6974CP=$ac_cv_path_CP
6975if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006976 { echo "$as_me:$LINENO: result: $CP" >&5
6977echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006978else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006979 { echo "$as_me:$LINENO: result: no" >&5
6980echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006981fi
6982
6983
6984# Extract the first word of "date", so it can be a program name with args.
6985set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006986{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6988if test "${ac_cv_path_DATE+set}" = set; then
6989 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006990else
6991 case $DATE in
6992 [\\/]* | ?:[\\/]*)
6993 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6994 ;;
6995 *)
6996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6997for as_dir in $PATH
6998do
6999 IFS=$as_save_IFS
7000 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007001 for ac_exec_ext in '' $ac_executable_extensions; do
7002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007003 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007005 break 2
7006 fi
7007done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007008done
Reid Spencera773bd52006-08-04 18:18:08 +00007009IFS=$as_save_IFS
7010
7011 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
7012 ;;
7013esac
7014fi
7015DATE=$ac_cv_path_DATE
7016if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007017 { echo "$as_me:$LINENO: result: $DATE" >&5
7018echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007019else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007020 { echo "$as_me:$LINENO: result: no" >&5
7021echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007022fi
7023
7024
7025# Extract the first word of "find", so it can be a program name with args.
7026set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007027{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7028echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7029if test "${ac_cv_path_FIND+set}" = set; then
7030 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007031else
7032 case $FIND in
7033 [\\/]* | ?:[\\/]*)
7034 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7035 ;;
7036 *)
7037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7038for as_dir in $PATH
7039do
7040 IFS=$as_save_IFS
7041 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007042 for ac_exec_ext in '' $ac_executable_extensions; do
7043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007044 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007046 break 2
7047 fi
7048done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007049done
Reid Spencera773bd52006-08-04 18:18:08 +00007050IFS=$as_save_IFS
7051
7052 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
7053 ;;
7054esac
7055fi
7056FIND=$ac_cv_path_FIND
7057if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007058 { echo "$as_me:$LINENO: result: $FIND" >&5
7059echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007060else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007061 { echo "$as_me:$LINENO: result: no" >&5
7062echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007063fi
7064
7065
7066# Extract the first word of "grep", so it can be a program name with args.
7067set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007068{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7069echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7070if test "${ac_cv_path_GREP+set}" = set; then
7071 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007072else
7073 case $GREP in
7074 [\\/]* | ?:[\\/]*)
7075 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
7076 ;;
7077 *)
7078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7079for as_dir in $PATH
7080do
7081 IFS=$as_save_IFS
7082 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007083 for ac_exec_ext in '' $ac_executable_extensions; do
7084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007085 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007087 break 2
7088 fi
7089done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007090done
Reid Spencera773bd52006-08-04 18:18:08 +00007091IFS=$as_save_IFS
7092
7093 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
7094 ;;
7095esac
7096fi
7097GREP=$ac_cv_path_GREP
7098if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007099 { echo "$as_me:$LINENO: result: $GREP" >&5
7100echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007101else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007102 { echo "$as_me:$LINENO: result: no" >&5
7103echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007104fi
7105
7106
7107# Extract the first word of "mkdir", so it can be a program name with args.
7108set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007109{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7110echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7111if test "${ac_cv_path_MKDIR+set}" = set; then
7112 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007113else
7114 case $MKDIR in
7115 [\\/]* | ?:[\\/]*)
7116 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7117 ;;
7118 *)
7119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7120for as_dir in $PATH
7121do
7122 IFS=$as_save_IFS
7123 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007124 for ac_exec_ext in '' $ac_executable_extensions; do
7125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007126 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007128 break 2
7129 fi
7130done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007131done
Reid Spencera773bd52006-08-04 18:18:08 +00007132IFS=$as_save_IFS
7133
7134 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
7135 ;;
7136esac
7137fi
7138MKDIR=$ac_cv_path_MKDIR
7139if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007140 { echo "$as_me:$LINENO: result: $MKDIR" >&5
7141echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007142else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007143 { echo "$as_me:$LINENO: result: no" >&5
7144echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007145fi
7146
7147
7148# Extract the first word of "mv", so it can be a program name with args.
7149set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007150{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7151echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7152if test "${ac_cv_path_MV+set}" = set; then
7153 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007154else
7155 case $MV in
7156 [\\/]* | ?:[\\/]*)
7157 ac_cv_path_MV="$MV" # Let the user override the test with a path.
7158 ;;
7159 *)
7160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7161for as_dir in $PATH
7162do
7163 IFS=$as_save_IFS
7164 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007165 for ac_exec_ext in '' $ac_executable_extensions; do
7166 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 +00007167 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007169 break 2
7170 fi
7171done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007172done
Reid Spencera773bd52006-08-04 18:18:08 +00007173IFS=$as_save_IFS
7174
7175 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7176 ;;
7177esac
7178fi
7179MV=$ac_cv_path_MV
7180if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007181 { echo "$as_me:$LINENO: result: $MV" >&5
7182echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007183else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007184 { echo "$as_me:$LINENO: result: no" >&5
7185echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007186fi
7187
7188
7189if test -n "$ac_tool_prefix"; then
7190 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7191set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007192{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7194if test "${ac_cv_prog_RANLIB+set}" = set; then
7195 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007196else
7197 if test -n "$RANLIB"; then
7198 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7199else
7200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7201for as_dir in $PATH
7202do
7203 IFS=$as_save_IFS
7204 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007205 for ac_exec_ext in '' $ac_executable_extensions; do
7206 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 +00007207 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007209 break 2
7210 fi
7211done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007212done
Reid Spencera773bd52006-08-04 18:18:08 +00007213IFS=$as_save_IFS
7214
7215fi
7216fi
7217RANLIB=$ac_cv_prog_RANLIB
7218if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007219 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7220echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007221else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007222 { echo "$as_me:$LINENO: result: no" >&5
7223echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007224fi
7225
7226
7227fi
7228if test -z "$ac_cv_prog_RANLIB"; then
7229 ac_ct_RANLIB=$RANLIB
7230 # Extract the first word of "ranlib", so it can be a program name with args.
7231set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007232{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7233echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7234if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7235 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007236else
7237 if test -n "$ac_ct_RANLIB"; then
7238 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7239else
7240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7241for as_dir in $PATH
7242do
7243 IFS=$as_save_IFS
7244 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007245 for ac_exec_ext in '' $ac_executable_extensions; do
7246 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 +00007247 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007249 break 2
7250 fi
7251done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007252done
Reid Spencera773bd52006-08-04 18:18:08 +00007253IFS=$as_save_IFS
7254
7255fi
7256fi
7257ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7258if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007259 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7260echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007261else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007262 { echo "$as_me:$LINENO: result: no" >&5
7263echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007264fi
7265
7266 if test "x$ac_ct_RANLIB" = x; then
7267 RANLIB=":"
7268 else
7269 case $cross_compiling:$ac_tool_warned in
7270yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007271{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7272whose name does not start with the host triplet. If you think this
7273configuration is useful to you, please write to autoconf@gnu.org." >&5
7274echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7275whose name does not start with the host triplet. If you think this
7276configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00007277ac_tool_warned=yes ;;
7278esac
7279 RANLIB=$ac_ct_RANLIB
7280 fi
7281else
7282 RANLIB="$ac_cv_prog_RANLIB"
7283fi
7284
Torok Edwin871384f2010-01-26 08:50:50 +00007285if test -n "$ac_tool_prefix"; then
7286 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7287set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007288{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7289echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7290if test "${ac_cv_prog_AR+set}" = set; then
7291 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007292else
7293 if test -n "$AR"; then
7294 ac_cv_prog_AR="$AR" # Let the user override the test.
7295else
7296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7297for as_dir in $PATH
7298do
7299 IFS=$as_save_IFS
7300 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007301 for ac_exec_ext in '' $ac_executable_extensions; do
7302 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 +00007303 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007305 break 2
7306 fi
7307done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007308done
Torok Edwin871384f2010-01-26 08:50:50 +00007309IFS=$as_save_IFS
7310
7311fi
7312fi
7313AR=$ac_cv_prog_AR
7314if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007315 { echo "$as_me:$LINENO: result: $AR" >&5
7316echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007317else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007318 { echo "$as_me:$LINENO: result: no" >&5
7319echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007320fi
7321
7322
7323fi
7324if test -z "$ac_cv_prog_AR"; then
7325 ac_ct_AR=$AR
7326 # Extract the first word of "ar", so it can be a program name with args.
7327set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007328{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7329echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7330if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7331 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007332else
7333 if test -n "$ac_ct_AR"; then
7334 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7335else
7336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7337for as_dir in $PATH
7338do
7339 IFS=$as_save_IFS
7340 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007341 for ac_exec_ext in '' $ac_executable_extensions; do
7342 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 +00007343 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007345 break 2
7346 fi
7347done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007348done
Torok Edwin871384f2010-01-26 08:50:50 +00007349IFS=$as_save_IFS
7350
7351fi
7352fi
7353ac_ct_AR=$ac_cv_prog_ac_ct_AR
7354if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007355 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7356echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007357else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007358 { echo "$as_me:$LINENO: result: no" >&5
7359echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007360fi
7361
7362 if test "x$ac_ct_AR" = x; then
7363 AR="false"
7364 else
7365 case $cross_compiling:$ac_tool_warned in
7366yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007367{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7368whose name does not start with the host triplet. If you think this
7369configuration is useful to you, please write to autoconf@gnu.org." >&5
7370echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7371whose name does not start with the host triplet. If you think this
7372configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00007373ac_tool_warned=yes ;;
7374esac
7375 AR=$ac_ct_AR
7376 fi
7377else
7378 AR="$ac_cv_prog_AR"
7379fi
7380
Reid Spencera773bd52006-08-04 18:18:08 +00007381# Extract the first word of "rm", so it can be a program name with args.
7382set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007383{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7385if test "${ac_cv_path_RM+set}" = set; then
7386 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007387else
7388 case $RM in
7389 [\\/]* | ?:[\\/]*)
7390 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7391 ;;
7392 *)
7393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7394for as_dir in $PATH
7395do
7396 IFS=$as_save_IFS
7397 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007398 for ac_exec_ext in '' $ac_executable_extensions; do
7399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007400 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007402 break 2
7403 fi
7404done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007405done
Reid Spencera773bd52006-08-04 18:18:08 +00007406IFS=$as_save_IFS
7407
7408 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7409 ;;
7410esac
7411fi
7412RM=$ac_cv_path_RM
7413if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007414 { echo "$as_me:$LINENO: result: $RM" >&5
7415echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007416else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007417 { echo "$as_me:$LINENO: result: no" >&5
7418echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007419fi
7420
7421
7422# Extract the first word of "sed", so it can be a program name with args.
7423set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007424{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7425echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7426if test "${ac_cv_path_SED+set}" = set; then
7427 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007428else
7429 case $SED in
7430 [\\/]* | ?:[\\/]*)
7431 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7432 ;;
7433 *)
7434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7435for as_dir in $PATH
7436do
7437 IFS=$as_save_IFS
7438 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007439 for ac_exec_ext in '' $ac_executable_extensions; do
7440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007441 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007443 break 2
7444 fi
7445done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007446done
Reid Spencera773bd52006-08-04 18:18:08 +00007447IFS=$as_save_IFS
7448
7449 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7450 ;;
7451esac
7452fi
7453SED=$ac_cv_path_SED
7454if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007455 { echo "$as_me:$LINENO: result: $SED" >&5
7456echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007457else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007458 { echo "$as_me:$LINENO: result: no" >&5
7459echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007460fi
7461
7462
7463# Extract the first word of "tar", so it can be a program name with args.
7464set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007465{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7467if test "${ac_cv_path_TAR+set}" = set; then
7468 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007469else
7470 case $TAR in
7471 [\\/]* | ?:[\\/]*)
7472 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7473 ;;
7474 *)
7475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7476for as_dir in $PATH
7477do
7478 IFS=$as_save_IFS
7479 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007480 for ac_exec_ext in '' $ac_executable_extensions; do
7481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007482 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007484 break 2
7485 fi
7486done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007487done
Reid Spencera773bd52006-08-04 18:18:08 +00007488IFS=$as_save_IFS
7489
7490 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7491 ;;
7492esac
7493fi
7494TAR=$ac_cv_path_TAR
7495if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007496 { echo "$as_me:$LINENO: result: $TAR" >&5
7497echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007498else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007499 { echo "$as_me:$LINENO: result: no" >&5
7500echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007501fi
7502
7503
7504# Extract the first word of "pwd", so it can be a program name with args.
7505set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007506{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7508if test "${ac_cv_path_BINPWD+set}" = set; then
7509 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007510else
7511 case $BINPWD in
7512 [\\/]* | ?:[\\/]*)
7513 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7514 ;;
7515 *)
7516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7517for as_dir in $PATH
7518do
7519 IFS=$as_save_IFS
7520 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007521 for ac_exec_ext in '' $ac_executable_extensions; do
7522 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 +00007523 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007525 break 2
7526 fi
7527done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007528done
Reid Spencera773bd52006-08-04 18:18:08 +00007529IFS=$as_save_IFS
7530
7531 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7532 ;;
7533esac
7534fi
7535BINPWD=$ac_cv_path_BINPWD
7536if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007537 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7538echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007539else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007540 { echo "$as_me:$LINENO: result: no" >&5
7541echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007542fi
7543
7544
7545
7546# Extract the first word of "Graphviz", so it can be a program name with args.
7547set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007548{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7549echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7550if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7551 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007552else
7553 case $GRAPHVIZ in
7554 [\\/]* | ?:[\\/]*)
7555 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7556 ;;
7557 *)
7558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7559for as_dir in $PATH
7560do
7561 IFS=$as_save_IFS
7562 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007563 for ac_exec_ext in '' $ac_executable_extensions; do
7564 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 +00007565 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007567 break 2
7568 fi
7569done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007570done
Reid Spencera773bd52006-08-04 18:18:08 +00007571IFS=$as_save_IFS
7572
7573 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7574 ;;
7575esac
7576fi
7577GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7578if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007579 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7580echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007581else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007582 { echo "$as_me:$LINENO: result: no" >&5
7583echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007584fi
7585
7586
7587if test "$GRAPHVIZ" != "echo Graphviz" ; then
7588
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007589cat >>confdefs.h <<\_ACEOF
7590#define HAVE_GRAPHVIZ 1
7591_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007592
Jeff Cohen28783c32007-01-12 18:22:38 +00007593 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007594 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7595 fi
7596
7597cat >>confdefs.h <<_ACEOF
7598#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7599_ACEOF
7600
7601fi
7602# Extract the first word of "dot", so it can be a program name with args.
7603set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007604{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7606if test "${ac_cv_path_DOT+set}" = set; then
7607 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007608else
7609 case $DOT in
7610 [\\/]* | ?:[\\/]*)
7611 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7612 ;;
7613 *)
7614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7615for as_dir in $PATH
7616do
7617 IFS=$as_save_IFS
7618 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007619 for ac_exec_ext in '' $ac_executable_extensions; do
7620 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 +00007621 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007623 break 2
7624 fi
7625done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007626done
Reid Spencera773bd52006-08-04 18:18:08 +00007627IFS=$as_save_IFS
7628
7629 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7630 ;;
7631esac
7632fi
7633DOT=$ac_cv_path_DOT
7634if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007635 { echo "$as_me:$LINENO: result: $DOT" >&5
7636echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007637else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007638 { echo "$as_me:$LINENO: result: no" >&5
7639echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007640fi
7641
7642
7643if test "$DOT" != "echo dot" ; then
7644
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007645cat >>confdefs.h <<\_ACEOF
7646#define HAVE_DOT 1
7647_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007648
Jeff Cohen28783c32007-01-12 18:22:38 +00007649 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007650 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7651 fi
7652
7653cat >>confdefs.h <<_ACEOF
7654#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7655_ACEOF
7656
7657fi
David Greenef0b9eff2009-07-09 17:16:26 +00007658# Extract the first word of "fdp", so it can be a program name with args.
7659set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007660{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7662if test "${ac_cv_path_FDP+set}" = set; then
7663 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007664else
7665 case $FDP in
7666 [\\/]* | ?:[\\/]*)
7667 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7668 ;;
7669 *)
7670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7671for as_dir in $PATH
7672do
7673 IFS=$as_save_IFS
7674 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007675 for ac_exec_ext in '' $ac_executable_extensions; do
7676 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 +00007677 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007679 break 2
7680 fi
7681done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007682done
David Greenef0b9eff2009-07-09 17:16:26 +00007683IFS=$as_save_IFS
7684
7685 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7686 ;;
7687esac
7688fi
7689FDP=$ac_cv_path_FDP
7690if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007691 { echo "$as_me:$LINENO: result: $FDP" >&5
7692echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007693else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007694 { echo "$as_me:$LINENO: result: no" >&5
7695echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007696fi
7697
7698
7699if test "$FDP" != "echo fdp" ; then
7700
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007701cat >>confdefs.h <<\_ACEOF
7702#define HAVE_FDP 1
7703_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007704
7705 if test "$llvm_cv_os_type" = "MingW" ; then
7706 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7707 fi
7708
7709cat >>confdefs.h <<_ACEOF
7710#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7711_ACEOF
7712
7713fi
7714# Extract the first word of "neato", so it can be a program name with args.
7715set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007716{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7717echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7718if test "${ac_cv_path_NEATO+set}" = set; then
7719 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007720else
7721 case $NEATO in
7722 [\\/]* | ?:[\\/]*)
7723 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7724 ;;
7725 *)
7726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7727for as_dir in $PATH
7728do
7729 IFS=$as_save_IFS
7730 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007731 for ac_exec_ext in '' $ac_executable_extensions; do
7732 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 +00007733 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007735 break 2
7736 fi
7737done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007738done
David Greenef0b9eff2009-07-09 17:16:26 +00007739IFS=$as_save_IFS
7740
7741 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7742 ;;
7743esac
7744fi
7745NEATO=$ac_cv_path_NEATO
7746if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007747 { echo "$as_me:$LINENO: result: $NEATO" >&5
7748echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007749else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007750 { echo "$as_me:$LINENO: result: no" >&5
7751echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007752fi
7753
7754
7755if test "$NEATO" != "echo neato" ; then
7756
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007757cat >>confdefs.h <<\_ACEOF
7758#define HAVE_NEATO 1
7759_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007760
7761 if test "$llvm_cv_os_type" = "MingW" ; then
7762 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7763 fi
7764
7765cat >>confdefs.h <<_ACEOF
7766#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7767_ACEOF
7768
7769fi
7770# Extract the first word of "twopi", so it can be a program name with args.
7771set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007772{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7774if test "${ac_cv_path_TWOPI+set}" = set; then
7775 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007776else
7777 case $TWOPI in
7778 [\\/]* | ?:[\\/]*)
7779 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7780 ;;
7781 *)
7782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7783for as_dir in $PATH
7784do
7785 IFS=$as_save_IFS
7786 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007787 for ac_exec_ext in '' $ac_executable_extensions; do
7788 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 +00007789 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007791 break 2
7792 fi
7793done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007794done
David Greenef0b9eff2009-07-09 17:16:26 +00007795IFS=$as_save_IFS
7796
7797 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7798 ;;
7799esac
7800fi
7801TWOPI=$ac_cv_path_TWOPI
7802if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007803 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7804echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007805else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007806 { echo "$as_me:$LINENO: result: no" >&5
7807echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007808fi
7809
7810
7811if test "$TWOPI" != "echo twopi" ; then
7812
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007813cat >>confdefs.h <<\_ACEOF
7814#define HAVE_TWOPI 1
7815_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007816
7817 if test "$llvm_cv_os_type" = "MingW" ; then
7818 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7819 fi
7820
7821cat >>confdefs.h <<_ACEOF
7822#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7823_ACEOF
7824
7825fi
7826# Extract the first word of "circo", so it can be a program name with args.
7827set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007828{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7830if test "${ac_cv_path_CIRCO+set}" = set; then
7831 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007832else
7833 case $CIRCO in
7834 [\\/]* | ?:[\\/]*)
7835 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7836 ;;
7837 *)
7838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7839for as_dir in $PATH
7840do
7841 IFS=$as_save_IFS
7842 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007843 for ac_exec_ext in '' $ac_executable_extensions; do
7844 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 +00007845 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007847 break 2
7848 fi
7849done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007850done
David Greenef0b9eff2009-07-09 17:16:26 +00007851IFS=$as_save_IFS
7852
7853 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7854 ;;
7855esac
7856fi
7857CIRCO=$ac_cv_path_CIRCO
7858if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007859 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7860echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007861else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007862 { echo "$as_me:$LINENO: result: no" >&5
7863echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007864fi
7865
7866
7867if test "$CIRCO" != "echo circo" ; then
7868
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007869cat >>confdefs.h <<\_ACEOF
7870#define HAVE_CIRCO 1
7871_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007872
7873 if test "$llvm_cv_os_type" = "MingW" ; then
7874 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7875 fi
7876
7877cat >>confdefs.h <<_ACEOF
7878#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7879_ACEOF
7880
7881fi
Reid Spencera773bd52006-08-04 18:18:08 +00007882for ac_prog in gv gsview32
7883do
7884 # Extract the first word of "$ac_prog", so it can be a program name with args.
7885set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007886{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7887echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7888if test "${ac_cv_path_GV+set}" = set; then
7889 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007890else
7891 case $GV in
7892 [\\/]* | ?:[\\/]*)
7893 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7894 ;;
7895 *)
7896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7897for as_dir in $PATH
7898do
7899 IFS=$as_save_IFS
7900 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007901 for ac_exec_ext in '' $ac_executable_extensions; do
7902 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 +00007903 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007905 break 2
7906 fi
7907done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007908done
Reid Spencera773bd52006-08-04 18:18:08 +00007909IFS=$as_save_IFS
7910
7911 ;;
7912esac
7913fi
7914GV=$ac_cv_path_GV
7915if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007916 { echo "$as_me:$LINENO: result: $GV" >&5
7917echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007918else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007919 { echo "$as_me:$LINENO: result: no" >&5
7920echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007921fi
7922
7923
7924 test -n "$GV" && break
7925done
7926test -n "$GV" || GV="echo gv"
7927
7928if test "$GV" != "echo gv" ; then
7929
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007930cat >>confdefs.h <<\_ACEOF
7931#define HAVE_GV 1
7932_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007933
Jeff Cohen28783c32007-01-12 18:22:38 +00007934 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007935 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7936 fi
7937
7938cat >>confdefs.h <<_ACEOF
7939#define LLVM_PATH_GV "$GV${EXEEXT}"
7940_ACEOF
7941
7942fi
7943# Extract the first word of "dotty", so it can be a program name with args.
7944set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007945{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7946echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7947if test "${ac_cv_path_DOTTY+set}" = set; then
7948 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007949else
7950 case $DOTTY in
7951 [\\/]* | ?:[\\/]*)
7952 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7953 ;;
7954 *)
7955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7956for as_dir in $PATH
7957do
7958 IFS=$as_save_IFS
7959 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007960 for ac_exec_ext in '' $ac_executable_extensions; do
7961 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 +00007962 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007964 break 2
7965 fi
7966done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007967done
Reid Spencera773bd52006-08-04 18:18:08 +00007968IFS=$as_save_IFS
7969
7970 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7971 ;;
7972esac
7973fi
7974DOTTY=$ac_cv_path_DOTTY
7975if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007976 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7977echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007978else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007979 { echo "$as_me:$LINENO: result: no" >&5
7980echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007981fi
7982
7983
7984if test "$DOTTY" != "echo dotty" ; then
7985
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007986cat >>confdefs.h <<\_ACEOF
7987#define HAVE_DOTTY 1
7988_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007989
Jeff Cohen28783c32007-01-12 18:22:38 +00007990 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007991 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7992 fi
7993
7994cat >>confdefs.h <<_ACEOF
7995#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7996_ACEOF
7997
7998fi
Dan Gohman48fd5a72010-09-27 16:28:34 +00007999# Extract the first word of "xdot.py", so it can be a program name with args.
8000set dummy xdot.py; ac_word=$2
8001{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8002echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8003if test "${ac_cv_path_XDOT_PY+set}" = set; then
8004 echo $ECHO_N "(cached) $ECHO_C" >&6
8005else
8006 case $XDOT_PY in
8007 [\\/]* | ?:[\\/]*)
8008 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
8009 ;;
8010 *)
8011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8012for as_dir in $PATH
8013do
8014 IFS=$as_save_IFS
8015 test -z "$as_dir" && as_dir=.
8016 for ac_exec_ext in '' $ac_executable_extensions; do
8017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8018 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
8019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8020 break 2
8021 fi
8022done
8023done
8024IFS=$as_save_IFS
8025
8026 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
8027 ;;
8028esac
8029fi
8030XDOT_PY=$ac_cv_path_XDOT_PY
8031if test -n "$XDOT_PY"; then
8032 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
8033echo "${ECHO_T}$XDOT_PY" >&6; }
8034else
8035 { echo "$as_me:$LINENO: result: no" >&5
8036echo "${ECHO_T}no" >&6; }
8037fi
8038
8039
8040if test "$XDOT_PY" != "echo xdot.py" ; then
8041
8042cat >>confdefs.h <<\_ACEOF
8043#define HAVE_XDOT_PY 1
8044_ACEOF
8045
8046 if test "$llvm_cv_os_type" = "MingW" ; then
8047 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
8048 fi
8049
8050cat >>confdefs.h <<_ACEOF
8051#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
8052_ACEOF
8053
8054fi
Reid Spencera773bd52006-08-04 18:18:08 +00008055
8056
8057# Extract the first word of "perl", so it can be a program name with args.
8058set dummy perl; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008059{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8060echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8061if test "${ac_cv_path_PERL+set}" = set; then
8062 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008063else
8064 case $PERL in
8065 [\\/]* | ?:[\\/]*)
8066 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
8067 ;;
8068 *)
8069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8070for as_dir in $PATH
8071do
8072 IFS=$as_save_IFS
8073 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008074 for ac_exec_ext in '' $ac_executable_extensions; do
8075 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 +00008076 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008078 break 2
8079 fi
8080done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008081done
Reid Spencera773bd52006-08-04 18:18:08 +00008082IFS=$as_save_IFS
8083
8084 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
8085 ;;
8086esac
8087fi
8088PERL=$ac_cv_path_PERL
8089if test -n "$PERL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008090 { echo "$as_me:$LINENO: result: $PERL" >&5
8091echo "${ECHO_T}$PERL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008092else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008093 { echo "$as_me:$LINENO: result: no" >&5
8094echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008095fi
8096
8097
8098if test "$PERL" != "none"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008099 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
8100echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008101 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008102 { echo "$as_me:$LINENO: result: yes" >&5
8103echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008104 else
8105 PERL=none
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008106 { echo "$as_me:$LINENO: result: not found" >&5
8107echo "${ECHO_T}not found" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008108 fi
8109fi
8110
8111
8112if test x"$PERL" = xnone; then
8113 HAVE_PERL=0
8114
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008115 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
8116echo "$as_me: error: perl is required but was not found, please install it" >&2;}
8117 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00008118else
8119 HAVE_PERL=1
8120
8121fi
8122
8123# Find a good install program. We prefer a C program (faster),
8124# so one script is as good as another. But avoid the broken or
8125# incompatible versions:
8126# SysV /etc/install, /usr/sbin/install
8127# SunOS /usr/etc/install
8128# IRIX /sbin/install
8129# AIX /bin/install
8130# AmigaOS /C/install, which installs bootblocks on floppy discs
8131# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8132# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8133# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8134# OS/2's system install, which has a completely different semantic
8135# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008136{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8137echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008138if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008139if test "${ac_cv_path_install+set}" = set; then
8140 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008141else
8142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8143for as_dir in $PATH
8144do
8145 IFS=$as_save_IFS
8146 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008147 # Account for people who put trailing slashes in PATH elements.
8148case $as_dir/ in
8149 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00008150 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008151 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00008152 /usr/ucb/* ) ;;
8153 *)
8154 # OSF1 and SCO ODT 3.0 have their own names for install.
8155 # Don't use installbsd from OSF since it installs stuff as root
8156 # by default.
8157 for ac_prog in ginstall scoinst install; do
8158 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008159 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 +00008160 if test $ac_prog = install &&
8161 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8162 # AIX install. It has an incompatible calling convention.
8163 :
8164 elif test $ac_prog = install &&
8165 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8166 # program-specific install script used by HP pwplus--don't use.
8167 :
8168 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008169 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8170 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00008171 fi
8172 fi
8173 done
8174 done
8175 ;;
8176esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008177done
Reid Spencera773bd52006-08-04 18:18:08 +00008178IFS=$as_save_IFS
8179
8180
8181fi
8182 if test "${ac_cv_path_install+set}" = set; then
8183 INSTALL=$ac_cv_path_install
8184 else
8185 # As a last resort, use the slow shell script. Don't cache a
8186 # value for INSTALL within a source directory, because that will
8187 # break other packages using the cache if that directory is
8188 # removed, or if the value is a relative name.
8189 INSTALL=$ac_install_sh
8190 fi
8191fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008192{ echo "$as_me:$LINENO: result: $INSTALL" >&5
8193echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008194
8195# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8196# It thinks the first close brace ends the variable substitution.
8197test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8198
8199test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8200
8201test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8202
Eric Christopher2a1a44f2010-07-22 21:13:48 +00008203case "$INSTALL" in
8204 [\\/$]* | ?:[\\/]* ) ;;
8205 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
8206esac
Reid Spencera773bd52006-08-04 18:18:08 +00008207
8208# Extract the first word of "bzip2", so it can be a program name with args.
8209set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008210{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8212if test "${ac_cv_path_BZIP2+set}" = set; then
8213 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008214else
8215 case $BZIP2 in
8216 [\\/]* | ?:[\\/]*)
8217 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8218 ;;
8219 *)
8220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8221for as_dir in $PATH
8222do
8223 IFS=$as_save_IFS
8224 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008225 for ac_exec_ext in '' $ac_executable_extensions; do
8226 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 +00008227 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008229 break 2
8230 fi
8231done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008232done
Reid Spencera773bd52006-08-04 18:18:08 +00008233IFS=$as_save_IFS
8234
Reid Spencera773bd52006-08-04 18:18:08 +00008235 ;;
8236esac
8237fi
8238BZIP2=$ac_cv_path_BZIP2
8239if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008240 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8241echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008242else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008243 { echo "$as_me:$LINENO: result: no" >&5
8244echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008245fi
8246
8247
mike-m68cb3192010-05-06 23:45:43 +00008248# Extract the first word of "cat", so it can be a program name with args.
8249set dummy cat; ac_word=$2
8250{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8251echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8252if test "${ac_cv_path_CAT+set}" = set; then
8253 echo $ECHO_N "(cached) $ECHO_C" >&6
8254else
8255 case $CAT in
8256 [\\/]* | ?:[\\/]*)
8257 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8258 ;;
8259 *)
8260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8261for as_dir in $PATH
8262do
8263 IFS=$as_save_IFS
8264 test -z "$as_dir" && as_dir=.
8265 for ac_exec_ext in '' $ac_executable_extensions; do
8266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8267 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8269 break 2
8270 fi
8271done
8272done
8273IFS=$as_save_IFS
8274
8275 ;;
8276esac
8277fi
8278CAT=$ac_cv_path_CAT
8279if test -n "$CAT"; then
8280 { echo "$as_me:$LINENO: result: $CAT" >&5
8281echo "${ECHO_T}$CAT" >&6; }
8282else
8283 { echo "$as_me:$LINENO: result: no" >&5
8284echo "${ECHO_T}no" >&6; }
8285fi
8286
8287
Reid Spencera773bd52006-08-04 18:18:08 +00008288# Extract the first word of "doxygen", so it can be a program name with args.
8289set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008290{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8291echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8292if test "${ac_cv_path_DOXYGEN+set}" = set; then
8293 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008294else
8295 case $DOXYGEN in
8296 [\\/]* | ?:[\\/]*)
8297 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8298 ;;
8299 *)
8300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8301for as_dir in $PATH
8302do
8303 IFS=$as_save_IFS
8304 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008305 for ac_exec_ext in '' $ac_executable_extensions; do
8306 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 +00008307 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008309 break 2
8310 fi
8311done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008312done
Reid Spencera773bd52006-08-04 18:18:08 +00008313IFS=$as_save_IFS
8314
Reid Spencera773bd52006-08-04 18:18:08 +00008315 ;;
8316esac
8317fi
8318DOXYGEN=$ac_cv_path_DOXYGEN
8319if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008320 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8321echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008322else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008323 { echo "$as_me:$LINENO: result: no" >&5
8324echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008325fi
8326
8327
Reid Spencera773bd52006-08-04 18:18:08 +00008328# Extract the first word of "groff", so it can be a program name with args.
8329set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008330{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8331echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8332if test "${ac_cv_path_GROFF+set}" = set; then
8333 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008334else
8335 case $GROFF in
8336 [\\/]* | ?:[\\/]*)
8337 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8338 ;;
8339 *)
8340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8341for as_dir in $PATH
8342do
8343 IFS=$as_save_IFS
8344 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008345 for ac_exec_ext in '' $ac_executable_extensions; do
8346 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 +00008347 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008349 break 2
8350 fi
8351done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008352done
Reid Spencera773bd52006-08-04 18:18:08 +00008353IFS=$as_save_IFS
8354
Reid Spencera773bd52006-08-04 18:18:08 +00008355 ;;
8356esac
8357fi
8358GROFF=$ac_cv_path_GROFF
8359if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008360 { echo "$as_me:$LINENO: result: $GROFF" >&5
8361echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008362else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008363 { echo "$as_me:$LINENO: result: no" >&5
8364echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008365fi
8366
8367
8368# Extract the first word of "gzip", so it can be a program name with args.
8369set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008370{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8371echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher031d3072010-12-10 01:31:51 +00008372if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008373 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008374else
Eric Christopher031d3072010-12-10 01:31:51 +00008375 case $GZIPBIN in
Reid Spencera773bd52006-08-04 18:18:08 +00008376 [\\/]* | ?:[\\/]*)
Eric Christopher031d3072010-12-10 01:31:51 +00008377 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencera773bd52006-08-04 18:18:08 +00008378 ;;
8379 *)
8380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8381for as_dir in $PATH
8382do
8383 IFS=$as_save_IFS
8384 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008385 for ac_exec_ext in '' $ac_executable_extensions; do
8386 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 +00008387 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008389 break 2
8390 fi
8391done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008392done
Reid Spencera773bd52006-08-04 18:18:08 +00008393IFS=$as_save_IFS
8394
Reid Spencera773bd52006-08-04 18:18:08 +00008395 ;;
8396esac
8397fi
Eric Christopher031d3072010-12-10 01:31:51 +00008398GZIPBIN=$ac_cv_path_GZIPBIN
8399if test -n "$GZIPBIN"; then
8400 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
8401echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008402else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008403 { echo "$as_me:$LINENO: result: no" >&5
8404echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008405fi
8406
8407
8408# Extract the first word of "pod2html", so it can be a program name with args.
8409set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008410{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8411echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8412if test "${ac_cv_path_POD2HTML+set}" = set; then
8413 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008414else
8415 case $POD2HTML in
8416 [\\/]* | ?:[\\/]*)
8417 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8418 ;;
8419 *)
8420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8421for as_dir in $PATH
8422do
8423 IFS=$as_save_IFS
8424 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008425 for ac_exec_ext in '' $ac_executable_extensions; do
8426 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 +00008427 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008429 break 2
8430 fi
8431done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008432done
Reid Spencera773bd52006-08-04 18:18:08 +00008433IFS=$as_save_IFS
8434
Reid Spencera773bd52006-08-04 18:18:08 +00008435 ;;
8436esac
8437fi
8438POD2HTML=$ac_cv_path_POD2HTML
8439if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008440 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8441echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008442else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008443 { echo "$as_me:$LINENO: result: no" >&5
8444echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008445fi
8446
8447
8448# Extract the first word of "pod2man", so it can be a program name with args.
8449set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008450{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8451echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8452if test "${ac_cv_path_POD2MAN+set}" = set; then
8453 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008454else
8455 case $POD2MAN in
8456 [\\/]* | ?:[\\/]*)
8457 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8458 ;;
8459 *)
8460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8461for as_dir in $PATH
8462do
8463 IFS=$as_save_IFS
8464 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008465 for ac_exec_ext in '' $ac_executable_extensions; do
8466 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 +00008467 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008469 break 2
8470 fi
8471done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008472done
Reid Spencera773bd52006-08-04 18:18:08 +00008473IFS=$as_save_IFS
8474
Reid Spencera773bd52006-08-04 18:18:08 +00008475 ;;
8476esac
8477fi
8478POD2MAN=$ac_cv_path_POD2MAN
8479if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008480 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8481echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008482else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008483 { echo "$as_me:$LINENO: result: no" >&5
8484echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008485fi
8486
8487
mike-m68cb3192010-05-06 23:45:43 +00008488# Extract the first word of "pdfroff", so it can be a program name with args.
8489set dummy pdfroff; ac_word=$2
8490{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8491echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8492if test "${ac_cv_path_PDFROFF+set}" = set; then
8493 echo $ECHO_N "(cached) $ECHO_C" >&6
8494else
8495 case $PDFROFF in
8496 [\\/]* | ?:[\\/]*)
8497 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8498 ;;
8499 *)
8500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8501for as_dir in $PATH
8502do
8503 IFS=$as_save_IFS
8504 test -z "$as_dir" && as_dir=.
8505 for ac_exec_ext in '' $ac_executable_extensions; do
8506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8507 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8509 break 2
8510 fi
8511done
8512done
8513IFS=$as_save_IFS
8514
8515 ;;
8516esac
8517fi
8518PDFROFF=$ac_cv_path_PDFROFF
8519if test -n "$PDFROFF"; then
8520 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8521echo "${ECHO_T}$PDFROFF" >&6; }
8522else
8523 { echo "$as_me:$LINENO: result: no" >&5
8524echo "${ECHO_T}no" >&6; }
8525fi
8526
8527
Reid Spencera773bd52006-08-04 18:18:08 +00008528# Extract the first word of "runtest", so it can be a program name with args.
8529set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008530{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8531echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8532if test "${ac_cv_path_RUNTEST+set}" = set; then
8533 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008534else
8535 case $RUNTEST in
8536 [\\/]* | ?:[\\/]*)
8537 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8538 ;;
8539 *)
8540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8541for as_dir in $PATH
8542do
8543 IFS=$as_save_IFS
8544 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008545 for ac_exec_ext in '' $ac_executable_extensions; do
8546 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 +00008547 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008549 break 2
8550 fi
8551done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008552done
Reid Spencera773bd52006-08-04 18:18:08 +00008553IFS=$as_save_IFS
8554
Reid Spencera773bd52006-08-04 18:18:08 +00008555 ;;
8556esac
8557fi
8558RUNTEST=$ac_cv_path_RUNTEST
8559if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008560 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8561echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008562else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008563 { echo "$as_me:$LINENO: result: no" >&5
8564echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008565fi
8566
8567
8568
8569no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008570{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8571echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008572
8573# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008574if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008575 withval=$with_tclinclude; with_tclinclude=${withval}
8576else
8577 with_tclinclude=''
8578fi
8579
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008580if test "${ac_cv_path_tclsh+set}" = set; then
8581 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008582else
8583
8584if test x"${with_tclinclude}" != x ; then
8585 if test -f ${with_tclinclude}/tclsh ; then
8586 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8587 elif test -f ${with_tclinclude}/src/tclsh ; then
8588 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8589 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008590 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8591echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8592 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00008593 fi
8594fi
Torok Edwin871384f2010-01-26 08:50:50 +00008595fi
8596
Reid Spencera773bd52006-08-04 18:18:08 +00008597
8598if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008599 { echo "$as_me:$LINENO: result: none" >&5
8600echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008601 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
8602do
8603 # Extract the first word of "$ac_prog", so it can be a program name with args.
8604set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008605{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8606echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8607if test "${ac_cv_path_TCLSH+set}" = set; then
8608 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008609else
8610 case $TCLSH in
8611 [\\/]* | ?:[\\/]*)
8612 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8613 ;;
8614 *)
8615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8616for as_dir in $PATH
8617do
8618 IFS=$as_save_IFS
8619 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008620 for ac_exec_ext in '' $ac_executable_extensions; do
8621 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 +00008622 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008624 break 2
8625 fi
8626done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008627done
Reid Spencera773bd52006-08-04 18:18:08 +00008628IFS=$as_save_IFS
8629
8630 ;;
8631esac
8632fi
8633TCLSH=$ac_cv_path_TCLSH
8634if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008635 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8636echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008637else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008638 { echo "$as_me:$LINENO: result: no" >&5
8639echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008640fi
8641
8642
8643 test -n "$TCLSH" && break
8644done
8645
8646 if test x"${TCLSH}" = x ; then
8647 ac_cv_path_tclsh='';
8648 else
8649 ac_cv_path_tclsh="${TCLSH}";
8650 fi
8651else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008652 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8653echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008654 TCLSH="${ac_cv_path_tclsh}"
8655
8656fi
8657
Reid Spencera773bd52006-08-04 18:18:08 +00008658# Extract the first word of "zip", so it can be a program name with args.
8659set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008660{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8662if test "${ac_cv_path_ZIP+set}" = set; then
8663 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008664else
8665 case $ZIP in
8666 [\\/]* | ?:[\\/]*)
8667 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8668 ;;
8669 *)
8670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8671for as_dir in $PATH
8672do
8673 IFS=$as_save_IFS
8674 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008675 for ac_exec_ext in '' $ac_executable_extensions; do
8676 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 +00008677 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008679 break 2
8680 fi
8681done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008682done
Reid Spencera773bd52006-08-04 18:18:08 +00008683IFS=$as_save_IFS
8684
Reid Spencera773bd52006-08-04 18:18:08 +00008685 ;;
8686esac
8687fi
8688ZIP=$ac_cv_path_ZIP
8689if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008690 { echo "$as_me:$LINENO: result: $ZIP" >&5
8691echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008692else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008693 { echo "$as_me:$LINENO: result: no" >&5
8694echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008695fi
8696
8697
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008698for ac_prog in ocamlc
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_OCAMLC+set}" = set; then
8705 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008706else
8707 case $OCAMLC in
8708 [\\/]* | ?:[\\/]*)
8709 ac_cv_path_OCAMLC="$OCAMLC" # 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_OCAMLC="$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
8730OCAMLC=$ac_cv_path_OCAMLC
8731if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008732 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8733echo "${ECHO_T}$OCAMLC" >&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 "$OCAMLC" && break
8741done
8742
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008743for ac_prog in ocamlopt
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_OCAMLOPT+set}" = set; then
8750 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008751else
8752 case $OCAMLOPT in
8753 [\\/]* | ?:[\\/]*)
8754 ac_cv_path_OCAMLOPT="$OCAMLOPT" # 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 Henriksen54c7e122007-09-18 12:27:13 +00008764 ac_cv_path_OCAMLOPT="$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 Henriksen54c7e122007-09-18 12:27:13 +00008766 break 2
8767 fi
8768done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008769done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008770IFS=$as_save_IFS
8771
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008772 ;;
8773esac
8774fi
8775OCAMLOPT=$ac_cv_path_OCAMLOPT
8776if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008777 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8778echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008779else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008780 { echo "$as_me:$LINENO: result: no" >&5
8781echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008782fi
8783
8784
Gordon Henriksene7072162008-03-07 18:20:01 +00008785 test -n "$OCAMLOPT" && break
8786done
8787
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008788for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +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_OCAMLDEP+set}" = set; then
8795 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008796else
8797 case $OCAMLDEP in
8798 [\\/]* | ?:[\\/]*)
8799 ac_cv_path_OCAMLDEP="$OCAMLDEP" # 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 Henriksenc20f5b02007-09-20 16:48:18 +00008809 ac_cv_path_OCAMLDEP="$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 Henriksenc20f5b02007-09-20 16:48:18 +00008811 break 2
8812 fi
8813done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008814done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008815IFS=$as_save_IFS
8816
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008817 ;;
8818esac
8819fi
8820OCAMLDEP=$ac_cv_path_OCAMLDEP
8821if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008822 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8823echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008824else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008825 { echo "$as_me:$LINENO: result: no" >&5
8826echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008827fi
8828
8829
Gordon Henriksene7072162008-03-07 18:20:01 +00008830 test -n "$OCAMLDEP" && break
8831done
8832
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008833for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008834do
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_OCAMLDOC+set}" = set; then
8840 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008841else
8842 case $OCAMLDOC in
8843 [\\/]* | ?:[\\/]*)
8844 ac_cv_path_OCAMLDOC="$OCAMLDOC" # 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
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008854 ac_cv_path_OCAMLDOC="$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
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008856 break 2
8857 fi
8858done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008859done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008860IFS=$as_save_IFS
8861
8862 ;;
8863esac
8864fi
8865OCAMLDOC=$ac_cv_path_OCAMLDOC
8866if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008867 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8868echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008869else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008870 { echo "$as_me:$LINENO: result: no" >&5
8871echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008872fi
8873
8874
8875 test -n "$OCAMLDOC" && break
8876done
8877
Torok Edwincc499a42008-10-22 09:56:27 +00008878for ac_prog in gas as
8879do
8880 # Extract the first word of "$ac_prog", so it can be a program name with args.
8881set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008882{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8883echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8884if test "${ac_cv_path_GAS+set}" = set; then
8885 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00008886else
8887 case $GAS in
8888 [\\/]* | ?:[\\/]*)
8889 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8890 ;;
8891 *)
8892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8893for as_dir in $PATH
8894do
8895 IFS=$as_save_IFS
8896 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008897 for ac_exec_ext in '' $ac_executable_extensions; do
8898 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 +00008899 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00008901 break 2
8902 fi
8903done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008904done
Torok Edwincc499a42008-10-22 09:56:27 +00008905IFS=$as_save_IFS
8906
8907 ;;
8908esac
8909fi
8910GAS=$ac_cv_path_GAS
8911if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008912 { echo "$as_me:$LINENO: result: $GAS" >&5
8913echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008914else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008915 { echo "$as_me:$LINENO: result: no" >&5
8916echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008917fi
8918
8919
8920 test -n "$GAS" && break
8921done
8922
Reid Spencera773bd52006-08-04 18:18:08 +00008923
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00008924{ echo "$as_me:$LINENO: checking for linker version" >&5
8925echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8926if test "${llvm_cv_link_version+set}" = set; then
8927 echo $ECHO_N "(cached) $ECHO_C" >&6
8928else
8929
8930 version_string="$(ld -v 2>&1 | head -1)"
8931
8932 # Check for ld64.
8933 if (echo "$version_string" | grep -q "ld64"); then
8934 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8935 else
8936 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8937 fi
8938
8939fi
8940{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8941echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8942
8943cat >>confdefs.h <<_ACEOF
8944#define HOST_LINK_VERSION "$llvm_cv_link_version"
8945_ACEOF
8946
8947
8948
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008949{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8950echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8951if test "${llvm_cv_link_use_r+set}" = set; then
8952 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008953else
8954 ac_ext=c
8955ac_cpp='$CPP $CPPFLAGS'
8956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8958ac_compiler_gnu=$ac_cv_c_compiler_gnu
8959
8960 oldcflags="$CFLAGS"
8961 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008962 cat >conftest.$ac_ext <<_ACEOF
8963/* confdefs.h. */
8964_ACEOF
8965cat confdefs.h >>conftest.$ac_ext
8966cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008967/* end confdefs.h. */
8968
8969int
8970main ()
8971{
Dan Gohman39ed6782010-04-25 00:12:20 +00008972
Reid Spencera773bd52006-08-04 18:18:08 +00008973 ;
8974 return 0;
8975}
8976_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008977rm -f conftest.$ac_objext conftest$ac_exeext
8978if { (ac_try="$ac_link"
8979case "(($ac_try" in
8980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8981 *) ac_try_echo=$ac_try;;
8982esac
8983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8984 (eval "$ac_link") 2>conftest.er1
8985 ac_status=$?
8986 grep -v '^ *+' conftest.er1 >conftest.err
8987 rm -f conftest.er1
8988 cat conftest.err >&5
8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990 (exit $ac_status); } &&
8991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8992 { (case "(($ac_try" in
8993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8994 *) ac_try_echo=$ac_try;;
8995esac
8996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8997 (eval "$ac_try") 2>&5
8998 ac_status=$?
8999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000 (exit $ac_status); }; } &&
9001 { ac_try='test -s conftest$ac_exeext'
9002 { (case "(($ac_try" in
9003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9004 *) ac_try_echo=$ac_try;;
9005esac
9006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9007 (eval "$ac_try") 2>&5
9008 ac_status=$?
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009011 llvm_cv_link_use_r=yes
9012else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009013 echo "$as_me: failed program was:" >&5
9014sed 's/^/| /' conftest.$ac_ext >&5
9015
9016 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00009017fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009018
Bill Wendlingebcceee2009-04-18 11:20:33 +00009019rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009020 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00009021 CFLAGS="$oldcflags"
9022 ac_ext=c
9023ac_cpp='$CPP $CPPFLAGS'
9024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9026ac_compiler_gnu=$ac_cv_c_compiler_gnu
9027
9028
9029fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009030{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
9031echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009032if test "$llvm_cv_link_use_r" = yes ; then
9033
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009034cat >>confdefs.h <<\_ACEOF
9035#define HAVE_LINK_R 1
9036_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009037
9038 fi
9039
9040
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009041{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
9042echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
9043if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
9044 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009045else
9046 ac_ext=c
9047ac_cpp='$CPP $CPPFLAGS'
9048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9050ac_compiler_gnu=$ac_cv_c_compiler_gnu
9051
9052 oldcflags="$CFLAGS"
9053 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009054 cat >conftest.$ac_ext <<_ACEOF
9055/* confdefs.h. */
9056_ACEOF
9057cat confdefs.h >>conftest.$ac_ext
9058cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009059/* end confdefs.h. */
9060
9061int
9062main ()
9063{
Dan Gohman39ed6782010-04-25 00:12:20 +00009064
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009065 ;
9066 return 0;
9067}
9068_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009069rm -f conftest.$ac_objext conftest$ac_exeext
9070if { (ac_try="$ac_link"
9071case "(($ac_try" in
9072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9073 *) ac_try_echo=$ac_try;;
9074esac
9075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9076 (eval "$ac_link") 2>conftest.er1
9077 ac_status=$?
9078 grep -v '^ *+' conftest.er1 >conftest.err
9079 rm -f conftest.er1
9080 cat conftest.err >&5
9081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082 (exit $ac_status); } &&
9083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9084 { (case "(($ac_try" in
9085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9086 *) ac_try_echo=$ac_try;;
9087esac
9088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9089 (eval "$ac_try") 2>&5
9090 ac_status=$?
9091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092 (exit $ac_status); }; } &&
9093 { ac_try='test -s conftest$ac_exeext'
9094 { (case "(($ac_try" in
9095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9096 *) ac_try_echo=$ac_try;;
9097esac
9098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9099 (eval "$ac_try") 2>&5
9100 ac_status=$?
9101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009103 llvm_cv_link_use_export_dynamic=yes
9104else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009105 echo "$as_me: failed program was:" >&5
9106sed 's/^/| /' conftest.$ac_ext >&5
9107
9108 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009109fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009110
Bill Wendlingebcceee2009-04-18 11:20:33 +00009111rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009112 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009113 CFLAGS="$oldcflags"
9114 ac_ext=c
9115ac_cpp='$CPP $CPPFLAGS'
9116ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9117ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9118ac_compiler_gnu=$ac_cv_c_compiler_gnu
9119
9120
9121fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009122{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
9123echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009124if test "$llvm_cv_link_use_export_dynamic" = yes ; then
9125
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009126cat >>confdefs.h <<\_ACEOF
9127#define HAVE_LINK_EXPORT_DYNAMIC 1
9128_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009129
9130 fi
9131
9132
Dan Gohmanda612d62010-06-01 14:56:56 +00009133{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
9134echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
9135if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00009136 echo $ECHO_N "(cached) $ECHO_C" >&6
9137else
9138 ac_ext=c
9139ac_cpp='$CPP $CPPFLAGS'
9140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9142ac_compiler_gnu=$ac_cv_c_compiler_gnu
9143
9144 oldcflags="$CFLAGS"
9145
9146 # The following code is from the autoconf manual,
9147 # "11.13: Limitations of Usual Tools".
9148 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
9149 # Use mktemp if possible; otherwise fall back on mkdir,
9150 # with $RANDOM to make collisions less likely.
9151 : ${TMPDIR=/tmp}
9152 {
9153 tmp=`
9154 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
9155 ` &&
9156 test -n "$tmp" && test -d "$tmp"
9157 } || {
9158 tmp=$TMPDIR/foo$$-$RANDOM
9159 (umask 077 && mkdir "$tmp")
9160 } || exit $?
9161
Dan Gohmanda612d62010-06-01 14:56:56 +00009162 echo "{" > "$tmp/export.map"
9163 echo " global: main;" >> "$tmp/export.map"
9164 echo " local: *;" >> "$tmp/export.map"
9165 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00009166
Dan Gohmanda612d62010-06-01 14:56:56 +00009167 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00009168 cat >conftest.$ac_ext <<_ACEOF
9169/* confdefs.h. */
9170_ACEOF
9171cat confdefs.h >>conftest.$ac_ext
9172cat >>conftest.$ac_ext <<_ACEOF
9173/* end confdefs.h. */
9174
9175int
9176main ()
9177{
Dan Gohman39ed6782010-04-25 00:12:20 +00009178
Dan Gohman391569c2010-04-16 22:59:06 +00009179 ;
9180 return 0;
9181}
9182_ACEOF
9183rm -f conftest.$ac_objext conftest$ac_exeext
9184if { (ac_try="$ac_link"
9185case "(($ac_try" in
9186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9187 *) ac_try_echo=$ac_try;;
9188esac
9189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9190 (eval "$ac_link") 2>conftest.er1
9191 ac_status=$?
9192 grep -v '^ *+' conftest.er1 >conftest.err
9193 rm -f conftest.er1
9194 cat conftest.err >&5
9195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196 (exit $ac_status); } &&
9197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9198 { (case "(($ac_try" in
9199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9200 *) ac_try_echo=$ac_try;;
9201esac
9202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9203 (eval "$ac_try") 2>&5
9204 ac_status=$?
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); }; } &&
9207 { ac_try='test -s conftest$ac_exeext'
9208 { (case "(($ac_try" in
9209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9210 *) ac_try_echo=$ac_try;;
9211esac
9212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9213 (eval "$ac_try") 2>&5
9214 ac_status=$?
9215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00009217 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00009218else
9219 echo "$as_me: failed program was:" >&5
9220sed 's/^/| /' conftest.$ac_ext >&5
9221
Dan Gohman943005e2010-06-01 16:22:27 +00009222 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00009223fi
9224
9225rm -f core conftest.err conftest.$ac_objext \
9226 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00009227 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00009228 rmdir "$tmp"
9229 CFLAGS="$oldcflags"
9230 ac_ext=c
9231ac_cpp='$CPP $CPPFLAGS'
9232ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9233ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9234ac_compiler_gnu=$ac_cv_c_compiler_gnu
9235
9236
9237fi
Dan Gohmanda612d62010-06-01 14:56:56 +00009238{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9239echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9240if test "$llvm_cv_link_use_version_script" = yes ; then
9241 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00009242
9243 fi
9244
9245
Reid Spencera773bd52006-08-04 18:18:08 +00009246
9247
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009248{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9249echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9250if test "${ac_cv_c_const+set}" = set; then
9251 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009252else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009253 cat >conftest.$ac_ext <<_ACEOF
9254/* confdefs.h. */
9255_ACEOF
9256cat confdefs.h >>conftest.$ac_ext
9257cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009258/* end confdefs.h. */
9259
9260int
9261main ()
9262{
9263/* FIXME: Include the comments suggested by Paul. */
9264#ifndef __cplusplus
9265 /* Ultrix mips cc rejects this. */
9266 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009267 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00009268 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009269 char const *const *ccp;
9270 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00009271 /* NEC SVR4.0.2 mips cc rejects this. */
9272 struct point {int x, y;};
9273 static struct point const zero = {0,0};
9274 /* AIX XL C 1.02.0.0 rejects this.
9275 It does not let you subtract one const X* pointer from another in
9276 an arm of an if-expression whose if-part is not a constant
9277 expression */
9278 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009279 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00009280 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009281 ++ccp;
9282 p = (char**) ccp;
9283 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00009284 { /* SCO 3.2v4 cc rejects this. */
9285 char *t;
9286 char const *s = 0 ? (char *) 0 : (char const *) 0;
9287
9288 *t++ = 0;
9289 if (s) return 0;
9290 }
9291 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9292 int x[] = {25, 17};
9293 const int *foo = &x[0];
9294 ++foo;
9295 }
9296 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9297 typedef const int *iptr;
9298 iptr p = 0;
9299 ++p;
9300 }
9301 { /* AIX XL C 1.02.0.0 rejects this saying
9302 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9303 struct s { int j; const int *ap[3]; };
9304 struct s *b; b->j = 5;
9305 }
9306 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9307 const int foo = 10;
9308 if (!foo) return 0;
9309 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009310 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00009311#endif
9312
9313 ;
9314 return 0;
9315}
9316_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009317rm -f conftest.$ac_objext
9318if { (ac_try="$ac_compile"
9319case "(($ac_try" in
9320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9321 *) ac_try_echo=$ac_try;;
9322esac
9323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9324 (eval "$ac_compile") 2>conftest.er1
9325 ac_status=$?
9326 grep -v '^ *+' conftest.er1 >conftest.err
9327 rm -f conftest.er1
9328 cat conftest.err >&5
9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330 (exit $ac_status); } &&
9331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9332 { (case "(($ac_try" in
9333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9334 *) ac_try_echo=$ac_try;;
9335esac
9336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9337 (eval "$ac_try") 2>&5
9338 ac_status=$?
9339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9340 (exit $ac_status); }; } &&
9341 { ac_try='test -s conftest.$ac_objext'
9342 { (case "(($ac_try" in
9343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9344 *) ac_try_echo=$ac_try;;
9345esac
9346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9347 (eval "$ac_try") 2>&5
9348 ac_status=$?
9349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009351 ac_cv_c_const=yes
9352else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009353 echo "$as_me: failed program was:" >&5
9354sed 's/^/| /' conftest.$ac_ext >&5
9355
9356 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00009357fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009358
Reid Spencera773bd52006-08-04 18:18:08 +00009359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9360fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009361{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9362echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009363if test $ac_cv_c_const = no; then
9364
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009365cat >>confdefs.h <<\_ACEOF
9366#define const
9367_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009368
9369fi
9370
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009371
9372
9373
9374
9375
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009376ac_header_dirent=no
9377for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009378 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9379{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9380echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9381if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9382 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009383else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009384 cat >conftest.$ac_ext <<_ACEOF
9385/* confdefs.h. */
9386_ACEOF
9387cat confdefs.h >>conftest.$ac_ext
9388cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009389/* end confdefs.h. */
9390#include <sys/types.h>
9391#include <$ac_hdr>
9392
9393int
9394main ()
9395{
9396if ((DIR *) 0)
9397return 0;
9398 ;
9399 return 0;
9400}
9401_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009402rm -f conftest.$ac_objext
9403if { (ac_try="$ac_compile"
9404case "(($ac_try" in
9405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9406 *) ac_try_echo=$ac_try;;
9407esac
9408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9409 (eval "$ac_compile") 2>conftest.er1
9410 ac_status=$?
9411 grep -v '^ *+' conftest.er1 >conftest.err
9412 rm -f conftest.er1
9413 cat conftest.err >&5
9414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415 (exit $ac_status); } &&
9416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9417 { (case "(($ac_try" in
9418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9419 *) ac_try_echo=$ac_try;;
9420esac
9421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9422 (eval "$ac_try") 2>&5
9423 ac_status=$?
9424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425 (exit $ac_status); }; } &&
9426 { ac_try='test -s conftest.$ac_objext'
9427 { (case "(($ac_try" in
9428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9429 *) ac_try_echo=$ac_try;;
9430esac
9431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9432 (eval "$ac_try") 2>&5
9433 ac_status=$?
9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009436 eval "$as_ac_Header=yes"
9437else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009438 echo "$as_me: failed program was:" >&5
9439sed 's/^/| /' conftest.$ac_ext >&5
9440
9441 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009442fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009443
Reid Spencera773bd52006-08-04 18:18:08 +00009444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009445fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009446ac_res=`eval echo '${'$as_ac_Header'}'`
9447 { echo "$as_me:$LINENO: result: $ac_res" >&5
9448echo "${ECHO_T}$ac_res" >&6; }
9449if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009450 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009451#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009452_ACEOF
9453
9454ac_header_dirent=$ac_hdr; break
9455fi
9456
9457done
9458# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9459if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009460 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9461echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9462if test "${ac_cv_search_opendir+set}" = set; then
9463 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009464else
9465 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009466cat >conftest.$ac_ext <<_ACEOF
9467/* confdefs.h. */
9468_ACEOF
9469cat confdefs.h >>conftest.$ac_ext
9470cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009471/* end confdefs.h. */
9472
Reid Spencera773bd52006-08-04 18:18:08 +00009473/* Override any GCC internal prototype to avoid an error.
9474 Use char because int might match the return type of a GCC
9475 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009476#ifdef __cplusplus
9477extern "C"
9478#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009479char opendir ();
9480int
9481main ()
9482{
Reid Spencera773bd52006-08-04 18:18:08 +00009483return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009484 ;
9485 return 0;
9486}
9487_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009488for ac_lib in '' dir; do
9489 if test -z "$ac_lib"; then
9490 ac_res="none required"
9491 else
9492 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009493 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00009494 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009495 rm -f conftest.$ac_objext conftest$ac_exeext
9496if { (ac_try="$ac_link"
9497case "(($ac_try" in
9498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9499 *) ac_try_echo=$ac_try;;
9500esac
9501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9502 (eval "$ac_link") 2>conftest.er1
9503 ac_status=$?
9504 grep -v '^ *+' conftest.er1 >conftest.err
9505 rm -f conftest.er1
9506 cat conftest.err >&5
9507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508 (exit $ac_status); } &&
9509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9510 { (case "(($ac_try" in
9511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9512 *) ac_try_echo=$ac_try;;
9513esac
9514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9515 (eval "$ac_try") 2>&5
9516 ac_status=$?
9517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518 (exit $ac_status); }; } &&
9519 { ac_try='test -s conftest$ac_exeext'
9520 { (case "(($ac_try" in
9521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9522 *) ac_try_echo=$ac_try;;
9523esac
9524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9525 (eval "$ac_try") 2>&5
9526 ac_status=$?
9527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009529 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009530else
9531 echo "$as_me: failed program was:" >&5
9532sed 's/^/| /' conftest.$ac_ext >&5
9533
9534
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009535fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009536
Bill Wendlingebcceee2009-04-18 11:20:33 +00009537rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009538 conftest$ac_exeext
9539 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009540 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009541fi
John Criswell7a73b802003-06-30 21:59:07 +00009542done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009543if test "${ac_cv_search_opendir+set}" = set; then
9544 :
Reid Spencera773bd52006-08-04 18:18:08 +00009545else
9546 ac_cv_search_opendir=no
9547fi
9548rm conftest.$ac_ext
9549LIBS=$ac_func_search_save_LIBS
9550fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009551{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9552echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009553ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009554if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009555 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00009556
Reid Spencera773bd52006-08-04 18:18:08 +00009557fi
9558
9559else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009560 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9561echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9562if test "${ac_cv_search_opendir+set}" = set; then
9563 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009564else
9565 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009566cat >conftest.$ac_ext <<_ACEOF
9567/* confdefs.h. */
9568_ACEOF
9569cat confdefs.h >>conftest.$ac_ext
9570cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009571/* end confdefs.h. */
9572
9573/* Override any GCC internal prototype to avoid an error.
9574 Use char because int might match the return type of a GCC
9575 builtin and then its argument prototype would still apply. */
9576#ifdef __cplusplus
9577extern "C"
9578#endif
9579char opendir ();
9580int
9581main ()
9582{
9583return opendir ();
9584 ;
9585 return 0;
9586}
9587_ACEOF
9588for ac_lib in '' x; do
9589 if test -z "$ac_lib"; then
9590 ac_res="none required"
9591 else
9592 ac_res=-l$ac_lib
9593 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9594 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009595 rm -f conftest.$ac_objext conftest$ac_exeext
9596if { (ac_try="$ac_link"
9597case "(($ac_try" in
9598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9599 *) ac_try_echo=$ac_try;;
9600esac
9601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9602 (eval "$ac_link") 2>conftest.er1
9603 ac_status=$?
9604 grep -v '^ *+' conftest.er1 >conftest.err
9605 rm -f conftest.er1
9606 cat conftest.err >&5
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); } &&
9609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9610 { (case "(($ac_try" in
9611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9612 *) ac_try_echo=$ac_try;;
9613esac
9614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9615 (eval "$ac_try") 2>&5
9616 ac_status=$?
9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618 (exit $ac_status); }; } &&
9619 { ac_try='test -s conftest$ac_exeext'
9620 { (case "(($ac_try" in
9621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9622 *) ac_try_echo=$ac_try;;
9623esac
9624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9625 (eval "$ac_try") 2>&5
9626 ac_status=$?
9627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9628 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009629 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009630else
9631 echo "$as_me: failed program was:" >&5
9632sed 's/^/| /' conftest.$ac_ext >&5
9633
9634
Reid Spencera773bd52006-08-04 18:18:08 +00009635fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009636
Bill Wendlingebcceee2009-04-18 11:20:33 +00009637rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009638 conftest$ac_exeext
9639 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009640 break
9641fi
9642done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009643if test "${ac_cv_search_opendir+set}" = set; then
9644 :
Reid Spencera773bd52006-08-04 18:18:08 +00009645else
9646 ac_cv_search_opendir=no
9647fi
9648rm conftest.$ac_ext
9649LIBS=$ac_func_search_save_LIBS
9650fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009651{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9652echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009653ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009654if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009655 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9656
9657fi
9658
9659fi
John Criswell7a73b802003-06-30 21:59:07 +00009660
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009661
John Criswell7a73b802003-06-30 21:59:07 +00009662for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009663do
9664as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9665if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9666 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9667echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9668if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9669 echo $ECHO_N "(cached) $ECHO_C" >&6
9670fi
9671ac_res=`eval echo '${'$as_ac_Header'}'`
9672 { echo "$as_me:$LINENO: result: $ac_res" >&5
9673echo "${ECHO_T}$ac_res" >&6; }
9674else
9675 # Is the header compilable?
9676{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9677echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9678cat >conftest.$ac_ext <<_ACEOF
9679/* confdefs.h. */
9680_ACEOF
9681cat confdefs.h >>conftest.$ac_ext
9682cat >>conftest.$ac_ext <<_ACEOF
9683/* end confdefs.h. */
9684$ac_includes_default
9685#include <$ac_header>
9686_ACEOF
9687rm -f conftest.$ac_objext
9688if { (ac_try="$ac_compile"
9689case "(($ac_try" in
9690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9691 *) ac_try_echo=$ac_try;;
9692esac
9693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9694 (eval "$ac_compile") 2>conftest.er1
9695 ac_status=$?
9696 grep -v '^ *+' conftest.er1 >conftest.err
9697 rm -f conftest.er1
9698 cat conftest.err >&5
9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700 (exit $ac_status); } &&
9701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9702 { (case "(($ac_try" in
9703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9704 *) ac_try_echo=$ac_try;;
9705esac
9706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9707 (eval "$ac_try") 2>&5
9708 ac_status=$?
9709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710 (exit $ac_status); }; } &&
9711 { ac_try='test -s conftest.$ac_objext'
9712 { (case "(($ac_try" in
9713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9714 *) ac_try_echo=$ac_try;;
9715esac
9716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9717 (eval "$ac_try") 2>&5
9718 ac_status=$?
9719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720 (exit $ac_status); }; }; then
9721 ac_header_compiler=yes
9722else
9723 echo "$as_me: failed program was:" >&5
9724sed 's/^/| /' conftest.$ac_ext >&5
9725
9726 ac_header_compiler=no
9727fi
9728
9729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9730{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9731echo "${ECHO_T}$ac_header_compiler" >&6; }
9732
9733# Is the header present?
9734{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9735echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9736cat >conftest.$ac_ext <<_ACEOF
9737/* confdefs.h. */
9738_ACEOF
9739cat confdefs.h >>conftest.$ac_ext
9740cat >>conftest.$ac_ext <<_ACEOF
9741/* end confdefs.h. */
9742#include <$ac_header>
9743_ACEOF
9744if { (ac_try="$ac_cpp conftest.$ac_ext"
9745case "(($ac_try" in
9746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9747 *) ac_try_echo=$ac_try;;
9748esac
9749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9750 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9751 ac_status=$?
9752 grep -v '^ *+' conftest.er1 >conftest.err
9753 rm -f conftest.er1
9754 cat conftest.err >&5
9755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756 (exit $ac_status); } >/dev/null; then
9757 if test -s conftest.err; then
9758 ac_cpp_err=$ac_c_preproc_warn_flag
9759 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9760 else
9761 ac_cpp_err=
9762 fi
9763else
9764 ac_cpp_err=yes
9765fi
9766if test -z "$ac_cpp_err"; then
9767 ac_header_preproc=yes
9768else
9769 echo "$as_me: failed program was:" >&5
9770sed 's/^/| /' conftest.$ac_ext >&5
9771
9772 ac_header_preproc=no
9773fi
9774
9775rm -f conftest.err conftest.$ac_ext
9776{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9777echo "${ECHO_T}$ac_header_preproc" >&6; }
9778
9779# So? What about this header?
9780case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9781 yes:no: )
9782 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9783echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9785echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9786 ac_header_preproc=yes
9787 ;;
9788 no:yes:* )
9789 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9790echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9791 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9792echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9793 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9794echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9795 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9796echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9798echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9799 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9800echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9801 ( cat <<\_ASBOX
9802## ----------------------------------- ##
9803## Report this to llvmbugs@cs.uiuc.edu ##
9804## ----------------------------------- ##
9805_ASBOX
9806 ) | sed "s/^/$as_me: WARNING: /" >&2
9807 ;;
9808esac
9809{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9810echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9811if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9812 echo $ECHO_N "(cached) $ECHO_C" >&6
9813else
9814 eval "$as_ac_Header=\$ac_header_preproc"
9815fi
9816ac_res=`eval echo '${'$as_ac_Header'}'`
9817 { echo "$as_me:$LINENO: result: $ac_res" >&5
9818echo "${ECHO_T}$ac_res" >&6; }
9819
9820fi
9821if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00009822 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009823#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00009824_ACEOF
9825
9826fi
9827
9828done
9829
Reid Spencera773bd52006-08-04 18:18:08 +00009830# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009831if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009832 enableval=$enable_ltdl_install;
9833fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009834
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009835
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009836
9837
9838if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009839 INSTALL_LTDL_TRUE=
9840 INSTALL_LTDL_FALSE='#'
9841else
9842 INSTALL_LTDL_TRUE='#'
9843 INSTALL_LTDL_FALSE=
9844fi
9845
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009846
9847
9848if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009849 CONVENIENCE_LTDL_TRUE=
9850 CONVENIENCE_LTDL_FALSE='#'
9851else
9852 CONVENIENCE_LTDL_TRUE='#'
9853 CONVENIENCE_LTDL_FALSE=
9854fi
9855
9856
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009857{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9858echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009859library_names_spec=
9860libname_spec='lib$name'
9861soname_spec=
9862shrext_cmds=".so"
9863postinstall_cmds=
9864postuninstall_cmds=
9865finish_cmds=
9866finish_eval=
9867shlibpath_var=
9868shlibpath_overrides_runpath=unknown
9869version_type=none
9870dynamic_linker="$host_os ld.so"
9871sys_lib_dlsearch_path_spec="/lib /usr/lib"
9872if test "$GCC" = yes; then
9873 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9874 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9875 # if the path contains ";" then we assume it to be the separator
9876 # otherwise default to the standard path separator (i.e. ":") - it is
9877 # assumed that no part of a normal pathname contains ";" but that should
9878 # okay in the real world where ";" in dirpaths is itself problematic.
9879 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9880 else
9881 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9882 fi
9883else
9884 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9885fi
9886need_lib_prefix=unknown
9887hardcode_into_libs=no
9888
9889# when you set need_version to no, make sure it does not cause -set_version
9890# flags to be left without arguments
9891need_version=unknown
9892
9893case $host_os in
9894aix3*)
9895 version_type=linux
9896 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9897 shlibpath_var=LIBPATH
9898
9899 # AIX 3 has no versioning support, so we append a major version to the name.
9900 soname_spec='${libname}${release}${shared_ext}$major'
9901 ;;
9902
9903aix4* | aix5*)
9904 version_type=linux
9905 need_lib_prefix=no
9906 need_version=no
9907 hardcode_into_libs=yes
9908 if test "$host_cpu" = ia64; then
9909 # AIX 5 supports IA64
9910 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9911 shlibpath_var=LD_LIBRARY_PATH
9912 else
9913 # With GCC up to 2.95.x, collect2 would create an import file
9914 # for dependence libraries. The import file would start with
9915 # the line `#! .'. This would cause the generated library to
9916 # depend on `.', always an invalid library. This was fixed in
9917 # development snapshots of GCC prior to 3.0.
9918 case $host_os in
9919 aix4 | aix4.[01] | aix4.[01].*)
9920 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9921 echo ' yes '
9922 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9923 :
9924 else
9925 can_build_shared=no
9926 fi
9927 ;;
9928 esac
9929 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9930 # soname into executable. Probably we can add versioning support to
9931 # collect2, so additional links can be useful in future.
9932 if test "$aix_use_runtimelinking" = yes; then
9933 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9934 # instead of lib<name>.a to let people know that these are not
9935 # typical AIX shared libraries.
9936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9937 else
9938 # We preserve .a as extension for shared libraries through AIX4.2
9939 # and later when we are not doing run time linking.
9940 library_names_spec='${libname}${release}.a $libname.a'
9941 soname_spec='${libname}${release}${shared_ext}$major'
9942 fi
9943 shlibpath_var=LIBPATH
9944 fi
9945 ;;
9946
9947amigaos*)
9948 library_names_spec='$libname.ixlibrary $libname.a'
9949 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9950 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'
9951 ;;
9952
9953beos*)
9954 library_names_spec='${libname}${shared_ext}'
9955 dynamic_linker="$host_os ld.so"
9956 shlibpath_var=LIBRARY_PATH
9957 ;;
9958
9959bsdi[45]*)
9960 version_type=linux
9961 need_version=no
9962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9963 soname_spec='${libname}${release}${shared_ext}$major'
9964 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9965 shlibpath_var=LD_LIBRARY_PATH
9966 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9967 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9968 # the default ld.so.conf also contains /usr/contrib/lib and
9969 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9970 # libtool to hard-code these into programs
9971 ;;
9972
9973cygwin* | mingw* | pw32*)
9974 version_type=windows
9975 shrext_cmds=".dll"
9976 need_version=no
9977 need_lib_prefix=no
9978
9979 case $GCC,$host_os in
9980 yes,cygwin* | yes,mingw* | yes,pw32*)
9981 library_names_spec='$libname.dll.a'
9982 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9983 postinstall_cmds='base_file=`basename \${file}`~
9984 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9985 dldir=$destdir/`dirname \$dlpath`~
9986 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009987 $install_prog $dir/$dlname \$dldir/$dlname~
9988 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009989 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9990 dlpath=$dir/\$dldll~
9991 $rm \$dlpath'
9992 shlibpath_overrides_runpath=yes
9993
9994 case $host_os in
9995 cygwin*)
9996 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9997 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9998 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9999 ;;
10000 mingw*)
10001 # MinGW DLLs use traditional 'lib' prefix
10002 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10003 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10004 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10005 # It is most probably a Windows format PATH printed by
10006 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10007 # path with ; separators, and with drive letters. We can handle the
10008 # drive letters (cygwin fileutils understands them), so leave them,
10009 # especially as we might pass files found there to a mingw objdump,
10010 # which wouldn't understand a cygwinified path. Ahh.
10011 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10012 else
10013 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10014 fi
10015 ;;
10016 pw32*)
10017 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000010018 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 +000010019 ;;
10020 esac
10021 ;;
10022
10023 *)
10024 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10025 ;;
10026 esac
10027 dynamic_linker='Win32 ld.exe'
10028 # FIXME: first we should search . and the directory the executable is in
10029 shlibpath_var=PATH
10030 ;;
10031
10032darwin* | rhapsody*)
10033 dynamic_linker="$host_os dyld"
10034 version_type=darwin
10035 need_lib_prefix=no
10036 need_version=no
10037 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10038 soname_spec='${libname}${release}${major}$shared_ext'
10039 shlibpath_overrides_runpath=yes
10040 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000010041 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010042 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10043 if test "$GCC" = yes; then
10044 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"`
10045 else
10046 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10047 fi
10048 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10049 ;;
10050
10051dgux*)
10052 version_type=linux
10053 need_lib_prefix=no
10054 need_version=no
10055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10056 soname_spec='${libname}${release}${shared_ext}$major'
10057 shlibpath_var=LD_LIBRARY_PATH
10058 ;;
10059
10060freebsd1*)
10061 dynamic_linker=no
10062 ;;
10063
10064kfreebsd*-gnu)
10065 version_type=linux
10066 need_lib_prefix=no
10067 need_version=no
10068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10069 soname_spec='${libname}${release}${shared_ext}$major'
10070 shlibpath_var=LD_LIBRARY_PATH
10071 shlibpath_overrides_runpath=no
10072 hardcode_into_libs=yes
10073 dynamic_linker='GNU ld.so'
10074 ;;
10075
Reid Spencera773bd52006-08-04 18:18:08 +000010076freebsd* | dragonfly*)
10077 # DragonFly does not have aout. When/if they implement a new
10078 # versioning mechanism, adjust this.
10079 if test -x /usr/bin/objformat; then
10080 objformat=`/usr/bin/objformat`
10081 else
10082 case $host_os in
10083 freebsd[123]*) objformat=aout ;;
10084 *) objformat=elf ;;
10085 esac
10086 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010087 version_type=freebsd-$objformat
10088 case $version_type in
10089 freebsd-elf*)
10090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10091 need_version=no
10092 need_lib_prefix=no
10093 ;;
10094 freebsd-*)
10095 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10096 need_version=yes
10097 ;;
10098 esac
10099 shlibpath_var=LD_LIBRARY_PATH
10100 case $host_os in
10101 freebsd2*)
10102 shlibpath_overrides_runpath=yes
10103 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010104 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010105 shlibpath_overrides_runpath=yes
10106 hardcode_into_libs=yes
10107 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010108 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10109 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010110 shlibpath_overrides_runpath=no
10111 hardcode_into_libs=yes
10112 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010113 freebsd*) # from 4.6 on
10114 shlibpath_overrides_runpath=yes
10115 hardcode_into_libs=yes
10116 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010117 esac
10118 ;;
10119
10120gnu*)
10121 version_type=linux
10122 need_lib_prefix=no
10123 need_version=no
10124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10125 soname_spec='${libname}${release}${shared_ext}$major'
10126 shlibpath_var=LD_LIBRARY_PATH
10127 hardcode_into_libs=yes
10128 ;;
10129
10130hpux9* | hpux10* | hpux11*)
10131 # Give a soname corresponding to the major version so that dld.sl refuses to
10132 # link against other versions.
10133 version_type=sunos
10134 need_lib_prefix=no
10135 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000010136 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010137 ia64*)
10138 shrext_cmds='.so'
10139 hardcode_into_libs=yes
10140 dynamic_linker="$host_os dld.so"
10141 shlibpath_var=LD_LIBRARY_PATH
10142 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10144 soname_spec='${libname}${release}${shared_ext}$major'
10145 if test "X$HPUX_IA64_MODE" = X32; then
10146 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10147 else
10148 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10149 fi
10150 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10151 ;;
10152 hppa*64*)
10153 shrext_cmds='.sl'
10154 hardcode_into_libs=yes
10155 dynamic_linker="$host_os dld.sl"
10156 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10157 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10159 soname_spec='${libname}${release}${shared_ext}$major'
10160 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10161 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10162 ;;
10163 *)
10164 shrext_cmds='.sl'
10165 dynamic_linker="$host_os dld.sl"
10166 shlibpath_var=SHLIB_PATH
10167 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10169 soname_spec='${libname}${release}${shared_ext}$major'
10170 ;;
10171 esac
10172 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10173 postinstall_cmds='chmod 555 $lib'
10174 ;;
10175
Reid Spencera773bd52006-08-04 18:18:08 +000010176interix3*)
10177 version_type=linux
10178 need_lib_prefix=no
10179 need_version=no
10180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10181 soname_spec='${libname}${release}${shared_ext}$major'
10182 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10183 shlibpath_var=LD_LIBRARY_PATH
10184 shlibpath_overrides_runpath=no
10185 hardcode_into_libs=yes
10186 ;;
10187
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010188irix5* | irix6* | nonstopux*)
10189 case $host_os in
10190 nonstopux*) version_type=nonstopux ;;
10191 *)
10192 if test "$lt_cv_prog_gnu_ld" = yes; then
10193 version_type=linux
10194 else
10195 version_type=irix
10196 fi ;;
10197 esac
10198 need_lib_prefix=no
10199 need_version=no
10200 soname_spec='${libname}${release}${shared_ext}$major'
10201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10202 case $host_os in
10203 irix5* | nonstopux*)
10204 libsuff= shlibsuff=
10205 ;;
10206 *)
10207 case $LD in # libtool.m4 will add one of these switches to LD
10208 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10209 libsuff= shlibsuff= libmagic=32-bit;;
10210 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10211 libsuff=32 shlibsuff=N32 libmagic=N32;;
10212 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10213 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10214 *) libsuff= shlibsuff= libmagic=never-match;;
10215 esac
10216 ;;
10217 esac
10218 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10219 shlibpath_overrides_runpath=no
10220 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10221 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10222 hardcode_into_libs=yes
10223 ;;
10224
10225# No shared lib support for Linux oldld, aout, or coff.
10226linux*oldld* | linux*aout* | linux*coff*)
10227 dynamic_linker=no
10228 ;;
10229
10230# This must be Linux ELF.
10231linux*)
10232 version_type=linux
10233 need_lib_prefix=no
10234 need_version=no
10235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10236 soname_spec='${libname}${release}${shared_ext}$major'
10237 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10238 shlibpath_var=LD_LIBRARY_PATH
10239 shlibpath_overrides_runpath=no
10240 # This implies no fast_install, which is unacceptable.
10241 # Some rework will be needed to allow for fast_install
10242 # before this can be enabled.
10243 hardcode_into_libs=yes
10244
10245 # Append ld.so.conf contents to the search path
10246 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000010247 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 +000010248 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10249 fi
10250
10251 # We used to test for /lib/ld.so.1 and disable shared libraries on
10252 # powerpc, because MkLinux only supported shared libraries with the
10253 # GNU dynamic linker. Since this was broken with cross compilers,
10254 # most powerpc-linux boxes support dynamic linking these days and
10255 # people can always --disable-shared, the test was removed, and we
10256 # assume the GNU/Linux dynamic linker is in use.
10257 dynamic_linker='GNU/Linux ld.so'
10258 ;;
10259
10260knetbsd*-gnu)
10261 version_type=linux
10262 need_lib_prefix=no
10263 need_version=no
10264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10265 soname_spec='${libname}${release}${shared_ext}$major'
10266 shlibpath_var=LD_LIBRARY_PATH
10267 shlibpath_overrides_runpath=no
10268 hardcode_into_libs=yes
10269 dynamic_linker='GNU ld.so'
10270 ;;
10271
10272netbsd*)
10273 version_type=sunos
10274 need_lib_prefix=no
10275 need_version=no
10276 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10278 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10279 dynamic_linker='NetBSD (a.out) ld.so'
10280 else
10281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10282 soname_spec='${libname}${release}${shared_ext}$major'
10283 dynamic_linker='NetBSD ld.elf_so'
10284 fi
10285 shlibpath_var=LD_LIBRARY_PATH
10286 shlibpath_overrides_runpath=yes
10287 hardcode_into_libs=yes
10288 ;;
10289
10290newsos6)
10291 version_type=linux
10292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10293 shlibpath_var=LD_LIBRARY_PATH
10294 shlibpath_overrides_runpath=yes
10295 ;;
10296
10297nto-qnx*)
10298 version_type=linux
10299 need_lib_prefix=no
10300 need_version=no
10301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10302 soname_spec='${libname}${release}${shared_ext}$major'
10303 shlibpath_var=LD_LIBRARY_PATH
10304 shlibpath_overrides_runpath=yes
10305 ;;
10306
10307openbsd*)
10308 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000010309 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010310 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000010311 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10312 case $host_os in
10313 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10314 *) need_version=no ;;
10315 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10317 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10318 shlibpath_var=LD_LIBRARY_PATH
10319 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10320 case $host_os in
10321 openbsd2.[89] | openbsd2.[89].*)
10322 shlibpath_overrides_runpath=no
10323 ;;
10324 *)
10325 shlibpath_overrides_runpath=yes
10326 ;;
10327 esac
10328 else
10329 shlibpath_overrides_runpath=yes
10330 fi
10331 ;;
10332
10333os2*)
10334 libname_spec='$name'
10335 shrext_cmds=".dll"
10336 need_lib_prefix=no
10337 library_names_spec='$libname${shared_ext} $libname.a'
10338 dynamic_linker='OS/2 ld.exe'
10339 shlibpath_var=LIBPATH
10340 ;;
10341
10342osf3* | osf4* | osf5*)
10343 version_type=osf
10344 need_lib_prefix=no
10345 need_version=no
10346 soname_spec='${libname}${release}${shared_ext}$major'
10347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10348 shlibpath_var=LD_LIBRARY_PATH
10349 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10350 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10351 ;;
10352
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010353solaris*)
10354 version_type=linux
10355 need_lib_prefix=no
10356 need_version=no
10357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10358 soname_spec='${libname}${release}${shared_ext}$major'
10359 shlibpath_var=LD_LIBRARY_PATH
10360 shlibpath_overrides_runpath=yes
10361 hardcode_into_libs=yes
10362 # ldd complains unless libraries are executable
10363 postinstall_cmds='chmod +x $lib'
10364 ;;
10365
10366sunos4*)
10367 version_type=sunos
10368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10369 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10370 shlibpath_var=LD_LIBRARY_PATH
10371 shlibpath_overrides_runpath=yes
10372 if test "$with_gnu_ld" = yes; then
10373 need_lib_prefix=no
10374 fi
10375 need_version=yes
10376 ;;
10377
Reid Spencera773bd52006-08-04 18:18:08 +000010378sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010379 version_type=linux
10380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10381 soname_spec='${libname}${release}${shared_ext}$major'
10382 shlibpath_var=LD_LIBRARY_PATH
10383 case $host_vendor in
10384 sni)
10385 shlibpath_overrides_runpath=no
10386 need_lib_prefix=no
10387 export_dynamic_flag_spec='${wl}-Blargedynsym'
10388 runpath_var=LD_RUN_PATH
10389 ;;
10390 siemens)
10391 need_lib_prefix=no
10392 ;;
10393 motorola)
10394 need_lib_prefix=no
10395 need_version=no
10396 shlibpath_overrides_runpath=no
10397 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10398 ;;
10399 esac
10400 ;;
10401
10402sysv4*MP*)
10403 if test -d /usr/nec ;then
10404 version_type=linux
10405 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10406 soname_spec='$libname${shared_ext}.$major'
10407 shlibpath_var=LD_LIBRARY_PATH
10408 fi
10409 ;;
10410
Reid Spencera773bd52006-08-04 18:18:08 +000010411sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10412 version_type=freebsd-elf
10413 need_lib_prefix=no
10414 need_version=no
10415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10416 soname_spec='${libname}${release}${shared_ext}$major'
10417 shlibpath_var=LD_LIBRARY_PATH
10418 hardcode_into_libs=yes
10419 if test "$with_gnu_ld" = yes; then
10420 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10421 shlibpath_overrides_runpath=no
10422 else
10423 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10424 shlibpath_overrides_runpath=yes
10425 case $host_os in
10426 sco3.2v5*)
10427 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10428 ;;
10429 esac
10430 fi
10431 sys_lib_dlsearch_path_spec='/usr/lib'
10432 ;;
10433
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010434uts4*)
10435 version_type=linux
10436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10437 soname_spec='${libname}${release}${shared_ext}$major'
10438 shlibpath_var=LD_LIBRARY_PATH
10439 ;;
10440
10441*)
10442 dynamic_linker=no
10443 ;;
10444esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010445{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10446echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010447test "$dynamic_linker" = no && can_build_shared=no
10448
Reid Spencera773bd52006-08-04 18:18:08 +000010449variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10450if test "$GCC" = yes; then
10451 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10452fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010453
Reid Spencera773bd52006-08-04 18:18:08 +000010454
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010455{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10456echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10457if test "${libltdl_cv_shlibext+set}" = set; then
10458 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010459else
10460
10461module=yes
10462eval libltdl_cv_shlibext=$shrext_cmds
10463
10464fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010465{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10466echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010467if test -n "$libltdl_cv_shlibext"; then
10468
10469cat >>confdefs.h <<_ACEOF
10470#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10471_ACEOF
10472
10473fi
10474
10475
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010476{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10477echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10478if test "${libltdl_cv_shlibpath_var+set}" = set; then
10479 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010480else
10481 libltdl_cv_shlibpath_var="$shlibpath_var"
10482fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010483{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10484echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010485if test -n "$libltdl_cv_shlibpath_var"; then
10486
10487cat >>confdefs.h <<_ACEOF
10488#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10489_ACEOF
10490
10491fi
10492
10493
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010494{ echo "$as_me:$LINENO: checking for the default library search path" >&5
10495echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10496if test "${libltdl_cv_sys_search_path+set}" = set; then
10497 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010498else
10499 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10500fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010501{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10502echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010503if test -n "$libltdl_cv_sys_search_path"; then
10504 sys_search_path=
10505 for dir in $libltdl_cv_sys_search_path; do
10506 if test -z "$sys_search_path"; then
10507 sys_search_path="$dir"
10508 else
10509 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10510 fi
10511 done
10512
10513cat >>confdefs.h <<_ACEOF
10514#define LTDL_SYSSEARCHPATH "$sys_search_path"
10515_ACEOF
10516
10517fi
10518
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010519{ echo "$as_me:$LINENO: checking for objdir" >&5
10520echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10521if test "${libltdl_cv_objdir+set}" = set; then
10522 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010523else
10524 libltdl_cv_objdir="$objdir"
10525 if test -n "$objdir"; then
10526 :
10527 else
10528 rm -f .libs 2>/dev/null
10529 mkdir .libs 2>/dev/null
10530 if test -d .libs; then
10531 libltdl_cv_objdir=.libs
10532 else
10533 # MS-DOS does not allow filenames that begin with a dot.
10534 libltdl_cv_objdir=_libs
10535 fi
10536 rmdir .libs 2>/dev/null
10537 fi
10538
10539fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010540{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10541echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010542
10543cat >>confdefs.h <<_ACEOF
10544#define LTDL_OBJDIR "$libltdl_cv_objdir/"
10545_ACEOF
10546
10547
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010548
10549
10550
10551
10552# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010553{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10554echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10555if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10556 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010557else
10558
10559# These are sane defaults that work on at least a few old systems.
10560# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10561
10562# Character class describing NM global symbol codes.
10563symcode='[BCDEGRST]'
10564
10565# Regexp to match symbols that can be accessed directly from C.
10566sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10567
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010568# Transform an extracted symbol line into a proper C declaration
10569lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10570
10571# Transform an extracted symbol line into symbol name and symbol address
10572lt_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'"
10573
10574# Define system-specific variables.
10575case $host_os in
10576aix*)
10577 symcode='[BCDT]'
10578 ;;
10579cygwin* | mingw* | pw32*)
10580 symcode='[ABCDGISTW]'
10581 ;;
10582hpux*) # Its linker distinguishes data from code symbols
10583 if test "$host_cpu" = ia64; then
10584 symcode='[ABCDEGRST]'
10585 fi
10586 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10587 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'"
10588 ;;
10589linux*)
10590 if test "$host_cpu" = ia64; then
10591 symcode='[ABCDGIRSTW]'
10592 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10593 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'"
10594 fi
10595 ;;
10596irix* | nonstopux*)
10597 symcode='[BCDEGRST]'
10598 ;;
10599osf*)
10600 symcode='[BCDEGQRST]'
10601 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010602solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010603 symcode='[BDRT]'
10604 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010605sco3.2v5*)
10606 symcode='[DT]'
10607 ;;
10608sysv4.2uw2*)
10609 symcode='[DT]'
10610 ;;
10611sysv5* | sco5v6* | unixware* | OpenUNIX*)
10612 symcode='[ABDT]'
10613 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010614sysv4)
10615 symcode='[DFNSTU]'
10616 ;;
10617esac
10618
10619# Handle CRLF in mingw tool chain
10620opt_cr=
10621case $build_os in
10622mingw*)
10623 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10624 ;;
10625esac
10626
10627# If we're using GNU nm, then use its standard symbol codes.
10628case `$NM -V 2>&1` in
10629*GNU* | *'with BFD'*)
10630 symcode='[ABCDGIRSTW]' ;;
10631esac
10632
10633# Try without a prefix undercore, then with it.
10634for ac_symprfx in "" "_"; do
10635
Reid Spencera773bd52006-08-04 18:18:08 +000010636 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10637 symxfrm="\\1 $ac_symprfx\\2 \\2"
10638
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010639 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000010640 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 +000010641
10642 # Check to see that the pipe works correctly.
10643 pipe_works=no
10644
10645 rm -f conftest*
10646 cat > conftest.$ac_ext <<EOF
10647#ifdef __cplusplus
10648extern "C" {
10649#endif
10650char nm_test_var;
10651void nm_test_func(){}
10652#ifdef __cplusplus
10653}
10654#endif
10655int main(){nm_test_var='a';nm_test_func();return(0);}
10656EOF
10657
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010659 (eval $ac_compile) 2>&5
10660 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010663 # Now try to grab the symbols.
10664 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010665 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 +000010666 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10667 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010670 # Try sorting and uniquifying the output.
10671 if sort "$nlist" | uniq > "$nlist"T; then
10672 mv -f "$nlist"T "$nlist"
10673 else
10674 rm -f "$nlist"T
10675 fi
10676
10677 # Make sure that we snagged all the symbols we need.
10678 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10679 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10680 cat <<EOF > conftest.$ac_ext
10681#ifdef __cplusplus
10682extern "C" {
10683#endif
10684
10685EOF
10686 # Now generate the symbol file.
10687 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10688
10689 cat <<EOF >> conftest.$ac_ext
10690#if defined (__STDC__) && __STDC__
10691# define lt_ptr_t void *
10692#else
10693# define lt_ptr_t char *
10694# define const
10695#endif
10696
10697/* The mapping between symbol names and symbols. */
10698const struct {
10699 const char *name;
10700 lt_ptr_t address;
10701}
10702lt_preloaded_symbols[] =
10703{
10704EOF
10705 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10706 cat <<\EOF >> conftest.$ac_ext
10707 {0, (lt_ptr_t) 0}
10708};
10709
10710#ifdef __cplusplus
10711}
10712#endif
10713EOF
10714 # Now try linking the two files.
10715 mv conftest.$ac_objext conftstm.$ac_objext
10716 lt_save_LIBS="$LIBS"
10717 lt_save_CFLAGS="$CFLAGS"
10718 LIBS="conftstm.$ac_objext"
10719 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010721 (eval $ac_link) 2>&5
10722 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010725 pipe_works=yes
10726 fi
10727 LIBS="$lt_save_LIBS"
10728 CFLAGS="$lt_save_CFLAGS"
10729 else
10730 echo "cannot find nm_test_func in $nlist" >&5
10731 fi
10732 else
10733 echo "cannot find nm_test_var in $nlist" >&5
10734 fi
10735 else
10736 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10737 fi
10738 else
10739 echo "$progname: failed program was:" >&5
10740 cat conftest.$ac_ext >&5
10741 fi
10742 rm -f conftest* conftst*
10743
10744 # Do not use the global_symbol_pipe unless it works.
10745 if test "$pipe_works" = yes; then
10746 break
10747 else
10748 lt_cv_sys_global_symbol_pipe=
10749 fi
10750done
10751
10752fi
10753
10754if test -z "$lt_cv_sys_global_symbol_pipe"; then
10755 lt_cv_sys_global_symbol_to_cdecl=
10756fi
10757if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010758 { echo "$as_me:$LINENO: result: failed" >&5
10759echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010760else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010761 { echo "$as_me:$LINENO: result: ok" >&5
10762echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010763fi
10764
10765
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010766{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10767echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10768if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10769 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010770else
10771 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10772 libltdl_cv_preloaded_symbols=yes
10773 else
10774 libltdl_cv_preloaded_symbols=no
10775 fi
10776
10777fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010778{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10779echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010780if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10781
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010782cat >>confdefs.h <<\_ACEOF
10783#define HAVE_PRELOADED_SYMBOLS 1
10784_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010785
10786fi
10787
10788LIBADD_DL=
10789
10790ac_ext=c
10791ac_cpp='$CPP $CPPFLAGS'
10792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10794ac_compiler_gnu=$ac_cv_c_compiler_gnu
10795
10796
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010797{ echo "$as_me:$LINENO: checking for shl_load" >&5
10798echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10799if test "${ac_cv_func_shl_load+set}" = set; then
10800 echo $ECHO_N "(cached) $ECHO_C" >&6
10801else
10802 cat >conftest.$ac_ext <<_ACEOF
10803/* confdefs.h. */
10804_ACEOF
10805cat confdefs.h >>conftest.$ac_ext
10806cat >>conftest.$ac_ext <<_ACEOF
10807/* end confdefs.h. */
10808/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10809 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10810#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010811
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010812/* System header to define __stub macros and hopefully few prototypes,
10813 which can conflict with char shl_load (); below.
10814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10815 <limits.h> exists even on freestanding compilers. */
10816
10817#ifdef __STDC__
10818# include <limits.h>
10819#else
10820# include <assert.h>
10821#endif
10822
10823#undef shl_load
10824
10825/* Override any GCC internal prototype to avoid an error.
10826 Use char because int might match the return type of a GCC
10827 builtin and then its argument prototype would still apply. */
10828#ifdef __cplusplus
10829extern "C"
10830#endif
10831char shl_load ();
10832/* The GNU C library defines this for functions which it implements
10833 to always fail with ENOSYS. Some functions are actually named
10834 something starting with __ and the normal name is an alias. */
10835#if defined __stub_shl_load || defined __stub___shl_load
10836choke me
10837#endif
10838
10839int
10840main ()
10841{
10842return shl_load ();
10843 ;
10844 return 0;
10845}
10846_ACEOF
10847rm -f conftest.$ac_objext conftest$ac_exeext
10848if { (ac_try="$ac_link"
10849case "(($ac_try" in
10850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10851 *) ac_try_echo=$ac_try;;
10852esac
10853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10854 (eval "$ac_link") 2>conftest.er1
10855 ac_status=$?
10856 grep -v '^ *+' conftest.er1 >conftest.err
10857 rm -f conftest.er1
10858 cat conftest.err >&5
10859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860 (exit $ac_status); } &&
10861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10862 { (case "(($ac_try" in
10863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10864 *) ac_try_echo=$ac_try;;
10865esac
10866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10867 (eval "$ac_try") 2>&5
10868 ac_status=$?
10869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870 (exit $ac_status); }; } &&
10871 { ac_try='test -s conftest$ac_exeext'
10872 { (case "(($ac_try" in
10873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10874 *) ac_try_echo=$ac_try;;
10875esac
10876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10877 (eval "$ac_try") 2>&5
10878 ac_status=$?
10879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880 (exit $ac_status); }; }; then
10881 ac_cv_func_shl_load=yes
10882else
10883 echo "$as_me: failed program was:" >&5
10884sed 's/^/| /' conftest.$ac_ext >&5
10885
10886 ac_cv_func_shl_load=no
10887fi
10888
10889rm -f core conftest.err conftest.$ac_objext \
10890 conftest$ac_exeext conftest.$ac_ext
10891fi
10892{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10893echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10894if test $ac_cv_func_shl_load = yes; then
10895
10896cat >>confdefs.h <<\_ACEOF
10897#define HAVE_SHL_LOAD 1
10898_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010899
10900else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010901 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10902echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10903if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10904 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010905else
10906 ac_check_lib_save_LIBS=$LIBS
10907LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010908cat >conftest.$ac_ext <<_ACEOF
10909/* confdefs.h. */
10910_ACEOF
10911cat confdefs.h >>conftest.$ac_ext
10912cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010913/* end confdefs.h. */
10914
Reid Spencera773bd52006-08-04 18:18:08 +000010915/* Override any GCC internal prototype to avoid an error.
10916 Use char because int might match the return type of a GCC
10917 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010918#ifdef __cplusplus
10919extern "C"
10920#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010921char shl_load ();
10922int
10923main ()
10924{
Reid Spencera773bd52006-08-04 18:18:08 +000010925return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010926 ;
10927 return 0;
10928}
10929_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010930rm -f conftest.$ac_objext conftest$ac_exeext
10931if { (ac_try="$ac_link"
10932case "(($ac_try" in
10933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10934 *) ac_try_echo=$ac_try;;
10935esac
10936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10937 (eval "$ac_link") 2>conftest.er1
10938 ac_status=$?
10939 grep -v '^ *+' conftest.er1 >conftest.err
10940 rm -f conftest.er1
10941 cat conftest.err >&5
10942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943 (exit $ac_status); } &&
10944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10945 { (case "(($ac_try" in
10946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10947 *) ac_try_echo=$ac_try;;
10948esac
10949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10950 (eval "$ac_try") 2>&5
10951 ac_status=$?
10952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953 (exit $ac_status); }; } &&
10954 { ac_try='test -s conftest$ac_exeext'
10955 { (case "(($ac_try" in
10956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10957 *) ac_try_echo=$ac_try;;
10958esac
10959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10960 (eval "$ac_try") 2>&5
10961 ac_status=$?
10962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010964 ac_cv_lib_dld_shl_load=yes
10965else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010966 echo "$as_me: failed program was:" >&5
10967sed 's/^/| /' conftest.$ac_ext >&5
10968
10969 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010970fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010971
Bill Wendlingebcceee2009-04-18 11:20:33 +000010972rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010973 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010974LIBS=$ac_check_lib_save_LIBS
10975fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010976{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10977echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10978if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010979
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010980cat >>confdefs.h <<\_ACEOF
10981#define HAVE_SHL_LOAD 1
10982_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010983
10984 LIBADD_DL="$LIBADD_DL -ldld"
10985else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010986 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10987echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10988if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10989 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010990else
10991 ac_check_lib_save_LIBS=$LIBS
10992LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010993cat >conftest.$ac_ext <<_ACEOF
10994/* confdefs.h. */
10995_ACEOF
10996cat confdefs.h >>conftest.$ac_ext
10997cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010998/* end confdefs.h. */
10999
Reid Spencera773bd52006-08-04 18:18:08 +000011000/* Override any GCC internal prototype to avoid an error.
11001 Use char because int might match the return type of a GCC
11002 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011003#ifdef __cplusplus
11004extern "C"
11005#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011006char dlopen ();
11007int
11008main ()
11009{
Reid Spencera773bd52006-08-04 18:18:08 +000011010return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011011 ;
11012 return 0;
11013}
11014_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011015rm -f conftest.$ac_objext conftest$ac_exeext
11016if { (ac_try="$ac_link"
11017case "(($ac_try" in
11018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11019 *) ac_try_echo=$ac_try;;
11020esac
11021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11022 (eval "$ac_link") 2>conftest.er1
11023 ac_status=$?
11024 grep -v '^ *+' conftest.er1 >conftest.err
11025 rm -f conftest.er1
11026 cat conftest.err >&5
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); } &&
11029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11030 { (case "(($ac_try" in
11031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11032 *) ac_try_echo=$ac_try;;
11033esac
11034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11035 (eval "$ac_try") 2>&5
11036 ac_status=$?
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); }; } &&
11039 { ac_try='test -s conftest$ac_exeext'
11040 { (case "(($ac_try" in
11041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11042 *) ac_try_echo=$ac_try;;
11043esac
11044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11045 (eval "$ac_try") 2>&5
11046 ac_status=$?
11047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011049 ac_cv_lib_dl_dlopen=yes
11050else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011051 echo "$as_me: failed program was:" >&5
11052sed 's/^/| /' conftest.$ac_ext >&5
11053
11054 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011055fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011056
Bill Wendlingebcceee2009-04-18 11:20:33 +000011057rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011058 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011059LIBS=$ac_check_lib_save_LIBS
11060fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011061{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11062echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11063if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011064
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011065cat >>confdefs.h <<\_ACEOF
11066#define HAVE_LIBDL 1
11067_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011068
11069 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
11070else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011071 cat >conftest.$ac_ext <<_ACEOF
11072/* confdefs.h. */
11073_ACEOF
11074cat confdefs.h >>conftest.$ac_ext
11075cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011076/* end confdefs.h. */
11077#if HAVE_DLFCN_H
11078# include <dlfcn.h>
11079#endif
11080
11081int
11082main ()
11083{
11084dlopen(0, 0);
11085 ;
11086 return 0;
11087}
11088_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011089rm -f conftest.$ac_objext conftest$ac_exeext
11090if { (ac_try="$ac_link"
11091case "(($ac_try" in
11092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11093 *) ac_try_echo=$ac_try;;
11094esac
11095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11096 (eval "$ac_link") 2>conftest.er1
11097 ac_status=$?
11098 grep -v '^ *+' conftest.er1 >conftest.err
11099 rm -f conftest.er1
11100 cat conftest.err >&5
11101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102 (exit $ac_status); } &&
11103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11104 { (case "(($ac_try" in
11105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11106 *) ac_try_echo=$ac_try;;
11107esac
11108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11109 (eval "$ac_try") 2>&5
11110 ac_status=$?
11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); }; } &&
11113 { ac_try='test -s conftest$ac_exeext'
11114 { (case "(($ac_try" in
11115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11116 *) ac_try_echo=$ac_try;;
11117esac
11118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11119 (eval "$ac_try") 2>&5
11120 ac_status=$?
11121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011123
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011124cat >>confdefs.h <<\_ACEOF
11125#define HAVE_LIBDL 1
11126_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011127 libltdl_cv_func_dlopen="yes"
11128else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011129 echo "$as_me: failed program was:" >&5
11130sed 's/^/| /' conftest.$ac_ext >&5
11131
11132 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11133echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11134if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11135 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011136else
11137 ac_check_lib_save_LIBS=$LIBS
11138LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011139cat >conftest.$ac_ext <<_ACEOF
11140/* confdefs.h. */
11141_ACEOF
11142cat confdefs.h >>conftest.$ac_ext
11143cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011144/* end confdefs.h. */
11145
Reid Spencera773bd52006-08-04 18:18:08 +000011146/* Override any GCC internal prototype to avoid an error.
11147 Use char because int might match the return type of a GCC
11148 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011149#ifdef __cplusplus
11150extern "C"
11151#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011152char dlopen ();
11153int
11154main ()
11155{
Reid Spencera773bd52006-08-04 18:18:08 +000011156return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011157 ;
11158 return 0;
11159}
11160_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011161rm -f conftest.$ac_objext conftest$ac_exeext
11162if { (ac_try="$ac_link"
11163case "(($ac_try" in
11164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11165 *) ac_try_echo=$ac_try;;
11166esac
11167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11168 (eval "$ac_link") 2>conftest.er1
11169 ac_status=$?
11170 grep -v '^ *+' conftest.er1 >conftest.err
11171 rm -f conftest.er1
11172 cat conftest.err >&5
11173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174 (exit $ac_status); } &&
11175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11176 { (case "(($ac_try" in
11177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11178 *) ac_try_echo=$ac_try;;
11179esac
11180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11181 (eval "$ac_try") 2>&5
11182 ac_status=$?
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); }; } &&
11185 { ac_try='test -s conftest$ac_exeext'
11186 { (case "(($ac_try" in
11187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11188 *) ac_try_echo=$ac_try;;
11189esac
11190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11191 (eval "$ac_try") 2>&5
11192 ac_status=$?
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011195 ac_cv_lib_svld_dlopen=yes
11196else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011197 echo "$as_me: failed program was:" >&5
11198sed 's/^/| /' conftest.$ac_ext >&5
11199
11200 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011201fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011202
Bill Wendlingebcceee2009-04-18 11:20:33 +000011203rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011204 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011205LIBS=$ac_check_lib_save_LIBS
11206fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011207{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11208echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11209if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011210
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011211cat >>confdefs.h <<\_ACEOF
11212#define HAVE_LIBDL 1
11213_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011214
11215 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
11216else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011217 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11218echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11219if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11220 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011221else
11222 ac_check_lib_save_LIBS=$LIBS
11223LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011224cat >conftest.$ac_ext <<_ACEOF
11225/* confdefs.h. */
11226_ACEOF
11227cat confdefs.h >>conftest.$ac_ext
11228cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011229/* end confdefs.h. */
11230
Reid Spencera773bd52006-08-04 18:18:08 +000011231/* Override any GCC internal prototype to avoid an error.
11232 Use char because int might match the return type of a GCC
11233 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011234#ifdef __cplusplus
11235extern "C"
11236#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011237char dld_link ();
11238int
11239main ()
11240{
Reid Spencera773bd52006-08-04 18:18:08 +000011241return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011242 ;
11243 return 0;
11244}
11245_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011246rm -f conftest.$ac_objext conftest$ac_exeext
11247if { (ac_try="$ac_link"
11248case "(($ac_try" in
11249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11250 *) ac_try_echo=$ac_try;;
11251esac
11252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11253 (eval "$ac_link") 2>conftest.er1
11254 ac_status=$?
11255 grep -v '^ *+' conftest.er1 >conftest.err
11256 rm -f conftest.er1
11257 cat conftest.err >&5
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); } &&
11260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11261 { (case "(($ac_try" in
11262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11263 *) ac_try_echo=$ac_try;;
11264esac
11265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11266 (eval "$ac_try") 2>&5
11267 ac_status=$?
11268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269 (exit $ac_status); }; } &&
11270 { ac_try='test -s conftest$ac_exeext'
11271 { (case "(($ac_try" in
11272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11273 *) ac_try_echo=$ac_try;;
11274esac
11275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11276 (eval "$ac_try") 2>&5
11277 ac_status=$?
11278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011280 ac_cv_lib_dld_dld_link=yes
11281else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011282 echo "$as_me: failed program was:" >&5
11283sed 's/^/| /' conftest.$ac_ext >&5
11284
11285 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011286fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011287
Bill Wendlingebcceee2009-04-18 11:20:33 +000011288rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011289 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011290LIBS=$ac_check_lib_save_LIBS
11291fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011292{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11293echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11294if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011295
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011296cat >>confdefs.h <<\_ACEOF
11297#define HAVE_DLD 1
11298_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011299
11300 LIBADD_DL="$LIBADD_DL -ldld"
11301else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011302 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11303echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11304if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11305 echo $ECHO_N "(cached) $ECHO_C" >&6
11306else
11307 cat >conftest.$ac_ext <<_ACEOF
11308/* confdefs.h. */
11309_ACEOF
11310cat confdefs.h >>conftest.$ac_ext
11311cat >>conftest.$ac_ext <<_ACEOF
11312/* end confdefs.h. */
11313/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11314 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11315#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011316
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011317/* System header to define __stub macros and hopefully few prototypes,
11318 which can conflict with char _dyld_func_lookup (); below.
11319 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11320 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011321
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011322#ifdef __STDC__
11323# include <limits.h>
11324#else
11325# include <assert.h>
11326#endif
11327
11328#undef _dyld_func_lookup
11329
11330/* Override any GCC internal prototype to avoid an error.
11331 Use char because int might match the return type of a GCC
11332 builtin and then its argument prototype would still apply. */
11333#ifdef __cplusplus
11334extern "C"
11335#endif
11336char _dyld_func_lookup ();
11337/* The GNU C library defines this for functions which it implements
11338 to always fail with ENOSYS. Some functions are actually named
11339 something starting with __ and the normal name is an alias. */
11340#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11341choke me
11342#endif
11343
11344int
11345main ()
11346{
11347return _dyld_func_lookup ();
11348 ;
11349 return 0;
11350}
11351_ACEOF
11352rm -f conftest.$ac_objext conftest$ac_exeext
11353if { (ac_try="$ac_link"
11354case "(($ac_try" in
11355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11356 *) ac_try_echo=$ac_try;;
11357esac
11358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11359 (eval "$ac_link") 2>conftest.er1
11360 ac_status=$?
11361 grep -v '^ *+' conftest.er1 >conftest.err
11362 rm -f conftest.er1
11363 cat conftest.err >&5
11364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365 (exit $ac_status); } &&
11366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11367 { (case "(($ac_try" in
11368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11369 *) ac_try_echo=$ac_try;;
11370esac
11371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11372 (eval "$ac_try") 2>&5
11373 ac_status=$?
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); }; } &&
11376 { ac_try='test -s conftest$ac_exeext'
11377 { (case "(($ac_try" in
11378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11379 *) ac_try_echo=$ac_try;;
11380esac
11381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11382 (eval "$ac_try") 2>&5
11383 ac_status=$?
11384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385 (exit $ac_status); }; }; then
11386 ac_cv_func__dyld_func_lookup=yes
11387else
11388 echo "$as_me: failed program was:" >&5
11389sed 's/^/| /' conftest.$ac_ext >&5
11390
11391 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011392fi
Reid Spencera773bd52006-08-04 18:18:08 +000011393
Bill Wendlingebcceee2009-04-18 11:20:33 +000011394rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011395 conftest$ac_exeext conftest.$ac_ext
11396fi
11397{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11398echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11399if test $ac_cv_func__dyld_func_lookup = yes; then
11400
11401cat >>confdefs.h <<\_ACEOF
11402#define HAVE_DYLD 1
11403_ACEOF
11404
11405fi
11406
11407
11408fi
11409
11410
11411fi
11412
11413
11414fi
11415
11416rm -f core conftest.err conftest.$ac_objext \
11417 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011418
11419fi
11420
11421
11422fi
11423
11424
11425fi
11426
11427
11428if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11429then
11430 lt_save_LIBS="$LIBS"
11431 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011432
11433for ac_func in dlerror
11434do
11435as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11436{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11437echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11438if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11439 echo $ECHO_N "(cached) $ECHO_C" >&6
11440else
11441 cat >conftest.$ac_ext <<_ACEOF
11442/* confdefs.h. */
11443_ACEOF
11444cat confdefs.h >>conftest.$ac_ext
11445cat >>conftest.$ac_ext <<_ACEOF
11446/* end confdefs.h. */
11447/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11448 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11449#define $ac_func innocuous_$ac_func
11450
11451/* System header to define __stub macros and hopefully few prototypes,
11452 which can conflict with char $ac_func (); below.
11453 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11454 <limits.h> exists even on freestanding compilers. */
11455
11456#ifdef __STDC__
11457# include <limits.h>
11458#else
11459# include <assert.h>
11460#endif
11461
11462#undef $ac_func
11463
11464/* Override any GCC internal prototype to avoid an error.
11465 Use char because int might match the return type of a GCC
11466 builtin and then its argument prototype would still apply. */
11467#ifdef __cplusplus
11468extern "C"
11469#endif
11470char $ac_func ();
11471/* The GNU C library defines this for functions which it implements
11472 to always fail with ENOSYS. Some functions are actually named
11473 something starting with __ and the normal name is an alias. */
11474#if defined __stub_$ac_func || defined __stub___$ac_func
11475choke me
11476#endif
11477
11478int
11479main ()
11480{
11481return $ac_func ();
11482 ;
11483 return 0;
11484}
11485_ACEOF
11486rm -f conftest.$ac_objext conftest$ac_exeext
11487if { (ac_try="$ac_link"
11488case "(($ac_try" in
11489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11490 *) ac_try_echo=$ac_try;;
11491esac
11492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11493 (eval "$ac_link") 2>conftest.er1
11494 ac_status=$?
11495 grep -v '^ *+' conftest.er1 >conftest.err
11496 rm -f conftest.er1
11497 cat conftest.err >&5
11498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499 (exit $ac_status); } &&
11500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11501 { (case "(($ac_try" in
11502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11503 *) ac_try_echo=$ac_try;;
11504esac
11505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11506 (eval "$ac_try") 2>&5
11507 ac_status=$?
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); }; } &&
11510 { ac_try='test -s conftest$ac_exeext'
11511 { (case "(($ac_try" in
11512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11513 *) ac_try_echo=$ac_try;;
11514esac
11515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11516 (eval "$ac_try") 2>&5
11517 ac_status=$?
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); }; }; then
11520 eval "$as_ac_var=yes"
11521else
11522 echo "$as_me: failed program was:" >&5
11523sed 's/^/| /' conftest.$ac_ext >&5
11524
11525 eval "$as_ac_var=no"
11526fi
11527
11528rm -f core conftest.err conftest.$ac_objext \
11529 conftest$ac_exeext conftest.$ac_ext
11530fi
11531ac_res=`eval echo '${'$as_ac_var'}'`
11532 { echo "$as_me:$LINENO: result: $ac_res" >&5
11533echo "${ECHO_T}$ac_res" >&6; }
11534if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011535 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011536#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011537_ACEOF
11538
11539fi
11540done
11541
11542 LIBS="$lt_save_LIBS"
11543fi
11544ac_ext=c
11545ac_cpp='$CPP $CPPFLAGS'
11546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11548ac_compiler_gnu=$ac_cv_c_compiler_gnu
11549
11550
11551
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011552{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11553echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11554if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11555 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011556else
11557 ac_cv_sys_symbol_underscore=no
11558 cat > conftest.$ac_ext <<EOF
11559void nm_test_func(){}
11560int main(){nm_test_func;return 0;}
11561EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011563 (eval $ac_compile) 2>&5
11564 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011567 # Now try to grab the symbols.
11568 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011569 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 +000011570 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11571 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011574 # See whether the symbols have a leading underscore.
11575 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11576 ac_cv_sys_symbol_underscore=yes
11577 else
11578 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11579 :
11580 else
11581 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11582 fi
11583 fi
11584 else
11585 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11586 fi
11587 else
11588 echo "configure: failed program was:" >&5
11589 cat conftest.c >&5
11590 fi
11591 rm -rf conftest*
11592
11593fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011594{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11595echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011596
11597
11598if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11599 if test x"$libltdl_cv_func_dlopen" = xyes ||
11600 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011601 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11602echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11603if test "${libltdl_cv_need_uscore+set}" = set; then
11604 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011605else
11606 libltdl_cv_need_uscore=unknown
11607 save_LIBS="$LIBS"
11608 LIBS="$LIBS $LIBADD_DL"
11609 if test "$cross_compiling" = yes; then :
11610 libltdl_cv_need_uscore=cross
11611else
11612 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11613 lt_status=$lt_dlunknown
11614 cat > conftest.$ac_ext <<EOF
Eric Christopher91e7ccd2011-07-20 17:04:49 +000011615#line 11621 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011616#include "confdefs.h"
11617
11618#if HAVE_DLFCN_H
11619#include <dlfcn.h>
11620#endif
11621
11622#include <stdio.h>
11623
11624#ifdef RTLD_GLOBAL
11625# define LT_DLGLOBAL RTLD_GLOBAL
11626#else
11627# ifdef DL_GLOBAL
11628# define LT_DLGLOBAL DL_GLOBAL
11629# else
11630# define LT_DLGLOBAL 0
11631# endif
11632#endif
11633
11634/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11635 find out it does not work in some platform. */
11636#ifndef LT_DLLAZY_OR_NOW
11637# ifdef RTLD_LAZY
11638# define LT_DLLAZY_OR_NOW RTLD_LAZY
11639# else
11640# ifdef DL_LAZY
11641# define LT_DLLAZY_OR_NOW DL_LAZY
11642# else
11643# ifdef RTLD_NOW
11644# define LT_DLLAZY_OR_NOW RTLD_NOW
11645# else
11646# ifdef DL_NOW
11647# define LT_DLLAZY_OR_NOW DL_NOW
11648# else
11649# define LT_DLLAZY_OR_NOW 0
11650# endif
11651# endif
11652# endif
11653# endif
11654#endif
11655
11656#ifdef __cplusplus
11657extern "C" void exit (int);
11658#endif
11659
11660void fnord() { int i=42;}
11661int main ()
11662{
11663 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11664 int status = $lt_dlunknown;
11665
11666 if (self)
11667 {
11668 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11669 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11670 /* dlclose (self); */
11671 }
Reid Spencera773bd52006-08-04 18:18:08 +000011672 else
11673 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011674
11675 exit (status);
11676}
11677EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011679 (eval $ac_link) 2>&5
11680 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000011683 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011684 lt_status=$?
11685 case x$lt_status in
11686 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11687 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011688 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011689 esac
11690 else :
11691 # compilation failed
11692
11693 fi
11694fi
11695rm -fr conftest*
11696
11697 LIBS="$save_LIBS"
11698
11699fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011700{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11701echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011702 fi
11703fi
11704
11705if test x"$libltdl_cv_need_uscore" = xyes; then
11706
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011707cat >>confdefs.h <<\_ACEOF
11708#define NEED_USCORE 1
11709_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011710
11711fi
11712
11713
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011714{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11715echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11716if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11717 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011718else
11719 # PORTME does your system automatically load deplibs for dlopen?
11720 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11721 # For now, we just catch OSes we know something about -- in the
11722 # future, we'll try test this programmatically.
11723 libltdl_cv_sys_dlopen_deplibs=unknown
11724 case "$host_os" in
11725 aix3*|aix4.1.*|aix4.2.*)
11726 # Unknown whether this is true for these versions of AIX, but
11727 # we want this `case' here to explicitly catch those versions.
11728 libltdl_cv_sys_dlopen_deplibs=unknown
11729 ;;
11730 aix[45]*)
11731 libltdl_cv_sys_dlopen_deplibs=yes
11732 ;;
11733 darwin*)
11734 # Assuming the user has installed a libdl from somewhere, this is true
11735 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11736 libltdl_cv_sys_dlopen_deplibs=yes
11737 ;;
11738 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11739 # GNU and its variants, using gnu ld.so (Glibc)
11740 libltdl_cv_sys_dlopen_deplibs=yes
11741 ;;
11742 hpux10*|hpux11*)
11743 libltdl_cv_sys_dlopen_deplibs=yes
11744 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011745 interix*)
11746 libltdl_cv_sys_dlopen_deplibs=yes
11747 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011748 irix[12345]*|irix6.[01]*)
11749 # Catch all versions of IRIX before 6.2, and indicate that we don't
11750 # know how it worked for any of those versions.
11751 libltdl_cv_sys_dlopen_deplibs=unknown
11752 ;;
11753 irix*)
11754 # The case above catches anything before 6.2, and it's known that
11755 # at 6.2 and later dlopen does load deplibs.
11756 libltdl_cv_sys_dlopen_deplibs=yes
11757 ;;
11758 netbsd*)
11759 libltdl_cv_sys_dlopen_deplibs=yes
11760 ;;
11761 openbsd*)
11762 libltdl_cv_sys_dlopen_deplibs=yes
11763 ;;
11764 osf[1234]*)
11765 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11766 # it did *not* use an RPATH in a shared library to find objects the
Chris Lattner7a2bdde2011-04-15 05:18:47 +000011767 # library depends on, so we explicitly say `no'.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011768 libltdl_cv_sys_dlopen_deplibs=no
11769 ;;
11770 osf5.0|osf5.0a|osf5.1)
11771 # dlopen *does* load deplibs and with the right loader patch applied
11772 # it even uses RPATH in a shared library to search for shared objects
11773 # that the library depends on, but there's no easy way to know if that
11774 # patch is installed. Since this is the case, all we can really
11775 # say is unknown -- it depends on the patch being installed. If
11776 # it is, this changes to `yes'. Without it, it would be `no'.
11777 libltdl_cv_sys_dlopen_deplibs=unknown
11778 ;;
11779 osf*)
11780 # the two cases above should catch all versions of osf <= 5.1. Read
11781 # the comments above for what we know about them.
11782 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11783 # is used to find them so we can finally say `yes'.
11784 libltdl_cv_sys_dlopen_deplibs=yes
11785 ;;
11786 solaris*)
11787 libltdl_cv_sys_dlopen_deplibs=yes
11788 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011789 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11790 libltdl_cv_sys_dlopen_deplibs=yes
11791 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011792 esac
11793
11794fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011795{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11796echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011797if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11798
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011799cat >>confdefs.h <<\_ACEOF
11800#define LTDL_DLOPEN_DEPLIBS 1
11801_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011802
11803fi
11804
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011805
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011806for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011807do
11808as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11809if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11810 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11811echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11812if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11813 echo $ECHO_N "(cached) $ECHO_C" >&6
11814fi
11815ac_res=`eval echo '${'$as_ac_Header'}'`
11816 { echo "$as_me:$LINENO: result: $ac_res" >&5
11817echo "${ECHO_T}$ac_res" >&6; }
11818else
11819 # Is the header compilable?
11820{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11821echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11822cat >conftest.$ac_ext <<_ACEOF
11823/* confdefs.h. */
11824_ACEOF
11825cat confdefs.h >>conftest.$ac_ext
11826cat >>conftest.$ac_ext <<_ACEOF
11827/* end confdefs.h. */
11828$ac_includes_default
11829#include <$ac_header>
11830_ACEOF
11831rm -f conftest.$ac_objext
11832if { (ac_try="$ac_compile"
11833case "(($ac_try" in
11834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11835 *) ac_try_echo=$ac_try;;
11836esac
11837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11838 (eval "$ac_compile") 2>conftest.er1
11839 ac_status=$?
11840 grep -v '^ *+' conftest.er1 >conftest.err
11841 rm -f conftest.er1
11842 cat conftest.err >&5
11843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844 (exit $ac_status); } &&
11845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11846 { (case "(($ac_try" in
11847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11848 *) ac_try_echo=$ac_try;;
11849esac
11850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11851 (eval "$ac_try") 2>&5
11852 ac_status=$?
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); }; } &&
11855 { ac_try='test -s conftest.$ac_objext'
11856 { (case "(($ac_try" in
11857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11858 *) ac_try_echo=$ac_try;;
11859esac
11860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11861 (eval "$ac_try") 2>&5
11862 ac_status=$?
11863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864 (exit $ac_status); }; }; then
11865 ac_header_compiler=yes
11866else
11867 echo "$as_me: failed program was:" >&5
11868sed 's/^/| /' conftest.$ac_ext >&5
11869
11870 ac_header_compiler=no
11871fi
11872
11873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11874{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11875echo "${ECHO_T}$ac_header_compiler" >&6; }
11876
11877# Is the header present?
11878{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11879echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11880cat >conftest.$ac_ext <<_ACEOF
11881/* confdefs.h. */
11882_ACEOF
11883cat confdefs.h >>conftest.$ac_ext
11884cat >>conftest.$ac_ext <<_ACEOF
11885/* end confdefs.h. */
11886#include <$ac_header>
11887_ACEOF
11888if { (ac_try="$ac_cpp conftest.$ac_ext"
11889case "(($ac_try" in
11890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11891 *) ac_try_echo=$ac_try;;
11892esac
11893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11894 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11895 ac_status=$?
11896 grep -v '^ *+' conftest.er1 >conftest.err
11897 rm -f conftest.er1
11898 cat conftest.err >&5
11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); } >/dev/null; then
11901 if test -s conftest.err; then
11902 ac_cpp_err=$ac_c_preproc_warn_flag
11903 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11904 else
11905 ac_cpp_err=
11906 fi
11907else
11908 ac_cpp_err=yes
11909fi
11910if test -z "$ac_cpp_err"; then
11911 ac_header_preproc=yes
11912else
11913 echo "$as_me: failed program was:" >&5
11914sed 's/^/| /' conftest.$ac_ext >&5
11915
11916 ac_header_preproc=no
11917fi
11918
11919rm -f conftest.err conftest.$ac_ext
11920{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11921echo "${ECHO_T}$ac_header_preproc" >&6; }
11922
11923# So? What about this header?
11924case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11925 yes:no: )
11926 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11927echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11929echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11930 ac_header_preproc=yes
11931 ;;
11932 no:yes:* )
11933 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11934echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11935 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11936echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11937 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11938echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11939 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11940echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11942echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11943 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11944echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11945 ( cat <<\_ASBOX
11946## ----------------------------------- ##
11947## Report this to llvmbugs@cs.uiuc.edu ##
11948## ----------------------------------- ##
11949_ASBOX
11950 ) | sed "s/^/$as_me: WARNING: /" >&2
11951 ;;
11952esac
11953{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11954echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11955if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11956 echo $ECHO_N "(cached) $ECHO_C" >&6
11957else
11958 eval "$as_ac_Header=\$ac_header_preproc"
11959fi
11960ac_res=`eval echo '${'$as_ac_Header'}'`
11961 { echo "$as_me:$LINENO: result: $ac_res" >&5
11962echo "${ECHO_T}$ac_res" >&6; }
11963
11964fi
11965if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011966 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011967#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011968_ACEOF
11969
11970fi
11971
11972done
11973
11974
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011975{ echo "$as_me:$LINENO: checking for error_t" >&5
11976echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11977if test "${ac_cv_type_error_t+set}" = set; then
11978 echo $ECHO_N "(cached) $ECHO_C" >&6
11979else
11980 cat >conftest.$ac_ext <<_ACEOF
11981/* confdefs.h. */
11982_ACEOF
11983cat confdefs.h >>conftest.$ac_ext
11984cat >>conftest.$ac_ext <<_ACEOF
11985/* end confdefs.h. */
11986#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011987# include <argz.h>
11988#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011989
11990typedef error_t ac__type_new_;
11991int
11992main ()
11993{
11994if ((ac__type_new_ *) 0)
11995 return 0;
11996if (sizeof (ac__type_new_))
11997 return 0;
11998 ;
11999 return 0;
12000}
12001_ACEOF
12002rm -f conftest.$ac_objext
12003if { (ac_try="$ac_compile"
12004case "(($ac_try" in
12005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12006 *) ac_try_echo=$ac_try;;
12007esac
12008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12009 (eval "$ac_compile") 2>conftest.er1
12010 ac_status=$?
12011 grep -v '^ *+' conftest.er1 >conftest.err
12012 rm -f conftest.er1
12013 cat conftest.err >&5
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); } &&
12016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12017 { (case "(($ac_try" in
12018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12019 *) ac_try_echo=$ac_try;;
12020esac
12021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12022 (eval "$ac_try") 2>&5
12023 ac_status=$?
12024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025 (exit $ac_status); }; } &&
12026 { ac_try='test -s conftest.$ac_objext'
12027 { (case "(($ac_try" in
12028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12029 *) ac_try_echo=$ac_try;;
12030esac
12031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12032 (eval "$ac_try") 2>&5
12033 ac_status=$?
12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); }; }; then
12036 ac_cv_type_error_t=yes
12037else
12038 echo "$as_me: failed program was:" >&5
12039sed 's/^/| /' conftest.$ac_ext >&5
12040
12041 ac_cv_type_error_t=no
12042fi
12043
12044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12045fi
12046{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
12047echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
12048if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012049
12050cat >>confdefs.h <<_ACEOF
12051#define HAVE_ERROR_T 1
12052_ACEOF
12053
12054
12055else
12056
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012057cat >>confdefs.h <<\_ACEOF
12058#define error_t int
12059_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012060
12061fi
12062
12063
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012064
12065
12066
12067
12068
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012069for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012070do
12071as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12072{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12073echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12074if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12075 echo $ECHO_N "(cached) $ECHO_C" >&6
12076else
12077 cat >conftest.$ac_ext <<_ACEOF
12078/* confdefs.h. */
12079_ACEOF
12080cat confdefs.h >>conftest.$ac_ext
12081cat >>conftest.$ac_ext <<_ACEOF
12082/* end confdefs.h. */
12083/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12085#define $ac_func innocuous_$ac_func
12086
12087/* System header to define __stub macros and hopefully few prototypes,
12088 which can conflict with char $ac_func (); below.
12089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12090 <limits.h> exists even on freestanding compilers. */
12091
12092#ifdef __STDC__
12093# include <limits.h>
12094#else
12095# include <assert.h>
12096#endif
12097
12098#undef $ac_func
12099
12100/* Override any GCC internal prototype to avoid an error.
12101 Use char because int might match the return type of a GCC
12102 builtin and then its argument prototype would still apply. */
12103#ifdef __cplusplus
12104extern "C"
12105#endif
12106char $ac_func ();
12107/* The GNU C library defines this for functions which it implements
12108 to always fail with ENOSYS. Some functions are actually named
12109 something starting with __ and the normal name is an alias. */
12110#if defined __stub_$ac_func || defined __stub___$ac_func
12111choke me
12112#endif
12113
12114int
12115main ()
12116{
12117return $ac_func ();
12118 ;
12119 return 0;
12120}
12121_ACEOF
12122rm -f conftest.$ac_objext conftest$ac_exeext
12123if { (ac_try="$ac_link"
12124case "(($ac_try" in
12125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12126 *) ac_try_echo=$ac_try;;
12127esac
12128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12129 (eval "$ac_link") 2>conftest.er1
12130 ac_status=$?
12131 grep -v '^ *+' conftest.er1 >conftest.err
12132 rm -f conftest.er1
12133 cat conftest.err >&5
12134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135 (exit $ac_status); } &&
12136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12137 { (case "(($ac_try" in
12138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12139 *) ac_try_echo=$ac_try;;
12140esac
12141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12142 (eval "$ac_try") 2>&5
12143 ac_status=$?
12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145 (exit $ac_status); }; } &&
12146 { ac_try='test -s conftest$ac_exeext'
12147 { (case "(($ac_try" in
12148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12149 *) ac_try_echo=$ac_try;;
12150esac
12151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12152 (eval "$ac_try") 2>&5
12153 ac_status=$?
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); }; }; then
12156 eval "$as_ac_var=yes"
12157else
12158 echo "$as_me: failed program was:" >&5
12159sed 's/^/| /' conftest.$ac_ext >&5
12160
12161 eval "$as_ac_var=no"
12162fi
12163
12164rm -f core conftest.err conftest.$ac_objext \
12165 conftest$ac_exeext conftest.$ac_ext
12166fi
12167ac_res=`eval echo '${'$as_ac_var'}'`
12168 { echo "$as_me:$LINENO: result: $ac_res" >&5
12169echo "${ECHO_T}$ac_res" >&6; }
12170if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012171 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012172#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012173_ACEOF
12174
12175fi
12176done
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012197
12198
12199
12200
12201
12202
12203
12204
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012205for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
12206 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012207do
12208as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12209if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12210 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12211echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12212if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12213 echo $ECHO_N "(cached) $ECHO_C" >&6
12214fi
12215ac_res=`eval echo '${'$as_ac_Header'}'`
12216 { echo "$as_me:$LINENO: result: $ac_res" >&5
12217echo "${ECHO_T}$ac_res" >&6; }
12218else
12219 # Is the header compilable?
12220{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12221echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12222cat >conftest.$ac_ext <<_ACEOF
12223/* confdefs.h. */
12224_ACEOF
12225cat confdefs.h >>conftest.$ac_ext
12226cat >>conftest.$ac_ext <<_ACEOF
12227/* end confdefs.h. */
12228$ac_includes_default
12229#include <$ac_header>
12230_ACEOF
12231rm -f conftest.$ac_objext
12232if { (ac_try="$ac_compile"
12233case "(($ac_try" in
12234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12235 *) ac_try_echo=$ac_try;;
12236esac
12237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12238 (eval "$ac_compile") 2>conftest.er1
12239 ac_status=$?
12240 grep -v '^ *+' conftest.er1 >conftest.err
12241 rm -f conftest.er1
12242 cat conftest.err >&5
12243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244 (exit $ac_status); } &&
12245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12246 { (case "(($ac_try" in
12247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12248 *) ac_try_echo=$ac_try;;
12249esac
12250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12251 (eval "$ac_try") 2>&5
12252 ac_status=$?
12253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254 (exit $ac_status); }; } &&
12255 { ac_try='test -s conftest.$ac_objext'
12256 { (case "(($ac_try" in
12257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12258 *) ac_try_echo=$ac_try;;
12259esac
12260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12261 (eval "$ac_try") 2>&5
12262 ac_status=$?
12263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264 (exit $ac_status); }; }; then
12265 ac_header_compiler=yes
12266else
12267 echo "$as_me: failed program was:" >&5
12268sed 's/^/| /' conftest.$ac_ext >&5
12269
12270 ac_header_compiler=no
12271fi
12272
12273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12274{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12275echo "${ECHO_T}$ac_header_compiler" >&6; }
12276
12277# Is the header present?
12278{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12279echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12280cat >conftest.$ac_ext <<_ACEOF
12281/* confdefs.h. */
12282_ACEOF
12283cat confdefs.h >>conftest.$ac_ext
12284cat >>conftest.$ac_ext <<_ACEOF
12285/* end confdefs.h. */
12286#include <$ac_header>
12287_ACEOF
12288if { (ac_try="$ac_cpp conftest.$ac_ext"
12289case "(($ac_try" in
12290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12291 *) ac_try_echo=$ac_try;;
12292esac
12293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12294 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12295 ac_status=$?
12296 grep -v '^ *+' conftest.er1 >conftest.err
12297 rm -f conftest.er1
12298 cat conftest.err >&5
12299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300 (exit $ac_status); } >/dev/null; then
12301 if test -s conftest.err; then
12302 ac_cpp_err=$ac_c_preproc_warn_flag
12303 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12304 else
12305 ac_cpp_err=
12306 fi
12307else
12308 ac_cpp_err=yes
12309fi
12310if test -z "$ac_cpp_err"; then
12311 ac_header_preproc=yes
12312else
12313 echo "$as_me: failed program was:" >&5
12314sed 's/^/| /' conftest.$ac_ext >&5
12315
12316 ac_header_preproc=no
12317fi
12318
12319rm -f conftest.err conftest.$ac_ext
12320{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12321echo "${ECHO_T}$ac_header_preproc" >&6; }
12322
12323# So? What about this header?
12324case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12325 yes:no: )
12326 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12327echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12328 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12329echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12330 ac_header_preproc=yes
12331 ;;
12332 no:yes:* )
12333 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12334echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12335 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12336echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12337 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12338echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12339 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12340echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12341 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12342echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12343 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12344echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12345 ( cat <<\_ASBOX
12346## ----------------------------------- ##
12347## Report this to llvmbugs@cs.uiuc.edu ##
12348## ----------------------------------- ##
12349_ASBOX
12350 ) | sed "s/^/$as_me: WARNING: /" >&2
12351 ;;
12352esac
12353{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12354echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12355if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12356 echo $ECHO_N "(cached) $ECHO_C" >&6
12357else
12358 eval "$as_ac_Header=\$ac_header_preproc"
12359fi
12360ac_res=`eval echo '${'$as_ac_Header'}'`
12361 { echo "$as_me:$LINENO: result: $ac_res" >&5
12362echo "${ECHO_T}$ac_res" >&6; }
12363
12364fi
12365if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012366 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012367#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012368_ACEOF
12369
12370fi
12371
12372done
12373
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012374
12375
12376
12377
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012378for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012379do
12380as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12381if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12382 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12383echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12384if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12385 echo $ECHO_N "(cached) $ECHO_C" >&6
12386fi
12387ac_res=`eval echo '${'$as_ac_Header'}'`
12388 { echo "$as_me:$LINENO: result: $ac_res" >&5
12389echo "${ECHO_T}$ac_res" >&6; }
12390else
12391 # Is the header compilable?
12392{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12393echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12394cat >conftest.$ac_ext <<_ACEOF
12395/* confdefs.h. */
12396_ACEOF
12397cat confdefs.h >>conftest.$ac_ext
12398cat >>conftest.$ac_ext <<_ACEOF
12399/* end confdefs.h. */
12400$ac_includes_default
12401#include <$ac_header>
12402_ACEOF
12403rm -f conftest.$ac_objext
12404if { (ac_try="$ac_compile"
12405case "(($ac_try" in
12406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12407 *) ac_try_echo=$ac_try;;
12408esac
12409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12410 (eval "$ac_compile") 2>conftest.er1
12411 ac_status=$?
12412 grep -v '^ *+' conftest.er1 >conftest.err
12413 rm -f conftest.er1
12414 cat conftest.err >&5
12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); } &&
12417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12418 { (case "(($ac_try" in
12419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12420 *) ac_try_echo=$ac_try;;
12421esac
12422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12423 (eval "$ac_try") 2>&5
12424 ac_status=$?
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); }; } &&
12427 { ac_try='test -s conftest.$ac_objext'
12428 { (case "(($ac_try" in
12429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12430 *) ac_try_echo=$ac_try;;
12431esac
12432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12433 (eval "$ac_try") 2>&5
12434 ac_status=$?
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); }; }; then
12437 ac_header_compiler=yes
12438else
12439 echo "$as_me: failed program was:" >&5
12440sed 's/^/| /' conftest.$ac_ext >&5
12441
12442 ac_header_compiler=no
12443fi
12444
12445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12446{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12447echo "${ECHO_T}$ac_header_compiler" >&6; }
12448
12449# Is the header present?
12450{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12451echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12452cat >conftest.$ac_ext <<_ACEOF
12453/* confdefs.h. */
12454_ACEOF
12455cat confdefs.h >>conftest.$ac_ext
12456cat >>conftest.$ac_ext <<_ACEOF
12457/* end confdefs.h. */
12458#include <$ac_header>
12459_ACEOF
12460if { (ac_try="$ac_cpp conftest.$ac_ext"
12461case "(($ac_try" in
12462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12463 *) ac_try_echo=$ac_try;;
12464esac
12465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12466 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12467 ac_status=$?
12468 grep -v '^ *+' conftest.er1 >conftest.err
12469 rm -f conftest.er1
12470 cat conftest.err >&5
12471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); } >/dev/null; then
12473 if test -s conftest.err; then
12474 ac_cpp_err=$ac_c_preproc_warn_flag
12475 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12476 else
12477 ac_cpp_err=
12478 fi
12479else
12480 ac_cpp_err=yes
12481fi
12482if test -z "$ac_cpp_err"; then
12483 ac_header_preproc=yes
12484else
12485 echo "$as_me: failed program was:" >&5
12486sed 's/^/| /' conftest.$ac_ext >&5
12487
12488 ac_header_preproc=no
12489fi
12490
12491rm -f conftest.err conftest.$ac_ext
12492{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12493echo "${ECHO_T}$ac_header_preproc" >&6; }
12494
12495# So? What about this header?
12496case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12497 yes:no: )
12498 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12499echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12501echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12502 ac_header_preproc=yes
12503 ;;
12504 no:yes:* )
12505 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12506echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12507 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12508echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12509 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12510echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12511 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12512echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12514echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12515 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12516echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12517 ( cat <<\_ASBOX
12518## ----------------------------------- ##
12519## Report this to llvmbugs@cs.uiuc.edu ##
12520## ----------------------------------- ##
12521_ASBOX
12522 ) | sed "s/^/$as_me: WARNING: /" >&2
12523 ;;
12524esac
12525{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12526echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12527if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12528 echo $ECHO_N "(cached) $ECHO_C" >&6
12529else
12530 eval "$as_ac_Header=\$ac_header_preproc"
12531fi
12532ac_res=`eval echo '${'$as_ac_Header'}'`
12533 { echo "$as_me:$LINENO: result: $ac_res" >&5
12534echo "${ECHO_T}$ac_res" >&6; }
12535
12536fi
12537if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012538 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012539#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012540_ACEOF
12541
12542fi
12543
12544done
12545
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012546
12547
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012548for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012549do
12550as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12551if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12552 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12553echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12554if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12555 echo $ECHO_N "(cached) $ECHO_C" >&6
12556fi
12557ac_res=`eval echo '${'$as_ac_Header'}'`
12558 { echo "$as_me:$LINENO: result: $ac_res" >&5
12559echo "${ECHO_T}$ac_res" >&6; }
12560else
12561 # Is the header compilable?
12562{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12563echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12564cat >conftest.$ac_ext <<_ACEOF
12565/* confdefs.h. */
12566_ACEOF
12567cat confdefs.h >>conftest.$ac_ext
12568cat >>conftest.$ac_ext <<_ACEOF
12569/* end confdefs.h. */
12570$ac_includes_default
12571#include <$ac_header>
12572_ACEOF
12573rm -f conftest.$ac_objext
12574if { (ac_try="$ac_compile"
12575case "(($ac_try" in
12576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12577 *) ac_try_echo=$ac_try;;
12578esac
12579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12580 (eval "$ac_compile") 2>conftest.er1
12581 ac_status=$?
12582 grep -v '^ *+' conftest.er1 >conftest.err
12583 rm -f conftest.er1
12584 cat conftest.err >&5
12585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586 (exit $ac_status); } &&
12587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12588 { (case "(($ac_try" in
12589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12590 *) ac_try_echo=$ac_try;;
12591esac
12592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12593 (eval "$ac_try") 2>&5
12594 ac_status=$?
12595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596 (exit $ac_status); }; } &&
12597 { ac_try='test -s conftest.$ac_objext'
12598 { (case "(($ac_try" in
12599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12600 *) ac_try_echo=$ac_try;;
12601esac
12602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12603 (eval "$ac_try") 2>&5
12604 ac_status=$?
12605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606 (exit $ac_status); }; }; then
12607 ac_header_compiler=yes
12608else
12609 echo "$as_me: failed program was:" >&5
12610sed 's/^/| /' conftest.$ac_ext >&5
12611
12612 ac_header_compiler=no
12613fi
12614
12615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12616{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12617echo "${ECHO_T}$ac_header_compiler" >&6; }
12618
12619# Is the header present?
12620{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12621echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12622cat >conftest.$ac_ext <<_ACEOF
12623/* confdefs.h. */
12624_ACEOF
12625cat confdefs.h >>conftest.$ac_ext
12626cat >>conftest.$ac_ext <<_ACEOF
12627/* end confdefs.h. */
12628#include <$ac_header>
12629_ACEOF
12630if { (ac_try="$ac_cpp conftest.$ac_ext"
12631case "(($ac_try" in
12632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12633 *) ac_try_echo=$ac_try;;
12634esac
12635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12636 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12637 ac_status=$?
12638 grep -v '^ *+' conftest.er1 >conftest.err
12639 rm -f conftest.er1
12640 cat conftest.err >&5
12641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642 (exit $ac_status); } >/dev/null; then
12643 if test -s conftest.err; then
12644 ac_cpp_err=$ac_c_preproc_warn_flag
12645 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12646 else
12647 ac_cpp_err=
12648 fi
12649else
12650 ac_cpp_err=yes
12651fi
12652if test -z "$ac_cpp_err"; then
12653 ac_header_preproc=yes
12654else
12655 echo "$as_me: failed program was:" >&5
12656sed 's/^/| /' conftest.$ac_ext >&5
12657
12658 ac_header_preproc=no
12659fi
12660
12661rm -f conftest.err conftest.$ac_ext
12662{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12663echo "${ECHO_T}$ac_header_preproc" >&6; }
12664
12665# So? What about this header?
12666case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12667 yes:no: )
12668 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12669echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12671echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12672 ac_header_preproc=yes
12673 ;;
12674 no:yes:* )
12675 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12676echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12677 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12678echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12679 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12680echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12681 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12682echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12684echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12685 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12686echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12687 ( cat <<\_ASBOX
12688## ----------------------------------- ##
12689## Report this to llvmbugs@cs.uiuc.edu ##
12690## ----------------------------------- ##
12691_ASBOX
12692 ) | sed "s/^/$as_me: WARNING: /" >&2
12693 ;;
12694esac
12695{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12696echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12697if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12698 echo $ECHO_N "(cached) $ECHO_C" >&6
12699else
12700 eval "$as_ac_Header=\$ac_header_preproc"
12701fi
12702ac_res=`eval echo '${'$as_ac_Header'}'`
12703 { echo "$as_me:$LINENO: result: $ac_res" >&5
12704echo "${ECHO_T}$ac_res" >&6; }
12705
12706fi
12707if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012708 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012709#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012710_ACEOF
12711 break
12712fi
12713
12714done
12715
12716
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012717
12718
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012719for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012720do
12721as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12722{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12723echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12724if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12725 echo $ECHO_N "(cached) $ECHO_C" >&6
12726else
12727 cat >conftest.$ac_ext <<_ACEOF
12728/* confdefs.h. */
12729_ACEOF
12730cat confdefs.h >>conftest.$ac_ext
12731cat >>conftest.$ac_ext <<_ACEOF
12732/* end confdefs.h. */
12733/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12735#define $ac_func innocuous_$ac_func
12736
12737/* System header to define __stub macros and hopefully few prototypes,
12738 which can conflict with char $ac_func (); below.
12739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12740 <limits.h> exists even on freestanding compilers. */
12741
12742#ifdef __STDC__
12743# include <limits.h>
12744#else
12745# include <assert.h>
12746#endif
12747
12748#undef $ac_func
12749
12750/* Override any GCC internal prototype to avoid an error.
12751 Use char because int might match the return type of a GCC
12752 builtin and then its argument prototype would still apply. */
12753#ifdef __cplusplus
12754extern "C"
12755#endif
12756char $ac_func ();
12757/* The GNU C library defines this for functions which it implements
12758 to always fail with ENOSYS. Some functions are actually named
12759 something starting with __ and the normal name is an alias. */
12760#if defined __stub_$ac_func || defined __stub___$ac_func
12761choke me
12762#endif
12763
12764int
12765main ()
12766{
12767return $ac_func ();
12768 ;
12769 return 0;
12770}
12771_ACEOF
12772rm -f conftest.$ac_objext conftest$ac_exeext
12773if { (ac_try="$ac_link"
12774case "(($ac_try" in
12775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12776 *) ac_try_echo=$ac_try;;
12777esac
12778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12779 (eval "$ac_link") 2>conftest.er1
12780 ac_status=$?
12781 grep -v '^ *+' conftest.er1 >conftest.err
12782 rm -f conftest.er1
12783 cat conftest.err >&5
12784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785 (exit $ac_status); } &&
12786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12787 { (case "(($ac_try" in
12788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12789 *) ac_try_echo=$ac_try;;
12790esac
12791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12792 (eval "$ac_try") 2>&5
12793 ac_status=$?
12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); }; } &&
12796 { ac_try='test -s conftest$ac_exeext'
12797 { (case "(($ac_try" in
12798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12799 *) ac_try_echo=$ac_try;;
12800esac
12801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12802 (eval "$ac_try") 2>&5
12803 ac_status=$?
12804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805 (exit $ac_status); }; }; then
12806 eval "$as_ac_var=yes"
12807else
12808 echo "$as_me: failed program was:" >&5
12809sed 's/^/| /' conftest.$ac_ext >&5
12810
12811 eval "$as_ac_var=no"
12812fi
12813
12814rm -f core conftest.err conftest.$ac_objext \
12815 conftest$ac_exeext conftest.$ac_ext
12816fi
12817ac_res=`eval echo '${'$as_ac_var'}'`
12818 { echo "$as_me:$LINENO: result: $ac_res" >&5
12819echo "${ECHO_T}$ac_res" >&6; }
12820if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012821 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012822#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012823_ACEOF
12824 break
12825fi
12826done
12827
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012828
12829
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012830for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012831do
12832as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12833{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12834echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12835if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12836 echo $ECHO_N "(cached) $ECHO_C" >&6
12837else
12838 cat >conftest.$ac_ext <<_ACEOF
12839/* confdefs.h. */
12840_ACEOF
12841cat confdefs.h >>conftest.$ac_ext
12842cat >>conftest.$ac_ext <<_ACEOF
12843/* end confdefs.h. */
12844/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12846#define $ac_func innocuous_$ac_func
12847
12848/* System header to define __stub macros and hopefully few prototypes,
12849 which can conflict with char $ac_func (); below.
12850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12851 <limits.h> exists even on freestanding compilers. */
12852
12853#ifdef __STDC__
12854# include <limits.h>
12855#else
12856# include <assert.h>
12857#endif
12858
12859#undef $ac_func
12860
12861/* Override any GCC internal prototype to avoid an error.
12862 Use char because int might match the return type of a GCC
12863 builtin and then its argument prototype would still apply. */
12864#ifdef __cplusplus
12865extern "C"
12866#endif
12867char $ac_func ();
12868/* The GNU C library defines this for functions which it implements
12869 to always fail with ENOSYS. Some functions are actually named
12870 something starting with __ and the normal name is an alias. */
12871#if defined __stub_$ac_func || defined __stub___$ac_func
12872choke me
12873#endif
12874
12875int
12876main ()
12877{
12878return $ac_func ();
12879 ;
12880 return 0;
12881}
12882_ACEOF
12883rm -f conftest.$ac_objext conftest$ac_exeext
12884if { (ac_try="$ac_link"
12885case "(($ac_try" in
12886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12887 *) ac_try_echo=$ac_try;;
12888esac
12889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12890 (eval "$ac_link") 2>conftest.er1
12891 ac_status=$?
12892 grep -v '^ *+' conftest.er1 >conftest.err
12893 rm -f conftest.er1
12894 cat conftest.err >&5
12895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896 (exit $ac_status); } &&
12897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12898 { (case "(($ac_try" in
12899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12900 *) ac_try_echo=$ac_try;;
12901esac
12902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12903 (eval "$ac_try") 2>&5
12904 ac_status=$?
12905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906 (exit $ac_status); }; } &&
12907 { ac_try='test -s conftest$ac_exeext'
12908 { (case "(($ac_try" in
12909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12910 *) ac_try_echo=$ac_try;;
12911esac
12912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12913 (eval "$ac_try") 2>&5
12914 ac_status=$?
12915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916 (exit $ac_status); }; }; then
12917 eval "$as_ac_var=yes"
12918else
12919 echo "$as_me: failed program was:" >&5
12920sed 's/^/| /' conftest.$ac_ext >&5
12921
12922 eval "$as_ac_var=no"
12923fi
12924
12925rm -f core conftest.err conftest.$ac_objext \
12926 conftest$ac_exeext conftest.$ac_ext
12927fi
12928ac_res=`eval echo '${'$as_ac_var'}'`
12929 { echo "$as_me:$LINENO: result: $ac_res" >&5
12930echo "${ECHO_T}$ac_res" >&6; }
12931if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012932 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012933#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012934_ACEOF
12935 break
12936fi
12937done
12938
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012939
12940
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012941for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012942do
12943as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12944{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12945echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12946if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12947 echo $ECHO_N "(cached) $ECHO_C" >&6
12948else
12949 cat >conftest.$ac_ext <<_ACEOF
12950/* confdefs.h. */
12951_ACEOF
12952cat confdefs.h >>conftest.$ac_ext
12953cat >>conftest.$ac_ext <<_ACEOF
12954/* end confdefs.h. */
12955/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12956 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12957#define $ac_func innocuous_$ac_func
12958
12959/* System header to define __stub macros and hopefully few prototypes,
12960 which can conflict with char $ac_func (); below.
12961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12962 <limits.h> exists even on freestanding compilers. */
12963
12964#ifdef __STDC__
12965# include <limits.h>
12966#else
12967# include <assert.h>
12968#endif
12969
12970#undef $ac_func
12971
12972/* Override any GCC internal prototype to avoid an error.
12973 Use char because int might match the return type of a GCC
12974 builtin and then its argument prototype would still apply. */
12975#ifdef __cplusplus
12976extern "C"
12977#endif
12978char $ac_func ();
12979/* The GNU C library defines this for functions which it implements
12980 to always fail with ENOSYS. Some functions are actually named
12981 something starting with __ and the normal name is an alias. */
12982#if defined __stub_$ac_func || defined __stub___$ac_func
12983choke me
12984#endif
12985
12986int
12987main ()
12988{
12989return $ac_func ();
12990 ;
12991 return 0;
12992}
12993_ACEOF
12994rm -f conftest.$ac_objext conftest$ac_exeext
12995if { (ac_try="$ac_link"
12996case "(($ac_try" in
12997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12998 *) ac_try_echo=$ac_try;;
12999esac
13000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13001 (eval "$ac_link") 2>conftest.er1
13002 ac_status=$?
13003 grep -v '^ *+' conftest.er1 >conftest.err
13004 rm -f conftest.er1
13005 cat conftest.err >&5
13006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007 (exit $ac_status); } &&
13008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13009 { (case "(($ac_try" in
13010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13011 *) ac_try_echo=$ac_try;;
13012esac
13013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13014 (eval "$ac_try") 2>&5
13015 ac_status=$?
13016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017 (exit $ac_status); }; } &&
13018 { ac_try='test -s conftest$ac_exeext'
13019 { (case "(($ac_try" in
13020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13021 *) ac_try_echo=$ac_try;;
13022esac
13023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13024 (eval "$ac_try") 2>&5
13025 ac_status=$?
13026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13027 (exit $ac_status); }; }; then
13028 eval "$as_ac_var=yes"
13029else
13030 echo "$as_me: failed program was:" >&5
13031sed 's/^/| /' conftest.$ac_ext >&5
13032
13033 eval "$as_ac_var=no"
13034fi
13035
13036rm -f core conftest.err conftest.$ac_objext \
13037 conftest$ac_exeext conftest.$ac_ext
13038fi
13039ac_res=`eval echo '${'$as_ac_var'}'`
13040 { echo "$as_me:$LINENO: result: $ac_res" >&5
13041echo "${ECHO_T}$ac_res" >&6; }
13042if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013043 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013044#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013045_ACEOF
13046 break
13047fi
13048done
13049
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013050
13051
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013052for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013053do
13054as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13055{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13056echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13057if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13058 echo $ECHO_N "(cached) $ECHO_C" >&6
13059else
13060 cat >conftest.$ac_ext <<_ACEOF
13061/* confdefs.h. */
13062_ACEOF
13063cat confdefs.h >>conftest.$ac_ext
13064cat >>conftest.$ac_ext <<_ACEOF
13065/* end confdefs.h. */
13066/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13068#define $ac_func innocuous_$ac_func
13069
13070/* System header to define __stub macros and hopefully few prototypes,
13071 which can conflict with char $ac_func (); below.
13072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13073 <limits.h> exists even on freestanding compilers. */
13074
13075#ifdef __STDC__
13076# include <limits.h>
13077#else
13078# include <assert.h>
13079#endif
13080
13081#undef $ac_func
13082
13083/* Override any GCC internal prototype to avoid an error.
13084 Use char because int might match the return type of a GCC
13085 builtin and then its argument prototype would still apply. */
13086#ifdef __cplusplus
13087extern "C"
13088#endif
13089char $ac_func ();
13090/* The GNU C library defines this for functions which it implements
13091 to always fail with ENOSYS. Some functions are actually named
13092 something starting with __ and the normal name is an alias. */
13093#if defined __stub_$ac_func || defined __stub___$ac_func
13094choke me
13095#endif
13096
13097int
13098main ()
13099{
13100return $ac_func ();
13101 ;
13102 return 0;
13103}
13104_ACEOF
13105rm -f conftest.$ac_objext conftest$ac_exeext
13106if { (ac_try="$ac_link"
13107case "(($ac_try" in
13108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13109 *) ac_try_echo=$ac_try;;
13110esac
13111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13112 (eval "$ac_link") 2>conftest.er1
13113 ac_status=$?
13114 grep -v '^ *+' conftest.er1 >conftest.err
13115 rm -f conftest.er1
13116 cat conftest.err >&5
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); } &&
13119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13120 { (case "(($ac_try" in
13121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13122 *) ac_try_echo=$ac_try;;
13123esac
13124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13125 (eval "$ac_try") 2>&5
13126 ac_status=$?
13127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128 (exit $ac_status); }; } &&
13129 { ac_try='test -s conftest$ac_exeext'
13130 { (case "(($ac_try" in
13131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13132 *) ac_try_echo=$ac_try;;
13133esac
13134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13135 (eval "$ac_try") 2>&5
13136 ac_status=$?
13137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138 (exit $ac_status); }; }; then
13139 eval "$as_ac_var=yes"
13140else
13141 echo "$as_me: failed program was:" >&5
13142sed 's/^/| /' conftest.$ac_ext >&5
13143
13144 eval "$as_ac_var=no"
13145fi
13146
13147rm -f core conftest.err conftest.$ac_objext \
13148 conftest$ac_exeext conftest.$ac_ext
13149fi
13150ac_res=`eval echo '${'$as_ac_var'}'`
13151 { echo "$as_me:$LINENO: result: $ac_res" >&5
13152echo "${ECHO_T}$ac_res" >&6; }
13153if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013154 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013155#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013156_ACEOF
13157
13158fi
13159done
13160
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013161
13162
13163
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013164for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013165do
13166as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13167{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13168echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13169if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13170 echo $ECHO_N "(cached) $ECHO_C" >&6
13171else
13172 cat >conftest.$ac_ext <<_ACEOF
13173/* confdefs.h. */
13174_ACEOF
13175cat confdefs.h >>conftest.$ac_ext
13176cat >>conftest.$ac_ext <<_ACEOF
13177/* end confdefs.h. */
13178/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13179 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13180#define $ac_func innocuous_$ac_func
13181
13182/* System header to define __stub macros and hopefully few prototypes,
13183 which can conflict with char $ac_func (); below.
13184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13185 <limits.h> exists even on freestanding compilers. */
13186
13187#ifdef __STDC__
13188# include <limits.h>
13189#else
13190# include <assert.h>
13191#endif
13192
13193#undef $ac_func
13194
13195/* Override any GCC internal prototype to avoid an error.
13196 Use char because int might match the return type of a GCC
13197 builtin and then its argument prototype would still apply. */
13198#ifdef __cplusplus
13199extern "C"
13200#endif
13201char $ac_func ();
13202/* The GNU C library defines this for functions which it implements
13203 to always fail with ENOSYS. Some functions are actually named
13204 something starting with __ and the normal name is an alias. */
13205#if defined __stub_$ac_func || defined __stub___$ac_func
13206choke me
13207#endif
13208
13209int
13210main ()
13211{
13212return $ac_func ();
13213 ;
13214 return 0;
13215}
13216_ACEOF
13217rm -f conftest.$ac_objext conftest$ac_exeext
13218if { (ac_try="$ac_link"
13219case "(($ac_try" in
13220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13221 *) ac_try_echo=$ac_try;;
13222esac
13223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13224 (eval "$ac_link") 2>conftest.er1
13225 ac_status=$?
13226 grep -v '^ *+' conftest.er1 >conftest.err
13227 rm -f conftest.er1
13228 cat conftest.err >&5
13229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230 (exit $ac_status); } &&
13231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13232 { (case "(($ac_try" in
13233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13234 *) ac_try_echo=$ac_try;;
13235esac
13236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13237 (eval "$ac_try") 2>&5
13238 ac_status=$?
13239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240 (exit $ac_status); }; } &&
13241 { ac_try='test -s conftest$ac_exeext'
13242 { (case "(($ac_try" in
13243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13244 *) ac_try_echo=$ac_try;;
13245esac
13246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13247 (eval "$ac_try") 2>&5
13248 ac_status=$?
13249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250 (exit $ac_status); }; }; then
13251 eval "$as_ac_var=yes"
13252else
13253 echo "$as_me: failed program was:" >&5
13254sed 's/^/| /' conftest.$ac_ext >&5
13255
13256 eval "$as_ac_var=no"
13257fi
13258
13259rm -f core conftest.err conftest.$ac_objext \
13260 conftest$ac_exeext conftest.$ac_ext
13261fi
13262ac_res=`eval echo '${'$as_ac_var'}'`
13263 { echo "$as_me:$LINENO: result: $ac_res" >&5
13264echo "${ECHO_T}$ac_res" >&6; }
13265if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013266 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013267#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013268_ACEOF
13269
13270fi
13271done
13272
13273
Douglas Gregor01746742009-05-11 18:05:52 +000013274
Reid Spencer7931a782004-12-27 06:15:02 +000013275if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000013276 LLVMGCC="llvm-gcc${EXEEXT}"
13277 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013278 LLVMGCCCOMMAND="$LLVMGCC"
13279 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013280 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13281
13282 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13283
Reid Spencerc84492c2005-06-02 22:34:49 +000013284 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13285set dummy $LLVMGCC; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013286{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13287echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13288if test "${ac_cv_path_LLVMGCC+set}" = set; then
13289 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013290else
13291 case $LLVMGCC in
13292 [\\/]* | ?:[\\/]*)
13293 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13294 ;;
13295 *)
13296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13297for as_dir in $PATH
13298do
13299 IFS=$as_save_IFS
13300 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013301 for ac_exec_ext in '' $ac_executable_extensions; do
13302 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 +000013303 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000013305 break 2
13306 fi
13307done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013308done
Reid Spencera773bd52006-08-04 18:18:08 +000013309IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000013310
Reid Spencer59473af2004-12-25 07:31:29 +000013311 ;;
13312esac
13313fi
13314LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000013315if test -n "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013316 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13317echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013318else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013319 { echo "$as_me:$LINENO: result: no" >&5
13320echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013321fi
13322
Reid Spencera773bd52006-08-04 18:18:08 +000013323
Reid Spencerc84492c2005-06-02 22:34:49 +000013324 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13325set dummy $LLVMGXX; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013326{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13327echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13328if test "${ac_cv_path_LLVMGXX+set}" = set; then
13329 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013330else
13331 case $LLVMGXX in
13332 [\\/]* | ?:[\\/]*)
13333 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13334 ;;
13335 *)
13336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13337for as_dir in $PATH
13338do
13339 IFS=$as_save_IFS
13340 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013341 for ac_exec_ext in '' $ac_executable_extensions; do
13342 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 +000013343 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000013345 break 2
13346 fi
13347done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013348done
Reid Spencera773bd52006-08-04 18:18:08 +000013349IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000013350
Reid Spencer59473af2004-12-25 07:31:29 +000013351 ;;
13352esac
13353fi
13354LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000013355if test -n "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013356 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13357echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013358else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013359 { echo "$as_me:$LINENO: result: no" >&5
13360echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013361fi
13362
Reid Spencera773bd52006-08-04 18:18:08 +000013363
Reid Spencer59473af2004-12-25 07:31:29 +000013364else
Devang Patel5d28b882007-12-04 22:54:47 +000013365 if test -z "$LLVMGCC"; then
13366 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013367 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000013368 fi
13369 if test -z "$LLVMGXX"; then
13370 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013371 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000013372 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013373
Reid Spencer59473af2004-12-25 07:31:29 +000013374 LLVMGCC=$LLVMGCC
13375
13376 LLVMGXX=$LLVMGXX
13377
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013378 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13379
13380 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13381
Reid Spencer59473af2004-12-25 07:31:29 +000013382fi
13383
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013384
Daniel Dunbar98515672010-02-23 10:00:49 +000013385# Check whether --with-llvmcc was given.
13386if test "${with_llvmcc+set}" = set; then
13387 withval=$with_llvmcc;
13388else
13389 with_llvmcc=check
13390fi
13391
13392{ echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13393echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13394if test "$with_llvmcc" != "check"; then
13395 if (test "$with_llvmcc" != "llvm-gcc" &&
13396 test "$with_llvmcc" != "clang" &&
13397 test "$with_llvmcc" != "none"); then
13398 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13399echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13400 { (exit 1); exit 1; }; }
13401 fi
13402 WITH_LLVMCC="$with_llvmcc"
13403elif test -n "$LLVMGCC"; then
13404 WITH_LLVMCC=llvm-gcc
13405elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13406 WITH_LLVMCC=clang
13407else
13408 WITH_LLVMCC=none
13409fi
13410{ echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13411echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13412LLVMCC_OPTION=$WITH_LLVMCC
13413
13414
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013415{ echo "$as_me:$LINENO: checking tool compatibility" >&5
13416echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013417
Reid Spencer86901802004-12-08 23:07:27 +000013418ICC=no
13419IXX=no
13420case $CC in
13421 icc*|icpc*)
13422 ICC=yes
13423 IXX=yes
13424 ;;
13425 *)
13426 ;;
13427esac
13428
Duraid Madina937c60a2006-02-15 07:57:42 +000013429if test "$GCC" != "yes" && test "$ICC" != "yes"
13430then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013431 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13432echo "$as_me: error: gcc|icc required but not found" >&2;}
13433 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000013434fi
13435
13436if test "$GXX" != "yes" && test "$IXX" != "yes"
13437then
Eric Christopher73e36da2010-12-08 02:02:14 +000013438 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
13439echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013440 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000013441fi
13442
Reid Spencer86901802004-12-08 23:07:27 +000013443if test "$GCC" = "yes"
13444then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013445 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000013446#if !defined(__GNUC__) || __GNUC__ < 3
13447#error Unsupported GCC version
13448#endif
13449
13450_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013451rm -f conftest.$ac_objext
13452if { (ac_try="$ac_compile"
13453case "(($ac_try" in
13454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13455 *) ac_try_echo=$ac_try;;
13456esac
13457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13458 (eval "$ac_compile") 2>conftest.er1
13459 ac_status=$?
13460 grep -v '^ *+' conftest.er1 >conftest.err
13461 rm -f conftest.er1
13462 cat conftest.err >&5
13463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464 (exit $ac_status); } &&
13465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13466 { (case "(($ac_try" in
13467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13468 *) ac_try_echo=$ac_try;;
13469esac
13470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13471 (eval "$ac_try") 2>&5
13472 ac_status=$?
13473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474 (exit $ac_status); }; } &&
13475 { ac_try='test -s conftest.$ac_objext'
13476 { (case "(($ac_try" in
13477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13478 *) ac_try_echo=$ac_try;;
13479esac
13480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13481 (eval "$ac_try") 2>&5
13482 ac_status=$?
13483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484 (exit $ac_status); }; }; then
13485 :
Chris Lattner399c7c72008-02-05 19:43:53 +000013486else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013487 echo "$as_me: failed program was:" >&5
13488sed 's/^/| /' conftest.$ac_ext >&5
13489
13490 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13491echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13492 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000013493fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013494
Chris Lattner399c7c72008-02-05 19:43:53 +000013495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013496fi
13497
13498if test -z "$llvm_cv_gnu_make_command"
13499then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013500 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13501echo "$as_me: error: GNU Make required but not found" >&2;}
13502 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013503fi
13504
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013505{ echo "$as_me:$LINENO: result: ok" >&5
13506echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013507
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013508{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
13509echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013510NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13511
13512NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13513
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013514{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13515echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013516
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000013517
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013518
13519{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
13520echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13521if test "${ac_cv_lib_m_sin+set}" = set; then
13522 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000013523else
13524 ac_check_lib_save_LIBS=$LIBS
13525LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013526cat >conftest.$ac_ext <<_ACEOF
13527/* confdefs.h. */
13528_ACEOF
13529cat confdefs.h >>conftest.$ac_ext
13530cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000013531/* end confdefs.h. */
13532
Reid Spencera773bd52006-08-04 18:18:08 +000013533/* Override any GCC internal prototype to avoid an error.
13534 Use char because int might match the return type of a GCC
13535 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000013536#ifdef __cplusplus
13537extern "C"
13538#endif
Reid Spencer3484a992006-01-19 08:31:08 +000013539char sin ();
13540int
13541main ()
13542{
Reid Spencera773bd52006-08-04 18:18:08 +000013543return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000013544 ;
13545 return 0;
13546}
13547_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013548rm -f conftest.$ac_objext conftest$ac_exeext
13549if { (ac_try="$ac_link"
13550case "(($ac_try" in
13551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13552 *) ac_try_echo=$ac_try;;
13553esac
13554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13555 (eval "$ac_link") 2>conftest.er1
13556 ac_status=$?
13557 grep -v '^ *+' conftest.er1 >conftest.err
13558 rm -f conftest.er1
13559 cat conftest.err >&5
13560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561 (exit $ac_status); } &&
13562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13563 { (case "(($ac_try" in
13564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13565 *) ac_try_echo=$ac_try;;
13566esac
13567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13568 (eval "$ac_try") 2>&5
13569 ac_status=$?
13570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571 (exit $ac_status); }; } &&
13572 { ac_try='test -s conftest$ac_exeext'
13573 { (case "(($ac_try" in
13574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13575 *) ac_try_echo=$ac_try;;
13576esac
13577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13578 (eval "$ac_try") 2>&5
13579 ac_status=$?
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000013582 ac_cv_lib_m_sin=yes
13583else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013584 echo "$as_me: failed program was:" >&5
13585sed 's/^/| /' conftest.$ac_ext >&5
13586
13587 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000013588fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013589
Bill Wendlingebcceee2009-04-18 11:20:33 +000013590rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013591 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000013592LIBS=$ac_check_lib_save_LIBS
13593fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013594{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13595echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13596if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000013597 cat >>confdefs.h <<_ACEOF
13598#define HAVE_LIBM 1
13599_ACEOF
13600
13601 LIBS="-lm $LIBS"
13602
13603fi
13604
Jeff Cohen28783c32007-01-12 18:22:38 +000013605if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013606
13607{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13608echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13609if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13610 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013611else
13612 ac_check_lib_save_LIBS=$LIBS
13613LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013614cat >conftest.$ac_ext <<_ACEOF
13615/* confdefs.h. */
13616_ACEOF
13617cat confdefs.h >>conftest.$ac_ext
13618cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013619/* end confdefs.h. */
13620
Reid Spencer48fdf912006-06-01 19:03:21 +000013621
Reid Spencer484fc8e2006-06-01 16:55:59 +000013622int
13623main ()
13624{
Reid Spencera773bd52006-08-04 18:18:08 +000013625return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013626 ;
13627 return 0;
13628}
13629_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013630rm -f conftest.$ac_objext conftest$ac_exeext
13631if { (ac_try="$ac_link"
13632case "(($ac_try" in
13633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13634 *) ac_try_echo=$ac_try;;
13635esac
13636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13637 (eval "$ac_link") 2>conftest.er1
13638 ac_status=$?
13639 grep -v '^ *+' conftest.er1 >conftest.err
13640 rm -f conftest.er1
13641 cat conftest.err >&5
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); } &&
13644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13645 { (case "(($ac_try" in
13646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13647 *) ac_try_echo=$ac_try;;
13648esac
13649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13650 (eval "$ac_try") 2>&5
13651 ac_status=$?
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); }; } &&
13654 { ac_try='test -s conftest$ac_exeext'
13655 { (case "(($ac_try" in
13656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13657 *) ac_try_echo=$ac_try;;
13658esac
13659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13660 (eval "$ac_try") 2>&5
13661 ac_status=$?
13662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013664 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013665else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013666 echo "$as_me: failed program was:" >&5
13667sed 's/^/| /' conftest.$ac_ext >&5
13668
13669 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013670fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013671
Bill Wendlingebcceee2009-04-18 11:20:33 +000013672rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013673 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013674LIBS=$ac_check_lib_save_LIBS
13675fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013676{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13677echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13678if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013679 cat >>confdefs.h <<_ACEOF
13680#define HAVE_LIBIMAGEHLP 1
13681_ACEOF
13682
13683 LIBS="-limagehlp $LIBS"
13684
13685fi
13686
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013687
13688{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13689echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13690if test "${ac_cv_lib_psapi_main+set}" = set; then
13691 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013692else
13693 ac_check_lib_save_LIBS=$LIBS
13694LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013695cat >conftest.$ac_ext <<_ACEOF
13696/* confdefs.h. */
13697_ACEOF
13698cat confdefs.h >>conftest.$ac_ext
13699cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013700/* end confdefs.h. */
13701
Reid Spencer48fdf912006-06-01 19:03:21 +000013702
Reid Spencer484fc8e2006-06-01 16:55:59 +000013703int
13704main ()
13705{
Reid Spencera773bd52006-08-04 18:18:08 +000013706return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013707 ;
13708 return 0;
13709}
13710_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013711rm -f conftest.$ac_objext conftest$ac_exeext
13712if { (ac_try="$ac_link"
13713case "(($ac_try" in
13714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13715 *) ac_try_echo=$ac_try;;
13716esac
13717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13718 (eval "$ac_link") 2>conftest.er1
13719 ac_status=$?
13720 grep -v '^ *+' conftest.er1 >conftest.err
13721 rm -f conftest.er1
13722 cat conftest.err >&5
13723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724 (exit $ac_status); } &&
13725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13726 { (case "(($ac_try" in
13727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13728 *) ac_try_echo=$ac_try;;
13729esac
13730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13731 (eval "$ac_try") 2>&5
13732 ac_status=$?
13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); }; } &&
13735 { ac_try='test -s conftest$ac_exeext'
13736 { (case "(($ac_try" in
13737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13738 *) ac_try_echo=$ac_try;;
13739esac
13740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13741 (eval "$ac_try") 2>&5
13742 ac_status=$?
13743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013745 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013746else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013747 echo "$as_me: failed program was:" >&5
13748sed 's/^/| /' conftest.$ac_ext >&5
13749
13750 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013751fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013752
Bill Wendlingebcceee2009-04-18 11:20:33 +000013753rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013754 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013755LIBS=$ac_check_lib_save_LIBS
13756fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013757{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13758echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13759if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013760 cat >>confdefs.h <<_ACEOF
13761#define HAVE_LIBPSAPI 1
13762_ACEOF
13763
13764 LIBS="-lpsapi $LIBS"
13765
13766fi
13767
13768fi
Reid Spencer22177fe2005-07-12 15:24:20 +000013769
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013770{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13771echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13772if test "${ac_cv_search_dlopen+set}" = set; then
13773 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013774else
13775 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013776cat >conftest.$ac_ext <<_ACEOF
13777/* confdefs.h. */
13778_ACEOF
13779cat confdefs.h >>conftest.$ac_ext
13780cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013781/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013782
Reid Spencera773bd52006-08-04 18:18:08 +000013783/* Override any GCC internal prototype to avoid an error.
13784 Use char because int might match the return type of a GCC
13785 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013786#ifdef __cplusplus
13787extern "C"
13788#endif
John Criswell7a73b802003-06-30 21:59:07 +000013789char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013790int
13791main ()
13792{
Reid Spencera773bd52006-08-04 18:18:08 +000013793return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013794 ;
13795 return 0;
13796}
13797_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013798for ac_lib in '' dl; do
13799 if test -z "$ac_lib"; then
13800 ac_res="none required"
13801 else
13802 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013803 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013804 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013805 rm -f conftest.$ac_objext conftest$ac_exeext
13806if { (ac_try="$ac_link"
13807case "(($ac_try" in
13808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13809 *) ac_try_echo=$ac_try;;
13810esac
13811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13812 (eval "$ac_link") 2>conftest.er1
13813 ac_status=$?
13814 grep -v '^ *+' conftest.er1 >conftest.err
13815 rm -f conftest.er1
13816 cat conftest.err >&5
13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818 (exit $ac_status); } &&
13819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13820 { (case "(($ac_try" in
13821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13822 *) ac_try_echo=$ac_try;;
13823esac
13824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13825 (eval "$ac_try") 2>&5
13826 ac_status=$?
13827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828 (exit $ac_status); }; } &&
13829 { ac_try='test -s conftest$ac_exeext'
13830 { (case "(($ac_try" in
13831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13832 *) ac_try_echo=$ac_try;;
13833esac
13834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13835 (eval "$ac_try") 2>&5
13836 ac_status=$?
13837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013839 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013840else
13841 echo "$as_me: failed program was:" >&5
13842sed 's/^/| /' conftest.$ac_ext >&5
13843
13844
John Criswell7a73b802003-06-30 21:59:07 +000013845fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013846
Bill Wendlingebcceee2009-04-18 11:20:33 +000013847rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013848 conftest$ac_exeext
13849 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013850 break
John Criswell7a73b802003-06-30 21:59:07 +000013851fi
Reid Spencera773bd52006-08-04 18:18:08 +000013852done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013853if test "${ac_cv_search_dlopen+set}" = set; then
13854 :
Reid Spencera773bd52006-08-04 18:18:08 +000013855else
13856 ac_cv_search_dlopen=no
13857fi
13858rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013859LIBS=$ac_func_search_save_LIBS
13860fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013861{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13862echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013863ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013864if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013865 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013866
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013867cat >>confdefs.h <<\_ACEOF
13868#define HAVE_DLOPEN 1
13869_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013870
13871else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013872 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13873echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000013874fi
13875
13876
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013877if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013878 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13879echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13880if test "${ac_cv_search_ffi_call+set}" = set; then
13881 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013882else
Nick Lewycky267fddb2009-04-13 04:26:27 +000013883 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013884cat >conftest.$ac_ext <<_ACEOF
13885/* confdefs.h. */
13886_ACEOF
13887cat confdefs.h >>conftest.$ac_ext
13888cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013889/* end confdefs.h. */
13890
13891/* Override any GCC internal prototype to avoid an error.
13892 Use char because int might match the return type of a GCC
13893 builtin and then its argument prototype would still apply. */
13894#ifdef __cplusplus
13895extern "C"
13896#endif
13897char ffi_call ();
13898int
13899main ()
13900{
13901return ffi_call ();
13902 ;
13903 return 0;
13904}
13905_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013906for ac_lib in '' ffi; do
13907 if test -z "$ac_lib"; then
13908 ac_res="none required"
13909 else
13910 ac_res=-l$ac_lib
13911 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13912 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013913 rm -f conftest.$ac_objext conftest$ac_exeext
13914if { (ac_try="$ac_link"
13915case "(($ac_try" in
13916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13917 *) ac_try_echo=$ac_try;;
13918esac
13919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13920 (eval "$ac_link") 2>conftest.er1
13921 ac_status=$?
13922 grep -v '^ *+' conftest.er1 >conftest.err
13923 rm -f conftest.er1
13924 cat conftest.err >&5
13925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926 (exit $ac_status); } &&
13927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13928 { (case "(($ac_try" in
13929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13930 *) ac_try_echo=$ac_try;;
13931esac
13932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13933 (eval "$ac_try") 2>&5
13934 ac_status=$?
13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); }; } &&
13937 { ac_try='test -s conftest$ac_exeext'
13938 { (case "(($ac_try" in
13939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13940 *) ac_try_echo=$ac_try;;
13941esac
13942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13943 (eval "$ac_try") 2>&5
13944 ac_status=$?
13945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013947 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013948else
13949 echo "$as_me: failed program was:" >&5
13950sed 's/^/| /' conftest.$ac_ext >&5
13951
13952
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013953fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013954
Bill Wendlingebcceee2009-04-18 11:20:33 +000013955rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013956 conftest$ac_exeext
13957 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013958 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013959fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000013960done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013961if test "${ac_cv_search_ffi_call+set}" = set; then
13962 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000013963else
13964 ac_cv_search_ffi_call=no
13965fi
13966rm conftest.$ac_ext
13967LIBS=$ac_func_search_save_LIBS
13968fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013969{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13970echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000013971ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013972if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013973 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13974
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013975cat >>confdefs.h <<\_ACEOF
13976#define HAVE_FFI_CALL 1
13977_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013978
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013979else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000013980 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13981echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13982 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013983fi
13984
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013985fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013986
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013987{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13988echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13989if test "${ac_cv_search_mallinfo+set}" = set; then
13990 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013991else
13992 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013993cat >conftest.$ac_ext <<_ACEOF
13994/* confdefs.h. */
13995_ACEOF
13996cat confdefs.h >>conftest.$ac_ext
13997cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013998/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013999
Reid Spencera773bd52006-08-04 18:18:08 +000014000/* Override any GCC internal prototype to avoid an error.
14001 Use char because int might match the return type of a GCC
14002 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000014003#ifdef __cplusplus
14004extern "C"
14005#endif
John Criswell7a73b802003-06-30 21:59:07 +000014006char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000014007int
14008main ()
14009{
Reid Spencera773bd52006-08-04 18:18:08 +000014010return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000014011 ;
14012 return 0;
14013}
14014_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014015for ac_lib in '' malloc; do
14016 if test -z "$ac_lib"; then
14017 ac_res="none required"
14018 else
14019 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000014020 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014021 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014022 rm -f conftest.$ac_objext conftest$ac_exeext
14023if { (ac_try="$ac_link"
14024case "(($ac_try" in
14025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14026 *) ac_try_echo=$ac_try;;
14027esac
14028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14029 (eval "$ac_link") 2>conftest.er1
14030 ac_status=$?
14031 grep -v '^ *+' conftest.er1 >conftest.err
14032 rm -f conftest.er1
14033 cat conftest.err >&5
14034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035 (exit $ac_status); } &&
14036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14037 { (case "(($ac_try" in
14038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14039 *) ac_try_echo=$ac_try;;
14040esac
14041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14042 (eval "$ac_try") 2>&5
14043 ac_status=$?
14044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045 (exit $ac_status); }; } &&
14046 { ac_try='test -s conftest$ac_exeext'
14047 { (case "(($ac_try" in
14048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14049 *) ac_try_echo=$ac_try;;
14050esac
14051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14052 (eval "$ac_try") 2>&5
14053 ac_status=$?
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014056 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014057else
14058 echo "$as_me: failed program was:" >&5
14059sed 's/^/| /' conftest.$ac_ext >&5
14060
14061
John Criswell7a73b802003-06-30 21:59:07 +000014062fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014063
Bill Wendlingebcceee2009-04-18 11:20:33 +000014064rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014065 conftest$ac_exeext
14066 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014067 break
John Criswell7a73b802003-06-30 21:59:07 +000014068fi
Reid Spencera773bd52006-08-04 18:18:08 +000014069done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014070if test "${ac_cv_search_mallinfo+set}" = set; then
14071 :
Reid Spencera773bd52006-08-04 18:18:08 +000014072else
14073 ac_cv_search_mallinfo=no
14074fi
14075rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014076LIBS=$ac_func_search_save_LIBS
14077fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014078{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
14079echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014080ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014081if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014082 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000014083
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014084cat >>confdefs.h <<\_ACEOF
14085#define HAVE_MALLINFO 1
14086_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000014087
14088fi
14089
14090
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000014091if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014092
14093{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
14094echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
14095if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
14096 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000014097else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014098 ac_check_lib_save_LIBS=$LIBS
14099LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014100cat >conftest.$ac_ext <<_ACEOF
14101/* confdefs.h. */
14102_ACEOF
14103cat confdefs.h >>conftest.$ac_ext
14104cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000014105/* end confdefs.h. */
14106
Reid Spencera773bd52006-08-04 18:18:08 +000014107/* Override any GCC internal prototype to avoid an error.
14108 Use char because int might match the return type of a GCC
14109 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000014110#ifdef __cplusplus
14111extern "C"
14112#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000014113char pthread_mutex_init ();
14114int
14115main ()
14116{
Reid Spencera773bd52006-08-04 18:18:08 +000014117return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000014118 ;
14119 return 0;
14120}
14121_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014122rm -f conftest.$ac_objext conftest$ac_exeext
14123if { (ac_try="$ac_link"
14124case "(($ac_try" in
14125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14126 *) ac_try_echo=$ac_try;;
14127esac
14128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14129 (eval "$ac_link") 2>conftest.er1
14130 ac_status=$?
14131 grep -v '^ *+' conftest.er1 >conftest.err
14132 rm -f conftest.er1
14133 cat conftest.err >&5
14134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135 (exit $ac_status); } &&
14136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14137 { (case "(($ac_try" in
14138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14139 *) ac_try_echo=$ac_try;;
14140esac
14141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14142 (eval "$ac_try") 2>&5
14143 ac_status=$?
14144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145 (exit $ac_status); }; } &&
14146 { ac_try='test -s conftest$ac_exeext'
14147 { (case "(($ac_try" in
14148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14149 *) ac_try_echo=$ac_try;;
14150esac
14151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14152 (eval "$ac_try") 2>&5
14153 ac_status=$?
14154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014156 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000014157else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014158 echo "$as_me: failed program was:" >&5
14159sed 's/^/| /' conftest.$ac_ext >&5
14160
14161 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000014162fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014163
Bill Wendlingebcceee2009-04-18 11:20:33 +000014164rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014165 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014166LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000014167fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014168{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
14169echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
14170if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014171 cat >>confdefs.h <<_ACEOF
14172#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000014173_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000014174
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014175 LIBS="-lpthread $LIBS"
14176
Reid Spencer22177fe2005-07-12 15:24:20 +000014177fi
14178
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014179 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
14180echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
14181if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14182 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000014183else
14184 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014185cat >conftest.$ac_ext <<_ACEOF
14186/* confdefs.h. */
14187_ACEOF
14188cat confdefs.h >>conftest.$ac_ext
14189cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000014190/* end confdefs.h. */
14191
Reid Spencera773bd52006-08-04 18:18:08 +000014192/* Override any GCC internal prototype to avoid an error.
14193 Use char because int might match the return type of a GCC
14194 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000014195#ifdef __cplusplus
14196extern "C"
14197#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000014198char pthread_mutex_lock ();
14199int
14200main ()
14201{
Reid Spencera773bd52006-08-04 18:18:08 +000014202return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000014203 ;
14204 return 0;
14205}
14206_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014207for ac_lib in '' pthread; do
14208 if test -z "$ac_lib"; then
14209 ac_res="none required"
14210 else
14211 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000014212 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014213 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014214 rm -f conftest.$ac_objext conftest$ac_exeext
14215if { (ac_try="$ac_link"
14216case "(($ac_try" in
14217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14218 *) ac_try_echo=$ac_try;;
14219esac
14220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14221 (eval "$ac_link") 2>conftest.er1
14222 ac_status=$?
14223 grep -v '^ *+' conftest.er1 >conftest.err
14224 rm -f conftest.er1
14225 cat conftest.err >&5
14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227 (exit $ac_status); } &&
14228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14229 { (case "(($ac_try" in
14230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14231 *) ac_try_echo=$ac_try;;
14232esac
14233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14234 (eval "$ac_try") 2>&5
14235 ac_status=$?
14236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237 (exit $ac_status); }; } &&
14238 { ac_try='test -s conftest$ac_exeext'
14239 { (case "(($ac_try" in
14240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14241 *) ac_try_echo=$ac_try;;
14242esac
14243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14244 (eval "$ac_try") 2>&5
14245 ac_status=$?
14246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014248 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014249else
14250 echo "$as_me: failed program was:" >&5
14251sed 's/^/| /' conftest.$ac_ext >&5
14252
14253
Brian Gaeke5f268f72003-12-05 19:29:01 +000014254fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014255
Bill Wendlingebcceee2009-04-18 11:20:33 +000014256rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014257 conftest$ac_exeext
14258 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014259 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000014260fi
Reid Spencera773bd52006-08-04 18:18:08 +000014261done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014262if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14263 :
Reid Spencera773bd52006-08-04 18:18:08 +000014264else
14265 ac_cv_search_pthread_mutex_lock=no
14266fi
14267rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000014268LIBS=$ac_func_search_save_LIBS
14269fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014270{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14271echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014272ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014273if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014274 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000014275
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014276cat >>confdefs.h <<\_ACEOF
14277#define HAVE_PTHREAD_MUTEX_LOCK 1
14278_ACEOF
John Criswell40468462004-09-24 21:19:06 +000014279
14280fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000014281
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014282 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14283echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14284if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14285 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000014286else
14287 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014288cat >conftest.$ac_ext <<_ACEOF
14289/* confdefs.h. */
14290_ACEOF
14291cat confdefs.h >>conftest.$ac_ext
14292cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000014293/* end confdefs.h. */
14294
14295/* Override any GCC internal prototype to avoid an error.
14296 Use char because int might match the return type of a GCC
14297 builtin and then its argument prototype would still apply. */
14298#ifdef __cplusplus
14299extern "C"
14300#endif
14301char pthread_rwlock_init ();
14302int
14303main ()
14304{
14305return pthread_rwlock_init ();
14306 ;
14307 return 0;
14308}
14309_ACEOF
14310for ac_lib in '' pthread; do
14311 if test -z "$ac_lib"; then
14312 ac_res="none required"
14313 else
14314 ac_res=-l$ac_lib
14315 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14316 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014317 rm -f conftest.$ac_objext conftest$ac_exeext
14318if { (ac_try="$ac_link"
14319case "(($ac_try" in
14320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14321 *) ac_try_echo=$ac_try;;
14322esac
14323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14324 (eval "$ac_link") 2>conftest.er1
14325 ac_status=$?
14326 grep -v '^ *+' conftest.er1 >conftest.err
14327 rm -f conftest.er1
14328 cat conftest.err >&5
14329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330 (exit $ac_status); } &&
14331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14332 { (case "(($ac_try" in
14333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14334 *) ac_try_echo=$ac_try;;
14335esac
14336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14337 (eval "$ac_try") 2>&5
14338 ac_status=$?
14339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340 (exit $ac_status); }; } &&
14341 { ac_try='test -s conftest$ac_exeext'
14342 { (case "(($ac_try" in
14343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14344 *) ac_try_echo=$ac_try;;
14345esac
14346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14347 (eval "$ac_try") 2>&5
14348 ac_status=$?
14349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014351 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014352else
14353 echo "$as_me: failed program was:" >&5
14354sed 's/^/| /' conftest.$ac_ext >&5
14355
14356
Owen Andersonde8aed22009-06-16 18:20:20 +000014357fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014358
Owen Andersonde8aed22009-06-16 18:20:20 +000014359rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014360 conftest$ac_exeext
14361 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014362 break
14363fi
14364done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014365if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14366 :
Owen Andersonde8aed22009-06-16 18:20:20 +000014367else
14368 ac_cv_search_pthread_rwlock_init=no
14369fi
14370rm conftest.$ac_ext
14371LIBS=$ac_func_search_save_LIBS
14372fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014373{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14374echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000014375ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014376if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014377 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14378
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014379cat >>confdefs.h <<\_ACEOF
14380#define HAVE_PTHREAD_RWLOCK_INIT 1
14381_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000014382
14383fi
14384
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014385 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14386echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14387if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14388 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000014389else
14390 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014391cat >conftest.$ac_ext <<_ACEOF
14392/* confdefs.h. */
14393_ACEOF
14394cat confdefs.h >>conftest.$ac_ext
14395cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014396/* end confdefs.h. */
14397
14398/* Override any GCC internal prototype to avoid an error.
14399 Use char because int might match the return type of a GCC
14400 builtin and then its argument prototype would still apply. */
14401#ifdef __cplusplus
14402extern "C"
14403#endif
14404char pthread_getspecific ();
14405int
14406main ()
14407{
14408return pthread_getspecific ();
14409 ;
14410 return 0;
14411}
14412_ACEOF
14413for ac_lib in '' pthread; do
14414 if test -z "$ac_lib"; then
14415 ac_res="none required"
14416 else
14417 ac_res=-l$ac_lib
14418 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14419 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014420 rm -f conftest.$ac_objext conftest$ac_exeext
14421if { (ac_try="$ac_link"
14422case "(($ac_try" in
14423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14424 *) ac_try_echo=$ac_try;;
14425esac
14426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14427 (eval "$ac_link") 2>conftest.er1
14428 ac_status=$?
14429 grep -v '^ *+' conftest.er1 >conftest.err
14430 rm -f conftest.er1
14431 cat conftest.err >&5
14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); } &&
14434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14435 { (case "(($ac_try" in
14436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14437 *) ac_try_echo=$ac_try;;
14438esac
14439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14440 (eval "$ac_try") 2>&5
14441 ac_status=$?
14442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443 (exit $ac_status); }; } &&
14444 { ac_try='test -s conftest$ac_exeext'
14445 { (case "(($ac_try" in
14446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14447 *) ac_try_echo=$ac_try;;
14448esac
14449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14450 (eval "$ac_try") 2>&5
14451 ac_status=$?
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014454 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014455else
14456 echo "$as_me: failed program was:" >&5
14457sed 's/^/| /' conftest.$ac_ext >&5
14458
14459
Owen Anderson27fcfe12009-06-25 23:10:26 +000014460fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014461
Owen Anderson27fcfe12009-06-25 23:10:26 +000014462rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014463 conftest$ac_exeext
14464 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014465 break
14466fi
14467done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014468if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14469 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000014470else
14471 ac_cv_search_pthread_getspecific=no
14472fi
14473rm conftest.$ac_ext
14474LIBS=$ac_func_search_save_LIBS
14475fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014476{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14477echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000014478ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014479if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014480 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14481
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014482cat >>confdefs.h <<\_ACEOF
14483#define HAVE_PTHREAD_GETSPECIFIC 1
14484_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014485
14486fi
14487
Reid Spencer0a262ba2005-08-24 10:07:20 +000014488fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000014489
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014490
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014491# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014492if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014493 withval=$with_udis86;
14494 USE_UDIS86=1
14495
14496 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000014497 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014498 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14499 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014500
14501{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14502echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14503if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14504 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014505else
14506 ac_check_lib_save_LIBS=$LIBS
14507LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014508cat >conftest.$ac_ext <<_ACEOF
14509/* confdefs.h. */
14510_ACEOF
14511cat confdefs.h >>conftest.$ac_ext
14512cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014513/* end confdefs.h. */
14514
14515/* Override any GCC internal prototype to avoid an error.
14516 Use char because int might match the return type of a GCC
14517 builtin and then its argument prototype would still apply. */
14518#ifdef __cplusplus
14519extern "C"
14520#endif
14521char ud_init ();
14522int
14523main ()
14524{
14525return ud_init ();
14526 ;
14527 return 0;
14528}
14529_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014530rm -f conftest.$ac_objext conftest$ac_exeext
14531if { (ac_try="$ac_link"
14532case "(($ac_try" in
14533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14534 *) ac_try_echo=$ac_try;;
14535esac
14536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14537 (eval "$ac_link") 2>conftest.er1
14538 ac_status=$?
14539 grep -v '^ *+' conftest.er1 >conftest.err
14540 rm -f conftest.er1
14541 cat conftest.err >&5
14542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543 (exit $ac_status); } &&
14544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14545 { (case "(($ac_try" in
14546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14547 *) ac_try_echo=$ac_try;;
14548esac
14549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14550 (eval "$ac_try") 2>&5
14551 ac_status=$?
14552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14553 (exit $ac_status); }; } &&
14554 { ac_try='test -s conftest$ac_exeext'
14555 { (case "(($ac_try" in
14556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14557 *) ac_try_echo=$ac_try;;
14558esac
14559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14560 (eval "$ac_try") 2>&5
14561 ac_status=$?
14562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14563 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014564 ac_cv_lib_udis86_ud_init=yes
14565else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014566 echo "$as_me: failed program was:" >&5
14567sed 's/^/| /' conftest.$ac_ext >&5
14568
14569 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014570fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014571
Bill Wendlingebcceee2009-04-18 11:20:33 +000014572rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014573 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014574LIBS=$ac_check_lib_save_LIBS
14575fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014576{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14577echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14578if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014579 cat >>confdefs.h <<_ACEOF
14580#define HAVE_LIBUDIS86 1
14581_ACEOF
14582
14583 LIBS="-ludis86 $LIBS"
14584
14585else
14586
14587 echo "Error! You need to have libudis86 around."
14588 exit -1
14589
14590fi
14591
14592
14593else
14594 USE_UDIS86=0
14595
14596fi
14597
14598
14599cat >>confdefs.h <<_ACEOF
14600#define USE_UDIS86 $USE_UDIS86
14601_ACEOF
14602
14603
14604
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014605# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014606if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014607 withval=$with_oprofile;
14608 USE_OPROFILE=1
14609
14610 case "$withval" in
14611 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014612 no) llvm_cv_oppath=
14613 USE_OPROFILE=0
14614 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014615 *) llvm_cv_oppath="${withval}/lib/oprofile"
14616 CPPFLAGS="-I${withval}/include";;
14617 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014618 if test -n "$llvm_cv_oppath" ; then
14619 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014620 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14621echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14622if test "${ac_cv_search_bfd_init+set}" = set; then
14623 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014624else
14625 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014626cat >conftest.$ac_ext <<_ACEOF
14627/* confdefs.h. */
14628_ACEOF
14629cat confdefs.h >>conftest.$ac_ext
14630cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014631/* end confdefs.h. */
14632
14633/* Override any GCC internal prototype to avoid an error.
14634 Use char because int might match the return type of a GCC
14635 builtin and then its argument prototype would still apply. */
14636#ifdef __cplusplus
14637extern "C"
14638#endif
14639char bfd_init ();
14640int
14641main ()
14642{
14643return bfd_init ();
14644 ;
14645 return 0;
14646}
14647_ACEOF
14648for ac_lib in '' bfd; do
14649 if test -z "$ac_lib"; then
14650 ac_res="none required"
14651 else
14652 ac_res=-l$ac_lib
14653 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14654 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014655 rm -f conftest.$ac_objext conftest$ac_exeext
14656if { (ac_try="$ac_link"
14657case "(($ac_try" in
14658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14659 *) ac_try_echo=$ac_try;;
14660esac
14661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14662 (eval "$ac_link") 2>conftest.er1
14663 ac_status=$?
14664 grep -v '^ *+' conftest.er1 >conftest.err
14665 rm -f conftest.er1
14666 cat conftest.err >&5
14667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668 (exit $ac_status); } &&
14669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14670 { (case "(($ac_try" in
14671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14672 *) ac_try_echo=$ac_try;;
14673esac
14674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14675 (eval "$ac_try") 2>&5
14676 ac_status=$?
14677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678 (exit $ac_status); }; } &&
14679 { ac_try='test -s conftest$ac_exeext'
14680 { (case "(($ac_try" in
14681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14682 *) ac_try_echo=$ac_try;;
14683esac
14684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14685 (eval "$ac_try") 2>&5
14686 ac_status=$?
14687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14688 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014689 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014690else
14691 echo "$as_me: failed program was:" >&5
14692sed 's/^/| /' conftest.$ac_ext >&5
14693
14694
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014695fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014696
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014697rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014698 conftest$ac_exeext
14699 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014700 break
14701fi
14702done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014703if test "${ac_cv_search_bfd_init+set}" = set; then
14704 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014705else
14706 ac_cv_search_bfd_init=no
14707fi
14708rm conftest.$ac_ext
14709LIBS=$ac_func_search_save_LIBS
14710fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014711{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14712echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014713ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014714if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014715 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14716
14717fi
14718
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014719 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14720echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14721if test "${ac_cv_search_op_open_agent+set}" = set; then
14722 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014723else
14724 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014725cat >conftest.$ac_ext <<_ACEOF
14726/* confdefs.h. */
14727_ACEOF
14728cat confdefs.h >>conftest.$ac_ext
14729cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014730/* end confdefs.h. */
14731
14732/* Override any GCC internal prototype to avoid an error.
14733 Use char because int might match the return type of a GCC
14734 builtin and then its argument prototype would still apply. */
14735#ifdef __cplusplus
14736extern "C"
14737#endif
14738char op_open_agent ();
14739int
14740main ()
14741{
14742return op_open_agent ();
14743 ;
14744 return 0;
14745}
14746_ACEOF
14747for ac_lib in '' opagent; do
14748 if test -z "$ac_lib"; then
14749 ac_res="none required"
14750 else
14751 ac_res=-l$ac_lib
14752 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14753 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014754 rm -f conftest.$ac_objext conftest$ac_exeext
14755if { (ac_try="$ac_link"
14756case "(($ac_try" in
14757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14758 *) ac_try_echo=$ac_try;;
14759esac
14760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14761 (eval "$ac_link") 2>conftest.er1
14762 ac_status=$?
14763 grep -v '^ *+' conftest.er1 >conftest.err
14764 rm -f conftest.er1
14765 cat conftest.err >&5
14766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767 (exit $ac_status); } &&
14768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14769 { (case "(($ac_try" in
14770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14771 *) ac_try_echo=$ac_try;;
14772esac
14773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14774 (eval "$ac_try") 2>&5
14775 ac_status=$?
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); }; } &&
14778 { ac_try='test -s conftest$ac_exeext'
14779 { (case "(($ac_try" in
14780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14781 *) ac_try_echo=$ac_try;;
14782esac
14783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14784 (eval "$ac_try") 2>&5
14785 ac_status=$?
14786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014788 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014789else
14790 echo "$as_me: failed program was:" >&5
14791sed 's/^/| /' conftest.$ac_ext >&5
14792
14793
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014794fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014795
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014796rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014797 conftest$ac_exeext
14798 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014799 break
14800fi
14801done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014802if test "${ac_cv_search_op_open_agent+set}" = set; then
14803 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014804else
14805 ac_cv_search_op_open_agent=no
14806fi
14807rm conftest.$ac_ext
14808LIBS=$ac_func_search_save_LIBS
14809fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014810{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14811echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014812ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014813if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014814 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14815
14816else
14817
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014818 echo "Error! You need to have libopagent around."
14819 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014820
14821fi
14822
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014823 if test "${ac_cv_header_opagent_h+set}" = set; then
14824 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14825echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14826if test "${ac_cv_header_opagent_h+set}" = set; then
14827 echo $ECHO_N "(cached) $ECHO_C" >&6
14828fi
14829{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14830echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14831else
14832 # Is the header compilable?
14833{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
14834echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14835cat >conftest.$ac_ext <<_ACEOF
14836/* confdefs.h. */
14837_ACEOF
14838cat confdefs.h >>conftest.$ac_ext
14839cat >>conftest.$ac_ext <<_ACEOF
14840/* end confdefs.h. */
14841$ac_includes_default
14842#include <opagent.h>
14843_ACEOF
14844rm -f conftest.$ac_objext
14845if { (ac_try="$ac_compile"
14846case "(($ac_try" in
14847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14848 *) ac_try_echo=$ac_try;;
14849esac
14850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14851 (eval "$ac_compile") 2>conftest.er1
14852 ac_status=$?
14853 grep -v '^ *+' conftest.er1 >conftest.err
14854 rm -f conftest.er1
14855 cat conftest.err >&5
14856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14857 (exit $ac_status); } &&
14858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14859 { (case "(($ac_try" in
14860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14861 *) ac_try_echo=$ac_try;;
14862esac
14863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14864 (eval "$ac_try") 2>&5
14865 ac_status=$?
14866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867 (exit $ac_status); }; } &&
14868 { ac_try='test -s conftest.$ac_objext'
14869 { (case "(($ac_try" in
14870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14871 *) ac_try_echo=$ac_try;;
14872esac
14873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14874 (eval "$ac_try") 2>&5
14875 ac_status=$?
14876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877 (exit $ac_status); }; }; then
14878 ac_header_compiler=yes
14879else
14880 echo "$as_me: failed program was:" >&5
14881sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014882
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014883 ac_header_compiler=no
14884fi
14885
14886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14887{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14888echo "${ECHO_T}$ac_header_compiler" >&6; }
14889
14890# Is the header present?
14891{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
14892echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14893cat >conftest.$ac_ext <<_ACEOF
14894/* confdefs.h. */
14895_ACEOF
14896cat confdefs.h >>conftest.$ac_ext
14897cat >>conftest.$ac_ext <<_ACEOF
14898/* end confdefs.h. */
14899#include <opagent.h>
14900_ACEOF
14901if { (ac_try="$ac_cpp conftest.$ac_ext"
14902case "(($ac_try" in
14903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14904 *) ac_try_echo=$ac_try;;
14905esac
14906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14907 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14908 ac_status=$?
14909 grep -v '^ *+' conftest.er1 >conftest.err
14910 rm -f conftest.er1
14911 cat conftest.err >&5
14912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913 (exit $ac_status); } >/dev/null; then
14914 if test -s conftest.err; then
14915 ac_cpp_err=$ac_c_preproc_warn_flag
14916 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14917 else
14918 ac_cpp_err=
14919 fi
14920else
14921 ac_cpp_err=yes
14922fi
14923if test -z "$ac_cpp_err"; then
14924 ac_header_preproc=yes
14925else
14926 echo "$as_me: failed program was:" >&5
14927sed 's/^/| /' conftest.$ac_ext >&5
14928
14929 ac_header_preproc=no
14930fi
14931
14932rm -f conftest.err conftest.$ac_ext
14933{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14934echo "${ECHO_T}$ac_header_preproc" >&6; }
14935
14936# So? What about this header?
14937case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14938 yes:no: )
14939 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14940echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14941 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14942echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14943 ac_header_preproc=yes
14944 ;;
14945 no:yes:* )
14946 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14947echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14948 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14949echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14950 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14951echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14952 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14953echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14954 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14955echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14956 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14957echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14958 ( cat <<\_ASBOX
14959## ----------------------------------- ##
14960## Report this to llvmbugs@cs.uiuc.edu ##
14961## ----------------------------------- ##
14962_ASBOX
14963 ) | sed "s/^/$as_me: WARNING: /" >&2
14964 ;;
14965esac
14966{ echo "$as_me:$LINENO: checking for opagent.h" >&5
14967echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14968if test "${ac_cv_header_opagent_h+set}" = set; then
14969 echo $ECHO_N "(cached) $ECHO_C" >&6
14970else
14971 ac_cv_header_opagent_h=$ac_header_preproc
14972fi
14973{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14974echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14975
14976fi
14977if test $ac_cv_header_opagent_h = yes; then
14978 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014979else
14980
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014981 echo "Error! You need to have opagent.h around."
14982 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014983
14984fi
14985
14986
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014987 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014988
14989else
14990
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014991 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014992
14993
14994fi
14995
14996
14997cat >>confdefs.h <<_ACEOF
14998#define USE_OPROFILE $USE_OPROFILE
14999_ACEOF
15000
15001
15002
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015003
15004
15005
15006
15007
Reid Spencer59473af2004-12-25 07:31:29 +000015008ac_header_dirent=no
15009for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015010 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15011{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
15012echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
15013if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15014 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015015else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015016 cat >conftest.$ac_ext <<_ACEOF
15017/* confdefs.h. */
15018_ACEOF
15019cat confdefs.h >>conftest.$ac_ext
15020cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015021/* end confdefs.h. */
15022#include <sys/types.h>
15023#include <$ac_hdr>
15024
15025int
15026main ()
15027{
15028if ((DIR *) 0)
15029return 0;
15030 ;
15031 return 0;
15032}
15033_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015034rm -f conftest.$ac_objext
15035if { (ac_try="$ac_compile"
15036case "(($ac_try" in
15037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15038 *) ac_try_echo=$ac_try;;
15039esac
15040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15041 (eval "$ac_compile") 2>conftest.er1
15042 ac_status=$?
15043 grep -v '^ *+' conftest.er1 >conftest.err
15044 rm -f conftest.er1
15045 cat conftest.err >&5
15046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047 (exit $ac_status); } &&
15048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15049 { (case "(($ac_try" in
15050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15051 *) ac_try_echo=$ac_try;;
15052esac
15053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15054 (eval "$ac_try") 2>&5
15055 ac_status=$?
15056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057 (exit $ac_status); }; } &&
15058 { ac_try='test -s conftest.$ac_objext'
15059 { (case "(($ac_try" in
15060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15061 *) ac_try_echo=$ac_try;;
15062esac
15063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15064 (eval "$ac_try") 2>&5
15065 ac_status=$?
15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000015068 eval "$as_ac_Header=yes"
15069else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015070 echo "$as_me: failed program was:" >&5
15071sed 's/^/| /' conftest.$ac_ext >&5
15072
15073 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000015074fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015075
Reid Spencera773bd52006-08-04 18:18:08 +000015076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015077fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015078ac_res=`eval echo '${'$as_ac_Header'}'`
15079 { echo "$as_me:$LINENO: result: $ac_res" >&5
15080echo "${ECHO_T}$ac_res" >&6; }
15081if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015082 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015083#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000015084_ACEOF
15085
15086ac_header_dirent=$ac_hdr; break
15087fi
15088
15089done
15090# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15091if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015092 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15093echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15094if test "${ac_cv_search_opendir+set}" = set; then
15095 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015096else
15097 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015098cat >conftest.$ac_ext <<_ACEOF
15099/* confdefs.h. */
15100_ACEOF
15101cat confdefs.h >>conftest.$ac_ext
15102cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015103/* end confdefs.h. */
15104
Reid Spencera773bd52006-08-04 18:18:08 +000015105/* Override any GCC internal prototype to avoid an error.
15106 Use char because int might match the return type of a GCC
15107 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000015108#ifdef __cplusplus
15109extern "C"
15110#endif
Reid Spencer59473af2004-12-25 07:31:29 +000015111char opendir ();
15112int
15113main ()
15114{
Reid Spencera773bd52006-08-04 18:18:08 +000015115return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000015116 ;
15117 return 0;
15118}
15119_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000015120for ac_lib in '' dir; do
15121 if test -z "$ac_lib"; then
15122 ac_res="none required"
15123 else
15124 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000015125 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000015126 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015127 rm -f conftest.$ac_objext conftest$ac_exeext
15128if { (ac_try="$ac_link"
15129case "(($ac_try" in
15130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15131 *) ac_try_echo=$ac_try;;
15132esac
15133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15134 (eval "$ac_link") 2>conftest.er1
15135 ac_status=$?
15136 grep -v '^ *+' conftest.er1 >conftest.err
15137 rm -f conftest.er1
15138 cat conftest.err >&5
15139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140 (exit $ac_status); } &&
15141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15142 { (case "(($ac_try" in
15143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15144 *) ac_try_echo=$ac_try;;
15145esac
15146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15147 (eval "$ac_try") 2>&5
15148 ac_status=$?
15149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150 (exit $ac_status); }; } &&
15151 { ac_try='test -s conftest$ac_exeext'
15152 { (case "(($ac_try" in
15153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15154 *) ac_try_echo=$ac_try;;
15155esac
15156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15157 (eval "$ac_try") 2>&5
15158 ac_status=$?
15159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000015161 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015162else
15163 echo "$as_me: failed program was:" >&5
15164sed 's/^/| /' conftest.$ac_ext >&5
15165
15166
Reid Spencer59473af2004-12-25 07:31:29 +000015167fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015168
Bill Wendlingebcceee2009-04-18 11:20:33 +000015169rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015170 conftest$ac_exeext
15171 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000015172 break
Reid Spencer59473af2004-12-25 07:31:29 +000015173fi
Reid Spencera773bd52006-08-04 18:18:08 +000015174done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015175if test "${ac_cv_search_opendir+set}" = set; then
15176 :
Reid Spencera773bd52006-08-04 18:18:08 +000015177else
15178 ac_cv_search_opendir=no
15179fi
15180rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015181LIBS=$ac_func_search_save_LIBS
15182fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015183{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15184echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000015185ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015186if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015187 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000015188
15189fi
15190
15191else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015192 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15193echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15194if test "${ac_cv_search_opendir+set}" = set; then
15195 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015196else
15197 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015198cat >conftest.$ac_ext <<_ACEOF
15199/* confdefs.h. */
15200_ACEOF
15201cat confdefs.h >>conftest.$ac_ext
15202cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015203/* end confdefs.h. */
15204
Reid Spencera773bd52006-08-04 18:18:08 +000015205/* Override any GCC internal prototype to avoid an error.
15206 Use char because int might match the return type of a GCC
15207 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000015208#ifdef __cplusplus
15209extern "C"
15210#endif
Reid Spencer59473af2004-12-25 07:31:29 +000015211char opendir ();
15212int
15213main ()
15214{
Reid Spencera773bd52006-08-04 18:18:08 +000015215return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000015216 ;
15217 return 0;
15218}
15219_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000015220for ac_lib in '' x; do
15221 if test -z "$ac_lib"; then
15222 ac_res="none required"
15223 else
15224 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000015225 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000015226 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015227 rm -f conftest.$ac_objext conftest$ac_exeext
15228if { (ac_try="$ac_link"
15229case "(($ac_try" in
15230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15231 *) ac_try_echo=$ac_try;;
15232esac
15233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15234 (eval "$ac_link") 2>conftest.er1
15235 ac_status=$?
15236 grep -v '^ *+' conftest.er1 >conftest.err
15237 rm -f conftest.er1
15238 cat conftest.err >&5
15239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240 (exit $ac_status); } &&
15241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15242 { (case "(($ac_try" in
15243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15244 *) ac_try_echo=$ac_try;;
15245esac
15246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15247 (eval "$ac_try") 2>&5
15248 ac_status=$?
15249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15250 (exit $ac_status); }; } &&
15251 { ac_try='test -s conftest$ac_exeext'
15252 { (case "(($ac_try" in
15253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15254 *) ac_try_echo=$ac_try;;
15255esac
15256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15257 (eval "$ac_try") 2>&5
15258 ac_status=$?
15259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000015261 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015262else
15263 echo "$as_me: failed program was:" >&5
15264sed 's/^/| /' conftest.$ac_ext >&5
15265
15266
Reid Spencer59473af2004-12-25 07:31:29 +000015267fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015268
Bill Wendlingebcceee2009-04-18 11:20:33 +000015269rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015270 conftest$ac_exeext
15271 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000015272 break
Reid Spencer59473af2004-12-25 07:31:29 +000015273fi
Reid Spencera773bd52006-08-04 18:18:08 +000015274done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015275if test "${ac_cv_search_opendir+set}" = set; then
15276 :
Reid Spencera773bd52006-08-04 18:18:08 +000015277else
15278 ac_cv_search_opendir=no
15279fi
15280rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015281LIBS=$ac_func_search_save_LIBS
15282fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015283{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15284echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000015285ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015286if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015287 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000015288
15289fi
15290
15291fi
15292
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015293{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15294echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15295if test "${ac_cv_header_mmap_anon+set}" = set; then
15296 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015297else
15298 ac_ext=c
15299ac_cpp='$CPP $CPPFLAGS'
15300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15302ac_compiler_gnu=$ac_cv_c_compiler_gnu
15303
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015304 cat >conftest.$ac_ext <<_ACEOF
15305/* confdefs.h. */
15306_ACEOF
15307cat confdefs.h >>conftest.$ac_ext
15308cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015309/* end confdefs.h. */
15310#include <sys/mman.h>
15311#include <unistd.h>
15312#include <fcntl.h>
15313int
15314main ()
15315{
15316mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15317 ;
15318 return 0;
15319}
15320_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015321rm -f conftest.$ac_objext
15322if { (ac_try="$ac_compile"
15323case "(($ac_try" in
15324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15325 *) ac_try_echo=$ac_try;;
15326esac
15327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15328 (eval "$ac_compile") 2>conftest.er1
15329 ac_status=$?
15330 grep -v '^ *+' conftest.er1 >conftest.err
15331 rm -f conftest.er1
15332 cat conftest.err >&5
15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334 (exit $ac_status); } &&
15335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15336 { (case "(($ac_try" in
15337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15338 *) ac_try_echo=$ac_try;;
15339esac
15340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15341 (eval "$ac_try") 2>&5
15342 ac_status=$?
15343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344 (exit $ac_status); }; } &&
15345 { ac_try='test -s conftest.$ac_objext'
15346 { (case "(($ac_try" in
15347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15348 *) ac_try_echo=$ac_try;;
15349esac
15350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15351 (eval "$ac_try") 2>&5
15352 ac_status=$?
15353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000015355 ac_cv_header_mmap_anon=yes
15356else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015357 echo "$as_me: failed program was:" >&5
15358sed 's/^/| /' conftest.$ac_ext >&5
15359
15360 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000015361fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015362
Reid Spencera773bd52006-08-04 18:18:08 +000015363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015364 ac_ext=c
15365ac_cpp='$CPP $CPPFLAGS'
15366ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15367ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15368ac_compiler_gnu=$ac_cv_c_compiler_gnu
15369
15370
15371fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015372{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15373echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000015374if test "$ac_cv_header_mmap_anon" = yes; then
15375
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015376cat >>confdefs.h <<\_ACEOF
15377#define HAVE_MMAP_ANONYMOUS 1
15378_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015379
15380fi
15381
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015382{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15383echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15384if test "${ac_cv_header_stat_broken+set}" = set; then
15385 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015386else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015387 cat >conftest.$ac_ext <<_ACEOF
15388/* confdefs.h. */
15389_ACEOF
15390cat confdefs.h >>conftest.$ac_ext
15391cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015392/* end confdefs.h. */
15393#include <sys/types.h>
15394#include <sys/stat.h>
15395
Reid Spencera773bd52006-08-04 18:18:08 +000015396#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015397# if S_ISBLK (S_IFDIR)
15398You lose.
15399# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015400#endif
15401
Reid Spencera773bd52006-08-04 18:18:08 +000015402#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015403# if S_ISBLK (S_IFCHR)
15404You lose.
15405# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015406#endif
15407
Reid Spencera773bd52006-08-04 18:18:08 +000015408#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015409# if S_ISLNK (S_IFREG)
15410You lose.
15411# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015412#endif
15413
Reid Spencera773bd52006-08-04 18:18:08 +000015414#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015415# if S_ISSOCK (S_IFREG)
15416You lose.
15417# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015418#endif
15419
15420_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015421if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15422 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000015423 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015424else
15425 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000015426fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015427rm -f conftest*
15428
Reid Spencer59473af2004-12-25 07:31:29 +000015429fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015430{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15431echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000015432if test $ac_cv_header_stat_broken = yes; then
15433
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015434cat >>confdefs.h <<\_ACEOF
15435#define STAT_MACROS_BROKEN 1
15436_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015437
15438fi
15439
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015440{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15441echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15442if test "${ac_cv_header_stdc+set}" = set; then
15443 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015444else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015445 cat >conftest.$ac_ext <<_ACEOF
15446/* confdefs.h. */
15447_ACEOF
15448cat confdefs.h >>conftest.$ac_ext
15449cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015450/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015451#include <stdlib.h>
15452#include <stdarg.h>
15453#include <string.h>
15454#include <float.h>
15455
John Criswell0c38eaf2003-09-10 15:17:25 +000015456int
15457main ()
15458{
15459
15460 ;
15461 return 0;
15462}
John Criswell7a73b802003-06-30 21:59:07 +000015463_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015464rm -f conftest.$ac_objext
15465if { (ac_try="$ac_compile"
15466case "(($ac_try" in
15467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15468 *) ac_try_echo=$ac_try;;
15469esac
15470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15471 (eval "$ac_compile") 2>conftest.er1
15472 ac_status=$?
15473 grep -v '^ *+' conftest.er1 >conftest.err
15474 rm -f conftest.er1
15475 cat conftest.err >&5
15476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477 (exit $ac_status); } &&
15478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15479 { (case "(($ac_try" in
15480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15481 *) ac_try_echo=$ac_try;;
15482esac
15483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15484 (eval "$ac_try") 2>&5
15485 ac_status=$?
15486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15487 (exit $ac_status); }; } &&
15488 { ac_try='test -s conftest.$ac_objext'
15489 { (case "(($ac_try" in
15490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15491 *) ac_try_echo=$ac_try;;
15492esac
15493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15494 (eval "$ac_try") 2>&5
15495 ac_status=$?
15496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015498 ac_cv_header_stdc=yes
15499else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015500 echo "$as_me: failed program was:" >&5
15501sed 's/^/| /' conftest.$ac_ext >&5
15502
15503 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015504fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015505
Reid Spencera773bd52006-08-04 18:18:08 +000015506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015507
15508if test $ac_cv_header_stdc = yes; then
15509 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
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 <string.h>
15517
15518_ACEOF
15519if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015520 $EGREP "memchr" >/dev/null 2>&1; then
15521 :
John Criswell7a73b802003-06-30 21:59:07 +000015522else
15523 ac_cv_header_stdc=no
15524fi
15525rm -f conftest*
15526
15527fi
15528
15529if test $ac_cv_header_stdc = yes; then
15530 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015531 cat >conftest.$ac_ext <<_ACEOF
15532/* confdefs.h. */
15533_ACEOF
15534cat confdefs.h >>conftest.$ac_ext
15535cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015536/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015537#include <stdlib.h>
15538
15539_ACEOF
15540if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015541 $EGREP "free" >/dev/null 2>&1; then
15542 :
John Criswell7a73b802003-06-30 21:59:07 +000015543else
15544 ac_cv_header_stdc=no
15545fi
15546rm -f conftest*
15547
15548fi
15549
15550if test $ac_cv_header_stdc = yes; then
15551 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015552 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000015553 :
15554else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015555 cat >conftest.$ac_ext <<_ACEOF
15556/* confdefs.h. */
15557_ACEOF
15558cat confdefs.h >>conftest.$ac_ext
15559cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015560/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015561#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000015562#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000015563#if ((' ' & 0x0FF) == 0x020)
15564# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15565# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15566#else
John Criswell0c38eaf2003-09-10 15:17:25 +000015567# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015568 (('a' <= (c) && (c) <= 'i') \
15569 || ('j' <= (c) && (c) <= 'r') \
15570 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000015571# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15572#endif
15573
15574#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15575int
15576main ()
15577{
15578 int i;
15579 for (i = 0; i < 256; i++)
15580 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000015581 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000015582 return 2;
15583 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000015584}
15585_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015586rm -f conftest$ac_exeext
15587if { (ac_try="$ac_link"
15588case "(($ac_try" in
15589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15590 *) ac_try_echo=$ac_try;;
15591esac
15592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15593 (eval "$ac_link") 2>&5
15594 ac_status=$?
15595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15597 { (case "(($ac_try" in
15598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15599 *) ac_try_echo=$ac_try;;
15600esac
15601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15602 (eval "$ac_try") 2>&5
15603 ac_status=$?
15604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15605 (exit $ac_status); }; }; then
15606 :
John Criswell7a73b802003-06-30 21:59:07 +000015607else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015608 echo "$as_me: program exited with status $ac_status" >&5
15609echo "$as_me: failed program was:" >&5
15610sed 's/^/| /' conftest.$ac_ext >&5
15611
15612( exit $ac_status )
15613ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015614fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015615rm -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 +000015616fi
15617
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015618
John Criswell7a73b802003-06-30 21:59:07 +000015619fi
15620fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015621{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15622echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015623if test $ac_cv_header_stdc = yes; then
15624
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015625cat >>confdefs.h <<\_ACEOF
15626#define STDC_HEADERS 1
15627_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015628
15629fi
15630
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015631{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15632echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15633if test "${ac_cv_header_sys_wait_h+set}" = set; then
15634 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015635else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015636 cat >conftest.$ac_ext <<_ACEOF
15637/* confdefs.h. */
15638_ACEOF
15639cat confdefs.h >>conftest.$ac_ext
15640cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015641/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015642#include <sys/types.h>
15643#include <sys/wait.h>
15644#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000015645# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000015646#endif
15647#ifndef WIFEXITED
15648# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15649#endif
15650
John Criswell7a73b802003-06-30 21:59:07 +000015651int
15652main ()
15653{
15654 int s;
15655 wait (&s);
15656 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15657 ;
15658 return 0;
15659}
15660_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015661rm -f conftest.$ac_objext
15662if { (ac_try="$ac_compile"
15663case "(($ac_try" in
15664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15665 *) ac_try_echo=$ac_try;;
15666esac
15667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15668 (eval "$ac_compile") 2>conftest.er1
15669 ac_status=$?
15670 grep -v '^ *+' conftest.er1 >conftest.err
15671 rm -f conftest.er1
15672 cat conftest.err >&5
15673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674 (exit $ac_status); } &&
15675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15676 { (case "(($ac_try" in
15677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15678 *) ac_try_echo=$ac_try;;
15679esac
15680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15681 (eval "$ac_try") 2>&5
15682 ac_status=$?
15683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684 (exit $ac_status); }; } &&
15685 { ac_try='test -s conftest.$ac_objext'
15686 { (case "(($ac_try" in
15687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15688 *) ac_try_echo=$ac_try;;
15689esac
15690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15691 (eval "$ac_try") 2>&5
15692 ac_status=$?
15693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015695 ac_cv_header_sys_wait_h=yes
15696else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015697 echo "$as_me: failed program was:" >&5
15698sed 's/^/| /' conftest.$ac_ext >&5
15699
15700 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000015701fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015702
Reid Spencera773bd52006-08-04 18:18:08 +000015703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015704fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015705{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15706echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015707if test $ac_cv_header_sys_wait_h = yes; then
15708
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015709cat >>confdefs.h <<\_ACEOF
15710#define HAVE_SYS_WAIT_H 1
15711_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015712
15713fi
15714
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015715{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15716echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15717if test "${ac_cv_header_time+set}" = set; then
15718 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015719else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015720 cat >conftest.$ac_ext <<_ACEOF
15721/* confdefs.h. */
15722_ACEOF
15723cat confdefs.h >>conftest.$ac_ext
15724cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015725/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015726#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015727#include <sys/time.h>
15728#include <time.h>
15729
15730int
15731main ()
15732{
15733if ((struct tm *) 0)
15734return 0;
15735 ;
15736 return 0;
15737}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015738_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015739rm -f conftest.$ac_objext
15740if { (ac_try="$ac_compile"
15741case "(($ac_try" in
15742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15743 *) ac_try_echo=$ac_try;;
15744esac
15745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15746 (eval "$ac_compile") 2>conftest.er1
15747 ac_status=$?
15748 grep -v '^ *+' conftest.er1 >conftest.err
15749 rm -f conftest.er1
15750 cat conftest.err >&5
15751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752 (exit $ac_status); } &&
15753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15754 { (case "(($ac_try" in
15755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15756 *) ac_try_echo=$ac_try;;
15757esac
15758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15759 (eval "$ac_try") 2>&5
15760 ac_status=$?
15761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762 (exit $ac_status); }; } &&
15763 { ac_try='test -s conftest.$ac_objext'
15764 { (case "(($ac_try" in
15765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15766 *) ac_try_echo=$ac_try;;
15767esac
15768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15769 (eval "$ac_try") 2>&5
15770 ac_status=$?
15771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015773 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015774else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015775 echo "$as_me: failed program was:" >&5
15776sed 's/^/| /' conftest.$ac_ext >&5
15777
15778 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015779fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015780
Reid Spencera773bd52006-08-04 18:18:08 +000015781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015782fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015783{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15784echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015785if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015786
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015787cat >>confdefs.h <<\_ACEOF
15788#define TIME_WITH_SYS_TIME 1
15789_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015790
15791fi
15792
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015793
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015794
15795
15796
15797
15798
15799
Reid Spencer59473af2004-12-25 07:31:29 +000015800for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015801do
15802as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15803if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15804 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15805echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15806if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15807 echo $ECHO_N "(cached) $ECHO_C" >&6
15808fi
15809ac_res=`eval echo '${'$as_ac_Header'}'`
15810 { echo "$as_me:$LINENO: result: $ac_res" >&5
15811echo "${ECHO_T}$ac_res" >&6; }
15812else
15813 # Is the header compilable?
15814{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15815echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15816cat >conftest.$ac_ext <<_ACEOF
15817/* confdefs.h. */
15818_ACEOF
15819cat confdefs.h >>conftest.$ac_ext
15820cat >>conftest.$ac_ext <<_ACEOF
15821/* end confdefs.h. */
15822$ac_includes_default
15823#include <$ac_header>
15824_ACEOF
15825rm -f conftest.$ac_objext
15826if { (ac_try="$ac_compile"
15827case "(($ac_try" in
15828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15829 *) ac_try_echo=$ac_try;;
15830esac
15831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15832 (eval "$ac_compile") 2>conftest.er1
15833 ac_status=$?
15834 grep -v '^ *+' conftest.er1 >conftest.err
15835 rm -f conftest.er1
15836 cat conftest.err >&5
15837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15838 (exit $ac_status); } &&
15839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15840 { (case "(($ac_try" in
15841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15842 *) ac_try_echo=$ac_try;;
15843esac
15844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15845 (eval "$ac_try") 2>&5
15846 ac_status=$?
15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); }; } &&
15849 { ac_try='test -s conftest.$ac_objext'
15850 { (case "(($ac_try" in
15851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15852 *) ac_try_echo=$ac_try;;
15853esac
15854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15855 (eval "$ac_try") 2>&5
15856 ac_status=$?
15857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858 (exit $ac_status); }; }; then
15859 ac_header_compiler=yes
15860else
15861 echo "$as_me: failed program was:" >&5
15862sed 's/^/| /' conftest.$ac_ext >&5
15863
15864 ac_header_compiler=no
15865fi
15866
15867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15868{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15869echo "${ECHO_T}$ac_header_compiler" >&6; }
15870
15871# Is the header present?
15872{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15873echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15874cat >conftest.$ac_ext <<_ACEOF
15875/* confdefs.h. */
15876_ACEOF
15877cat confdefs.h >>conftest.$ac_ext
15878cat >>conftest.$ac_ext <<_ACEOF
15879/* end confdefs.h. */
15880#include <$ac_header>
15881_ACEOF
15882if { (ac_try="$ac_cpp conftest.$ac_ext"
15883case "(($ac_try" in
15884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15885 *) ac_try_echo=$ac_try;;
15886esac
15887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15889 ac_status=$?
15890 grep -v '^ *+' conftest.er1 >conftest.err
15891 rm -f conftest.er1
15892 cat conftest.err >&5
15893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894 (exit $ac_status); } >/dev/null; then
15895 if test -s conftest.err; then
15896 ac_cpp_err=$ac_c_preproc_warn_flag
15897 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15898 else
15899 ac_cpp_err=
15900 fi
15901else
15902 ac_cpp_err=yes
15903fi
15904if test -z "$ac_cpp_err"; then
15905 ac_header_preproc=yes
15906else
15907 echo "$as_me: failed program was:" >&5
15908sed 's/^/| /' conftest.$ac_ext >&5
15909
15910 ac_header_preproc=no
15911fi
15912
15913rm -f conftest.err conftest.$ac_ext
15914{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15915echo "${ECHO_T}$ac_header_preproc" >&6; }
15916
15917# So? What about this header?
15918case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15919 yes:no: )
15920 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15921echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15923echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15924 ac_header_preproc=yes
15925 ;;
15926 no:yes:* )
15927 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15928echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15929 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15930echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15931 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15932echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15933 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15934echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15936echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15937 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15938echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15939 ( cat <<\_ASBOX
15940## ----------------------------------- ##
15941## Report this to llvmbugs@cs.uiuc.edu ##
15942## ----------------------------------- ##
15943_ASBOX
15944 ) | sed "s/^/$as_me: WARNING: /" >&2
15945 ;;
15946esac
15947{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15948echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15949if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15950 echo $ECHO_N "(cached) $ECHO_C" >&6
15951else
15952 eval "$as_ac_Header=\$ac_header_preproc"
15953fi
15954ac_res=`eval echo '${'$as_ac_Header'}'`
15955 { echo "$as_me:$LINENO: result: $ac_res" >&5
15956echo "${ECHO_T}$ac_res" >&6; }
15957
15958fi
15959if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015960 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015961#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015962_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015963
15964fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015965
Reid Spencer59473af2004-12-25 07:31:29 +000015966done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015967
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015968
15969
15970
15971
15972
15973
Douglas Gregor071d73d2009-05-18 17:21:34 +000015974for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015975do
15976as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15977if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15978 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15979echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15980if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15981 echo $ECHO_N "(cached) $ECHO_C" >&6
15982fi
15983ac_res=`eval echo '${'$as_ac_Header'}'`
15984 { echo "$as_me:$LINENO: result: $ac_res" >&5
15985echo "${ECHO_T}$ac_res" >&6; }
15986else
15987 # Is the header compilable?
15988{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15989echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15990cat >conftest.$ac_ext <<_ACEOF
15991/* confdefs.h. */
15992_ACEOF
15993cat confdefs.h >>conftest.$ac_ext
15994cat >>conftest.$ac_ext <<_ACEOF
15995/* end confdefs.h. */
15996$ac_includes_default
15997#include <$ac_header>
15998_ACEOF
15999rm -f conftest.$ac_objext
16000if { (ac_try="$ac_compile"
16001case "(($ac_try" in
16002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16003 *) ac_try_echo=$ac_try;;
16004esac
16005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16006 (eval "$ac_compile") 2>conftest.er1
16007 ac_status=$?
16008 grep -v '^ *+' conftest.er1 >conftest.err
16009 rm -f conftest.er1
16010 cat conftest.err >&5
16011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012 (exit $ac_status); } &&
16013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16014 { (case "(($ac_try" in
16015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16016 *) ac_try_echo=$ac_try;;
16017esac
16018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16019 (eval "$ac_try") 2>&5
16020 ac_status=$?
16021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16022 (exit $ac_status); }; } &&
16023 { ac_try='test -s conftest.$ac_objext'
16024 { (case "(($ac_try" in
16025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16026 *) ac_try_echo=$ac_try;;
16027esac
16028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16029 (eval "$ac_try") 2>&5
16030 ac_status=$?
16031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032 (exit $ac_status); }; }; then
16033 ac_header_compiler=yes
16034else
16035 echo "$as_me: failed program was:" >&5
16036sed 's/^/| /' conftest.$ac_ext >&5
16037
16038 ac_header_compiler=no
16039fi
16040
16041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16042{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16043echo "${ECHO_T}$ac_header_compiler" >&6; }
16044
16045# Is the header present?
16046{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16047echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16048cat >conftest.$ac_ext <<_ACEOF
16049/* confdefs.h. */
16050_ACEOF
16051cat confdefs.h >>conftest.$ac_ext
16052cat >>conftest.$ac_ext <<_ACEOF
16053/* end confdefs.h. */
16054#include <$ac_header>
16055_ACEOF
16056if { (ac_try="$ac_cpp conftest.$ac_ext"
16057case "(($ac_try" in
16058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16059 *) ac_try_echo=$ac_try;;
16060esac
16061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16062 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16063 ac_status=$?
16064 grep -v '^ *+' conftest.er1 >conftest.err
16065 rm -f conftest.er1
16066 cat conftest.err >&5
16067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068 (exit $ac_status); } >/dev/null; then
16069 if test -s conftest.err; then
16070 ac_cpp_err=$ac_c_preproc_warn_flag
16071 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16072 else
16073 ac_cpp_err=
16074 fi
16075else
16076 ac_cpp_err=yes
16077fi
16078if test -z "$ac_cpp_err"; then
16079 ac_header_preproc=yes
16080else
16081 echo "$as_me: failed program was:" >&5
16082sed 's/^/| /' conftest.$ac_ext >&5
16083
16084 ac_header_preproc=no
16085fi
16086
16087rm -f conftest.err conftest.$ac_ext
16088{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16089echo "${ECHO_T}$ac_header_preproc" >&6; }
16090
16091# So? What about this header?
16092case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16093 yes:no: )
16094 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16095echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16096 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16097echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16098 ac_header_preproc=yes
16099 ;;
16100 no:yes:* )
16101 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16102echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16103 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16104echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16105 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16106echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16107 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16108echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16109 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16110echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16111 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16112echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16113 ( cat <<\_ASBOX
16114## ----------------------------------- ##
16115## Report this to llvmbugs@cs.uiuc.edu ##
16116## ----------------------------------- ##
16117_ASBOX
16118 ) | sed "s/^/$as_me: WARNING: /" >&2
16119 ;;
16120esac
16121{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16122echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16123if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16124 echo $ECHO_N "(cached) $ECHO_C" >&6
16125else
16126 eval "$as_ac_Header=\$ac_header_preproc"
16127fi
16128ac_res=`eval echo '${'$as_ac_Header'}'`
16129 { echo "$as_me:$LINENO: result: $ac_res" >&5
16130echo "${ECHO_T}$ac_res" >&6; }
16131
16132fi
16133if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000016134 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016135#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000016136_ACEOF
16137
16138fi
16139
16140done
16141
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016142
16143
Douglas Gregor071d73d2009-05-18 17:21:34 +000016144for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016145do
16146as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16147if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16148 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16149echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16150if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16151 echo $ECHO_N "(cached) $ECHO_C" >&6
16152fi
16153ac_res=`eval echo '${'$as_ac_Header'}'`
16154 { echo "$as_me:$LINENO: result: $ac_res" >&5
16155echo "${ECHO_T}$ac_res" >&6; }
16156else
16157 # Is the header compilable?
16158{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16159echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16160cat >conftest.$ac_ext <<_ACEOF
16161/* confdefs.h. */
16162_ACEOF
16163cat confdefs.h >>conftest.$ac_ext
16164cat >>conftest.$ac_ext <<_ACEOF
16165/* end confdefs.h. */
16166$ac_includes_default
16167#include <$ac_header>
16168_ACEOF
16169rm -f conftest.$ac_objext
16170if { (ac_try="$ac_compile"
16171case "(($ac_try" in
16172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16173 *) ac_try_echo=$ac_try;;
16174esac
16175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16176 (eval "$ac_compile") 2>conftest.er1
16177 ac_status=$?
16178 grep -v '^ *+' conftest.er1 >conftest.err
16179 rm -f conftest.er1
16180 cat conftest.err >&5
16181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182 (exit $ac_status); } &&
16183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16184 { (case "(($ac_try" in
16185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16186 *) ac_try_echo=$ac_try;;
16187esac
16188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16189 (eval "$ac_try") 2>&5
16190 ac_status=$?
16191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192 (exit $ac_status); }; } &&
16193 { ac_try='test -s conftest.$ac_objext'
16194 { (case "(($ac_try" in
16195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16196 *) ac_try_echo=$ac_try;;
16197esac
16198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16199 (eval "$ac_try") 2>&5
16200 ac_status=$?
16201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202 (exit $ac_status); }; }; then
16203 ac_header_compiler=yes
16204else
16205 echo "$as_me: failed program was:" >&5
16206sed 's/^/| /' conftest.$ac_ext >&5
16207
16208 ac_header_compiler=no
16209fi
16210
16211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16212{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16213echo "${ECHO_T}$ac_header_compiler" >&6; }
16214
16215# Is the header present?
16216{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16217echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16218cat >conftest.$ac_ext <<_ACEOF
16219/* confdefs.h. */
16220_ACEOF
16221cat confdefs.h >>conftest.$ac_ext
16222cat >>conftest.$ac_ext <<_ACEOF
16223/* end confdefs.h. */
16224#include <$ac_header>
16225_ACEOF
16226if { (ac_try="$ac_cpp conftest.$ac_ext"
16227case "(($ac_try" in
16228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16229 *) ac_try_echo=$ac_try;;
16230esac
16231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16232 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16233 ac_status=$?
16234 grep -v '^ *+' conftest.er1 >conftest.err
16235 rm -f conftest.er1
16236 cat conftest.err >&5
16237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238 (exit $ac_status); } >/dev/null; then
16239 if test -s conftest.err; then
16240 ac_cpp_err=$ac_c_preproc_warn_flag
16241 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16242 else
16243 ac_cpp_err=
16244 fi
16245else
16246 ac_cpp_err=yes
16247fi
16248if test -z "$ac_cpp_err"; then
16249 ac_header_preproc=yes
16250else
16251 echo "$as_me: failed program was:" >&5
16252sed 's/^/| /' conftest.$ac_ext >&5
16253
16254 ac_header_preproc=no
16255fi
16256
16257rm -f conftest.err conftest.$ac_ext
16258{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16259echo "${ECHO_T}$ac_header_preproc" >&6; }
16260
16261# So? What about this header?
16262case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16263 yes:no: )
16264 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16265echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16267echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16268 ac_header_preproc=yes
16269 ;;
16270 no:yes:* )
16271 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16272echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16273 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16274echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16275 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16276echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16277 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16278echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16279 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16280echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16281 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16282echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16283 ( cat <<\_ASBOX
16284## ----------------------------------- ##
16285## Report this to llvmbugs@cs.uiuc.edu ##
16286## ----------------------------------- ##
16287_ASBOX
16288 ) | sed "s/^/$as_me: WARNING: /" >&2
16289 ;;
16290esac
16291{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16292echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16293if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16294 echo $ECHO_N "(cached) $ECHO_C" >&6
16295else
16296 eval "$as_ac_Header=\$ac_header_preproc"
16297fi
16298ac_res=`eval echo '${'$as_ac_Header'}'`
16299 { echo "$as_me:$LINENO: result: $ac_res" >&5
16300echo "${ECHO_T}$ac_res" >&6; }
16301
16302fi
16303if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000016304 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016305#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000016306_ACEOF
16307
16308fi
16309
16310done
Reid Spencer59473af2004-12-25 07:31:29 +000016311
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016312
16313
16314
16315
Daniel Dunbar3e462932011-02-03 02:40:02 +000016316
16317for 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 +000016318do
16319as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16320if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16321 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16322echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16323if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16324 echo $ECHO_N "(cached) $ECHO_C" >&6
16325fi
16326ac_res=`eval echo '${'$as_ac_Header'}'`
16327 { echo "$as_me:$LINENO: result: $ac_res" >&5
16328echo "${ECHO_T}$ac_res" >&6; }
16329else
16330 # Is the header compilable?
16331{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16332echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16333cat >conftest.$ac_ext <<_ACEOF
16334/* confdefs.h. */
16335_ACEOF
16336cat confdefs.h >>conftest.$ac_ext
16337cat >>conftest.$ac_ext <<_ACEOF
16338/* end confdefs.h. */
16339$ac_includes_default
16340#include <$ac_header>
16341_ACEOF
16342rm -f conftest.$ac_objext
16343if { (ac_try="$ac_compile"
16344case "(($ac_try" in
16345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16346 *) ac_try_echo=$ac_try;;
16347esac
16348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16349 (eval "$ac_compile") 2>conftest.er1
16350 ac_status=$?
16351 grep -v '^ *+' conftest.er1 >conftest.err
16352 rm -f conftest.er1
16353 cat conftest.err >&5
16354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355 (exit $ac_status); } &&
16356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16357 { (case "(($ac_try" in
16358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16359 *) ac_try_echo=$ac_try;;
16360esac
16361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16362 (eval "$ac_try") 2>&5
16363 ac_status=$?
16364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365 (exit $ac_status); }; } &&
16366 { ac_try='test -s conftest.$ac_objext'
16367 { (case "(($ac_try" in
16368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16369 *) ac_try_echo=$ac_try;;
16370esac
16371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16372 (eval "$ac_try") 2>&5
16373 ac_status=$?
16374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16375 (exit $ac_status); }; }; then
16376 ac_header_compiler=yes
16377else
16378 echo "$as_me: failed program was:" >&5
16379sed 's/^/| /' conftest.$ac_ext >&5
16380
16381 ac_header_compiler=no
16382fi
16383
16384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16385{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16386echo "${ECHO_T}$ac_header_compiler" >&6; }
16387
16388# Is the header present?
16389{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16390echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16391cat >conftest.$ac_ext <<_ACEOF
16392/* confdefs.h. */
16393_ACEOF
16394cat confdefs.h >>conftest.$ac_ext
16395cat >>conftest.$ac_ext <<_ACEOF
16396/* end confdefs.h. */
16397#include <$ac_header>
16398_ACEOF
16399if { (ac_try="$ac_cpp conftest.$ac_ext"
16400case "(($ac_try" in
16401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16402 *) ac_try_echo=$ac_try;;
16403esac
16404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16406 ac_status=$?
16407 grep -v '^ *+' conftest.er1 >conftest.err
16408 rm -f conftest.er1
16409 cat conftest.err >&5
16410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411 (exit $ac_status); } >/dev/null; then
16412 if test -s conftest.err; then
16413 ac_cpp_err=$ac_c_preproc_warn_flag
16414 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16415 else
16416 ac_cpp_err=
16417 fi
16418else
16419 ac_cpp_err=yes
16420fi
16421if test -z "$ac_cpp_err"; then
16422 ac_header_preproc=yes
16423else
16424 echo "$as_me: failed program was:" >&5
16425sed 's/^/| /' conftest.$ac_ext >&5
16426
16427 ac_header_preproc=no
16428fi
16429
16430rm -f conftest.err conftest.$ac_ext
16431{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16432echo "${ECHO_T}$ac_header_preproc" >&6; }
16433
16434# So? What about this header?
16435case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16436 yes:no: )
16437 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16438echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16440echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16441 ac_header_preproc=yes
16442 ;;
16443 no:yes:* )
16444 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16445echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16446 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16447echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16448 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16449echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16450 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16451echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16453echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16454 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16455echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16456 ( cat <<\_ASBOX
16457## ----------------------------------- ##
16458## Report this to llvmbugs@cs.uiuc.edu ##
16459## ----------------------------------- ##
16460_ASBOX
16461 ) | sed "s/^/$as_me: WARNING: /" >&2
16462 ;;
16463esac
16464{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16465echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16466if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16467 echo $ECHO_N "(cached) $ECHO_C" >&6
16468else
16469 eval "$as_ac_Header=\$ac_header_preproc"
16470fi
16471ac_res=`eval echo '${'$as_ac_Header'}'`
16472 { echo "$as_me:$LINENO: result: $ac_res" >&5
16473echo "${ECHO_T}$ac_res" >&6; }
16474
16475fi
16476if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016477 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016478#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000016479_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000016480
16481fi
John Criswell7ed43ad2004-07-19 16:12:29 +000016482
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016483done
16484
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016485
16486
16487
16488
Douglas Gregor01746742009-05-11 18:05:52 +000016489for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016490do
16491as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16492if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16493 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16494echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16495if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16496 echo $ECHO_N "(cached) $ECHO_C" >&6
16497fi
16498ac_res=`eval echo '${'$as_ac_Header'}'`
16499 { echo "$as_me:$LINENO: result: $ac_res" >&5
16500echo "${ECHO_T}$ac_res" >&6; }
16501else
16502 # Is the header compilable?
16503{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16504echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16505cat >conftest.$ac_ext <<_ACEOF
16506/* confdefs.h. */
16507_ACEOF
16508cat confdefs.h >>conftest.$ac_ext
16509cat >>conftest.$ac_ext <<_ACEOF
16510/* end confdefs.h. */
16511$ac_includes_default
16512#include <$ac_header>
16513_ACEOF
16514rm -f conftest.$ac_objext
16515if { (ac_try="$ac_compile"
16516case "(($ac_try" in
16517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16518 *) ac_try_echo=$ac_try;;
16519esac
16520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16521 (eval "$ac_compile") 2>conftest.er1
16522 ac_status=$?
16523 grep -v '^ *+' conftest.er1 >conftest.err
16524 rm -f conftest.er1
16525 cat conftest.err >&5
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); } &&
16528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16529 { (case "(($ac_try" in
16530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16531 *) ac_try_echo=$ac_try;;
16532esac
16533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16534 (eval "$ac_try") 2>&5
16535 ac_status=$?
16536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16537 (exit $ac_status); }; } &&
16538 { ac_try='test -s conftest.$ac_objext'
16539 { (case "(($ac_try" in
16540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16541 *) ac_try_echo=$ac_try;;
16542esac
16543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16544 (eval "$ac_try") 2>&5
16545 ac_status=$?
16546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547 (exit $ac_status); }; }; then
16548 ac_header_compiler=yes
16549else
16550 echo "$as_me: failed program was:" >&5
16551sed 's/^/| /' conftest.$ac_ext >&5
16552
16553 ac_header_compiler=no
16554fi
16555
16556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16557{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16558echo "${ECHO_T}$ac_header_compiler" >&6; }
16559
16560# Is the header present?
16561{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16562echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16563cat >conftest.$ac_ext <<_ACEOF
16564/* confdefs.h. */
16565_ACEOF
16566cat confdefs.h >>conftest.$ac_ext
16567cat >>conftest.$ac_ext <<_ACEOF
16568/* end confdefs.h. */
16569#include <$ac_header>
16570_ACEOF
16571if { (ac_try="$ac_cpp conftest.$ac_ext"
16572case "(($ac_try" in
16573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16574 *) ac_try_echo=$ac_try;;
16575esac
16576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16578 ac_status=$?
16579 grep -v '^ *+' conftest.er1 >conftest.err
16580 rm -f conftest.er1
16581 cat conftest.err >&5
16582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16583 (exit $ac_status); } >/dev/null; then
16584 if test -s conftest.err; then
16585 ac_cpp_err=$ac_c_preproc_warn_flag
16586 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16587 else
16588 ac_cpp_err=
16589 fi
16590else
16591 ac_cpp_err=yes
16592fi
16593if test -z "$ac_cpp_err"; then
16594 ac_header_preproc=yes
16595else
16596 echo "$as_me: failed program was:" >&5
16597sed 's/^/| /' conftest.$ac_ext >&5
16598
16599 ac_header_preproc=no
16600fi
16601
16602rm -f conftest.err conftest.$ac_ext
16603{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16604echo "${ECHO_T}$ac_header_preproc" >&6; }
16605
16606# So? What about this header?
16607case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16608 yes:no: )
16609 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16610echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16611 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16612echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16613 ac_header_preproc=yes
16614 ;;
16615 no:yes:* )
16616 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16617echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16618 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16619echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16620 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16621echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16622 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16623echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16625echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16626 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16627echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16628 ( cat <<\_ASBOX
16629## ----------------------------------- ##
16630## Report this to llvmbugs@cs.uiuc.edu ##
16631## ----------------------------------- ##
16632_ASBOX
16633 ) | sed "s/^/$as_me: WARNING: /" >&2
16634 ;;
16635esac
16636{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16637echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16638if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16639 echo $ECHO_N "(cached) $ECHO_C" >&6
16640else
16641 eval "$as_ac_Header=\$ac_header_preproc"
16642fi
16643ac_res=`eval echo '${'$as_ac_Header'}'`
16644 { echo "$as_me:$LINENO: result: $ac_res" >&5
16645echo "${ECHO_T}$ac_res" >&6; }
16646
16647fi
16648if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000016649 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016650#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000016651_ACEOF
16652
16653fi
16654
16655done
16656
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000016657
16658for ac_header in valgrind/valgrind.h
16659do
16660as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16661if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16662 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16663echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16664if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16665 echo $ECHO_N "(cached) $ECHO_C" >&6
16666fi
16667ac_res=`eval echo '${'$as_ac_Header'}'`
16668 { echo "$as_me:$LINENO: result: $ac_res" >&5
16669echo "${ECHO_T}$ac_res" >&6; }
16670else
16671 # Is the header compilable?
16672{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16673echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16674cat >conftest.$ac_ext <<_ACEOF
16675/* confdefs.h. */
16676_ACEOF
16677cat confdefs.h >>conftest.$ac_ext
16678cat >>conftest.$ac_ext <<_ACEOF
16679/* end confdefs.h. */
16680$ac_includes_default
16681#include <$ac_header>
16682_ACEOF
16683rm -f conftest.$ac_objext
16684if { (ac_try="$ac_compile"
16685case "(($ac_try" in
16686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16687 *) ac_try_echo=$ac_try;;
16688esac
16689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16690 (eval "$ac_compile") 2>conftest.er1
16691 ac_status=$?
16692 grep -v '^ *+' conftest.er1 >conftest.err
16693 rm -f conftest.er1
16694 cat conftest.err >&5
16695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696 (exit $ac_status); } &&
16697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16698 { (case "(($ac_try" in
16699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16700 *) ac_try_echo=$ac_try;;
16701esac
16702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16703 (eval "$ac_try") 2>&5
16704 ac_status=$?
16705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16706 (exit $ac_status); }; } &&
16707 { ac_try='test -s conftest.$ac_objext'
16708 { (case "(($ac_try" in
16709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16710 *) ac_try_echo=$ac_try;;
16711esac
16712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16713 (eval "$ac_try") 2>&5
16714 ac_status=$?
16715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716 (exit $ac_status); }; }; then
16717 ac_header_compiler=yes
16718else
16719 echo "$as_me: failed program was:" >&5
16720sed 's/^/| /' conftest.$ac_ext >&5
16721
16722 ac_header_compiler=no
16723fi
16724
16725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16726{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16727echo "${ECHO_T}$ac_header_compiler" >&6; }
16728
16729# Is the header present?
16730{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16731echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16732cat >conftest.$ac_ext <<_ACEOF
16733/* confdefs.h. */
16734_ACEOF
16735cat confdefs.h >>conftest.$ac_ext
16736cat >>conftest.$ac_ext <<_ACEOF
16737/* end confdefs.h. */
16738#include <$ac_header>
16739_ACEOF
16740if { (ac_try="$ac_cpp conftest.$ac_ext"
16741case "(($ac_try" in
16742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16743 *) ac_try_echo=$ac_try;;
16744esac
16745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16747 ac_status=$?
16748 grep -v '^ *+' conftest.er1 >conftest.err
16749 rm -f conftest.er1
16750 cat conftest.err >&5
16751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16752 (exit $ac_status); } >/dev/null; then
16753 if test -s conftest.err; then
16754 ac_cpp_err=$ac_c_preproc_warn_flag
16755 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16756 else
16757 ac_cpp_err=
16758 fi
16759else
16760 ac_cpp_err=yes
16761fi
16762if test -z "$ac_cpp_err"; then
16763 ac_header_preproc=yes
16764else
16765 echo "$as_me: failed program was:" >&5
16766sed 's/^/| /' conftest.$ac_ext >&5
16767
16768 ac_header_preproc=no
16769fi
16770
16771rm -f conftest.err conftest.$ac_ext
16772{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16773echo "${ECHO_T}$ac_header_preproc" >&6; }
16774
16775# So? What about this header?
16776case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16777 yes:no: )
16778 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16779echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16780 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16781echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16782 ac_header_preproc=yes
16783 ;;
16784 no:yes:* )
16785 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16786echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16787 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16788echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16789 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16790echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16791 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16792echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16793 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16794echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16795 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16796echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16797 ( cat <<\_ASBOX
16798## ----------------------------------- ##
16799## Report this to llvmbugs@cs.uiuc.edu ##
16800## ----------------------------------- ##
16801_ASBOX
16802 ) | sed "s/^/$as_me: WARNING: /" >&2
16803 ;;
16804esac
16805{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16806echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16807if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16808 echo $ECHO_N "(cached) $ECHO_C" >&6
16809else
16810 eval "$as_ac_Header=\$ac_header_preproc"
16811fi
16812ac_res=`eval echo '${'$as_ac_Header'}'`
16813 { echo "$as_me:$LINENO: result: $ac_res" >&5
16814echo "${ECHO_T}$ac_res" >&6; }
16815
16816fi
16817if test `eval echo '${'$as_ac_Header'}'` = yes; then
16818 cat >>confdefs.h <<_ACEOF
16819#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16820_ACEOF
16821
16822fi
16823
16824done
16825
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000016826
16827for ac_header in fenv.h
16828do
16829as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16830if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16831 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16832echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16833if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16834 echo $ECHO_N "(cached) $ECHO_C" >&6
16835fi
16836ac_res=`eval echo '${'$as_ac_Header'}'`
16837 { echo "$as_me:$LINENO: result: $ac_res" >&5
16838echo "${ECHO_T}$ac_res" >&6; }
16839else
16840 # Is the header compilable?
16841{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16842echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16843cat >conftest.$ac_ext <<_ACEOF
16844/* confdefs.h. */
16845_ACEOF
16846cat confdefs.h >>conftest.$ac_ext
16847cat >>conftest.$ac_ext <<_ACEOF
16848/* end confdefs.h. */
16849$ac_includes_default
16850#include <$ac_header>
16851_ACEOF
16852rm -f conftest.$ac_objext
16853if { (ac_try="$ac_compile"
16854case "(($ac_try" in
16855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16856 *) ac_try_echo=$ac_try;;
16857esac
16858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16859 (eval "$ac_compile") 2>conftest.er1
16860 ac_status=$?
16861 grep -v '^ *+' conftest.er1 >conftest.err
16862 rm -f conftest.er1
16863 cat conftest.err >&5
16864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865 (exit $ac_status); } &&
16866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16867 { (case "(($ac_try" in
16868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16869 *) ac_try_echo=$ac_try;;
16870esac
16871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16872 (eval "$ac_try") 2>&5
16873 ac_status=$?
16874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875 (exit $ac_status); }; } &&
16876 { ac_try='test -s conftest.$ac_objext'
16877 { (case "(($ac_try" in
16878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16879 *) ac_try_echo=$ac_try;;
16880esac
16881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16882 (eval "$ac_try") 2>&5
16883 ac_status=$?
16884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885 (exit $ac_status); }; }; then
16886 ac_header_compiler=yes
16887else
16888 echo "$as_me: failed program was:" >&5
16889sed 's/^/| /' conftest.$ac_ext >&5
16890
16891 ac_header_compiler=no
16892fi
16893
16894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16895{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16896echo "${ECHO_T}$ac_header_compiler" >&6; }
16897
16898# Is the header present?
16899{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16900echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16901cat >conftest.$ac_ext <<_ACEOF
16902/* confdefs.h. */
16903_ACEOF
16904cat confdefs.h >>conftest.$ac_ext
16905cat >>conftest.$ac_ext <<_ACEOF
16906/* end confdefs.h. */
16907#include <$ac_header>
16908_ACEOF
16909if { (ac_try="$ac_cpp conftest.$ac_ext"
16910case "(($ac_try" in
16911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16912 *) ac_try_echo=$ac_try;;
16913esac
16914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16916 ac_status=$?
16917 grep -v '^ *+' conftest.er1 >conftest.err
16918 rm -f conftest.er1
16919 cat conftest.err >&5
16920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921 (exit $ac_status); } >/dev/null; then
16922 if test -s conftest.err; then
16923 ac_cpp_err=$ac_c_preproc_warn_flag
16924 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16925 else
16926 ac_cpp_err=
16927 fi
16928else
16929 ac_cpp_err=yes
16930fi
16931if test -z "$ac_cpp_err"; then
16932 ac_header_preproc=yes
16933else
16934 echo "$as_me: failed program was:" >&5
16935sed 's/^/| /' conftest.$ac_ext >&5
16936
16937 ac_header_preproc=no
16938fi
16939
16940rm -f conftest.err conftest.$ac_ext
16941{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16942echo "${ECHO_T}$ac_header_preproc" >&6; }
16943
16944# So? What about this header?
16945case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16946 yes:no: )
16947 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16948echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16950echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16951 ac_header_preproc=yes
16952 ;;
16953 no:yes:* )
16954 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16955echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16956 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16957echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16958 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16959echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16960 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16961echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16963echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16964 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16965echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16966 ( cat <<\_ASBOX
16967## ----------------------------------- ##
16968## Report this to llvmbugs@cs.uiuc.edu ##
16969## ----------------------------------- ##
16970_ASBOX
16971 ) | sed "s/^/$as_me: WARNING: /" >&2
16972 ;;
16973esac
16974{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16975echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16976if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16977 echo $ECHO_N "(cached) $ECHO_C" >&6
16978else
16979 eval "$as_ac_Header=\$ac_header_preproc"
16980fi
16981ac_res=`eval echo '${'$as_ac_Header'}'`
16982 { echo "$as_me:$LINENO: result: $ac_res" >&5
16983echo "${ECHO_T}$ac_res" >&6; }
16984
16985fi
16986if test `eval echo '${'$as_ac_Header'}'` = yes; then
16987 cat >>confdefs.h <<_ACEOF
16988#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16989_ACEOF
16990
16991fi
16992
16993done
16994
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000016995if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016996
16997for ac_header in pthread.h
16998do
16999as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17000if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17001 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17002echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17003if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17004 echo $ECHO_N "(cached) $ECHO_C" >&6
17005fi
17006ac_res=`eval echo '${'$as_ac_Header'}'`
17007 { echo "$as_me:$LINENO: result: $ac_res" >&5
17008echo "${ECHO_T}$ac_res" >&6; }
17009else
17010 # Is the header compilable?
17011{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17012echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17013cat >conftest.$ac_ext <<_ACEOF
17014/* confdefs.h. */
17015_ACEOF
17016cat confdefs.h >>conftest.$ac_ext
17017cat >>conftest.$ac_ext <<_ACEOF
17018/* end confdefs.h. */
17019$ac_includes_default
17020#include <$ac_header>
17021_ACEOF
17022rm -f conftest.$ac_objext
17023if { (ac_try="$ac_compile"
17024case "(($ac_try" in
17025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17026 *) ac_try_echo=$ac_try;;
17027esac
17028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17029 (eval "$ac_compile") 2>conftest.er1
17030 ac_status=$?
17031 grep -v '^ *+' conftest.er1 >conftest.err
17032 rm -f conftest.er1
17033 cat conftest.err >&5
17034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17035 (exit $ac_status); } &&
17036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17037 { (case "(($ac_try" in
17038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17039 *) ac_try_echo=$ac_try;;
17040esac
17041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17042 (eval "$ac_try") 2>&5
17043 ac_status=$?
17044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17045 (exit $ac_status); }; } &&
17046 { ac_try='test -s conftest.$ac_objext'
17047 { (case "(($ac_try" in
17048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17049 *) ac_try_echo=$ac_try;;
17050esac
17051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17052 (eval "$ac_try") 2>&5
17053 ac_status=$?
17054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055 (exit $ac_status); }; }; then
17056 ac_header_compiler=yes
17057else
17058 echo "$as_me: failed program was:" >&5
17059sed 's/^/| /' conftest.$ac_ext >&5
17060
17061 ac_header_compiler=no
17062fi
17063
17064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17065{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17066echo "${ECHO_T}$ac_header_compiler" >&6; }
17067
17068# Is the header present?
17069{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17070echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17071cat >conftest.$ac_ext <<_ACEOF
17072/* confdefs.h. */
17073_ACEOF
17074cat confdefs.h >>conftest.$ac_ext
17075cat >>conftest.$ac_ext <<_ACEOF
17076/* end confdefs.h. */
17077#include <$ac_header>
17078_ACEOF
17079if { (ac_try="$ac_cpp conftest.$ac_ext"
17080case "(($ac_try" in
17081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17082 *) ac_try_echo=$ac_try;;
17083esac
17084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17085 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17086 ac_status=$?
17087 grep -v '^ *+' conftest.er1 >conftest.err
17088 rm -f conftest.er1
17089 cat conftest.err >&5
17090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17091 (exit $ac_status); } >/dev/null; then
17092 if test -s conftest.err; then
17093 ac_cpp_err=$ac_c_preproc_warn_flag
17094 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17095 else
17096 ac_cpp_err=
17097 fi
17098else
17099 ac_cpp_err=yes
17100fi
17101if test -z "$ac_cpp_err"; then
17102 ac_header_preproc=yes
17103else
17104 echo "$as_me: failed program was:" >&5
17105sed 's/^/| /' conftest.$ac_ext >&5
17106
17107 ac_header_preproc=no
17108fi
17109
17110rm -f conftest.err conftest.$ac_ext
17111{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17112echo "${ECHO_T}$ac_header_preproc" >&6; }
17113
17114# So? What about this header?
17115case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17116 yes:no: )
17117 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17118echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17120echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17121 ac_header_preproc=yes
17122 ;;
17123 no:yes:* )
17124 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17125echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17126 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17127echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17128 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17129echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17130 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17131echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17133echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17134 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17135echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17136 ( cat <<\_ASBOX
17137## ----------------------------------- ##
17138## Report this to llvmbugs@cs.uiuc.edu ##
17139## ----------------------------------- ##
17140_ASBOX
17141 ) | sed "s/^/$as_me: WARNING: /" >&2
17142 ;;
17143esac
17144{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17145echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17146if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17147 echo $ECHO_N "(cached) $ECHO_C" >&6
17148else
17149 eval "$as_ac_Header=\$ac_header_preproc"
17150fi
17151ac_res=`eval echo '${'$as_ac_Header'}'`
17152 { echo "$as_me:$LINENO: result: $ac_res" >&5
17153echo "${ECHO_T}$ac_res" >&6; }
17154
17155fi
17156if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000017157 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017158#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000017159_ACEOF
17160 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000017161
17162else
17163 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000017164
17165fi
17166
Reid Spencerbe3e4192007-08-17 05:45:26 +000017167done
Reid Spencer1000b732006-12-01 00:37:14 +000017168
17169else
17170 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000017171
17172fi
Reid Spencer8085cff2005-01-16 02:58:39 +000017173
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000017174if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017175
17176
17177for ac_header in ffi.h ffi/ffi.h
17178do
17179as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17180if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17181 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17182echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17183if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17184 echo $ECHO_N "(cached) $ECHO_C" >&6
17185fi
17186ac_res=`eval echo '${'$as_ac_Header'}'`
17187 { echo "$as_me:$LINENO: result: $ac_res" >&5
17188echo "${ECHO_T}$ac_res" >&6; }
17189else
17190 # Is the header compilable?
17191{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17192echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17193cat >conftest.$ac_ext <<_ACEOF
17194/* confdefs.h. */
17195_ACEOF
17196cat confdefs.h >>conftest.$ac_ext
17197cat >>conftest.$ac_ext <<_ACEOF
17198/* end confdefs.h. */
17199$ac_includes_default
17200#include <$ac_header>
17201_ACEOF
17202rm -f conftest.$ac_objext
17203if { (ac_try="$ac_compile"
17204case "(($ac_try" in
17205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17206 *) ac_try_echo=$ac_try;;
17207esac
17208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17209 (eval "$ac_compile") 2>conftest.er1
17210 ac_status=$?
17211 grep -v '^ *+' conftest.er1 >conftest.err
17212 rm -f conftest.er1
17213 cat conftest.err >&5
17214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215 (exit $ac_status); } &&
17216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17217 { (case "(($ac_try" in
17218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17219 *) ac_try_echo=$ac_try;;
17220esac
17221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17222 (eval "$ac_try") 2>&5
17223 ac_status=$?
17224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225 (exit $ac_status); }; } &&
17226 { ac_try='test -s conftest.$ac_objext'
17227 { (case "(($ac_try" in
17228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17229 *) ac_try_echo=$ac_try;;
17230esac
17231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17232 (eval "$ac_try") 2>&5
17233 ac_status=$?
17234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235 (exit $ac_status); }; }; then
17236 ac_header_compiler=yes
17237else
17238 echo "$as_me: failed program was:" >&5
17239sed 's/^/| /' conftest.$ac_ext >&5
17240
17241 ac_header_compiler=no
17242fi
17243
17244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17245{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17246echo "${ECHO_T}$ac_header_compiler" >&6; }
17247
17248# Is the header present?
17249{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17250echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17251cat >conftest.$ac_ext <<_ACEOF
17252/* confdefs.h. */
17253_ACEOF
17254cat confdefs.h >>conftest.$ac_ext
17255cat >>conftest.$ac_ext <<_ACEOF
17256/* end confdefs.h. */
17257#include <$ac_header>
17258_ACEOF
17259if { (ac_try="$ac_cpp conftest.$ac_ext"
17260case "(($ac_try" in
17261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17262 *) ac_try_echo=$ac_try;;
17263esac
17264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17265 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17266 ac_status=$?
17267 grep -v '^ *+' conftest.er1 >conftest.err
17268 rm -f conftest.er1
17269 cat conftest.err >&5
17270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271 (exit $ac_status); } >/dev/null; then
17272 if test -s conftest.err; then
17273 ac_cpp_err=$ac_c_preproc_warn_flag
17274 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17275 else
17276 ac_cpp_err=
17277 fi
17278else
17279 ac_cpp_err=yes
17280fi
17281if test -z "$ac_cpp_err"; then
17282 ac_header_preproc=yes
17283else
17284 echo "$as_me: failed program was:" >&5
17285sed 's/^/| /' conftest.$ac_ext >&5
17286
17287 ac_header_preproc=no
17288fi
17289
17290rm -f conftest.err conftest.$ac_ext
17291{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17292echo "${ECHO_T}$ac_header_preproc" >&6; }
17293
17294# So? What about this header?
17295case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17296 yes:no: )
17297 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17298echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17300echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17301 ac_header_preproc=yes
17302 ;;
17303 no:yes:* )
17304 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17305echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17306 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17307echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17308 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17309echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17310 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17311echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17313echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17314 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17315echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17316 ( cat <<\_ASBOX
17317## ----------------------------------- ##
17318## Report this to llvmbugs@cs.uiuc.edu ##
17319## ----------------------------------- ##
17320_ASBOX
17321 ) | sed "s/^/$as_me: WARNING: /" >&2
17322 ;;
17323esac
17324{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17325echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17326if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17327 echo $ECHO_N "(cached) $ECHO_C" >&6
17328else
17329 eval "$as_ac_Header=\$ac_header_preproc"
17330fi
17331ac_res=`eval echo '${'$as_ac_Header'}'`
17332 { echo "$as_me:$LINENO: result: $ac_res" >&5
17333echo "${ECHO_T}$ac_res" >&6; }
17334
17335fi
17336if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017337 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017338#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017339_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017340
17341fi
17342
17343done
17344
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000017345fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017346
Nick Lewycky2ab1d862009-01-20 00:52:24 +000017347
Eric Christopher654dee42010-06-22 21:01:04 +000017348for ac_header in CrashReporterClient.h
17349do
17350as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17351if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17352 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17353echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17354if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17355 echo $ECHO_N "(cached) $ECHO_C" >&6
17356fi
17357ac_res=`eval echo '${'$as_ac_Header'}'`
17358 { echo "$as_me:$LINENO: result: $ac_res" >&5
17359echo "${ECHO_T}$ac_res" >&6; }
17360else
17361 # Is the header compilable?
17362{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17363echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17364cat >conftest.$ac_ext <<_ACEOF
17365/* confdefs.h. */
17366_ACEOF
17367cat confdefs.h >>conftest.$ac_ext
17368cat >>conftest.$ac_ext <<_ACEOF
17369/* end confdefs.h. */
17370$ac_includes_default
17371#include <$ac_header>
17372_ACEOF
17373rm -f conftest.$ac_objext
17374if { (ac_try="$ac_compile"
17375case "(($ac_try" in
17376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17377 *) ac_try_echo=$ac_try;;
17378esac
17379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17380 (eval "$ac_compile") 2>conftest.er1
17381 ac_status=$?
17382 grep -v '^ *+' conftest.er1 >conftest.err
17383 rm -f conftest.er1
17384 cat conftest.err >&5
17385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386 (exit $ac_status); } &&
17387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17388 { (case "(($ac_try" in
17389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17390 *) ac_try_echo=$ac_try;;
17391esac
17392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17393 (eval "$ac_try") 2>&5
17394 ac_status=$?
17395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396 (exit $ac_status); }; } &&
17397 { ac_try='test -s conftest.$ac_objext'
17398 { (case "(($ac_try" in
17399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17400 *) ac_try_echo=$ac_try;;
17401esac
17402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17403 (eval "$ac_try") 2>&5
17404 ac_status=$?
17405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406 (exit $ac_status); }; }; then
17407 ac_header_compiler=yes
17408else
17409 echo "$as_me: failed program was:" >&5
17410sed 's/^/| /' conftest.$ac_ext >&5
17411
17412 ac_header_compiler=no
17413fi
17414
17415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17416{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17417echo "${ECHO_T}$ac_header_compiler" >&6; }
17418
17419# Is the header present?
17420{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17421echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17422cat >conftest.$ac_ext <<_ACEOF
17423/* confdefs.h. */
17424_ACEOF
17425cat confdefs.h >>conftest.$ac_ext
17426cat >>conftest.$ac_ext <<_ACEOF
17427/* end confdefs.h. */
17428#include <$ac_header>
17429_ACEOF
17430if { (ac_try="$ac_cpp conftest.$ac_ext"
17431case "(($ac_try" in
17432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17433 *) ac_try_echo=$ac_try;;
17434esac
17435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17436 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17437 ac_status=$?
17438 grep -v '^ *+' conftest.er1 >conftest.err
17439 rm -f conftest.er1
17440 cat conftest.err >&5
17441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442 (exit $ac_status); } >/dev/null; then
17443 if test -s conftest.err; then
17444 ac_cpp_err=$ac_c_preproc_warn_flag
17445 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17446 else
17447 ac_cpp_err=
17448 fi
17449else
17450 ac_cpp_err=yes
17451fi
17452if test -z "$ac_cpp_err"; then
17453 ac_header_preproc=yes
17454else
17455 echo "$as_me: failed program was:" >&5
17456sed 's/^/| /' conftest.$ac_ext >&5
17457
17458 ac_header_preproc=no
17459fi
17460
17461rm -f conftest.err conftest.$ac_ext
17462{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17463echo "${ECHO_T}$ac_header_preproc" >&6; }
17464
17465# So? What about this header?
17466case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17467 yes:no: )
17468 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17469echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17471echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17472 ac_header_preproc=yes
17473 ;;
17474 no:yes:* )
17475 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17476echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17477 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17478echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17479 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17480echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17481 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17482echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17484echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17485 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17486echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17487 ( cat <<\_ASBOX
17488## ----------------------------------- ##
17489## Report this to llvmbugs@cs.uiuc.edu ##
17490## ----------------------------------- ##
17491_ASBOX
17492 ) | sed "s/^/$as_me: WARNING: /" >&2
17493 ;;
17494esac
17495{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17496echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17497if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17498 echo $ECHO_N "(cached) $ECHO_C" >&6
17499else
17500 eval "$as_ac_Header=\$ac_header_preproc"
17501fi
17502ac_res=`eval echo '${'$as_ac_Header'}'`
17503 { echo "$as_me:$LINENO: result: $ac_res" >&5
17504echo "${ECHO_T}$ac_res" >&6; }
17505
17506fi
17507if test `eval echo '${'$as_ac_Header'}'` = yes; then
17508 cat >>confdefs.h <<_ACEOF
17509#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17510_ACEOF
17511
17512fi
17513
17514done
17515
17516
Eric Christopher51e57132010-12-07 02:05:42 +000017517{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17518echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000017519cat >conftest.$ac_ext <<_ACEOF
17520/* confdefs.h. */
17521_ACEOF
17522cat confdefs.h >>conftest.$ac_ext
17523cat >>conftest.$ac_ext <<_ACEOF
17524/* end confdefs.h. */
Eric Christopher51e57132010-12-07 02:05:42 +000017525extern const char *__crashreporter_info__;
17526 int main() {
17527 __crashreporter_info__ = "test";
17528 return 0;
17529 }
Eric Christopher481d4022010-12-03 07:45:22 +000017530
Eric Christopher481d4022010-12-03 07:45:22 +000017531_ACEOF
17532rm -f conftest.$ac_objext conftest$ac_exeext
17533if { (ac_try="$ac_link"
17534case "(($ac_try" in
17535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17536 *) ac_try_echo=$ac_try;;
17537esac
17538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17539 (eval "$ac_link") 2>conftest.er1
17540 ac_status=$?
17541 grep -v '^ *+' conftest.er1 >conftest.err
17542 rm -f conftest.er1
17543 cat conftest.err >&5
17544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545 (exit $ac_status); } &&
17546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17547 { (case "(($ac_try" in
17548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17549 *) ac_try_echo=$ac_try;;
17550esac
17551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17552 (eval "$ac_try") 2>&5
17553 ac_status=$?
17554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555 (exit $ac_status); }; } &&
17556 { ac_try='test -s conftest$ac_exeext'
17557 { (case "(($ac_try" in
17558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17559 *) ac_try_echo=$ac_try;;
17560esac
17561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17562 (eval "$ac_try") 2>&5
17563 ac_status=$?
17564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17565 (exit $ac_status); }; }; then
Eric Christopher51e57132010-12-07 02:05:42 +000017566 { echo "$as_me:$LINENO: result: yes" >&5
17567echo "${ECHO_T}yes" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000017568
17569cat >>confdefs.h <<\_ACEOF
17570#define HAVE_CRASHREPORTER_INFO 1
17571_ACEOF
17572
Eric Christopher51e57132010-12-07 02:05:42 +000017573else
17574 echo "$as_me: failed program was:" >&5
17575sed 's/^/| /' conftest.$ac_ext >&5
17576
17577 { echo "$as_me:$LINENO: result: no" >&5
17578echo "${ECHO_T}no" >&6; }
17579
17580cat >>confdefs.h <<\_ACEOF
17581#define HAVE_CRASHREPORTER_INFO 0
17582_ACEOF
17583
Eric Christopher481d4022010-12-03 07:45:22 +000017584fi
Eric Christopher654dee42010-06-22 21:01:04 +000017585
Eric Christopher51e57132010-12-07 02:05:42 +000017586rm -f core conftest.err conftest.$ac_objext \
17587 conftest$ac_exeext conftest.$ac_ext
17588
17589
Reid Spencer8085cff2005-01-16 02:58:39 +000017590
Torok Edwin871384f2010-01-26 08:50:50 +000017591
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017592 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17593echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17594if test "${ac_cv_huge_val_sanity+set}" = set; then
17595 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000017596else
17597
Reid Spencer6a7c0b72006-11-03 19:49:16 +000017598 ac_ext=cpp
17599ac_cpp='$CXXCPP $CPPFLAGS'
17600ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17601ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17602ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000017603
Eric Christopherc7718502010-03-02 05:06:54 +000017604 ac_save_CXXFLAGS=$CXXFLAGS
Reid Spencer6a7c0b72006-11-03 19:49:16 +000017605 CXXFLAGS=-pedantic
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017606 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000017607 ac_cv_huge_val_sanity=yes
17608else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017609 cat >conftest.$ac_ext <<_ACEOF
17610/* confdefs.h. */
17611_ACEOF
17612cat confdefs.h >>conftest.$ac_ext
17613cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000017614/* end confdefs.h. */
17615#include <math.h>
17616int
17617main ()
17618{
17619double x = HUGE_VAL; return x != x;
17620 ;
17621 return 0;
17622}
17623_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017624rm -f conftest$ac_exeext
17625if { (ac_try="$ac_link"
17626case "(($ac_try" in
17627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17628 *) ac_try_echo=$ac_try;;
17629esac
17630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17631 (eval "$ac_link") 2>&5
17632 ac_status=$?
17633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17635 { (case "(($ac_try" in
17636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17637 *) ac_try_echo=$ac_try;;
17638esac
17639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17640 (eval "$ac_try") 2>&5
17641 ac_status=$?
17642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000017644 ac_cv_huge_val_sanity=yes
17645else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017646 echo "$as_me: program exited with status $ac_status" >&5
17647echo "$as_me: failed program was:" >&5
17648sed 's/^/| /' conftest.$ac_ext >&5
17649
17650( exit $ac_status )
17651ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000017652fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017653rm -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 +000017654fi
17655
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017656
Eric Christopherc7718502010-03-02 05:06:54 +000017657 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000017658 ac_ext=c
17659ac_cpp='$CPP $CPPFLAGS'
17660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17662ac_compiler_gnu=$ac_cv_c_compiler_gnu
17663
17664
17665fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017666{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17667echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000017668 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17669
17670
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017671{ echo "$as_me:$LINENO: checking for pid_t" >&5
17672echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17673if test "${ac_cv_type_pid_t+set}" = set; then
17674 echo $ECHO_N "(cached) $ECHO_C" >&6
17675else
17676 cat >conftest.$ac_ext <<_ACEOF
17677/* confdefs.h. */
17678_ACEOF
17679cat confdefs.h >>conftest.$ac_ext
17680cat >>conftest.$ac_ext <<_ACEOF
17681/* end confdefs.h. */
17682$ac_includes_default
17683typedef pid_t ac__type_new_;
17684int
17685main ()
17686{
17687if ((ac__type_new_ *) 0)
17688 return 0;
17689if (sizeof (ac__type_new_))
17690 return 0;
17691 ;
17692 return 0;
17693}
17694_ACEOF
17695rm -f conftest.$ac_objext
17696if { (ac_try="$ac_compile"
17697case "(($ac_try" in
17698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17699 *) ac_try_echo=$ac_try;;
17700esac
17701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17702 (eval "$ac_compile") 2>conftest.er1
17703 ac_status=$?
17704 grep -v '^ *+' conftest.er1 >conftest.err
17705 rm -f conftest.er1
17706 cat conftest.err >&5
17707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708 (exit $ac_status); } &&
17709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17710 { (case "(($ac_try" in
17711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17712 *) ac_try_echo=$ac_try;;
17713esac
17714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17715 (eval "$ac_try") 2>&5
17716 ac_status=$?
17717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718 (exit $ac_status); }; } &&
17719 { ac_try='test -s conftest.$ac_objext'
17720 { (case "(($ac_try" in
17721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17722 *) ac_try_echo=$ac_try;;
17723esac
17724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17725 (eval "$ac_try") 2>&5
17726 ac_status=$?
17727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17728 (exit $ac_status); }; }; then
17729 ac_cv_type_pid_t=yes
17730else
17731 echo "$as_me: failed program was:" >&5
17732sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017733
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017734 ac_cv_type_pid_t=no
17735fi
17736
17737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17738fi
17739{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17740echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17741if test $ac_cv_type_pid_t = yes; then
17742 :
John Criswell7a73b802003-06-30 21:59:07 +000017743else
17744
17745cat >>confdefs.h <<_ACEOF
17746#define pid_t int
17747_ACEOF
17748
17749fi
17750
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017751{ echo "$as_me:$LINENO: checking for size_t" >&5
17752echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17753if test "${ac_cv_type_size_t+set}" = set; then
17754 echo $ECHO_N "(cached) $ECHO_C" >&6
17755else
17756 cat >conftest.$ac_ext <<_ACEOF
17757/* confdefs.h. */
17758_ACEOF
17759cat confdefs.h >>conftest.$ac_ext
17760cat >>conftest.$ac_ext <<_ACEOF
17761/* end confdefs.h. */
17762$ac_includes_default
17763typedef size_t ac__type_new_;
17764int
17765main ()
17766{
17767if ((ac__type_new_ *) 0)
17768 return 0;
17769if (sizeof (ac__type_new_))
17770 return 0;
17771 ;
17772 return 0;
17773}
17774_ACEOF
17775rm -f conftest.$ac_objext
17776if { (ac_try="$ac_compile"
17777case "(($ac_try" in
17778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17779 *) ac_try_echo=$ac_try;;
17780esac
17781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17782 (eval "$ac_compile") 2>conftest.er1
17783 ac_status=$?
17784 grep -v '^ *+' conftest.er1 >conftest.err
17785 rm -f conftest.er1
17786 cat conftest.err >&5
17787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788 (exit $ac_status); } &&
17789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17790 { (case "(($ac_try" in
17791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17792 *) ac_try_echo=$ac_try;;
17793esac
17794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17795 (eval "$ac_try") 2>&5
17796 ac_status=$?
17797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798 (exit $ac_status); }; } &&
17799 { ac_try='test -s conftest.$ac_objext'
17800 { (case "(($ac_try" in
17801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17802 *) ac_try_echo=$ac_try;;
17803esac
17804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17805 (eval "$ac_try") 2>&5
17806 ac_status=$?
17807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17808 (exit $ac_status); }; }; then
17809 ac_cv_type_size_t=yes
17810else
17811 echo "$as_me: failed program was:" >&5
17812sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017813
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017814 ac_cv_type_size_t=no
17815fi
17816
17817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17818fi
17819{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17820echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17821if test $ac_cv_type_size_t = yes; then
17822 :
John Criswell7a73b802003-06-30 21:59:07 +000017823else
17824
17825cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000017826#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000017827_ACEOF
17828
17829fi
17830
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017831
17832cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000017833#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017834_ACEOF
17835
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017836{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17837echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17838if test "${ac_cv_struct_tm+set}" = set; then
17839 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017840else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017841 cat >conftest.$ac_ext <<_ACEOF
17842/* confdefs.h. */
17843_ACEOF
17844cat confdefs.h >>conftest.$ac_ext
17845cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017846/* end confdefs.h. */
17847#include <sys/types.h>
17848#include <time.h>
17849
17850int
17851main ()
17852{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017853struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017854 ;
17855 return 0;
17856}
17857_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017858rm -f conftest.$ac_objext
17859if { (ac_try="$ac_compile"
17860case "(($ac_try" in
17861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17862 *) ac_try_echo=$ac_try;;
17863esac
17864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17865 (eval "$ac_compile") 2>conftest.er1
17866 ac_status=$?
17867 grep -v '^ *+' conftest.er1 >conftest.err
17868 rm -f conftest.er1
17869 cat conftest.err >&5
17870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871 (exit $ac_status); } &&
17872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17873 { (case "(($ac_try" in
17874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17875 *) ac_try_echo=$ac_try;;
17876esac
17877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17878 (eval "$ac_try") 2>&5
17879 ac_status=$?
17880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881 (exit $ac_status); }; } &&
17882 { ac_try='test -s conftest.$ac_objext'
17883 { (case "(($ac_try" in
17884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17885 *) ac_try_echo=$ac_try;;
17886esac
17887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17888 (eval "$ac_try") 2>&5
17889 ac_status=$?
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017892 ac_cv_struct_tm=time.h
17893else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017894 echo "$as_me: failed program was:" >&5
17895sed 's/^/| /' conftest.$ac_ext >&5
17896
17897 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017898fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017899
Reid Spencera773bd52006-08-04 18:18:08 +000017900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017901fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017902{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17903echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017904if test $ac_cv_struct_tm = sys/time.h; then
17905
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017906cat >>confdefs.h <<\_ACEOF
17907#define TM_IN_SYS_TIME 1
17908_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017909
17910fi
17911
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017912{ echo "$as_me:$LINENO: checking for int64_t" >&5
17913echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17914if test "${ac_cv_type_int64_t+set}" = set; then
17915 echo $ECHO_N "(cached) $ECHO_C" >&6
17916else
17917 cat >conftest.$ac_ext <<_ACEOF
17918/* confdefs.h. */
17919_ACEOF
17920cat confdefs.h >>conftest.$ac_ext
17921cat >>conftest.$ac_ext <<_ACEOF
17922/* end confdefs.h. */
17923$ac_includes_default
17924typedef int64_t ac__type_new_;
17925int
17926main ()
17927{
17928if ((ac__type_new_ *) 0)
17929 return 0;
17930if (sizeof (ac__type_new_))
17931 return 0;
17932 ;
17933 return 0;
17934}
17935_ACEOF
17936rm -f conftest.$ac_objext
17937if { (ac_try="$ac_compile"
17938case "(($ac_try" in
17939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17940 *) ac_try_echo=$ac_try;;
17941esac
17942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17943 (eval "$ac_compile") 2>conftest.er1
17944 ac_status=$?
17945 grep -v '^ *+' conftest.er1 >conftest.err
17946 rm -f conftest.er1
17947 cat conftest.err >&5
17948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949 (exit $ac_status); } &&
17950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17951 { (case "(($ac_try" in
17952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17953 *) ac_try_echo=$ac_try;;
17954esac
17955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17956 (eval "$ac_try") 2>&5
17957 ac_status=$?
17958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959 (exit $ac_status); }; } &&
17960 { ac_try='test -s conftest.$ac_objext'
17961 { (case "(($ac_try" in
17962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17963 *) ac_try_echo=$ac_try;;
17964esac
17965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17966 (eval "$ac_try") 2>&5
17967 ac_status=$?
17968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969 (exit $ac_status); }; }; then
17970 ac_cv_type_int64_t=yes
17971else
17972 echo "$as_me: failed program was:" >&5
17973sed 's/^/| /' conftest.$ac_ext >&5
17974
17975 ac_cv_type_int64_t=no
17976fi
17977
17978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17979fi
17980{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17981echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17982if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017983
17984cat >>confdefs.h <<_ACEOF
17985#define HAVE_INT64_T 1
17986_ACEOF
17987
17988
17989else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017990 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17991echo "$as_me: error: Type int64_t required but not found" >&2;}
17992 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000017993fi
17994
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017995{ echo "$as_me:$LINENO: checking for uint64_t" >&5
17996echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17997if test "${ac_cv_type_uint64_t+set}" = set; then
17998 echo $ECHO_N "(cached) $ECHO_C" >&6
17999else
18000 cat >conftest.$ac_ext <<_ACEOF
18001/* confdefs.h. */
18002_ACEOF
18003cat confdefs.h >>conftest.$ac_ext
18004cat >>conftest.$ac_ext <<_ACEOF
18005/* end confdefs.h. */
18006$ac_includes_default
18007typedef uint64_t ac__type_new_;
18008int
18009main ()
18010{
18011if ((ac__type_new_ *) 0)
18012 return 0;
18013if (sizeof (ac__type_new_))
18014 return 0;
18015 ;
18016 return 0;
18017}
18018_ACEOF
18019rm -f conftest.$ac_objext
18020if { (ac_try="$ac_compile"
18021case "(($ac_try" in
18022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18023 *) ac_try_echo=$ac_try;;
18024esac
18025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18026 (eval "$ac_compile") 2>conftest.er1
18027 ac_status=$?
18028 grep -v '^ *+' conftest.er1 >conftest.err
18029 rm -f conftest.er1
18030 cat conftest.err >&5
18031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18032 (exit $ac_status); } &&
18033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18034 { (case "(($ac_try" in
18035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18036 *) ac_try_echo=$ac_try;;
18037esac
18038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18039 (eval "$ac_try") 2>&5
18040 ac_status=$?
18041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042 (exit $ac_status); }; } &&
18043 { ac_try='test -s conftest.$ac_objext'
18044 { (case "(($ac_try" in
18045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18046 *) ac_try_echo=$ac_try;;
18047esac
18048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18049 (eval "$ac_try") 2>&5
18050 ac_status=$?
18051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052 (exit $ac_status); }; }; then
18053 ac_cv_type_uint64_t=yes
18054else
18055 echo "$as_me: failed program was:" >&5
18056sed 's/^/| /' conftest.$ac_ext >&5
18057
18058 ac_cv_type_uint64_t=no
18059fi
18060
18061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18062fi
18063{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
18064echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
18065if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000018066
18067cat >>confdefs.h <<_ACEOF
18068#define HAVE_UINT64_T 1
18069_ACEOF
18070
18071
18072else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018073 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
18074echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
18075if test "${ac_cv_type_u_int64_t+set}" = set; then
18076 echo $ECHO_N "(cached) $ECHO_C" >&6
18077else
18078 cat >conftest.$ac_ext <<_ACEOF
18079/* confdefs.h. */
18080_ACEOF
18081cat confdefs.h >>conftest.$ac_ext
18082cat >>conftest.$ac_ext <<_ACEOF
18083/* end confdefs.h. */
18084$ac_includes_default
18085typedef u_int64_t ac__type_new_;
18086int
18087main ()
18088{
18089if ((ac__type_new_ *) 0)
18090 return 0;
18091if (sizeof (ac__type_new_))
18092 return 0;
18093 ;
18094 return 0;
18095}
18096_ACEOF
18097rm -f conftest.$ac_objext
18098if { (ac_try="$ac_compile"
18099case "(($ac_try" in
18100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18101 *) ac_try_echo=$ac_try;;
18102esac
18103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18104 (eval "$ac_compile") 2>conftest.er1
18105 ac_status=$?
18106 grep -v '^ *+' conftest.er1 >conftest.err
18107 rm -f conftest.er1
18108 cat conftest.err >&5
18109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110 (exit $ac_status); } &&
18111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18112 { (case "(($ac_try" in
18113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18114 *) ac_try_echo=$ac_try;;
18115esac
18116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18117 (eval "$ac_try") 2>&5
18118 ac_status=$?
18119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120 (exit $ac_status); }; } &&
18121 { ac_try='test -s conftest.$ac_objext'
18122 { (case "(($ac_try" in
18123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18124 *) ac_try_echo=$ac_try;;
18125esac
18126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18127 (eval "$ac_try") 2>&5
18128 ac_status=$?
18129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130 (exit $ac_status); }; }; then
18131 ac_cv_type_u_int64_t=yes
18132else
18133 echo "$as_me: failed program was:" >&5
18134sed 's/^/| /' conftest.$ac_ext >&5
18135
18136 ac_cv_type_u_int64_t=no
18137fi
18138
18139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18140fi
18141{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
18142echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
18143if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000018144
18145cat >>confdefs.h <<_ACEOF
18146#define HAVE_U_INT64_T 1
18147_ACEOF
18148
18149
Misha Brukmanceca9042004-09-02 23:02:30 +000018150else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018151 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
18152echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
18153 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000018154fi
18155
John Criswell679ff312004-09-02 18:44:44 +000018156fi
18157
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018158
18159
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018160
18161
18162
18163
18164
18165
18166
Reid Spencerdf3be822006-01-23 08:15:53 +000018167for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018168do
18169as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18170{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18171echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18172if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18173 echo $ECHO_N "(cached) $ECHO_C" >&6
18174else
18175 cat >conftest.$ac_ext <<_ACEOF
18176/* confdefs.h. */
18177_ACEOF
18178cat confdefs.h >>conftest.$ac_ext
18179cat >>conftest.$ac_ext <<_ACEOF
18180/* end confdefs.h. */
18181/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18182 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18183#define $ac_func innocuous_$ac_func
18184
18185/* System header to define __stub macros and hopefully few prototypes,
18186 which can conflict with char $ac_func (); below.
18187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18188 <limits.h> exists even on freestanding compilers. */
18189
18190#ifdef __STDC__
18191# include <limits.h>
18192#else
18193# include <assert.h>
18194#endif
18195
18196#undef $ac_func
18197
18198/* Override any GCC internal prototype to avoid an error.
18199 Use char because int might match the return type of a GCC
18200 builtin and then its argument prototype would still apply. */
18201#ifdef __cplusplus
18202extern "C"
18203#endif
18204char $ac_func ();
18205/* The GNU C library defines this for functions which it implements
18206 to always fail with ENOSYS. Some functions are actually named
18207 something starting with __ and the normal name is an alias. */
18208#if defined __stub_$ac_func || defined __stub___$ac_func
18209choke me
18210#endif
18211
18212int
18213main ()
18214{
18215return $ac_func ();
18216 ;
18217 return 0;
18218}
18219_ACEOF
18220rm -f conftest.$ac_objext conftest$ac_exeext
18221if { (ac_try="$ac_link"
18222case "(($ac_try" in
18223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18224 *) ac_try_echo=$ac_try;;
18225esac
18226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18227 (eval "$ac_link") 2>conftest.er1
18228 ac_status=$?
18229 grep -v '^ *+' conftest.er1 >conftest.err
18230 rm -f conftest.er1
18231 cat conftest.err >&5
18232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233 (exit $ac_status); } &&
18234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18235 { (case "(($ac_try" in
18236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18237 *) ac_try_echo=$ac_try;;
18238esac
18239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18240 (eval "$ac_try") 2>&5
18241 ac_status=$?
18242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18243 (exit $ac_status); }; } &&
18244 { ac_try='test -s conftest$ac_exeext'
18245 { (case "(($ac_try" in
18246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18247 *) ac_try_echo=$ac_try;;
18248esac
18249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18250 (eval "$ac_try") 2>&5
18251 ac_status=$?
18252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253 (exit $ac_status); }; }; then
18254 eval "$as_ac_var=yes"
18255else
18256 echo "$as_me: failed program was:" >&5
18257sed 's/^/| /' conftest.$ac_ext >&5
18258
18259 eval "$as_ac_var=no"
18260fi
18261
18262rm -f core conftest.err conftest.$ac_objext \
18263 conftest$ac_exeext conftest.$ac_ext
18264fi
18265ac_res=`eval echo '${'$as_ac_var'}'`
18266 { echo "$as_me:$LINENO: result: $ac_res" >&5
18267echo "${ECHO_T}$ac_res" >&6; }
18268if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018269 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018270#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018271_ACEOF
18272
18273fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018274done
John Criswell7a73b802003-06-30 21:59:07 +000018275
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018276
18277
18278
18279
Reid Spencer96cf5872007-07-13 10:05:30 +000018280for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018281do
18282as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18283{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18284echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18285if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18286 echo $ECHO_N "(cached) $ECHO_C" >&6
18287else
18288 cat >conftest.$ac_ext <<_ACEOF
18289/* confdefs.h. */
18290_ACEOF
18291cat confdefs.h >>conftest.$ac_ext
18292cat >>conftest.$ac_ext <<_ACEOF
18293/* end confdefs.h. */
18294/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18295 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18296#define $ac_func innocuous_$ac_func
18297
18298/* System header to define __stub macros and hopefully few prototypes,
18299 which can conflict with char $ac_func (); below.
18300 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18301 <limits.h> exists even on freestanding compilers. */
18302
18303#ifdef __STDC__
18304# include <limits.h>
18305#else
18306# include <assert.h>
18307#endif
18308
18309#undef $ac_func
18310
18311/* Override any GCC internal prototype to avoid an error.
18312 Use char because int might match the return type of a GCC
18313 builtin and then its argument prototype would still apply. */
18314#ifdef __cplusplus
18315extern "C"
18316#endif
18317char $ac_func ();
18318/* The GNU C library defines this for functions which it implements
18319 to always fail with ENOSYS. Some functions are actually named
18320 something starting with __ and the normal name is an alias. */
18321#if defined __stub_$ac_func || defined __stub___$ac_func
18322choke me
18323#endif
18324
18325int
18326main ()
18327{
18328return $ac_func ();
18329 ;
18330 return 0;
18331}
18332_ACEOF
18333rm -f conftest.$ac_objext conftest$ac_exeext
18334if { (ac_try="$ac_link"
18335case "(($ac_try" in
18336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18337 *) ac_try_echo=$ac_try;;
18338esac
18339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18340 (eval "$ac_link") 2>conftest.er1
18341 ac_status=$?
18342 grep -v '^ *+' conftest.er1 >conftest.err
18343 rm -f conftest.er1
18344 cat conftest.err >&5
18345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); } &&
18347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18348 { (case "(($ac_try" in
18349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18350 *) ac_try_echo=$ac_try;;
18351esac
18352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18353 (eval "$ac_try") 2>&5
18354 ac_status=$?
18355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356 (exit $ac_status); }; } &&
18357 { ac_try='test -s conftest$ac_exeext'
18358 { (case "(($ac_try" in
18359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18360 *) ac_try_echo=$ac_try;;
18361esac
18362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18363 (eval "$ac_try") 2>&5
18364 ac_status=$?
18365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18366 (exit $ac_status); }; }; then
18367 eval "$as_ac_var=yes"
18368else
18369 echo "$as_me: failed program was:" >&5
18370sed 's/^/| /' conftest.$ac_ext >&5
18371
18372 eval "$as_ac_var=no"
18373fi
18374
18375rm -f core conftest.err conftest.$ac_objext \
18376 conftest$ac_exeext conftest.$ac_ext
18377fi
18378ac_res=`eval echo '${'$as_ac_var'}'`
18379 { echo "$as_me:$LINENO: result: $ac_res" >&5
18380echo "${ECHO_T}$ac_res" >&6; }
18381if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000018382 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018383#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000018384_ACEOF
18385
18386fi
18387done
18388
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018389
18390
18391
18392
18393
Reid Spencerb90645c2007-02-16 19:17:20 +000018394for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018395do
18396as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18397{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18398echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18399if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18400 echo $ECHO_N "(cached) $ECHO_C" >&6
18401else
18402 cat >conftest.$ac_ext <<_ACEOF
18403/* confdefs.h. */
18404_ACEOF
18405cat confdefs.h >>conftest.$ac_ext
18406cat >>conftest.$ac_ext <<_ACEOF
18407/* end confdefs.h. */
18408/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18409 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18410#define $ac_func innocuous_$ac_func
18411
18412/* System header to define __stub macros and hopefully few prototypes,
18413 which can conflict with char $ac_func (); below.
18414 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18415 <limits.h> exists even on freestanding compilers. */
18416
18417#ifdef __STDC__
18418# include <limits.h>
18419#else
18420# include <assert.h>
18421#endif
18422
18423#undef $ac_func
18424
18425/* Override any GCC internal prototype to avoid an error.
18426 Use char because int might match the return type of a GCC
18427 builtin and then its argument prototype would still apply. */
18428#ifdef __cplusplus
18429extern "C"
18430#endif
18431char $ac_func ();
18432/* The GNU C library defines this for functions which it implements
18433 to always fail with ENOSYS. Some functions are actually named
18434 something starting with __ and the normal name is an alias. */
18435#if defined __stub_$ac_func || defined __stub___$ac_func
18436choke me
18437#endif
18438
18439int
18440main ()
18441{
18442return $ac_func ();
18443 ;
18444 return 0;
18445}
18446_ACEOF
18447rm -f conftest.$ac_objext conftest$ac_exeext
18448if { (ac_try="$ac_link"
18449case "(($ac_try" in
18450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18451 *) ac_try_echo=$ac_try;;
18452esac
18453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18454 (eval "$ac_link") 2>conftest.er1
18455 ac_status=$?
18456 grep -v '^ *+' conftest.er1 >conftest.err
18457 rm -f conftest.er1
18458 cat conftest.err >&5
18459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460 (exit $ac_status); } &&
18461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18462 { (case "(($ac_try" in
18463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18464 *) ac_try_echo=$ac_try;;
18465esac
18466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18467 (eval "$ac_try") 2>&5
18468 ac_status=$?
18469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470 (exit $ac_status); }; } &&
18471 { ac_try='test -s conftest$ac_exeext'
18472 { (case "(($ac_try" in
18473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18474 *) ac_try_echo=$ac_try;;
18475esac
18476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18477 (eval "$ac_try") 2>&5
18478 ac_status=$?
18479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480 (exit $ac_status); }; }; then
18481 eval "$as_ac_var=yes"
18482else
18483 echo "$as_me: failed program was:" >&5
18484sed 's/^/| /' conftest.$ac_ext >&5
18485
18486 eval "$as_ac_var=no"
18487fi
18488
18489rm -f core conftest.err conftest.$ac_objext \
18490 conftest$ac_exeext conftest.$ac_ext
18491fi
18492ac_res=`eval echo '${'$as_ac_var'}'`
18493 { echo "$as_me:$LINENO: result: $ac_res" >&5
18494echo "${ECHO_T}$ac_res" >&6; }
18495if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000018496 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018497#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000018498_ACEOF
18499
18500fi
18501done
18502
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018503
18504
18505
Reid Spencerb90645c2007-02-16 19:17:20 +000018506for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018507do
18508as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18509{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18510echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18511if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18512 echo $ECHO_N "(cached) $ECHO_C" >&6
18513else
18514 cat >conftest.$ac_ext <<_ACEOF
18515/* confdefs.h. */
18516_ACEOF
18517cat confdefs.h >>conftest.$ac_ext
18518cat >>conftest.$ac_ext <<_ACEOF
18519/* end confdefs.h. */
18520/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18521 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18522#define $ac_func innocuous_$ac_func
18523
18524/* System header to define __stub macros and hopefully few prototypes,
18525 which can conflict with char $ac_func (); below.
18526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18527 <limits.h> exists even on freestanding compilers. */
18528
18529#ifdef __STDC__
18530# include <limits.h>
18531#else
18532# include <assert.h>
18533#endif
18534
18535#undef $ac_func
18536
18537/* Override any GCC internal prototype to avoid an error.
18538 Use char because int might match the return type of a GCC
18539 builtin and then its argument prototype would still apply. */
18540#ifdef __cplusplus
18541extern "C"
18542#endif
18543char $ac_func ();
18544/* The GNU C library defines this for functions which it implements
18545 to always fail with ENOSYS. Some functions are actually named
18546 something starting with __ and the normal name is an alias. */
18547#if defined __stub_$ac_func || defined __stub___$ac_func
18548choke me
18549#endif
18550
18551int
18552main ()
18553{
18554return $ac_func ();
18555 ;
18556 return 0;
18557}
18558_ACEOF
18559rm -f conftest.$ac_objext conftest$ac_exeext
18560if { (ac_try="$ac_link"
18561case "(($ac_try" in
18562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18563 *) ac_try_echo=$ac_try;;
18564esac
18565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18566 (eval "$ac_link") 2>conftest.er1
18567 ac_status=$?
18568 grep -v '^ *+' conftest.er1 >conftest.err
18569 rm -f conftest.er1
18570 cat conftest.err >&5
18571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18572 (exit $ac_status); } &&
18573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18574 { (case "(($ac_try" in
18575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18576 *) ac_try_echo=$ac_try;;
18577esac
18578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18579 (eval "$ac_try") 2>&5
18580 ac_status=$?
18581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18582 (exit $ac_status); }; } &&
18583 { ac_try='test -s conftest$ac_exeext'
18584 { (case "(($ac_try" in
18585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18586 *) ac_try_echo=$ac_try;;
18587esac
18588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18589 (eval "$ac_try") 2>&5
18590 ac_status=$?
18591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18592 (exit $ac_status); }; }; then
18593 eval "$as_ac_var=yes"
18594else
18595 echo "$as_me: failed program was:" >&5
18596sed 's/^/| /' conftest.$ac_ext >&5
18597
18598 eval "$as_ac_var=no"
18599fi
18600
18601rm -f core conftest.err conftest.$ac_objext \
18602 conftest$ac_exeext conftest.$ac_ext
18603fi
18604ac_res=`eval echo '${'$as_ac_var'}'`
18605 { echo "$as_me:$LINENO: result: $ac_res" >&5
18606echo "${ECHO_T}$ac_res" >&6; }
18607if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000018608 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018609#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000018610_ACEOF
18611
18612fi
18613done
18614
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018615
18616
18617
18618
18619
Eric Christophere4291822010-04-16 05:14:21 +000018620
18621for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018622do
18623as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18624{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18625echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18626if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18627 echo $ECHO_N "(cached) $ECHO_C" >&6
18628else
18629 cat >conftest.$ac_ext <<_ACEOF
18630/* confdefs.h. */
18631_ACEOF
18632cat confdefs.h >>conftest.$ac_ext
18633cat >>conftest.$ac_ext <<_ACEOF
18634/* end confdefs.h. */
18635/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18636 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18637#define $ac_func innocuous_$ac_func
18638
18639/* System header to define __stub macros and hopefully few prototypes,
18640 which can conflict with char $ac_func (); below.
18641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18642 <limits.h> exists even on freestanding compilers. */
18643
18644#ifdef __STDC__
18645# include <limits.h>
18646#else
18647# include <assert.h>
18648#endif
18649
18650#undef $ac_func
18651
18652/* Override any GCC internal prototype to avoid an error.
18653 Use char because int might match the return type of a GCC
18654 builtin and then its argument prototype would still apply. */
18655#ifdef __cplusplus
18656extern "C"
18657#endif
18658char $ac_func ();
18659/* The GNU C library defines this for functions which it implements
18660 to always fail with ENOSYS. Some functions are actually named
18661 something starting with __ and the normal name is an alias. */
18662#if defined __stub_$ac_func || defined __stub___$ac_func
18663choke me
18664#endif
18665
18666int
18667main ()
18668{
18669return $ac_func ();
18670 ;
18671 return 0;
18672}
18673_ACEOF
18674rm -f conftest.$ac_objext conftest$ac_exeext
18675if { (ac_try="$ac_link"
18676case "(($ac_try" in
18677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18678 *) ac_try_echo=$ac_try;;
18679esac
18680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18681 (eval "$ac_link") 2>conftest.er1
18682 ac_status=$?
18683 grep -v '^ *+' conftest.er1 >conftest.err
18684 rm -f conftest.er1
18685 cat conftest.err >&5
18686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687 (exit $ac_status); } &&
18688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18689 { (case "(($ac_try" in
18690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18691 *) ac_try_echo=$ac_try;;
18692esac
18693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18694 (eval "$ac_try") 2>&5
18695 ac_status=$?
18696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697 (exit $ac_status); }; } &&
18698 { ac_try='test -s conftest$ac_exeext'
18699 { (case "(($ac_try" in
18700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18701 *) ac_try_echo=$ac_try;;
18702esac
18703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18704 (eval "$ac_try") 2>&5
18705 ac_status=$?
18706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18707 (exit $ac_status); }; }; then
18708 eval "$as_ac_var=yes"
18709else
18710 echo "$as_me: failed program was:" >&5
18711sed 's/^/| /' conftest.$ac_ext >&5
18712
18713 eval "$as_ac_var=no"
18714fi
18715
18716rm -f core conftest.err conftest.$ac_objext \
18717 conftest$ac_exeext conftest.$ac_ext
18718fi
18719ac_res=`eval echo '${'$as_ac_var'}'`
18720 { echo "$as_me:$LINENO: result: $ac_res" >&5
18721echo "${ECHO_T}$ac_res" >&6; }
18722if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000018723 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018724#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000018725_ACEOF
18726
18727fi
18728done
Reid Spencerdf3be822006-01-23 08:15:53 +000018729
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018730
18731
18732
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000018733for ac_func in strerror strerror_r setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018734do
18735as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18736{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18737echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18738if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18739 echo $ECHO_N "(cached) $ECHO_C" >&6
18740else
18741 cat >conftest.$ac_ext <<_ACEOF
18742/* confdefs.h. */
18743_ACEOF
18744cat confdefs.h >>conftest.$ac_ext
18745cat >>conftest.$ac_ext <<_ACEOF
18746/* end confdefs.h. */
18747/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18748 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18749#define $ac_func innocuous_$ac_func
18750
18751/* System header to define __stub macros and hopefully few prototypes,
18752 which can conflict with char $ac_func (); below.
18753 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18754 <limits.h> exists even on freestanding compilers. */
18755
18756#ifdef __STDC__
18757# include <limits.h>
18758#else
18759# include <assert.h>
18760#endif
18761
18762#undef $ac_func
18763
18764/* Override any GCC internal prototype to avoid an error.
18765 Use char because int might match the return type of a GCC
18766 builtin and then its argument prototype would still apply. */
18767#ifdef __cplusplus
18768extern "C"
18769#endif
18770char $ac_func ();
18771/* The GNU C library defines this for functions which it implements
18772 to always fail with ENOSYS. Some functions are actually named
18773 something starting with __ and the normal name is an alias. */
18774#if defined __stub_$ac_func || defined __stub___$ac_func
18775choke me
18776#endif
18777
18778int
18779main ()
18780{
18781return $ac_func ();
18782 ;
18783 return 0;
18784}
18785_ACEOF
18786rm -f conftest.$ac_objext conftest$ac_exeext
18787if { (ac_try="$ac_link"
18788case "(($ac_try" in
18789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18790 *) ac_try_echo=$ac_try;;
18791esac
18792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18793 (eval "$ac_link") 2>conftest.er1
18794 ac_status=$?
18795 grep -v '^ *+' conftest.er1 >conftest.err
18796 rm -f conftest.er1
18797 cat conftest.err >&5
18798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799 (exit $ac_status); } &&
18800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18801 { (case "(($ac_try" in
18802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18803 *) ac_try_echo=$ac_try;;
18804esac
18805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18806 (eval "$ac_try") 2>&5
18807 ac_status=$?
18808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809 (exit $ac_status); }; } &&
18810 { ac_try='test -s conftest$ac_exeext'
18811 { (case "(($ac_try" in
18812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18813 *) ac_try_echo=$ac_try;;
18814esac
18815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18816 (eval "$ac_try") 2>&5
18817 ac_status=$?
18818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18819 (exit $ac_status); }; }; then
18820 eval "$as_ac_var=yes"
18821else
18822 echo "$as_me: failed program was:" >&5
18823sed 's/^/| /' conftest.$ac_ext >&5
18824
18825 eval "$as_ac_var=no"
18826fi
18827
18828rm -f core conftest.err conftest.$ac_objext \
18829 conftest$ac_exeext conftest.$ac_ext
18830fi
18831ac_res=`eval echo '${'$as_ac_var'}'`
18832 { echo "$as_me:$LINENO: result: $ac_res" >&5
18833echo "${ECHO_T}$ac_res" >&6; }
18834if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000018835 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018836#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000018837_ACEOF
18838
18839fi
18840done
18841
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018842
18843
18844
18845
Chris Lattner511f11d2005-11-14 07:25:50 +000018846for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018847do
18848as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18849{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18850echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18851if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18852 echo $ECHO_N "(cached) $ECHO_C" >&6
18853else
18854 cat >conftest.$ac_ext <<_ACEOF
18855/* confdefs.h. */
18856_ACEOF
18857cat confdefs.h >>conftest.$ac_ext
18858cat >>conftest.$ac_ext <<_ACEOF
18859/* end confdefs.h. */
18860/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18862#define $ac_func innocuous_$ac_func
18863
18864/* System header to define __stub macros and hopefully few prototypes,
18865 which can conflict with char $ac_func (); below.
18866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18867 <limits.h> exists even on freestanding compilers. */
18868
18869#ifdef __STDC__
18870# include <limits.h>
18871#else
18872# include <assert.h>
18873#endif
18874
18875#undef $ac_func
18876
18877/* Override any GCC internal prototype to avoid an error.
18878 Use char because int might match the return type of a GCC
18879 builtin and then its argument prototype would still apply. */
18880#ifdef __cplusplus
18881extern "C"
18882#endif
18883char $ac_func ();
18884/* The GNU C library defines this for functions which it implements
18885 to always fail with ENOSYS. Some functions are actually named
18886 something starting with __ and the normal name is an alias. */
18887#if defined __stub_$ac_func || defined __stub___$ac_func
18888choke me
18889#endif
18890
18891int
18892main ()
18893{
18894return $ac_func ();
18895 ;
18896 return 0;
18897}
18898_ACEOF
18899rm -f conftest.$ac_objext conftest$ac_exeext
18900if { (ac_try="$ac_link"
18901case "(($ac_try" in
18902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18903 *) ac_try_echo=$ac_try;;
18904esac
18905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18906 (eval "$ac_link") 2>conftest.er1
18907 ac_status=$?
18908 grep -v '^ *+' conftest.er1 >conftest.err
18909 rm -f conftest.er1
18910 cat conftest.err >&5
18911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912 (exit $ac_status); } &&
18913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18914 { (case "(($ac_try" in
18915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18916 *) ac_try_echo=$ac_try;;
18917esac
18918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18919 (eval "$ac_try") 2>&5
18920 ac_status=$?
18921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922 (exit $ac_status); }; } &&
18923 { ac_try='test -s conftest$ac_exeext'
18924 { (case "(($ac_try" in
18925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18926 *) ac_try_echo=$ac_try;;
18927esac
18928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18929 (eval "$ac_try") 2>&5
18930 ac_status=$?
18931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932 (exit $ac_status); }; }; then
18933 eval "$as_ac_var=yes"
18934else
18935 echo "$as_me: failed program was:" >&5
18936sed 's/^/| /' conftest.$ac_ext >&5
18937
18938 eval "$as_ac_var=no"
18939fi
18940
18941rm -f core conftest.err conftest.$ac_objext \
18942 conftest$ac_exeext conftest.$ac_ext
18943fi
18944ac_res=`eval echo '${'$as_ac_var'}'`
18945 { echo "$as_me:$LINENO: result: $ac_res" >&5
18946echo "${ECHO_T}$ac_res" >&6; }
18947if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018948 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018949#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018950_ACEOF
18951
18952fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018953done
John Criswell7a73b802003-06-30 21:59:07 +000018954
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018955
18956
18957
18958
Daniel Dunbar3e462932011-02-03 02:40:02 +000018959
18960for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018961do
18962as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18963{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18964echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18965if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18966 echo $ECHO_N "(cached) $ECHO_C" >&6
18967else
18968 cat >conftest.$ac_ext <<_ACEOF
18969/* confdefs.h. */
18970_ACEOF
18971cat confdefs.h >>conftest.$ac_ext
18972cat >>conftest.$ac_ext <<_ACEOF
18973/* end confdefs.h. */
18974/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18975 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18976#define $ac_func innocuous_$ac_func
18977
18978/* System header to define __stub macros and hopefully few prototypes,
18979 which can conflict with char $ac_func (); below.
18980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18981 <limits.h> exists even on freestanding compilers. */
18982
18983#ifdef __STDC__
18984# include <limits.h>
18985#else
18986# include <assert.h>
18987#endif
18988
18989#undef $ac_func
18990
18991/* Override any GCC internal prototype to avoid an error.
18992 Use char because int might match the return type of a GCC
18993 builtin and then its argument prototype would still apply. */
18994#ifdef __cplusplus
18995extern "C"
18996#endif
18997char $ac_func ();
18998/* The GNU C library defines this for functions which it implements
18999 to always fail with ENOSYS. Some functions are actually named
19000 something starting with __ and the normal name is an alias. */
19001#if defined __stub_$ac_func || defined __stub___$ac_func
19002choke me
19003#endif
19004
19005int
19006main ()
19007{
19008return $ac_func ();
19009 ;
19010 return 0;
19011}
19012_ACEOF
19013rm -f conftest.$ac_objext conftest$ac_exeext
19014if { (ac_try="$ac_link"
19015case "(($ac_try" in
19016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19017 *) ac_try_echo=$ac_try;;
19018esac
19019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19020 (eval "$ac_link") 2>conftest.er1
19021 ac_status=$?
19022 grep -v '^ *+' conftest.er1 >conftest.err
19023 rm -f conftest.er1
19024 cat conftest.err >&5
19025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026 (exit $ac_status); } &&
19027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19028 { (case "(($ac_try" in
19029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19030 *) ac_try_echo=$ac_try;;
19031esac
19032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19033 (eval "$ac_try") 2>&5
19034 ac_status=$?
19035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036 (exit $ac_status); }; } &&
19037 { ac_try='test -s conftest$ac_exeext'
19038 { (case "(($ac_try" in
19039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19040 *) ac_try_echo=$ac_try;;
19041esac
19042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19043 (eval "$ac_try") 2>&5
19044 ac_status=$?
19045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046 (exit $ac_status); }; }; then
19047 eval "$as_ac_var=yes"
19048else
19049 echo "$as_me: failed program was:" >&5
19050sed 's/^/| /' conftest.$ac_ext >&5
19051
19052 eval "$as_ac_var=no"
19053fi
19054
19055rm -f core conftest.err conftest.$ac_objext \
19056 conftest$ac_exeext conftest.$ac_ext
19057fi
19058ac_res=`eval echo '${'$as_ac_var'}'`
19059 { echo "$as_me:$LINENO: result: $ac_res" >&5
19060echo "${ECHO_T}$ac_res" >&6; }
19061if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000019062 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019063#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000019064_ACEOF
19065
19066fi
19067done
19068
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019069{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
19070echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
19071if test "${llvm_cv_c_printf_a+set}" = set; then
19072 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019073else
Reid Spencer2706f8c2004-09-19 23:53:36 +000019074 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000019075ac_cpp='$CPP $CPPFLAGS'
19076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19078ac_compiler_gnu=$ac_cv_c_compiler_gnu
19079
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019080 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000019081 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000019082else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019083 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000019084
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019085 /* confdefs.h. */
19086_ACEOF
19087cat confdefs.h >>conftest.$ac_ext
19088cat >>conftest.$ac_ext <<_ACEOF
19089/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000019090
John Criswella0137d32003-10-13 16:22:01 +000019091#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000019092#include <stdlib.h>
19093
John Criswella0137d32003-10-13 16:22:01 +000019094int
19095main ()
19096{
19097
Reid Spencer2706f8c2004-09-19 23:53:36 +000019098volatile double A, B;
19099char Buffer[100];
19100A = 1;
19101A /= 10.0;
19102sprintf(Buffer, "%a", A);
19103B = atof(Buffer);
19104if (A != B)
19105 return (1);
19106if (A != 0x1.999999999999ap-4)
19107 return (1);
19108return (0);
John Criswella0137d32003-10-13 16:22:01 +000019109 ;
19110 return 0;
19111}
19112_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019113rm -f conftest$ac_exeext
19114if { (ac_try="$ac_link"
19115case "(($ac_try" in
19116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19117 *) ac_try_echo=$ac_try;;
19118esac
19119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19120 (eval "$ac_link") 2>&5
19121 ac_status=$?
19122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19123 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19124 { (case "(($ac_try" in
19125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19126 *) ac_try_echo=$ac_try;;
19127esac
19128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19129 (eval "$ac_try") 2>&5
19130 ac_status=$?
19131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000019133 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000019134else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019135 echo "$as_me: program exited with status $ac_status" >&5
19136echo "$as_me: failed program was:" >&5
19137sed 's/^/| /' conftest.$ac_ext >&5
19138
19139( exit $ac_status )
19140llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000019141fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019142rm -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 +000019143fi
Reid Spencera773bd52006-08-04 18:18:08 +000019144
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019145
Reid Spencer2706f8c2004-09-19 23:53:36 +000019146 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000019147ac_cpp='$CPP $CPPFLAGS'
19148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19150ac_compiler_gnu=$ac_cv_c_compiler_gnu
19151
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019152fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019153{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
19154echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000019155 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000019156
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019157cat >>confdefs.h <<\_ACEOF
19158#define HAVE_PRINTF_A 1
19159_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000019160
Reid Spencer2706f8c2004-09-19 23:53:36 +000019161 fi
John Criswella0137d32003-10-13 16:22:01 +000019162
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019163
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019164{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
19165echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
19166if test "${ac_cv_func_rand48+set}" = set; then
19167 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019168else
Reid Spencera773bd52006-08-04 18:18:08 +000019169 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019170ac_cpp='$CXXCPP $CPPFLAGS'
19171ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19172ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19173ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19174
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019175 cat >conftest.$ac_ext <<_ACEOF
19176/* confdefs.h. */
19177_ACEOF
19178cat confdefs.h >>conftest.$ac_ext
19179cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019180/* end confdefs.h. */
19181#include <stdlib.h>
19182int
19183main ()
19184{
19185srand48(0);lrand48();drand48();
19186 ;
19187 return 0;
19188}
19189_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019190rm -f conftest.$ac_objext
19191if { (ac_try="$ac_compile"
19192case "(($ac_try" in
19193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19194 *) ac_try_echo=$ac_try;;
19195esac
19196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19197 (eval "$ac_compile") 2>conftest.er1
19198 ac_status=$?
19199 grep -v '^ *+' conftest.er1 >conftest.err
19200 rm -f conftest.er1
19201 cat conftest.err >&5
19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203 (exit $ac_status); } &&
19204 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19205 { (case "(($ac_try" in
19206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19207 *) ac_try_echo=$ac_try;;
19208esac
19209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19210 (eval "$ac_try") 2>&5
19211 ac_status=$?
19212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213 (exit $ac_status); }; } &&
19214 { ac_try='test -s conftest.$ac_objext'
19215 { (case "(($ac_try" in
19216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19217 *) ac_try_echo=$ac_try;;
19218esac
19219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19220 (eval "$ac_try") 2>&5
19221 ac_status=$?
19222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019224 ac_cv_func_rand48=yes
19225else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019226 echo "$as_me: failed program was:" >&5
19227sed 's/^/| /' conftest.$ac_ext >&5
19228
19229 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019230fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019231
Reid Spencera773bd52006-08-04 18:18:08 +000019232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019233 ac_ext=c
19234ac_cpp='$CPP $CPPFLAGS'
19235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19237ac_compiler_gnu=$ac_cv_c_compiler_gnu
19238
19239fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019240{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19241echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019242
19243if test "$ac_cv_func_rand48" = "yes" ; then
19244
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019245cat >>confdefs.h <<\_ACEOF
19246#define HAVE_RAND48 1
19247_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019248
19249fi
John Criswell0021c312004-02-13 21:57:29 +000019250
19251
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000019252{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
19253echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
19254if test "${ac_cv_have_decl_strerror_s+set}" = set; then
19255 echo $ECHO_N "(cached) $ECHO_C" >&6
19256else
19257 cat >conftest.$ac_ext <<_ACEOF
19258/* confdefs.h. */
19259_ACEOF
19260cat confdefs.h >>conftest.$ac_ext
19261cat >>conftest.$ac_ext <<_ACEOF
19262/* end confdefs.h. */
19263$ac_includes_default
19264int
19265main ()
19266{
19267#ifndef strerror_s
19268 char *p = (char *) strerror_s;
19269 return !p;
19270#endif
19271
19272 ;
19273 return 0;
19274}
19275_ACEOF
19276rm -f conftest.$ac_objext
19277if { (ac_try="$ac_compile"
19278case "(($ac_try" in
19279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19280 *) ac_try_echo=$ac_try;;
19281esac
19282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19283 (eval "$ac_compile") 2>conftest.er1
19284 ac_status=$?
19285 grep -v '^ *+' conftest.er1 >conftest.err
19286 rm -f conftest.er1
19287 cat conftest.err >&5
19288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289 (exit $ac_status); } &&
19290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19291 { (case "(($ac_try" in
19292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19293 *) ac_try_echo=$ac_try;;
19294esac
19295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19296 (eval "$ac_try") 2>&5
19297 ac_status=$?
19298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 (exit $ac_status); }; } &&
19300 { ac_try='test -s conftest.$ac_objext'
19301 { (case "(($ac_try" in
19302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19303 *) ac_try_echo=$ac_try;;
19304esac
19305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19306 (eval "$ac_try") 2>&5
19307 ac_status=$?
19308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309 (exit $ac_status); }; }; then
19310 ac_cv_have_decl_strerror_s=yes
19311else
19312 echo "$as_me: failed program was:" >&5
19313sed 's/^/| /' conftest.$ac_ext >&5
19314
19315 ac_cv_have_decl_strerror_s=no
19316fi
19317
19318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19319fi
19320{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19321echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19322if test $ac_cv_have_decl_strerror_s = yes; then
19323
19324cat >>confdefs.h <<_ACEOF
19325#define HAVE_DECL_STRERROR_S 1
19326_ACEOF
19327
19328
19329else
19330 cat >>confdefs.h <<_ACEOF
19331#define HAVE_DECL_STRERROR_S 0
19332_ACEOF
19333
19334
19335fi
19336
19337
19338
NAKAMURA Takumi1f6832a2011-02-05 15:11:53 +000019339if test "$llvm_cv_os_type" = "MingW" ; then
19340 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19341echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19342if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19343 echo $ECHO_N "(cached) $ECHO_C" >&6
19344else
19345 ac_check_lib_save_LIBS=$LIBS
19346LIBS="-lgcc $LIBS"
19347cat >conftest.$ac_ext <<_ACEOF
19348/* confdefs.h. */
19349_ACEOF
19350cat confdefs.h >>conftest.$ac_ext
19351cat >>conftest.$ac_ext <<_ACEOF
19352/* end confdefs.h. */
19353
19354/* Override any GCC internal prototype to avoid an error.
19355 Use char because int might match the return type of a GCC
19356 builtin and then its argument prototype would still apply. */
19357#ifdef __cplusplus
19358extern "C"
19359#endif
19360char _alloca ();
19361int
19362main ()
19363{
19364return _alloca ();
19365 ;
19366 return 0;
19367}
19368_ACEOF
19369rm -f conftest.$ac_objext conftest$ac_exeext
19370if { (ac_try="$ac_link"
19371case "(($ac_try" in
19372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19373 *) ac_try_echo=$ac_try;;
19374esac
19375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19376 (eval "$ac_link") 2>conftest.er1
19377 ac_status=$?
19378 grep -v '^ *+' conftest.er1 >conftest.err
19379 rm -f conftest.er1
19380 cat conftest.err >&5
19381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382 (exit $ac_status); } &&
19383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19384 { (case "(($ac_try" in
19385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19386 *) ac_try_echo=$ac_try;;
19387esac
19388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19389 (eval "$ac_try") 2>&5
19390 ac_status=$?
19391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392 (exit $ac_status); }; } &&
19393 { ac_try='test -s conftest$ac_exeext'
19394 { (case "(($ac_try" in
19395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19396 *) ac_try_echo=$ac_try;;
19397esac
19398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19399 (eval "$ac_try") 2>&5
19400 ac_status=$?
19401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19402 (exit $ac_status); }; }; then
19403 ac_cv_lib_gcc__alloca=yes
19404else
19405 echo "$as_me: failed program was:" >&5
19406sed 's/^/| /' conftest.$ac_ext >&5
19407
19408 ac_cv_lib_gcc__alloca=no
19409fi
19410
19411rm -f core conftest.err conftest.$ac_objext \
19412 conftest$ac_exeext conftest.$ac_ext
19413LIBS=$ac_check_lib_save_LIBS
19414fi
19415{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19416echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19417if test $ac_cv_lib_gcc__alloca = yes; then
19418
19419cat >>confdefs.h <<\_ACEOF
19420#define HAVE__ALLOCA 1
19421_ACEOF
19422
19423fi
19424
19425 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19426echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19427if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19428 echo $ECHO_N "(cached) $ECHO_C" >&6
19429else
19430 ac_check_lib_save_LIBS=$LIBS
19431LIBS="-lgcc $LIBS"
19432cat >conftest.$ac_ext <<_ACEOF
19433/* confdefs.h. */
19434_ACEOF
19435cat confdefs.h >>conftest.$ac_ext
19436cat >>conftest.$ac_ext <<_ACEOF
19437/* end confdefs.h. */
19438
19439/* Override any GCC internal prototype to avoid an error.
19440 Use char because int might match the return type of a GCC
19441 builtin and then its argument prototype would still apply. */
19442#ifdef __cplusplus
19443extern "C"
19444#endif
19445char __alloca ();
19446int
19447main ()
19448{
19449return __alloca ();
19450 ;
19451 return 0;
19452}
19453_ACEOF
19454rm -f conftest.$ac_objext conftest$ac_exeext
19455if { (ac_try="$ac_link"
19456case "(($ac_try" in
19457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19458 *) ac_try_echo=$ac_try;;
19459esac
19460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19461 (eval "$ac_link") 2>conftest.er1
19462 ac_status=$?
19463 grep -v '^ *+' conftest.er1 >conftest.err
19464 rm -f conftest.er1
19465 cat conftest.err >&5
19466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467 (exit $ac_status); } &&
19468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19469 { (case "(($ac_try" in
19470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19471 *) ac_try_echo=$ac_try;;
19472esac
19473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19474 (eval "$ac_try") 2>&5
19475 ac_status=$?
19476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477 (exit $ac_status); }; } &&
19478 { ac_try='test -s conftest$ac_exeext'
19479 { (case "(($ac_try" in
19480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19481 *) ac_try_echo=$ac_try;;
19482esac
19483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19484 (eval "$ac_try") 2>&5
19485 ac_status=$?
19486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487 (exit $ac_status); }; }; then
19488 ac_cv_lib_gcc___alloca=yes
19489else
19490 echo "$as_me: failed program was:" >&5
19491sed 's/^/| /' conftest.$ac_ext >&5
19492
19493 ac_cv_lib_gcc___alloca=no
19494fi
19495
19496rm -f core conftest.err conftest.$ac_objext \
19497 conftest$ac_exeext conftest.$ac_ext
19498LIBS=$ac_check_lib_save_LIBS
19499fi
19500{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19501echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19502if test $ac_cv_lib_gcc___alloca = yes; then
19503
19504cat >>confdefs.h <<\_ACEOF
19505#define HAVE___ALLOCA 1
19506_ACEOF
19507
19508fi
19509
19510 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19511echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19512if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19513 echo $ECHO_N "(cached) $ECHO_C" >&6
19514else
19515 ac_check_lib_save_LIBS=$LIBS
19516LIBS="-lgcc $LIBS"
19517cat >conftest.$ac_ext <<_ACEOF
19518/* confdefs.h. */
19519_ACEOF
19520cat confdefs.h >>conftest.$ac_ext
19521cat >>conftest.$ac_ext <<_ACEOF
19522/* end confdefs.h. */
19523
19524/* Override any GCC internal prototype to avoid an error.
19525 Use char because int might match the return type of a GCC
19526 builtin and then its argument prototype would still apply. */
19527#ifdef __cplusplus
19528extern "C"
19529#endif
19530char __chkstk ();
19531int
19532main ()
19533{
19534return __chkstk ();
19535 ;
19536 return 0;
19537}
19538_ACEOF
19539rm -f conftest.$ac_objext conftest$ac_exeext
19540if { (ac_try="$ac_link"
19541case "(($ac_try" in
19542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19543 *) ac_try_echo=$ac_try;;
19544esac
19545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19546 (eval "$ac_link") 2>conftest.er1
19547 ac_status=$?
19548 grep -v '^ *+' conftest.er1 >conftest.err
19549 rm -f conftest.er1
19550 cat conftest.err >&5
19551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552 (exit $ac_status); } &&
19553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19554 { (case "(($ac_try" in
19555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19556 *) ac_try_echo=$ac_try;;
19557esac
19558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19559 (eval "$ac_try") 2>&5
19560 ac_status=$?
19561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562 (exit $ac_status); }; } &&
19563 { ac_try='test -s conftest$ac_exeext'
19564 { (case "(($ac_try" in
19565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19566 *) ac_try_echo=$ac_try;;
19567esac
19568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19569 (eval "$ac_try") 2>&5
19570 ac_status=$?
19571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19572 (exit $ac_status); }; }; then
19573 ac_cv_lib_gcc___chkstk=yes
19574else
19575 echo "$as_me: failed program was:" >&5
19576sed 's/^/| /' conftest.$ac_ext >&5
19577
19578 ac_cv_lib_gcc___chkstk=no
19579fi
19580
19581rm -f core conftest.err conftest.$ac_objext \
19582 conftest$ac_exeext conftest.$ac_ext
19583LIBS=$ac_check_lib_save_LIBS
19584fi
19585{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19586echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19587if test $ac_cv_lib_gcc___chkstk = yes; then
19588
19589cat >>confdefs.h <<\_ACEOF
19590#define HAVE___CHKSTK 1
19591_ACEOF
19592
19593fi
19594
19595 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19596echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19597if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19598 echo $ECHO_N "(cached) $ECHO_C" >&6
19599else
19600 ac_check_lib_save_LIBS=$LIBS
19601LIBS="-lgcc $LIBS"
19602cat >conftest.$ac_ext <<_ACEOF
19603/* confdefs.h. */
19604_ACEOF
19605cat confdefs.h >>conftest.$ac_ext
19606cat >>conftest.$ac_ext <<_ACEOF
19607/* end confdefs.h. */
19608
19609/* Override any GCC internal prototype to avoid an error.
19610 Use char because int might match the return type of a GCC
19611 builtin and then its argument prototype would still apply. */
19612#ifdef __cplusplus
19613extern "C"
19614#endif
19615char ___chkstk ();
19616int
19617main ()
19618{
19619return ___chkstk ();
19620 ;
19621 return 0;
19622}
19623_ACEOF
19624rm -f conftest.$ac_objext conftest$ac_exeext
19625if { (ac_try="$ac_link"
19626case "(($ac_try" in
19627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19628 *) ac_try_echo=$ac_try;;
19629esac
19630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19631 (eval "$ac_link") 2>conftest.er1
19632 ac_status=$?
19633 grep -v '^ *+' conftest.er1 >conftest.err
19634 rm -f conftest.er1
19635 cat conftest.err >&5
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); } &&
19638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19639 { (case "(($ac_try" in
19640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19641 *) ac_try_echo=$ac_try;;
19642esac
19643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19644 (eval "$ac_try") 2>&5
19645 ac_status=$?
19646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647 (exit $ac_status); }; } &&
19648 { ac_try='test -s conftest$ac_exeext'
19649 { (case "(($ac_try" in
19650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19651 *) ac_try_echo=$ac_try;;
19652esac
19653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19654 (eval "$ac_try") 2>&5
19655 ac_status=$?
19656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657 (exit $ac_status); }; }; then
19658 ac_cv_lib_gcc____chkstk=yes
19659else
19660 echo "$as_me: failed program was:" >&5
19661sed 's/^/| /' conftest.$ac_ext >&5
19662
19663 ac_cv_lib_gcc____chkstk=no
19664fi
19665
19666rm -f core conftest.err conftest.$ac_objext \
19667 conftest$ac_exeext conftest.$ac_ext
19668LIBS=$ac_check_lib_save_LIBS
19669fi
19670{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19671echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19672if test $ac_cv_lib_gcc____chkstk = yes; then
19673
19674cat >>confdefs.h <<\_ACEOF
19675#define HAVE____CHKSTK 1
19676_ACEOF
19677
19678fi
19679
19680
19681 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19682echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19683if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19684 echo $ECHO_N "(cached) $ECHO_C" >&6
19685else
19686 ac_check_lib_save_LIBS=$LIBS
19687LIBS="-lgcc $LIBS"
19688cat >conftest.$ac_ext <<_ACEOF
19689/* confdefs.h. */
19690_ACEOF
19691cat confdefs.h >>conftest.$ac_ext
19692cat >>conftest.$ac_ext <<_ACEOF
19693/* end confdefs.h. */
19694
19695/* Override any GCC internal prototype to avoid an error.
19696 Use char because int might match the return type of a GCC
19697 builtin and then its argument prototype would still apply. */
19698#ifdef __cplusplus
19699extern "C"
19700#endif
19701char __ashldi3 ();
19702int
19703main ()
19704{
19705return __ashldi3 ();
19706 ;
19707 return 0;
19708}
19709_ACEOF
19710rm -f conftest.$ac_objext conftest$ac_exeext
19711if { (ac_try="$ac_link"
19712case "(($ac_try" in
19713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19714 *) ac_try_echo=$ac_try;;
19715esac
19716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19717 (eval "$ac_link") 2>conftest.er1
19718 ac_status=$?
19719 grep -v '^ *+' conftest.er1 >conftest.err
19720 rm -f conftest.er1
19721 cat conftest.err >&5
19722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723 (exit $ac_status); } &&
19724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19725 { (case "(($ac_try" in
19726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19727 *) ac_try_echo=$ac_try;;
19728esac
19729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19730 (eval "$ac_try") 2>&5
19731 ac_status=$?
19732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19733 (exit $ac_status); }; } &&
19734 { ac_try='test -s conftest$ac_exeext'
19735 { (case "(($ac_try" in
19736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19737 *) ac_try_echo=$ac_try;;
19738esac
19739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19740 (eval "$ac_try") 2>&5
19741 ac_status=$?
19742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743 (exit $ac_status); }; }; then
19744 ac_cv_lib_gcc___ashldi3=yes
19745else
19746 echo "$as_me: failed program was:" >&5
19747sed 's/^/| /' conftest.$ac_ext >&5
19748
19749 ac_cv_lib_gcc___ashldi3=no
19750fi
19751
19752rm -f core conftest.err conftest.$ac_objext \
19753 conftest$ac_exeext conftest.$ac_ext
19754LIBS=$ac_check_lib_save_LIBS
19755fi
19756{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19757echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19758if test $ac_cv_lib_gcc___ashldi3 = yes; then
19759
19760cat >>confdefs.h <<\_ACEOF
19761#define HAVE___ASHLDI3 1
19762_ACEOF
19763
19764fi
19765
19766 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19767echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19768if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19769 echo $ECHO_N "(cached) $ECHO_C" >&6
19770else
19771 ac_check_lib_save_LIBS=$LIBS
19772LIBS="-lgcc $LIBS"
19773cat >conftest.$ac_ext <<_ACEOF
19774/* confdefs.h. */
19775_ACEOF
19776cat confdefs.h >>conftest.$ac_ext
19777cat >>conftest.$ac_ext <<_ACEOF
19778/* end confdefs.h. */
19779
19780/* Override any GCC internal prototype to avoid an error.
19781 Use char because int might match the return type of a GCC
19782 builtin and then its argument prototype would still apply. */
19783#ifdef __cplusplus
19784extern "C"
19785#endif
19786char __ashrdi3 ();
19787int
19788main ()
19789{
19790return __ashrdi3 ();
19791 ;
19792 return 0;
19793}
19794_ACEOF
19795rm -f conftest.$ac_objext conftest$ac_exeext
19796if { (ac_try="$ac_link"
19797case "(($ac_try" in
19798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19799 *) ac_try_echo=$ac_try;;
19800esac
19801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19802 (eval "$ac_link") 2>conftest.er1
19803 ac_status=$?
19804 grep -v '^ *+' conftest.er1 >conftest.err
19805 rm -f conftest.er1
19806 cat conftest.err >&5
19807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808 (exit $ac_status); } &&
19809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19810 { (case "(($ac_try" in
19811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19812 *) ac_try_echo=$ac_try;;
19813esac
19814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19815 (eval "$ac_try") 2>&5
19816 ac_status=$?
19817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 (exit $ac_status); }; } &&
19819 { ac_try='test -s conftest$ac_exeext'
19820 { (case "(($ac_try" in
19821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19822 *) ac_try_echo=$ac_try;;
19823esac
19824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19825 (eval "$ac_try") 2>&5
19826 ac_status=$?
19827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19828 (exit $ac_status); }; }; then
19829 ac_cv_lib_gcc___ashrdi3=yes
19830else
19831 echo "$as_me: failed program was:" >&5
19832sed 's/^/| /' conftest.$ac_ext >&5
19833
19834 ac_cv_lib_gcc___ashrdi3=no
19835fi
19836
19837rm -f core conftest.err conftest.$ac_objext \
19838 conftest$ac_exeext conftest.$ac_ext
19839LIBS=$ac_check_lib_save_LIBS
19840fi
19841{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19842echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19843if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19844
19845cat >>confdefs.h <<\_ACEOF
19846#define HAVE___ASHRDI3 1
19847_ACEOF
19848
19849fi
19850
19851 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19852echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19853if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19854 echo $ECHO_N "(cached) $ECHO_C" >&6
19855else
19856 ac_check_lib_save_LIBS=$LIBS
19857LIBS="-lgcc $LIBS"
19858cat >conftest.$ac_ext <<_ACEOF
19859/* confdefs.h. */
19860_ACEOF
19861cat confdefs.h >>conftest.$ac_ext
19862cat >>conftest.$ac_ext <<_ACEOF
19863/* end confdefs.h. */
19864
19865/* Override any GCC internal prototype to avoid an error.
19866 Use char because int might match the return type of a GCC
19867 builtin and then its argument prototype would still apply. */
19868#ifdef __cplusplus
19869extern "C"
19870#endif
19871char __divdi3 ();
19872int
19873main ()
19874{
19875return __divdi3 ();
19876 ;
19877 return 0;
19878}
19879_ACEOF
19880rm -f conftest.$ac_objext conftest$ac_exeext
19881if { (ac_try="$ac_link"
19882case "(($ac_try" in
19883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19884 *) ac_try_echo=$ac_try;;
19885esac
19886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19887 (eval "$ac_link") 2>conftest.er1
19888 ac_status=$?
19889 grep -v '^ *+' conftest.er1 >conftest.err
19890 rm -f conftest.er1
19891 cat conftest.err >&5
19892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893 (exit $ac_status); } &&
19894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19895 { (case "(($ac_try" in
19896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19897 *) ac_try_echo=$ac_try;;
19898esac
19899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19900 (eval "$ac_try") 2>&5
19901 ac_status=$?
19902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19903 (exit $ac_status); }; } &&
19904 { ac_try='test -s conftest$ac_exeext'
19905 { (case "(($ac_try" in
19906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19907 *) ac_try_echo=$ac_try;;
19908esac
19909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19910 (eval "$ac_try") 2>&5
19911 ac_status=$?
19912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913 (exit $ac_status); }; }; then
19914 ac_cv_lib_gcc___divdi3=yes
19915else
19916 echo "$as_me: failed program was:" >&5
19917sed 's/^/| /' conftest.$ac_ext >&5
19918
19919 ac_cv_lib_gcc___divdi3=no
19920fi
19921
19922rm -f core conftest.err conftest.$ac_objext \
19923 conftest$ac_exeext conftest.$ac_ext
19924LIBS=$ac_check_lib_save_LIBS
19925fi
19926{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19927echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19928if test $ac_cv_lib_gcc___divdi3 = yes; then
19929
19930cat >>confdefs.h <<\_ACEOF
19931#define HAVE___DIVDI3 1
19932_ACEOF
19933
19934fi
19935
19936 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19937echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19938if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19939 echo $ECHO_N "(cached) $ECHO_C" >&6
19940else
19941 ac_check_lib_save_LIBS=$LIBS
19942LIBS="-lgcc $LIBS"
19943cat >conftest.$ac_ext <<_ACEOF
19944/* confdefs.h. */
19945_ACEOF
19946cat confdefs.h >>conftest.$ac_ext
19947cat >>conftest.$ac_ext <<_ACEOF
19948/* end confdefs.h. */
19949
19950/* Override any GCC internal prototype to avoid an error.
19951 Use char because int might match the return type of a GCC
19952 builtin and then its argument prototype would still apply. */
19953#ifdef __cplusplus
19954extern "C"
19955#endif
19956char __fixdfdi ();
19957int
19958main ()
19959{
19960return __fixdfdi ();
19961 ;
19962 return 0;
19963}
19964_ACEOF
19965rm -f conftest.$ac_objext conftest$ac_exeext
19966if { (ac_try="$ac_link"
19967case "(($ac_try" in
19968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19969 *) ac_try_echo=$ac_try;;
19970esac
19971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19972 (eval "$ac_link") 2>conftest.er1
19973 ac_status=$?
19974 grep -v '^ *+' conftest.er1 >conftest.err
19975 rm -f conftest.er1
19976 cat conftest.err >&5
19977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19978 (exit $ac_status); } &&
19979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19980 { (case "(($ac_try" in
19981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19982 *) ac_try_echo=$ac_try;;
19983esac
19984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19985 (eval "$ac_try") 2>&5
19986 ac_status=$?
19987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19988 (exit $ac_status); }; } &&
19989 { ac_try='test -s conftest$ac_exeext'
19990 { (case "(($ac_try" in
19991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19992 *) ac_try_echo=$ac_try;;
19993esac
19994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19995 (eval "$ac_try") 2>&5
19996 ac_status=$?
19997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19998 (exit $ac_status); }; }; then
19999 ac_cv_lib_gcc___fixdfdi=yes
20000else
20001 echo "$as_me: failed program was:" >&5
20002sed 's/^/| /' conftest.$ac_ext >&5
20003
20004 ac_cv_lib_gcc___fixdfdi=no
20005fi
20006
20007rm -f core conftest.err conftest.$ac_objext \
20008 conftest$ac_exeext conftest.$ac_ext
20009LIBS=$ac_check_lib_save_LIBS
20010fi
20011{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
20012echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
20013if test $ac_cv_lib_gcc___fixdfdi = yes; then
20014
20015cat >>confdefs.h <<\_ACEOF
20016#define HAVE___FIXDFDI 1
20017_ACEOF
20018
20019fi
20020
20021 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
20022echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
20023if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
20024 echo $ECHO_N "(cached) $ECHO_C" >&6
20025else
20026 ac_check_lib_save_LIBS=$LIBS
20027LIBS="-lgcc $LIBS"
20028cat >conftest.$ac_ext <<_ACEOF
20029/* confdefs.h. */
20030_ACEOF
20031cat confdefs.h >>conftest.$ac_ext
20032cat >>conftest.$ac_ext <<_ACEOF
20033/* end confdefs.h. */
20034
20035/* Override any GCC internal prototype to avoid an error.
20036 Use char because int might match the return type of a GCC
20037 builtin and then its argument prototype would still apply. */
20038#ifdef __cplusplus
20039extern "C"
20040#endif
20041char __fixsfdi ();
20042int
20043main ()
20044{
20045return __fixsfdi ();
20046 ;
20047 return 0;
20048}
20049_ACEOF
20050rm -f conftest.$ac_objext conftest$ac_exeext
20051if { (ac_try="$ac_link"
20052case "(($ac_try" in
20053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20054 *) ac_try_echo=$ac_try;;
20055esac
20056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20057 (eval "$ac_link") 2>conftest.er1
20058 ac_status=$?
20059 grep -v '^ *+' conftest.er1 >conftest.err
20060 rm -f conftest.er1
20061 cat conftest.err >&5
20062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20063 (exit $ac_status); } &&
20064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20065 { (case "(($ac_try" in
20066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20067 *) ac_try_echo=$ac_try;;
20068esac
20069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20070 (eval "$ac_try") 2>&5
20071 ac_status=$?
20072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20073 (exit $ac_status); }; } &&
20074 { ac_try='test -s conftest$ac_exeext'
20075 { (case "(($ac_try" in
20076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20077 *) ac_try_echo=$ac_try;;
20078esac
20079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20080 (eval "$ac_try") 2>&5
20081 ac_status=$?
20082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083 (exit $ac_status); }; }; then
20084 ac_cv_lib_gcc___fixsfdi=yes
20085else
20086 echo "$as_me: failed program was:" >&5
20087sed 's/^/| /' conftest.$ac_ext >&5
20088
20089 ac_cv_lib_gcc___fixsfdi=no
20090fi
20091
20092rm -f core conftest.err conftest.$ac_objext \
20093 conftest$ac_exeext conftest.$ac_ext
20094LIBS=$ac_check_lib_save_LIBS
20095fi
20096{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
20097echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
20098if test $ac_cv_lib_gcc___fixsfdi = yes; then
20099
20100cat >>confdefs.h <<\_ACEOF
20101#define HAVE___FIXSFDI 1
20102_ACEOF
20103
20104fi
20105
20106 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
20107echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
20108if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
20109 echo $ECHO_N "(cached) $ECHO_C" >&6
20110else
20111 ac_check_lib_save_LIBS=$LIBS
20112LIBS="-lgcc $LIBS"
20113cat >conftest.$ac_ext <<_ACEOF
20114/* confdefs.h. */
20115_ACEOF
20116cat confdefs.h >>conftest.$ac_ext
20117cat >>conftest.$ac_ext <<_ACEOF
20118/* end confdefs.h. */
20119
20120/* Override any GCC internal prototype to avoid an error.
20121 Use char because int might match the return type of a GCC
20122 builtin and then its argument prototype would still apply. */
20123#ifdef __cplusplus
20124extern "C"
20125#endif
20126char __floatdidf ();
20127int
20128main ()
20129{
20130return __floatdidf ();
20131 ;
20132 return 0;
20133}
20134_ACEOF
20135rm -f conftest.$ac_objext conftest$ac_exeext
20136if { (ac_try="$ac_link"
20137case "(($ac_try" in
20138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20139 *) ac_try_echo=$ac_try;;
20140esac
20141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20142 (eval "$ac_link") 2>conftest.er1
20143 ac_status=$?
20144 grep -v '^ *+' conftest.er1 >conftest.err
20145 rm -f conftest.er1
20146 cat conftest.err >&5
20147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148 (exit $ac_status); } &&
20149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20150 { (case "(($ac_try" in
20151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20152 *) ac_try_echo=$ac_try;;
20153esac
20154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20155 (eval "$ac_try") 2>&5
20156 ac_status=$?
20157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20158 (exit $ac_status); }; } &&
20159 { ac_try='test -s conftest$ac_exeext'
20160 { (case "(($ac_try" in
20161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20162 *) ac_try_echo=$ac_try;;
20163esac
20164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20165 (eval "$ac_try") 2>&5
20166 ac_status=$?
20167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20168 (exit $ac_status); }; }; then
20169 ac_cv_lib_gcc___floatdidf=yes
20170else
20171 echo "$as_me: failed program was:" >&5
20172sed 's/^/| /' conftest.$ac_ext >&5
20173
20174 ac_cv_lib_gcc___floatdidf=no
20175fi
20176
20177rm -f core conftest.err conftest.$ac_objext \
20178 conftest$ac_exeext conftest.$ac_ext
20179LIBS=$ac_check_lib_save_LIBS
20180fi
20181{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
20182echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
20183if test $ac_cv_lib_gcc___floatdidf = yes; then
20184
20185cat >>confdefs.h <<\_ACEOF
20186#define HAVE___FLOATDIDF 1
20187_ACEOF
20188
20189fi
20190
20191 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
20192echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
20193if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
20194 echo $ECHO_N "(cached) $ECHO_C" >&6
20195else
20196 ac_check_lib_save_LIBS=$LIBS
20197LIBS="-lgcc $LIBS"
20198cat >conftest.$ac_ext <<_ACEOF
20199/* confdefs.h. */
20200_ACEOF
20201cat confdefs.h >>conftest.$ac_ext
20202cat >>conftest.$ac_ext <<_ACEOF
20203/* end confdefs.h. */
20204
20205/* Override any GCC internal prototype to avoid an error.
20206 Use char because int might match the return type of a GCC
20207 builtin and then its argument prototype would still apply. */
20208#ifdef __cplusplus
20209extern "C"
20210#endif
20211char __lshrdi3 ();
20212int
20213main ()
20214{
20215return __lshrdi3 ();
20216 ;
20217 return 0;
20218}
20219_ACEOF
20220rm -f conftest.$ac_objext conftest$ac_exeext
20221if { (ac_try="$ac_link"
20222case "(($ac_try" in
20223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20224 *) ac_try_echo=$ac_try;;
20225esac
20226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20227 (eval "$ac_link") 2>conftest.er1
20228 ac_status=$?
20229 grep -v '^ *+' conftest.er1 >conftest.err
20230 rm -f conftest.er1
20231 cat conftest.err >&5
20232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233 (exit $ac_status); } &&
20234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20235 { (case "(($ac_try" in
20236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20237 *) ac_try_echo=$ac_try;;
20238esac
20239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20240 (eval "$ac_try") 2>&5
20241 ac_status=$?
20242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20243 (exit $ac_status); }; } &&
20244 { ac_try='test -s conftest$ac_exeext'
20245 { (case "(($ac_try" in
20246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20247 *) ac_try_echo=$ac_try;;
20248esac
20249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20250 (eval "$ac_try") 2>&5
20251 ac_status=$?
20252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20253 (exit $ac_status); }; }; then
20254 ac_cv_lib_gcc___lshrdi3=yes
20255else
20256 echo "$as_me: failed program was:" >&5
20257sed 's/^/| /' conftest.$ac_ext >&5
20258
20259 ac_cv_lib_gcc___lshrdi3=no
20260fi
20261
20262rm -f core conftest.err conftest.$ac_objext \
20263 conftest$ac_exeext conftest.$ac_ext
20264LIBS=$ac_check_lib_save_LIBS
20265fi
20266{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20267echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20268if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20269
20270cat >>confdefs.h <<\_ACEOF
20271#define HAVE___LSHRDI3 1
20272_ACEOF
20273
20274fi
20275
20276 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20277echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20278if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20279 echo $ECHO_N "(cached) $ECHO_C" >&6
20280else
20281 ac_check_lib_save_LIBS=$LIBS
20282LIBS="-lgcc $LIBS"
20283cat >conftest.$ac_ext <<_ACEOF
20284/* confdefs.h. */
20285_ACEOF
20286cat confdefs.h >>conftest.$ac_ext
20287cat >>conftest.$ac_ext <<_ACEOF
20288/* end confdefs.h. */
20289
20290/* Override any GCC internal prototype to avoid an error.
20291 Use char because int might match the return type of a GCC
20292 builtin and then its argument prototype would still apply. */
20293#ifdef __cplusplus
20294extern "C"
20295#endif
20296char __moddi3 ();
20297int
20298main ()
20299{
20300return __moddi3 ();
20301 ;
20302 return 0;
20303}
20304_ACEOF
20305rm -f conftest.$ac_objext conftest$ac_exeext
20306if { (ac_try="$ac_link"
20307case "(($ac_try" in
20308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20309 *) ac_try_echo=$ac_try;;
20310esac
20311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20312 (eval "$ac_link") 2>conftest.er1
20313 ac_status=$?
20314 grep -v '^ *+' conftest.er1 >conftest.err
20315 rm -f conftest.er1
20316 cat conftest.err >&5
20317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20318 (exit $ac_status); } &&
20319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20320 { (case "(($ac_try" in
20321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20322 *) ac_try_echo=$ac_try;;
20323esac
20324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20325 (eval "$ac_try") 2>&5
20326 ac_status=$?
20327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328 (exit $ac_status); }; } &&
20329 { ac_try='test -s conftest$ac_exeext'
20330 { (case "(($ac_try" in
20331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20332 *) ac_try_echo=$ac_try;;
20333esac
20334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20335 (eval "$ac_try") 2>&5
20336 ac_status=$?
20337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338 (exit $ac_status); }; }; then
20339 ac_cv_lib_gcc___moddi3=yes
20340else
20341 echo "$as_me: failed program was:" >&5
20342sed 's/^/| /' conftest.$ac_ext >&5
20343
20344 ac_cv_lib_gcc___moddi3=no
20345fi
20346
20347rm -f core conftest.err conftest.$ac_objext \
20348 conftest$ac_exeext conftest.$ac_ext
20349LIBS=$ac_check_lib_save_LIBS
20350fi
20351{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20352echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20353if test $ac_cv_lib_gcc___moddi3 = yes; then
20354
20355cat >>confdefs.h <<\_ACEOF
20356#define HAVE___MODDI3 1
20357_ACEOF
20358
20359fi
20360
20361 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20362echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20363if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20364 echo $ECHO_N "(cached) $ECHO_C" >&6
20365else
20366 ac_check_lib_save_LIBS=$LIBS
20367LIBS="-lgcc $LIBS"
20368cat >conftest.$ac_ext <<_ACEOF
20369/* confdefs.h. */
20370_ACEOF
20371cat confdefs.h >>conftest.$ac_ext
20372cat >>conftest.$ac_ext <<_ACEOF
20373/* end confdefs.h. */
20374
20375/* Override any GCC internal prototype to avoid an error.
20376 Use char because int might match the return type of a GCC
20377 builtin and then its argument prototype would still apply. */
20378#ifdef __cplusplus
20379extern "C"
20380#endif
20381char __udivdi3 ();
20382int
20383main ()
20384{
20385return __udivdi3 ();
20386 ;
20387 return 0;
20388}
20389_ACEOF
20390rm -f conftest.$ac_objext conftest$ac_exeext
20391if { (ac_try="$ac_link"
20392case "(($ac_try" in
20393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20394 *) ac_try_echo=$ac_try;;
20395esac
20396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20397 (eval "$ac_link") 2>conftest.er1
20398 ac_status=$?
20399 grep -v '^ *+' conftest.er1 >conftest.err
20400 rm -f conftest.er1
20401 cat conftest.err >&5
20402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403 (exit $ac_status); } &&
20404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20405 { (case "(($ac_try" in
20406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20407 *) ac_try_echo=$ac_try;;
20408esac
20409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20410 (eval "$ac_try") 2>&5
20411 ac_status=$?
20412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413 (exit $ac_status); }; } &&
20414 { ac_try='test -s conftest$ac_exeext'
20415 { (case "(($ac_try" in
20416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20417 *) ac_try_echo=$ac_try;;
20418esac
20419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20420 (eval "$ac_try") 2>&5
20421 ac_status=$?
20422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423 (exit $ac_status); }; }; then
20424 ac_cv_lib_gcc___udivdi3=yes
20425else
20426 echo "$as_me: failed program was:" >&5
20427sed 's/^/| /' conftest.$ac_ext >&5
20428
20429 ac_cv_lib_gcc___udivdi3=no
20430fi
20431
20432rm -f core conftest.err conftest.$ac_objext \
20433 conftest$ac_exeext conftest.$ac_ext
20434LIBS=$ac_check_lib_save_LIBS
20435fi
20436{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20437echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20438if test $ac_cv_lib_gcc___udivdi3 = yes; then
20439
20440cat >>confdefs.h <<\_ACEOF
20441#define HAVE___UDIVDI3 1
20442_ACEOF
20443
20444fi
20445
20446 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20447echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20448if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20449 echo $ECHO_N "(cached) $ECHO_C" >&6
20450else
20451 ac_check_lib_save_LIBS=$LIBS
20452LIBS="-lgcc $LIBS"
20453cat >conftest.$ac_ext <<_ACEOF
20454/* confdefs.h. */
20455_ACEOF
20456cat confdefs.h >>conftest.$ac_ext
20457cat >>conftest.$ac_ext <<_ACEOF
20458/* end confdefs.h. */
20459
20460/* Override any GCC internal prototype to avoid an error.
20461 Use char because int might match the return type of a GCC
20462 builtin and then its argument prototype would still apply. */
20463#ifdef __cplusplus
20464extern "C"
20465#endif
20466char __umoddi3 ();
20467int
20468main ()
20469{
20470return __umoddi3 ();
20471 ;
20472 return 0;
20473}
20474_ACEOF
20475rm -f conftest.$ac_objext conftest$ac_exeext
20476if { (ac_try="$ac_link"
20477case "(($ac_try" in
20478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20479 *) ac_try_echo=$ac_try;;
20480esac
20481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20482 (eval "$ac_link") 2>conftest.er1
20483 ac_status=$?
20484 grep -v '^ *+' conftest.er1 >conftest.err
20485 rm -f conftest.er1
20486 cat conftest.err >&5
20487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488 (exit $ac_status); } &&
20489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20490 { (case "(($ac_try" in
20491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20492 *) ac_try_echo=$ac_try;;
20493esac
20494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20495 (eval "$ac_try") 2>&5
20496 ac_status=$?
20497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20498 (exit $ac_status); }; } &&
20499 { ac_try='test -s conftest$ac_exeext'
20500 { (case "(($ac_try" in
20501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20502 *) ac_try_echo=$ac_try;;
20503esac
20504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20505 (eval "$ac_try") 2>&5
20506 ac_status=$?
20507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20508 (exit $ac_status); }; }; then
20509 ac_cv_lib_gcc___umoddi3=yes
20510else
20511 echo "$as_me: failed program was:" >&5
20512sed 's/^/| /' conftest.$ac_ext >&5
20513
20514 ac_cv_lib_gcc___umoddi3=no
20515fi
20516
20517rm -f core conftest.err conftest.$ac_objext \
20518 conftest$ac_exeext conftest.$ac_ext
20519LIBS=$ac_check_lib_save_LIBS
20520fi
20521{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20522echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20523if test $ac_cv_lib_gcc___umoddi3 = yes; then
20524
20525cat >>confdefs.h <<\_ACEOF
20526#define HAVE___UMODDI3 1
20527_ACEOF
20528
20529fi
20530
20531
20532 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20533echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20534if test "${ac_cv_lib_gcc___main+set}" = set; then
20535 echo $ECHO_N "(cached) $ECHO_C" >&6
20536else
20537 ac_check_lib_save_LIBS=$LIBS
20538LIBS="-lgcc $LIBS"
20539cat >conftest.$ac_ext <<_ACEOF
20540/* confdefs.h. */
20541_ACEOF
20542cat confdefs.h >>conftest.$ac_ext
20543cat >>conftest.$ac_ext <<_ACEOF
20544/* end confdefs.h. */
20545
20546/* Override any GCC internal prototype to avoid an error.
20547 Use char because int might match the return type of a GCC
20548 builtin and then its argument prototype would still apply. */
20549#ifdef __cplusplus
20550extern "C"
20551#endif
20552char __main ();
20553int
20554main ()
20555{
20556return __main ();
20557 ;
20558 return 0;
20559}
20560_ACEOF
20561rm -f conftest.$ac_objext conftest$ac_exeext
20562if { (ac_try="$ac_link"
20563case "(($ac_try" in
20564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20565 *) ac_try_echo=$ac_try;;
20566esac
20567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20568 (eval "$ac_link") 2>conftest.er1
20569 ac_status=$?
20570 grep -v '^ *+' conftest.er1 >conftest.err
20571 rm -f conftest.er1
20572 cat conftest.err >&5
20573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20574 (exit $ac_status); } &&
20575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20576 { (case "(($ac_try" in
20577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20578 *) ac_try_echo=$ac_try;;
20579esac
20580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20581 (eval "$ac_try") 2>&5
20582 ac_status=$?
20583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20584 (exit $ac_status); }; } &&
20585 { ac_try='test -s conftest$ac_exeext'
20586 { (case "(($ac_try" in
20587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20588 *) ac_try_echo=$ac_try;;
20589esac
20590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20591 (eval "$ac_try") 2>&5
20592 ac_status=$?
20593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20594 (exit $ac_status); }; }; then
20595 ac_cv_lib_gcc___main=yes
20596else
20597 echo "$as_me: failed program was:" >&5
20598sed 's/^/| /' conftest.$ac_ext >&5
20599
20600 ac_cv_lib_gcc___main=no
20601fi
20602
20603rm -f core conftest.err conftest.$ac_objext \
20604 conftest$ac_exeext conftest.$ac_ext
20605LIBS=$ac_check_lib_save_LIBS
20606fi
20607{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20608echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20609if test $ac_cv_lib_gcc___main = yes; then
20610
20611cat >>confdefs.h <<\_ACEOF
20612#define HAVE___MAIN 1
20613_ACEOF
20614
20615fi
20616
20617 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20618echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20619if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20620 echo $ECHO_N "(cached) $ECHO_C" >&6
20621else
20622 ac_check_lib_save_LIBS=$LIBS
20623LIBS="-lgcc $LIBS"
20624cat >conftest.$ac_ext <<_ACEOF
20625/* confdefs.h. */
20626_ACEOF
20627cat confdefs.h >>conftest.$ac_ext
20628cat >>conftest.$ac_ext <<_ACEOF
20629/* end confdefs.h. */
20630
20631/* Override any GCC internal prototype to avoid an error.
20632 Use char because int might match the return type of a GCC
20633 builtin and then its argument prototype would still apply. */
20634#ifdef __cplusplus
20635extern "C"
20636#endif
20637char __cmpdi2 ();
20638int
20639main ()
20640{
20641return __cmpdi2 ();
20642 ;
20643 return 0;
20644}
20645_ACEOF
20646rm -f conftest.$ac_objext conftest$ac_exeext
20647if { (ac_try="$ac_link"
20648case "(($ac_try" in
20649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20650 *) ac_try_echo=$ac_try;;
20651esac
20652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20653 (eval "$ac_link") 2>conftest.er1
20654 ac_status=$?
20655 grep -v '^ *+' conftest.er1 >conftest.err
20656 rm -f conftest.er1
20657 cat conftest.err >&5
20658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659 (exit $ac_status); } &&
20660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20661 { (case "(($ac_try" in
20662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20663 *) ac_try_echo=$ac_try;;
20664esac
20665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20666 (eval "$ac_try") 2>&5
20667 ac_status=$?
20668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669 (exit $ac_status); }; } &&
20670 { ac_try='test -s conftest$ac_exeext'
20671 { (case "(($ac_try" in
20672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20673 *) ac_try_echo=$ac_try;;
20674esac
20675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20676 (eval "$ac_try") 2>&5
20677 ac_status=$?
20678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679 (exit $ac_status); }; }; then
20680 ac_cv_lib_gcc___cmpdi2=yes
20681else
20682 echo "$as_me: failed program was:" >&5
20683sed 's/^/| /' conftest.$ac_ext >&5
20684
20685 ac_cv_lib_gcc___cmpdi2=no
20686fi
20687
20688rm -f core conftest.err conftest.$ac_objext \
20689 conftest$ac_exeext conftest.$ac_ext
20690LIBS=$ac_check_lib_save_LIBS
20691fi
20692{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20693echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20694if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20695
20696cat >>confdefs.h <<\_ACEOF
20697#define HAVE___CMPDI2 1
20698_ACEOF
20699
20700fi
20701
20702fi
20703
NAKAMURA Takumi6073a052011-05-01 13:29:49 +000020704if test "$llvm_cv_os_type" = "MingW" ; then
20705 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20706echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20707 cat >conftest.$ac_ext <<_ACEOF
20708#include <windows.h>
20709#include <imagehlp.h>
20710extern void foo(PENUMLOADED_MODULES_CALLBACK);
20711extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20712_ACEOF
20713rm -f conftest.$ac_objext
20714if { (ac_try="$ac_compile"
20715case "(($ac_try" in
20716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20717 *) ac_try_echo=$ac_try;;
20718esac
20719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20720 (eval "$ac_compile") 2>conftest.er1
20721 ac_status=$?
20722 grep -v '^ *+' conftest.er1 >conftest.err
20723 rm -f conftest.er1
20724 cat conftest.err >&5
20725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726 (exit $ac_status); } &&
20727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20728 { (case "(($ac_try" in
20729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20730 *) ac_try_echo=$ac_try;;
20731esac
20732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20733 (eval "$ac_try") 2>&5
20734 ac_status=$?
20735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20736 (exit $ac_status); }; } &&
20737 { ac_try='test -s conftest.$ac_objext'
20738 { (case "(($ac_try" in
20739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20740 *) ac_try_echo=$ac_try;;
20741esac
20742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20743 (eval "$ac_try") 2>&5
20744 ac_status=$?
20745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746 (exit $ac_status); }; }; then
20747
20748 { echo "$as_me:$LINENO: result: yes" >&5
20749echo "${ECHO_T}yes" >&6; }
20750 llvm_cv_win32_elmcb_pcstr="PCSTR"
20751
20752else
20753 echo "$as_me: failed program was:" >&5
20754sed 's/^/| /' conftest.$ac_ext >&5
20755
20756
20757 { echo "$as_me:$LINENO: result: no" >&5
20758echo "${ECHO_T}no" >&6; }
20759 llvm_cv_win32_elmcb_pcstr="PSTR"
20760
20761fi
20762
20763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20764
20765cat >>confdefs.h <<_ACEOF
20766#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20767_ACEOF
20768
20769fi
20770
Torok Edwin871384f2010-01-26 08:50:50 +000020771
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020772{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20773echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20774if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20775 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020776else
Reid Spencera773bd52006-08-04 18:18:08 +000020777 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000020778ac_cpp='$CXXCPP $CPPFLAGS'
20779ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20780ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20781ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20782
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020783 cat >conftest.$ac_ext <<_ACEOF
20784/* confdefs.h. */
20785_ACEOF
20786cat confdefs.h >>conftest.$ac_ext
20787cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020788/* end confdefs.h. */
20789#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000020790int
20791main ()
20792{
20793float f; isnan(f);
20794 ;
20795 return 0;
20796}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020797_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020798rm -f conftest.$ac_objext
20799if { (ac_try="$ac_compile"
20800case "(($ac_try" in
20801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20802 *) ac_try_echo=$ac_try;;
20803esac
20804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20805 (eval "$ac_compile") 2>conftest.er1
20806 ac_status=$?
20807 grep -v '^ *+' conftest.er1 >conftest.err
20808 rm -f conftest.er1
20809 cat conftest.err >&5
20810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20811 (exit $ac_status); } &&
20812 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20813 { (case "(($ac_try" in
20814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20815 *) ac_try_echo=$ac_try;;
20816esac
20817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20818 (eval "$ac_try") 2>&5
20819 ac_status=$?
20820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821 (exit $ac_status); }; } &&
20822 { ac_try='test -s conftest.$ac_objext'
20823 { (case "(($ac_try" in
20824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20825 *) ac_try_echo=$ac_try;;
20826esac
20827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20828 (eval "$ac_try") 2>&5
20829 ac_status=$?
20830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020832 ac_cv_func_isnan_in_math_h=yes
20833else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020834 echo "$as_me: failed program was:" >&5
20835sed 's/^/| /' conftest.$ac_ext >&5
20836
20837 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020838fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020839
Reid Spencera773bd52006-08-04 18:18:08 +000020840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020841 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020842ac_cpp='$CPP $CPPFLAGS'
20843ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20844ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20845ac_compiler_gnu=$ac_cv_c_compiler_gnu
20846
20847fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020848{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20849echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020850
20851
20852if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020853
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020854cat >>confdefs.h <<\_ACEOF
20855#define HAVE_ISNAN_IN_MATH_H 1
20856_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020857
Reid Spencerabec8f92004-10-27 23:03:44 +000020858fi
20859
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020860{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20861echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20862if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20863 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020864else
Reid Spencera773bd52006-08-04 18:18:08 +000020865 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020866ac_cpp='$CXXCPP $CPPFLAGS'
20867ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20868ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20869ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20870
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020871 cat >conftest.$ac_ext <<_ACEOF
20872/* confdefs.h. */
20873_ACEOF
20874cat confdefs.h >>conftest.$ac_ext
20875cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020876/* end confdefs.h. */
20877#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000020878int
20879main ()
20880{
20881float f; isnan(f);
20882 ;
20883 return 0;
20884}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020885_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020886rm -f conftest.$ac_objext
20887if { (ac_try="$ac_compile"
20888case "(($ac_try" in
20889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20890 *) ac_try_echo=$ac_try;;
20891esac
20892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20893 (eval "$ac_compile") 2>conftest.er1
20894 ac_status=$?
20895 grep -v '^ *+' conftest.er1 >conftest.err
20896 rm -f conftest.er1
20897 cat conftest.err >&5
20898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899 (exit $ac_status); } &&
20900 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20901 { (case "(($ac_try" in
20902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20903 *) ac_try_echo=$ac_try;;
20904esac
20905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20906 (eval "$ac_try") 2>&5
20907 ac_status=$?
20908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909 (exit $ac_status); }; } &&
20910 { ac_try='test -s conftest.$ac_objext'
20911 { (case "(($ac_try" in
20912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20913 *) ac_try_echo=$ac_try;;
20914esac
20915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20916 (eval "$ac_try") 2>&5
20917 ac_status=$?
20918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20919 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020920 ac_cv_func_isnan_in_cmath=yes
20921else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020922 echo "$as_me: failed program was:" >&5
20923sed 's/^/| /' conftest.$ac_ext >&5
20924
20925 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020926fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020927
Reid Spencera773bd52006-08-04 18:18:08 +000020928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020929 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020930ac_cpp='$CPP $CPPFLAGS'
20931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20933ac_compiler_gnu=$ac_cv_c_compiler_gnu
20934
20935fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020936{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20937echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020938
20939if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020940
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020941cat >>confdefs.h <<\_ACEOF
20942#define HAVE_ISNAN_IN_CMATH 1
20943_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020944
Reid Spencerabec8f92004-10-27 23:03:44 +000020945fi
20946
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020947{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20948echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20949if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20950 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020951else
Reid Spencera773bd52006-08-04 18:18:08 +000020952 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020953ac_cpp='$CXXCPP $CPPFLAGS'
20954ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20955ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20956ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20957
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020958 cat >conftest.$ac_ext <<_ACEOF
20959/* confdefs.h. */
20960_ACEOF
20961cat confdefs.h >>conftest.$ac_ext
20962cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020963/* end confdefs.h. */
20964#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000020965int
20966main ()
20967{
20968float f; std::isnan(f);
20969 ;
20970 return 0;
20971}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020972_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020973rm -f conftest.$ac_objext
20974if { (ac_try="$ac_compile"
20975case "(($ac_try" in
20976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20977 *) ac_try_echo=$ac_try;;
20978esac
20979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20980 (eval "$ac_compile") 2>conftest.er1
20981 ac_status=$?
20982 grep -v '^ *+' conftest.er1 >conftest.err
20983 rm -f conftest.er1
20984 cat conftest.err >&5
20985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986 (exit $ac_status); } &&
20987 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20988 { (case "(($ac_try" in
20989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20990 *) ac_try_echo=$ac_try;;
20991esac
20992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20993 (eval "$ac_try") 2>&5
20994 ac_status=$?
20995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996 (exit $ac_status); }; } &&
20997 { ac_try='test -s conftest.$ac_objext'
20998 { (case "(($ac_try" in
20999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21000 *) ac_try_echo=$ac_try;;
21001esac
21002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21003 (eval "$ac_try") 2>&5
21004 ac_status=$?
21005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21006 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021007 ac_cv_func_std_isnan_in_cmath=yes
21008else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021009 echo "$as_me: failed program was:" >&5
21010sed 's/^/| /' conftest.$ac_ext >&5
21011
21012 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021013fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021014
Reid Spencera773bd52006-08-04 18:18:08 +000021015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000021016 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021017ac_cpp='$CPP $CPPFLAGS'
21018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21020ac_compiler_gnu=$ac_cv_c_compiler_gnu
21021
21022fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021023{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21024echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000021025
21026if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021027
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021028cat >>confdefs.h <<\_ACEOF
21029#define HAVE_STD_ISNAN_IN_CMATH 1
21030_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021031
Reid Spencerabec8f92004-10-27 23:03:44 +000021032fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021033
21034
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021035{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21036echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
21037if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21038 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000021039else
Reid Spencera773bd52006-08-04 18:18:08 +000021040 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000021041ac_cpp='$CXXCPP $CPPFLAGS'
21042ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21043ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21044ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21045
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021046 cat >conftest.$ac_ext <<_ACEOF
21047/* confdefs.h. */
21048_ACEOF
21049cat confdefs.h >>conftest.$ac_ext
21050cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021051/* end confdefs.h. */
21052#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000021053int
21054main ()
21055{
21056float f; isinf(f);
21057 ;
21058 return 0;
21059}
Brian Gaeke52a551d2004-07-21 03:14:12 +000021060_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021061rm -f conftest.$ac_objext
21062if { (ac_try="$ac_compile"
21063case "(($ac_try" in
21064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21065 *) ac_try_echo=$ac_try;;
21066esac
21067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21068 (eval "$ac_compile") 2>conftest.er1
21069 ac_status=$?
21070 grep -v '^ *+' conftest.er1 >conftest.err
21071 rm -f conftest.er1
21072 cat conftest.err >&5
21073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21074 (exit $ac_status); } &&
21075 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21076 { (case "(($ac_try" in
21077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21078 *) ac_try_echo=$ac_try;;
21079esac
21080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21081 (eval "$ac_try") 2>&5
21082 ac_status=$?
21083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084 (exit $ac_status); }; } &&
21085 { ac_try='test -s conftest.$ac_objext'
21086 { (case "(($ac_try" in
21087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21088 *) ac_try_echo=$ac_try;;
21089esac
21090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21091 (eval "$ac_try") 2>&5
21092 ac_status=$?
21093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21094 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000021095 ac_cv_func_isinf_in_math_h=yes
21096else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021097 echo "$as_me: failed program was:" >&5
21098sed 's/^/| /' conftest.$ac_ext >&5
21099
21100 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000021101fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021102
Reid Spencera773bd52006-08-04 18:18:08 +000021103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000021104 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000021105ac_cpp='$CPP $CPPFLAGS'
21106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21108ac_compiler_gnu=$ac_cv_c_compiler_gnu
21109
21110fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021111{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21112echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000021113
21114if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000021115
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021116cat >>confdefs.h <<\_ACEOF
21117#define HAVE_ISINF_IN_MATH_H 1
21118_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021119
Reid Spencerabec8f92004-10-27 23:03:44 +000021120fi
21121
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021122{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21123echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
21124if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21125 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000021126else
Reid Spencera773bd52006-08-04 18:18:08 +000021127 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000021128ac_cpp='$CXXCPP $CPPFLAGS'
21129ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21130ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21131ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21132
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021133 cat >conftest.$ac_ext <<_ACEOF
21134/* confdefs.h. */
21135_ACEOF
21136cat confdefs.h >>conftest.$ac_ext
21137cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021138/* end confdefs.h. */
21139#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000021140int
21141main ()
21142{
21143float f; isinf(f);
21144 ;
21145 return 0;
21146}
Brian Gaeke52a551d2004-07-21 03:14:12 +000021147_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021148rm -f conftest.$ac_objext
21149if { (ac_try="$ac_compile"
21150case "(($ac_try" in
21151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21152 *) ac_try_echo=$ac_try;;
21153esac
21154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21155 (eval "$ac_compile") 2>conftest.er1
21156 ac_status=$?
21157 grep -v '^ *+' conftest.er1 >conftest.err
21158 rm -f conftest.er1
21159 cat conftest.err >&5
21160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21161 (exit $ac_status); } &&
21162 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21163 { (case "(($ac_try" in
21164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21165 *) ac_try_echo=$ac_try;;
21166esac
21167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21168 (eval "$ac_try") 2>&5
21169 ac_status=$?
21170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171 (exit $ac_status); }; } &&
21172 { ac_try='test -s conftest.$ac_objext'
21173 { (case "(($ac_try" in
21174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21175 *) ac_try_echo=$ac_try;;
21176esac
21177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21178 (eval "$ac_try") 2>&5
21179 ac_status=$?
21180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000021182 ac_cv_func_isinf_in_cmath=yes
21183else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021184 echo "$as_me: failed program was:" >&5
21185sed 's/^/| /' conftest.$ac_ext >&5
21186
21187 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000021188fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021189
Reid Spencera773bd52006-08-04 18:18:08 +000021190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000021191 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000021192ac_cpp='$CPP $CPPFLAGS'
21193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21195ac_compiler_gnu=$ac_cv_c_compiler_gnu
21196
21197fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021198{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21199echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000021200
21201if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000021202
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021203cat >>confdefs.h <<\_ACEOF
21204#define HAVE_ISINF_IN_CMATH 1
21205_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021206
Reid Spencerabec8f92004-10-27 23:03:44 +000021207fi
21208
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021209{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21210echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
21211if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21212 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000021213else
Reid Spencera773bd52006-08-04 18:18:08 +000021214 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000021215ac_cpp='$CXXCPP $CPPFLAGS'
21216ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21217ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21218ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21219
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021220 cat >conftest.$ac_ext <<_ACEOF
21221/* confdefs.h. */
21222_ACEOF
21223cat confdefs.h >>conftest.$ac_ext
21224cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021225/* end confdefs.h. */
21226#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000021227int
21228main ()
21229{
21230float f; std::isinf(f)}
21231 ;
21232 return 0;
21233}
Brian Gaeke52a551d2004-07-21 03:14:12 +000021234_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021235rm -f conftest.$ac_objext
21236if { (ac_try="$ac_compile"
21237case "(($ac_try" in
21238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21239 *) ac_try_echo=$ac_try;;
21240esac
21241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21242 (eval "$ac_compile") 2>conftest.er1
21243 ac_status=$?
21244 grep -v '^ *+' conftest.er1 >conftest.err
21245 rm -f conftest.er1
21246 cat conftest.err >&5
21247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248 (exit $ac_status); } &&
21249 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21250 { (case "(($ac_try" in
21251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21252 *) ac_try_echo=$ac_try;;
21253esac
21254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21255 (eval "$ac_try") 2>&5
21256 ac_status=$?
21257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21258 (exit $ac_status); }; } &&
21259 { ac_try='test -s conftest.$ac_objext'
21260 { (case "(($ac_try" in
21261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21262 *) ac_try_echo=$ac_try;;
21263esac
21264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21265 (eval "$ac_try") 2>&5
21266 ac_status=$?
21267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21268 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000021269 ac_cv_func_std_isinf_in_cmath=yes
21270else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021271 echo "$as_me: failed program was:" >&5
21272sed 's/^/| /' conftest.$ac_ext >&5
21273
21274 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000021275fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021276
Reid Spencera773bd52006-08-04 18:18:08 +000021277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000021278 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000021279ac_cpp='$CPP $CPPFLAGS'
21280ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21281ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21282ac_compiler_gnu=$ac_cv_c_compiler_gnu
21283
21284fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021285{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21286echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000021287
21288if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000021289
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021290cat >>confdefs.h <<\_ACEOF
21291#define HAVE_STD_ISINF_IN_CMATH 1
21292_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021293
Reid Spencerabec8f92004-10-27 23:03:44 +000021294fi
21295
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021296{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21297echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21298if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21299 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000021300else
Reid Spencera773bd52006-08-04 18:18:08 +000021301 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000021302ac_cpp='$CXXCPP $CPPFLAGS'
21303ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21304ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21305ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21306
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021307 cat >conftest.$ac_ext <<_ACEOF
21308/* confdefs.h. */
21309_ACEOF
21310cat confdefs.h >>conftest.$ac_ext
21311cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000021312/* end confdefs.h. */
21313#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000021314int
21315main ()
21316{
21317float f; finite(f);
21318 ;
21319 return 0;
21320}
Brian Gaeked59a6472004-07-21 03:33:58 +000021321_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021322rm -f conftest.$ac_objext
21323if { (ac_try="$ac_compile"
21324case "(($ac_try" in
21325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21326 *) ac_try_echo=$ac_try;;
21327esac
21328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21329 (eval "$ac_compile") 2>conftest.er1
21330 ac_status=$?
21331 grep -v '^ *+' conftest.er1 >conftest.err
21332 rm -f conftest.er1
21333 cat conftest.err >&5
21334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21335 (exit $ac_status); } &&
21336 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21337 { (case "(($ac_try" in
21338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21339 *) ac_try_echo=$ac_try;;
21340esac
21341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21342 (eval "$ac_try") 2>&5
21343 ac_status=$?
21344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345 (exit $ac_status); }; } &&
21346 { ac_try='test -s conftest.$ac_objext'
21347 { (case "(($ac_try" in
21348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21349 *) ac_try_echo=$ac_try;;
21350esac
21351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21352 (eval "$ac_try") 2>&5
21353 ac_status=$?
21354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21355 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000021356 ac_cv_func_finite_in_ieeefp_h=yes
21357else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021358 echo "$as_me: failed program was:" >&5
21359sed 's/^/| /' conftest.$ac_ext >&5
21360
21361 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000021362fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021363
Reid Spencera773bd52006-08-04 18:18:08 +000021364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000021365 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000021366ac_cpp='$CPP $CPPFLAGS'
21367ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21368ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21369ac_compiler_gnu=$ac_cv_c_compiler_gnu
21370
21371fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021372{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21373echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000021374
Brian Gaeke6802b552004-10-28 05:06:45 +000021375if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000021376
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021377cat >>confdefs.h <<\_ACEOF
21378#define HAVE_FINITE_IN_IEEEFP_H 1
21379_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000021380
Reid Spencerabec8f92004-10-27 23:03:44 +000021381fi
21382
21383
21384
Reid Spencer30fe5262007-01-20 07:48:49 +000021385if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000021386
21387
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021388for ac_header in stdlib.h unistd.h
21389do
21390as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21391if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21392 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21393echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21394if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21395 echo $ECHO_N "(cached) $ECHO_C" >&6
21396fi
21397ac_res=`eval echo '${'$as_ac_Header'}'`
21398 { echo "$as_me:$LINENO: result: $ac_res" >&5
21399echo "${ECHO_T}$ac_res" >&6; }
21400else
21401 # Is the header compilable?
21402{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21403echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21404cat >conftest.$ac_ext <<_ACEOF
21405/* confdefs.h. */
21406_ACEOF
21407cat confdefs.h >>conftest.$ac_ext
21408cat >>conftest.$ac_ext <<_ACEOF
21409/* end confdefs.h. */
21410$ac_includes_default
21411#include <$ac_header>
21412_ACEOF
21413rm -f conftest.$ac_objext
21414if { (ac_try="$ac_compile"
21415case "(($ac_try" in
21416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21417 *) ac_try_echo=$ac_try;;
21418esac
21419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21420 (eval "$ac_compile") 2>conftest.er1
21421 ac_status=$?
21422 grep -v '^ *+' conftest.er1 >conftest.err
21423 rm -f conftest.er1
21424 cat conftest.err >&5
21425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426 (exit $ac_status); } &&
21427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21428 { (case "(($ac_try" in
21429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21430 *) ac_try_echo=$ac_try;;
21431esac
21432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21433 (eval "$ac_try") 2>&5
21434 ac_status=$?
21435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21436 (exit $ac_status); }; } &&
21437 { ac_try='test -s conftest.$ac_objext'
21438 { (case "(($ac_try" in
21439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21440 *) ac_try_echo=$ac_try;;
21441esac
21442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21443 (eval "$ac_try") 2>&5
21444 ac_status=$?
21445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21446 (exit $ac_status); }; }; then
21447 ac_header_compiler=yes
21448else
21449 echo "$as_me: failed program was:" >&5
21450sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021451
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021452 ac_header_compiler=no
21453fi
21454
21455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21456{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21457echo "${ECHO_T}$ac_header_compiler" >&6; }
21458
21459# Is the header present?
21460{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21461echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21462cat >conftest.$ac_ext <<_ACEOF
21463/* confdefs.h. */
21464_ACEOF
21465cat confdefs.h >>conftest.$ac_ext
21466cat >>conftest.$ac_ext <<_ACEOF
21467/* end confdefs.h. */
21468#include <$ac_header>
21469_ACEOF
21470if { (ac_try="$ac_cpp conftest.$ac_ext"
21471case "(($ac_try" in
21472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21473 *) ac_try_echo=$ac_try;;
21474esac
21475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21476 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21477 ac_status=$?
21478 grep -v '^ *+' conftest.er1 >conftest.err
21479 rm -f conftest.er1
21480 cat conftest.err >&5
21481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21482 (exit $ac_status); } >/dev/null; then
21483 if test -s conftest.err; then
21484 ac_cpp_err=$ac_c_preproc_warn_flag
21485 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21486 else
21487 ac_cpp_err=
21488 fi
21489else
21490 ac_cpp_err=yes
21491fi
21492if test -z "$ac_cpp_err"; then
21493 ac_header_preproc=yes
21494else
21495 echo "$as_me: failed program was:" >&5
21496sed 's/^/| /' conftest.$ac_ext >&5
21497
21498 ac_header_preproc=no
21499fi
21500
21501rm -f conftest.err conftest.$ac_ext
21502{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21503echo "${ECHO_T}$ac_header_preproc" >&6; }
21504
21505# So? What about this header?
21506case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21507 yes:no: )
21508 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21509echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21511echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21512 ac_header_preproc=yes
21513 ;;
21514 no:yes:* )
21515 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21516echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21517 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21518echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21519 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21520echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21521 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21522echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21524echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21525 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21526echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21527 ( cat <<\_ASBOX
21528## ----------------------------------- ##
21529## Report this to llvmbugs@cs.uiuc.edu ##
21530## ----------------------------------- ##
21531_ASBOX
21532 ) | sed "s/^/$as_me: WARNING: /" >&2
21533 ;;
21534esac
21535{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21536echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21537if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21538 echo $ECHO_N "(cached) $ECHO_C" >&6
21539else
21540 eval "$as_ac_Header=\$ac_header_preproc"
21541fi
21542ac_res=`eval echo '${'$as_ac_Header'}'`
21543 { echo "$as_me:$LINENO: result: $ac_res" >&5
21544echo "${ECHO_T}$ac_res" >&6; }
21545
21546fi
21547if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000021548 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021549#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000021550_ACEOF
21551
21552fi
21553
21554done
21555
21556
21557for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021558do
21559as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21560{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21561echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21562if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21563 echo $ECHO_N "(cached) $ECHO_C" >&6
21564else
21565 cat >conftest.$ac_ext <<_ACEOF
21566/* confdefs.h. */
21567_ACEOF
21568cat confdefs.h >>conftest.$ac_ext
21569cat >>conftest.$ac_ext <<_ACEOF
21570/* end confdefs.h. */
21571/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21573#define $ac_func innocuous_$ac_func
21574
21575/* System header to define __stub macros and hopefully few prototypes,
21576 which can conflict with char $ac_func (); below.
21577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21578 <limits.h> exists even on freestanding compilers. */
21579
21580#ifdef __STDC__
21581# include <limits.h>
21582#else
21583# include <assert.h>
21584#endif
21585
21586#undef $ac_func
21587
21588/* Override any GCC internal prototype to avoid an error.
21589 Use char because int might match the return type of a GCC
21590 builtin and then its argument prototype would still apply. */
21591#ifdef __cplusplus
21592extern "C"
21593#endif
21594char $ac_func ();
21595/* The GNU C library defines this for functions which it implements
21596 to always fail with ENOSYS. Some functions are actually named
21597 something starting with __ and the normal name is an alias. */
21598#if defined __stub_$ac_func || defined __stub___$ac_func
21599choke me
21600#endif
21601
21602int
21603main ()
21604{
21605return $ac_func ();
21606 ;
21607 return 0;
21608}
21609_ACEOF
21610rm -f conftest.$ac_objext conftest$ac_exeext
21611if { (ac_try="$ac_link"
21612case "(($ac_try" in
21613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21614 *) ac_try_echo=$ac_try;;
21615esac
21616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21617 (eval "$ac_link") 2>conftest.er1
21618 ac_status=$?
21619 grep -v '^ *+' conftest.er1 >conftest.err
21620 rm -f conftest.er1
21621 cat conftest.err >&5
21622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21623 (exit $ac_status); } &&
21624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21625 { (case "(($ac_try" in
21626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21627 *) ac_try_echo=$ac_try;;
21628esac
21629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21630 (eval "$ac_try") 2>&5
21631 ac_status=$?
21632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21633 (exit $ac_status); }; } &&
21634 { ac_try='test -s conftest$ac_exeext'
21635 { (case "(($ac_try" in
21636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21637 *) ac_try_echo=$ac_try;;
21638esac
21639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21640 (eval "$ac_try") 2>&5
21641 ac_status=$?
21642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21643 (exit $ac_status); }; }; then
21644 eval "$as_ac_var=yes"
21645else
21646 echo "$as_me: failed program was:" >&5
21647sed 's/^/| /' conftest.$ac_ext >&5
21648
21649 eval "$as_ac_var=no"
21650fi
21651
21652rm -f core conftest.err conftest.$ac_objext \
21653 conftest$ac_exeext conftest.$ac_ext
21654fi
21655ac_res=`eval echo '${'$as_ac_var'}'`
21656 { echo "$as_me:$LINENO: result: $ac_res" >&5
21657echo "${ECHO_T}$ac_res" >&6; }
21658if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000021659 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021660#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000021661_ACEOF
21662
21663fi
21664done
21665
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021666{ echo "$as_me:$LINENO: checking for working mmap" >&5
21667echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21668if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21669 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000021670else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021671 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000021672 ac_cv_func_mmap_fixed_mapped=no
21673else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021674 cat >conftest.$ac_ext <<_ACEOF
21675/* confdefs.h. */
21676_ACEOF
21677cat confdefs.h >>conftest.$ac_ext
21678cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021679/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021680$ac_includes_default
21681/* malloc might have been renamed as rpl_malloc. */
21682#undef malloc
21683
21684/* Thanks to Mike Haertel and Jim Avera for this test.
21685 Here is a matrix of mmap possibilities:
21686 mmap private not fixed
21687 mmap private fixed at somewhere currently unmapped
21688 mmap private fixed at somewhere already mapped
21689 mmap shared not fixed
21690 mmap shared fixed at somewhere currently unmapped
21691 mmap shared fixed at somewhere already mapped
21692 For private mappings, we should verify that changes cannot be read()
21693 back from the file, nor mmap's back from the file at a different
21694 address. (There have been systems where private was not correctly
21695 implemented like the infamous i386 svr4.0, and systems where the
21696 VM page cache was not coherent with the file system buffer cache
21697 like early versions of FreeBSD and possibly contemporary NetBSD.)
21698 For shared mappings, we should conversely verify that changes get
21699 propagated back to all the places they're supposed to be.
21700
21701 Grep wants private fixed already mapped.
21702 The main things grep needs to know about mmap are:
21703 * does it exist and is it safe to write into the mmap'd area
21704 * how to use it (BSD variants) */
21705
21706#include <fcntl.h>
21707#include <sys/mman.h>
21708
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021709#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000021710char *malloc ();
21711#endif
21712
21713/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021714#if !HAVE_GETPAGESIZE
21715/* Assume that all systems that can run configure have sys/param.h. */
21716# if !HAVE_SYS_PARAM_H
21717# define HAVE_SYS_PARAM_H 1
21718# endif
21719
John Criswell7a73b802003-06-30 21:59:07 +000021720# ifdef _SC_PAGESIZE
21721# define getpagesize() sysconf(_SC_PAGESIZE)
21722# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021723# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000021724# include <sys/param.h>
21725# ifdef EXEC_PAGESIZE
21726# define getpagesize() EXEC_PAGESIZE
21727# else /* no EXEC_PAGESIZE */
21728# ifdef NBPG
21729# define getpagesize() NBPG * CLSIZE
21730# ifndef CLSIZE
21731# define CLSIZE 1
21732# endif /* no CLSIZE */
21733# else /* no NBPG */
21734# ifdef NBPC
21735# define getpagesize() NBPC
21736# else /* no NBPC */
21737# ifdef PAGESIZE
21738# define getpagesize() PAGESIZE
21739# endif /* PAGESIZE */
21740# endif /* no NBPC */
21741# endif /* no NBPG */
21742# endif /* no EXEC_PAGESIZE */
21743# else /* no HAVE_SYS_PARAM_H */
21744# define getpagesize() 8192 /* punt totally */
21745# endif /* no HAVE_SYS_PARAM_H */
21746# endif /* no _SC_PAGESIZE */
21747
21748#endif /* no HAVE_GETPAGESIZE */
21749
21750int
21751main ()
21752{
21753 char *data, *data2, *data3;
21754 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021755 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000021756
21757 pagesize = getpagesize ();
21758
21759 /* First, make a file with some known garbage in it. */
21760 data = (char *) malloc (pagesize);
21761 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000021762 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021763 for (i = 0; i < pagesize; ++i)
21764 *(data + i) = rand ();
21765 umask (0);
21766 fd = creat ("conftest.mmap", 0600);
21767 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021768 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021769 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021770 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021771 close (fd);
21772
21773 /* Next, try to mmap the file at a fixed address which already has
21774 something else allocated at it. If we can, also make sure that
21775 we see the same garbage. */
21776 fd = open ("conftest.mmap", O_RDWR);
21777 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021778 return 1;
21779 data2 = (char *) malloc (2 * pagesize);
21780 if (!data2)
21781 return 1;
21782 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000021783 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000021784 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021785 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021786 for (i = 0; i < pagesize; ++i)
21787 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021788 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021789
21790 /* Finally, make sure that changes to the mapped area do not
21791 percolate back to the file as seen by read(). (This is a bug on
21792 some variants of i386 svr4.0.) */
21793 for (i = 0; i < pagesize; ++i)
21794 *(data2 + i) = *(data2 + i) + 1;
21795 data3 = (char *) malloc (pagesize);
21796 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021797 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021798 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021799 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021800 for (i = 0; i < pagesize; ++i)
21801 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021802 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021803 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000021804 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021805}
21806_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021807rm -f conftest$ac_exeext
21808if { (ac_try="$ac_link"
21809case "(($ac_try" in
21810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21811 *) ac_try_echo=$ac_try;;
21812esac
21813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21814 (eval "$ac_link") 2>&5
21815 ac_status=$?
21816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21817 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21818 { (case "(($ac_try" in
21819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21820 *) ac_try_echo=$ac_try;;
21821esac
21822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21823 (eval "$ac_try") 2>&5
21824 ac_status=$?
21825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21826 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000021827 ac_cv_func_mmap_fixed_mapped=yes
21828else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021829 echo "$as_me: program exited with status $ac_status" >&5
21830echo "$as_me: failed program was:" >&5
21831sed 's/^/| /' conftest.$ac_ext >&5
21832
21833( exit $ac_status )
21834ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000021835fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021836rm -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 +000021837fi
Reid Spencera773bd52006-08-04 18:18:08 +000021838
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021839
John Criswell7a73b802003-06-30 21:59:07 +000021840fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021841{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21842echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000021843if test $ac_cv_func_mmap_fixed_mapped = yes; then
21844
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021845cat >>confdefs.h <<\_ACEOF
21846#define HAVE_MMAP 1
21847_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021848
21849fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021850rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000021851
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021852 { echo "$as_me:$LINENO: checking for mmap of files" >&5
21853echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21854if test "${ac_cv_func_mmap_file+set}" = set; then
21855 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000021856else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021857 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000021858ac_cpp='$CPP $CPPFLAGS'
21859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21861ac_compiler_gnu=$ac_cv_c_compiler_gnu
21862
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021863 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000021864 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000021865else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021866 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000021867
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021868 /* confdefs.h. */
21869_ACEOF
21870cat confdefs.h >>conftest.$ac_ext
21871cat >>conftest.$ac_ext <<_ACEOF
21872/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000021873
John Criswell7a73b802003-06-30 21:59:07 +000021874#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000021875#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000021876#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000021877
21878int
21879main ()
21880{
John Criswell7a73b802003-06-30 21:59:07 +000021881
21882 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000021883 fd = creat ("foo",0777);
21884 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21885 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000021886 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000021887 ;
21888 return 0;
21889}
John Criswell7a73b802003-06-30 21:59:07 +000021890_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021891rm -f conftest$ac_exeext
21892if { (ac_try="$ac_link"
21893case "(($ac_try" in
21894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21895 *) ac_try_echo=$ac_try;;
21896esac
21897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21898 (eval "$ac_link") 2>&5
21899 ac_status=$?
21900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21901 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21902 { (case "(($ac_try" in
21903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21904 *) ac_try_echo=$ac_try;;
21905esac
21906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21907 (eval "$ac_try") 2>&5
21908 ac_status=$?
21909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21910 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000021911 ac_cv_func_mmap_file=yes
21912else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021913 echo "$as_me: program exited with status $ac_status" >&5
21914echo "$as_me: failed program was:" >&5
21915sed 's/^/| /' conftest.$ac_ext >&5
21916
21917( exit $ac_status )
21918ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000021919fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021920rm -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 +000021921fi
Reid Spencera773bd52006-08-04 18:18:08 +000021922
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021923
John Criswell7a73b802003-06-30 21:59:07 +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
21930
21931fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021932{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21933echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000021934if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000021935
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021936cat >>confdefs.h <<\_ACEOF
21937#define HAVE_MMAP_FILE
21938_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021939
21940 MMAP_FILE=yes
21941
21942fi
21943
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021944 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21945echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21946if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21947 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000021948else
Reid Spencer582a23c2004-12-29 07:07:57 +000021949 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000021950 ac_cv_need_dev_zero_for_mmap=yes
21951 else
21952 ac_cv_need_dev_zero_for_mmap=no
21953 fi
21954
21955fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021956{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21957echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000021958if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21959
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021960cat >>confdefs.h <<\_ACEOF
21961#define NEED_DEV_ZERO_FOR_MMAP 1
21962_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000021963
21964fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021965
Reid Spencer30fe5262007-01-20 07:48:49 +000021966 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21967 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021968 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21969echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000021970 fi
21971 if test "$ac_cv_func_mmap_file" = "no"
21972 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021973 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21974echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000021975 fi
John Criswellb13092b2003-07-22 21:00:24 +000021976fi
John Criswell7a73b802003-06-30 21:59:07 +000021977
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021978{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21979echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000021980ac_ext=cpp
21981ac_cpp='$CXXCPP $CPPFLAGS'
21982ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21983ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21984ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21985
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021986cat >conftest.$ac_ext <<_ACEOF
21987/* confdefs.h. */
21988_ACEOF
21989cat confdefs.h >>conftest.$ac_ext
21990cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000021991/* end confdefs.h. */
21992int main() {
Owen Andersona8603702009-05-19 22:18:56 +000021993 volatile unsigned long val = 1;
21994 __sync_synchronize();
21995 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000021996 __sync_add_and_fetch(&val, 1);
21997 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000021998 return 0;
21999 }
Owen Andersond4b272b2009-05-18 23:58:51 +000022000
22001_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022002rm -f conftest.$ac_objext conftest$ac_exeext
22003if { (ac_try="$ac_link"
22004case "(($ac_try" in
22005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22006 *) ac_try_echo=$ac_try;;
22007esac
22008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22009 (eval "$ac_link") 2>conftest.er1
22010 ac_status=$?
22011 grep -v '^ *+' conftest.er1 >conftest.err
22012 rm -f conftest.er1
22013 cat conftest.err >&5
22014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22015 (exit $ac_status); } &&
22016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22017 { (case "(($ac_try" in
22018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22019 *) ac_try_echo=$ac_try;;
22020esac
22021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22022 (eval "$ac_try") 2>&5
22023 ac_status=$?
22024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22025 (exit $ac_status); }; } &&
22026 { ac_try='test -s conftest$ac_exeext'
22027 { (case "(($ac_try" in
22028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22029 *) ac_try_echo=$ac_try;;
22030esac
22031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22032 (eval "$ac_try") 2>&5
22033 ac_status=$?
22034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22035 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000022036 ac_ext=c
22037ac_cpp='$CPP $CPPFLAGS'
22038ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22039ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22040ac_compiler_gnu=$ac_cv_c_compiler_gnu
22041
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022042 { echo "$as_me:$LINENO: result: yes" >&5
22043echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000022044
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022045cat >>confdefs.h <<\_ACEOF
22046#define LLVM_MULTITHREADED 1
22047_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000022048
Owen Andersond4b272b2009-05-18 23:58:51 +000022049else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022050 echo "$as_me: failed program was:" >&5
22051sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000022052
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022053 { echo "$as_me:$LINENO: result: no" >&5
22054echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000022055
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022056cat >>confdefs.h <<\_ACEOF
22057#define LLVM_MULTITHREADED 0
22058_ACEOF
22059
22060 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
22061echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000022062fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022063
Owen Andersond4b272b2009-05-18 23:58:51 +000022064rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022065 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000022066
John Criswell7a73b802003-06-30 21:59:07 +000022067
Nick Lewycky4372e692009-09-29 06:18:23 +000022068if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022069 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
22070echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
22071if test "${llvm_cv_linux_mixed+set}" = set; then
22072 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000022073else
22074 ac_ext=c
22075ac_cpp='$CPP $CPPFLAGS'
22076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22078ac_compiler_gnu=$ac_cv_c_compiler_gnu
22079
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022080 cat >conftest.$ac_ext <<_ACEOF
22081/* confdefs.h. */
22082_ACEOF
22083cat confdefs.h >>conftest.$ac_ext
22084cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000022085/* end confdefs.h. */
22086#ifndef __x86_64__
22087 error: Not x86-64 even if uname says so!
22088 #endif
22089
22090int
22091main ()
22092{
22093
22094 ;
22095 return 0;
22096}
22097_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022098rm -f conftest.$ac_objext
22099if { (ac_try="$ac_compile"
22100case "(($ac_try" in
22101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22102 *) ac_try_echo=$ac_try;;
22103esac
22104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22105 (eval "$ac_compile") 2>conftest.er1
22106 ac_status=$?
22107 grep -v '^ *+' conftest.er1 >conftest.err
22108 rm -f conftest.er1
22109 cat conftest.err >&5
22110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111 (exit $ac_status); } &&
22112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22113 { (case "(($ac_try" in
22114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22115 *) ac_try_echo=$ac_try;;
22116esac
22117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22118 (eval "$ac_try") 2>&5
22119 ac_status=$?
22120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22121 (exit $ac_status); }; } &&
22122 { ac_try='test -s conftest.$ac_objext'
22123 { (case "(($ac_try" in
22124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22125 *) ac_try_echo=$ac_try;;
22126esac
22127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22128 (eval "$ac_try") 2>&5
22129 ac_status=$?
22130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22131 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000022132 llvm_cv_linux_mixed=no
22133else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022134 echo "$as_me: failed program was:" >&5
22135sed 's/^/| /' conftest.$ac_ext >&5
22136
22137 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000022138fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022139
Nick Lewycky4372e692009-09-29 06:18:23 +000022140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22141 ac_ext=c
22142ac_cpp='$CPP $CPPFLAGS'
22143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22145ac_compiler_gnu=$ac_cv_c_compiler_gnu
22146
22147
22148fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022149{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
22150echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000022151
22152 if test "$llvm_cv_linux_mixed" = "yes"; then
22153 llvm_cv_target_arch="x86"
22154 ARCH="x86"
22155 fi
22156fi
22157
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022158
Reid Spencer9372f152007-07-30 20:13:24 +000022159for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022160do
22161as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22162{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22163echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22164if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22165 echo $ECHO_N "(cached) $ECHO_C" >&6
22166else
22167 cat >conftest.$ac_ext <<_ACEOF
22168/* confdefs.h. */
22169_ACEOF
22170cat confdefs.h >>conftest.$ac_ext
22171cat >>conftest.$ac_ext <<_ACEOF
22172/* end confdefs.h. */
22173/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22174 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22175#define $ac_func innocuous_$ac_func
22176
22177/* System header to define __stub macros and hopefully few prototypes,
22178 which can conflict with char $ac_func (); below.
22179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22180 <limits.h> exists even on freestanding compilers. */
22181
22182#ifdef __STDC__
22183# include <limits.h>
22184#else
22185# include <assert.h>
22186#endif
22187
22188#undef $ac_func
22189
22190/* Override any GCC internal prototype to avoid an error.
22191 Use char because int might match the return type of a GCC
22192 builtin and then its argument prototype would still apply. */
22193#ifdef __cplusplus
22194extern "C"
22195#endif
22196char $ac_func ();
22197/* The GNU C library defines this for functions which it implements
22198 to always fail with ENOSYS. Some functions are actually named
22199 something starting with __ and the normal name is an alias. */
22200#if defined __stub_$ac_func || defined __stub___$ac_func
22201choke me
22202#endif
22203
22204int
22205main ()
22206{
22207return $ac_func ();
22208 ;
22209 return 0;
22210}
22211_ACEOF
22212rm -f conftest.$ac_objext conftest$ac_exeext
22213if { (ac_try="$ac_link"
22214case "(($ac_try" in
22215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22216 *) ac_try_echo=$ac_try;;
22217esac
22218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22219 (eval "$ac_link") 2>conftest.er1
22220 ac_status=$?
22221 grep -v '^ *+' conftest.er1 >conftest.err
22222 rm -f conftest.er1
22223 cat conftest.err >&5
22224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22225 (exit $ac_status); } &&
22226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22227 { (case "(($ac_try" in
22228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22229 *) ac_try_echo=$ac_try;;
22230esac
22231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22232 (eval "$ac_try") 2>&5
22233 ac_status=$?
22234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22235 (exit $ac_status); }; } &&
22236 { ac_try='test -s conftest$ac_exeext'
22237 { (case "(($ac_try" in
22238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22239 *) ac_try_echo=$ac_try;;
22240esac
22241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22242 (eval "$ac_try") 2>&5
22243 ac_status=$?
22244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22245 (exit $ac_status); }; }; then
22246 eval "$as_ac_var=yes"
22247else
22248 echo "$as_me: failed program was:" >&5
22249sed 's/^/| /' conftest.$ac_ext >&5
22250
22251 eval "$as_ac_var=no"
22252fi
22253
22254rm -f core conftest.err conftest.$ac_objext \
22255 conftest$ac_exeext conftest.$ac_ext
22256fi
22257ac_res=`eval echo '${'$as_ac_var'}'`
22258 { echo "$as_me:$LINENO: result: $ac_res" >&5
22259echo "${ECHO_T}$ac_res" >&6; }
22260if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000022261 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022262#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000022263_ACEOF
22264
22265fi
22266done
22267
22268
Tobias Grossera84b5672010-11-10 16:31:34 +000022269{ echo "$as_me:$LINENO: checking whether llvm-gcc is dragonegg" >&5
22270echo $ECHO_N "checking whether llvm-gcc is dragonegg... $ECHO_C" >&6; }
22271if test "${llvm_cv_llvmgcc_dragonegg+set}" = set; then
22272 echo $ECHO_N "(cached) $ECHO_C" >&6
22273else
22274 llvm_cv_llvmgcc_dragonegg="no"
Duncan Sands1526b192010-11-25 17:47:42 +000022275if test -n "$LLVMGCC" ; then
Tobias Grossera84b5672010-11-10 16:31:34 +000022276 cp /dev/null conftest.c
Duncan Sands1526b192010-11-25 17:47:42 +000022277 $LLVMGCC -fplugin-arg-dragonegg-emit-ir -S -o - conftest.c > /dev/null 2>&1
Tobias Grossera84b5672010-11-10 16:31:34 +000022278 if test $? -eq 0 ; then
22279 llvm_cv_llvmgcc_dragonegg="yes"
22280 fi
22281 rm conftest.c
22282fi
22283fi
22284{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_dragonegg" >&5
22285echo "${ECHO_T}$llvm_cv_llvmgcc_dragonegg" >&6; }
22286
22287if test "$llvm_cv_llvmgcc_dragonegg" = "yes" ; then
22288 LLVMCC_EMITIR_FLAG="-fplugin-arg-dragonegg-emit-ir"
Duncan Sandsfcc482e2011-05-23 16:50:29 +000022289 LLVMCC_DISABLEOPT_FLAGS="-fplugin-arg-dragonegg-llvm-ir-optimize=0"
Tobias Grossera84b5672010-11-10 16:31:34 +000022290else
22291 LLVMCC_EMITIR_FLAG="-emit-llvm"
Duncan Sands1ac320e2010-11-25 17:57:43 +000022292 LLVMCC_DISABLEOPT_FLAGS="-mllvm -disable-llvm-optzns"
Tobias Grossera84b5672010-11-10 16:31:34 +000022293fi
22294
22295
22296
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022297{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
22298echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
22299if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
22300 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022301else
22302 llvm_cv_llvmgcc_sanity="no"
Duncan Sands1526b192010-11-25 17:47:42 +000022303if test -n "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022304 cp /dev/null conftest.c
Duncan Sands1526b192010-11-25 17:47:42 +000022305 $LLVMGCC "$LLVMCC_EMITIR_FLAG" -S -o - conftest.c | \
Reid Spencer585e0882007-03-29 15:38:33 +000022306 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022307 if test $? -eq 0 ; then
22308 llvm_cv_llvmgcc_sanity="yes"
22309 fi
22310 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000022311fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022312fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022313{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
22314echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022315
22316if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022317 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
22318echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Duncan Sands1526b192010-11-25 17:47:42 +000022319 llvmcc1path=`$LLVMGCC --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022320 LLVMCC1=$llvmcc1path
22321
Duncan Sands1526b192010-11-25 17:47:42 +000022322 llvmcc1pluspath=`$LLVMGCC --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022323 LLVMCC1PLUS=$llvmcc1pluspath
22324
Reid Spencer502935f2004-12-22 05:56:56 +000022325 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
22326 LLVMGCCDIR=$llvmgccdir
22327
Duncan Sands1526b192010-11-25 17:47:42 +000022328 llvmgcclangs=`$LLVMGCC -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000022329 LLVMGCC_LANGS=$llvmgcclangs
22330
Tobias Grossera84b5672010-11-10 16:31:34 +000022331 LLVMGCC_DRAGONEGG=$llvm_cv_llvmgcc_dragonegg
22332
22333
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022334 { echo "$as_me:$LINENO: result: ok" >&5
22335echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000022336fi
22337
Reid Spencer2bc7bd52004-11-29 12:29:58 +000022338SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000022339
22340
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022341SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22342
22343
Reid Spencere9de0912004-08-20 09:03:57 +000022344# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022345# information into substitutions that will end up in Makefile.config.in
22346# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000022347if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000022348 prefix="/usr/local"
22349fi
Reid Spencere9de0912004-08-20 09:03:57 +000022350eval LLVM_PREFIX="${prefix}";
22351eval LLVM_BINDIR="${prefix}/bin";
22352eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000022353eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000022354eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000022355eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000022356eval LLVM_INCLUDEDIR="${prefix}/include";
22357eval LLVM_INFODIR="${prefix}/info";
22358eval LLVM_MANDIR="${prefix}/man";
22359LLVM_CONFIGTIME=`date`
22360
22361
22362
22363
22364
22365
22366
22367
22368
22369
22370
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022371# Place the various directores into the config.h file as #defines so that we
22372# can know about the installation paths within LLVM.
22373
Reid Spencere9de0912004-08-20 09:03:57 +000022374cat >>confdefs.h <<_ACEOF
22375#define LLVM_PREFIX "$LLVM_PREFIX"
22376_ACEOF
22377
22378
22379cat >>confdefs.h <<_ACEOF
22380#define LLVM_BINDIR "$LLVM_BINDIR"
22381_ACEOF
22382
22383
22384cat >>confdefs.h <<_ACEOF
22385#define LLVM_LIBDIR "$LLVM_LIBDIR"
22386_ACEOF
22387
22388
22389cat >>confdefs.h <<_ACEOF
22390#define LLVM_DATADIR "$LLVM_DATADIR"
22391_ACEOF
22392
22393
22394cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000022395#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000022396_ACEOF
22397
22398
22399cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000022400#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000022401_ACEOF
22402
22403
22404cat >>confdefs.h <<_ACEOF
22405#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22406_ACEOF
22407
22408
22409cat >>confdefs.h <<_ACEOF
22410#define LLVM_INFODIR "$LLVM_INFODIR"
22411_ACEOF
22412
22413
22414cat >>confdefs.h <<_ACEOF
22415#define LLVM_MANDIR "$LLVM_MANDIR"
22416_ACEOF
22417
22418
22419cat >>confdefs.h <<_ACEOF
22420#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22421_ACEOF
22422
22423
Eric Christopher790e11c2007-12-01 00:34:39 +000022424cat >>confdefs.h <<_ACEOF
22425#define LLVM_HOSTTRIPLE "$host"
22426_ACEOF
22427
22428
Gordon Henriksenc0efff82007-10-02 09:50:32 +000022429# Determine which bindings to build.
22430if test "$BINDINGS_TO_BUILD" = auto ; then
22431 BINDINGS_TO_BUILD=""
22432 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22433 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22434 fi
22435fi
22436BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22437
22438
22439# This isn't really configurey, but it avoids having to repeat the list in
22440# other files.
22441ALL_BINDINGS=ocaml
22442
22443
Gordon Henriksenf0915682007-10-02 16:42:22 +000022444# Do any work necessary to ensure that bindings have what they need.
22445binding_prereqs_failed=0
22446for a_binding in $BINDINGS_TO_BUILD ; do
22447 case "$a_binding" in
22448 ocaml)
22449 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022450 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22451echo "$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 +000022452 binding_prereqs_failed=1
22453 fi
22454 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022455 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22456echo "$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 +000022457 binding_prereqs_failed=1
22458 fi
22459 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022460 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22461echo "$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 +000022462 fi
22463 if test "x$with_ocaml_libdir" != xauto ; then
22464 OCAML_LIBDIR=$with_ocaml_libdir
22465
22466 else
22467 ocaml_stdlib="`"$OCAMLC" -where`"
22468 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22469 then
22470 # ocaml stdlib is beneath our prefix; use stdlib
22471 OCAML_LIBDIR=$ocaml_stdlib
22472
22473 else
22474 # ocaml stdlib is outside our prefix; use libdir/ocaml
22475 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
22476
22477 fi
22478 fi
22479 ;;
22480 esac
22481done
22482if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022483 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22484echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22485 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000022486fi
22487
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022488{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22489echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22490if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22491 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000022492else
22493 ac_ext=cpp
22494ac_cpp='$CXXCPP $CPPFLAGS'
22495ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22496ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22497ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22498
22499 oldcxxflags="$CXXFLAGS"
22500 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022501 cat >conftest.$ac_ext <<_ACEOF
22502/* confdefs.h. */
22503_ACEOF
22504cat confdefs.h >>conftest.$ac_ext
22505cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000022506/* end confdefs.h. */
22507
22508int
22509main ()
22510{
22511
22512 ;
22513 return 0;
22514}
22515_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022516rm -f conftest.$ac_objext
22517if { (ac_try="$ac_compile"
22518case "(($ac_try" in
22519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22520 *) ac_try_echo=$ac_try;;
22521esac
22522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22523 (eval "$ac_compile") 2>conftest.er1
22524 ac_status=$?
22525 grep -v '^ *+' conftest.er1 >conftest.err
22526 rm -f conftest.er1
22527 cat conftest.err >&5
22528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22529 (exit $ac_status); } &&
22530 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22531 { (case "(($ac_try" in
22532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22533 *) ac_try_echo=$ac_try;;
22534esac
22535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22536 (eval "$ac_try") 2>&5
22537 ac_status=$?
22538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22539 (exit $ac_status); }; } &&
22540 { ac_try='test -s conftest.$ac_objext'
22541 { (case "(($ac_try" in
22542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22543 *) ac_try_echo=$ac_try;;
22544esac
22545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22546 (eval "$ac_try") 2>&5
22547 ac_status=$?
22548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22549 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000022550 llvm_cv_cxx_visibility_inlines_hidden=yes
22551else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022552 echo "$as_me: failed program was:" >&5
22553sed 's/^/| /' conftest.$ac_ext >&5
22554
22555 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000022556fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022557
Daniel Dunbardcf114e2008-08-30 01:16:19 +000022558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22559 CXXFLAGS="$oldcxxflags"
22560 ac_ext=c
22561ac_cpp='$CPP $CPPFLAGS'
22562ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22563ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22564ac_compiler_gnu=$ac_cv_c_compiler_gnu
22565
22566
22567fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022568{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22569echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000022570if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22571 ENABLE_VISIBILITY_INLINES_HIDDEN=1
22572
22573else
22574 ENABLE_VISIBILITY_INLINES_HIDDEN=0
22575
22576fi
22577
Gordon Henriksenf0915682007-10-02 16:42:22 +000022578
Nick Lewycky731c6ab2009-03-05 08:20:44 +000022579if test "$llvm_cv_link_use_r" = "yes" ; then
22580 RPATH="-Wl,-R"
22581else
22582 RPATH="-Wl,-rpath"
22583fi
22584
22585
22586if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22587 RDYNAMIC="-Wl,-export-dynamic"
22588else
22589 RDYNAMIC=""
22590fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000022591
22592
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022593
Eric Christophera1cba682010-08-08 02:44:25 +000022594ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022595
Eric Christopher21d3eeb2010-08-08 09:20:39 +000022596
22597
22598
22599
22600
Douglas Gregor1555a232009-06-16 20:12:29 +000022601ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22602
22603ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22604
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000022605ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22606
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000022607ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22608
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000022609ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022610
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022611
Reid Spencera773bd52006-08-04 18:18:08 +000022612ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022613
22614
Reid Spencerea949cf2006-08-16 00:45:38 +000022615ac_config_files="$ac_config_files llvm.spec"
22616
22617
Peter Collingbourne7be3a602011-05-13 03:27:56 +000022618ac_config_files="$ac_config_files docs/doxygen.cfg"
22619
22620if test -f ${srcdir}/tools/clang/README.txt; then
22621 ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
22622
22623fi
22624
Mikhail Glushenkov4b643c02010-08-15 07:07:17 +000022625ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000022626
22627
Reid Spencera773bd52006-08-04 18:18:08 +000022628ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000022629
22630
Reid Spencera773bd52006-08-04 18:18:08 +000022631ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000022632
Reid Spencera773bd52006-08-04 18:18:08 +000022633ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022634
22635
Reid Spencera773bd52006-08-04 18:18:08 +000022636ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022637
22638
Reid Spencera773bd52006-08-04 18:18:08 +000022639ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022640
22641
Reid Spencera773bd52006-08-04 18:18:08 +000022642ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022643
22644
Reid Spencer8b2e1412006-11-17 03:32:33 +000022645ac_config_commands="$ac_config_commands runtime/Makefile"
22646
22647
Reid Spencera773bd52006-08-04 18:18:08 +000022648ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022649
22650
Reid Spencera773bd52006-08-04 18:18:08 +000022651ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022652
22653
Bill Wendlingf24eb392009-01-04 23:12:30 +000022654ac_config_commands="$ac_config_commands unittests/Makefile"
22655
22656
Reid Spencera773bd52006-08-04 18:18:08 +000022657ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022658
22659
Reid Spencera773bd52006-08-04 18:18:08 +000022660ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022661
22662
Reid Spencera773bd52006-08-04 18:18:08 +000022663ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022664
22665
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022666ac_config_commands="$ac_config_commands bindings/Makefile"
22667
22668
22669ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22670
22671
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022672
John Criswell7a73b802003-06-30 21:59:07 +000022673cat >confcache <<\_ACEOF
22674# This file is a shell script that caches the results of configure
22675# tests run on this system so they can be shared between configure
22676# scripts and configure runs, see configure's option --config-cache.
22677# It is not useful on other systems. If it contains results you don't
22678# want to keep, you may remove or edit it.
22679#
22680# config.status only pays attention to the cache file if you give it
22681# the --recheck option to rerun configure.
22682#
John Criswell0c38eaf2003-09-10 15:17:25 +000022683# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000022684# loading this file, other *unset* `ac_cv_foo' will be assigned the
22685# following values.
22686
22687_ACEOF
22688
22689# The following way of writing the cache mishandles newlines in values,
22690# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000022691# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000022692# Ultrix sh set writes to stderr and can't be redirected directly,
22693# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000022694(
22695 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22696 eval ac_val=\$$ac_var
22697 case $ac_val in #(
22698 *${as_nl}*)
22699 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022700 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22701echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022702 esac
22703 case $ac_var in #(
22704 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022705 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022706 esac ;;
22707 esac
22708 done
22709
John Criswell7a73b802003-06-30 21:59:07 +000022710 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000022711 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22712 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022713 # `set' does not quote correctly, so add quotes (double-quote
22714 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000022715 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022716 "s/'/'\\\\''/g;
22717 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000022718 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000022719 *)
22720 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000022721 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000022722 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022723 esac |
22724 sort
22725) |
John Criswell7a73b802003-06-30 21:59:07 +000022726 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000022727 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000022728 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000022729 :clear
John Criswell7a73b802003-06-30 21:59:07 +000022730 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22731 t end
Reid Spencera773bd52006-08-04 18:18:08 +000022732 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22733 :end' >>confcache
22734if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22735 if test -w "$cache_file"; then
22736 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022737 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22738echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022739 cat confcache >$cache_file
22740 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022741 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22742echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022743 fi
22744fi
22745rm -f confcache
22746
22747test "x$prefix" = xNONE && prefix=$ac_default_prefix
22748# Let make expand exec_prefix.
22749test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22750
John Criswell7a73b802003-06-30 21:59:07 +000022751DEFS=-DHAVE_CONFIG_H
22752
John Criswell0c38eaf2003-09-10 15:17:25 +000022753ac_libobjs=
22754ac_ltlibobjs=
22755for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22756 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000022757 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022758 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000022759 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22760 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022761 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22762 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000022763done
22764LIBOBJS=$ac_libobjs
22765
22766LTLIBOBJS=$ac_ltlibobjs
22767
22768
Reid Spencer2bc7bd52004-11-29 12:29:58 +000022769if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022770 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22771Usually this means the macro was only invoked conditionally." >&5
22772echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22773Usually this means the macro was only invoked conditionally." >&2;}
22774 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000022775fi
22776if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022777 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22778Usually this means the macro was only invoked conditionally." >&5
22779echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22780Usually this means the macro was only invoked conditionally." >&2;}
22781 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000022782fi
John Criswell7a73b802003-06-30 21:59:07 +000022783
22784: ${CONFIG_STATUS=./config.status}
22785ac_clean_files_save=$ac_clean_files
22786ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022787{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22788echo "$as_me: creating $CONFIG_STATUS" >&6;}
22789cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022790#! $SHELL
22791# Generated by $as_me.
22792# Run this file to recreate the current configuration.
22793# Compiler output produced by configure, useful for debugging
22794# configure, is in config.log if it exists.
22795
22796debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000022797ac_cs_recheck=false
22798ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000022799SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022800_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022801
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022802cat >>$CONFIG_STATUS <<\_ACEOF
22803## --------------------- ##
22804## M4sh Initialization. ##
22805## --------------------- ##
22806
22807# Be Bourne compatible
22808if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000022809 emulate sh
22810 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022811 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000022812 # is contrary to our usage. Disable this feature.
22813 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000022814 setopt NO_GLOB_SUBST
22815else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022816 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000022817fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022818BIN_SH=xpg4; export BIN_SH # for Tru64
22819DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000022820
John Criswell7a73b802003-06-30 21:59:07 +000022821
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022822# PATH needs CR
22823# Avoid depending upon Character Ranges.
22824as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22825as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22826as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22827as_cr_digits='0123456789'
22828as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000022829
22830# The user is always right.
22831if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022832 echo "#! /bin/sh" >conf$$.sh
22833 echo "exit 0" >>conf$$.sh
22834 chmod +x conf$$.sh
22835 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22836 PATH_SEPARATOR=';'
22837 else
22838 PATH_SEPARATOR=:
22839 fi
22840 rm -f conf$$.sh
22841fi
22842
22843# Support unset when possible.
22844if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22845 as_unset=unset
22846else
22847 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000022848fi
John Criswell7a73b802003-06-30 21:59:07 +000022849
Reid Spencera773bd52006-08-04 18:18:08 +000022850
22851# IFS
22852# We need space, tab and new line, in precisely that order. Quoting is
22853# there to prevent editors from complaining about space-tab.
22854# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22855# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022856as_nl='
22857'
Reid Spencera773bd52006-08-04 18:18:08 +000022858IFS=" "" $as_nl"
22859
22860# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022861case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000022862 *[\\/]* ) as_myself=$0 ;;
22863 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000022864for as_dir in $PATH
22865do
22866 IFS=$as_save_IFS
22867 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022868 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22869done
Reid Spencera773bd52006-08-04 18:18:08 +000022870IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000022871
Reid Spencera773bd52006-08-04 18:18:08 +000022872 ;;
22873esac
22874# We did not find ourselves, most probably we were run as `sh COMMAND'
22875# in which case we are not to be found in the path.
22876if test "x$as_myself" = x; then
22877 as_myself=$0
22878fi
22879if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022880 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22881 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000022882fi
22883
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022884# Work around bugs in pre-3.0 UWIN ksh.
22885for as_var in ENV MAIL MAILPATH
22886do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000022887done
22888PS1='$ '
22889PS2='> '
22890PS4='+ '
22891
22892# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022893for as_var in \
22894 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22895 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22896 LC_TELEPHONE LC_TIME
22897do
22898 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22899 eval $as_var=C; export $as_var
22900 else
22901 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000022902 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022903done
Torok Edwin871384f2010-01-26 08:50:50 +000022904
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022905# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000022906if expr a : '\(a\)' >/dev/null 2>&1 &&
22907 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22908 as_expr=expr
22909else
22910 as_expr=false
22911fi
22912
22913if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22914 as_basename=basename
22915else
22916 as_basename=false
22917fi
22918
22919
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022920# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000022921as_me=`$as_basename -- "$0" ||
22922$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22923 X"$0" : 'X\(//\)$' \| \
22924 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022925echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000022926 sed '/^.*\/\([^/][^/]*\)\/*$/{
22927 s//\1/
22928 q
22929 }
22930 /^X\/\(\/\/\)$/{
22931 s//\1/
22932 q
22933 }
22934 /^X\/\(\/\).*/{
22935 s//\1/
22936 q
22937 }
22938 s/.*/./; q'`
22939
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022940# CDPATH.
22941$as_unset CDPATH
22942
22943
22944
22945 as_lineno_1=$LINENO
22946 as_lineno_2=$LINENO
22947 test "x$as_lineno_1" != "x$as_lineno_2" &&
22948 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22949
22950 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22951 # uniformly replaced by the line number. The first 'sed' inserts a
22952 # line-number line after each line using $LINENO; the second 'sed'
22953 # does the real work. The second script uses 'N' to pair each
22954 # line-number line with the line containing $LINENO, and appends
22955 # trailing '-' during substitution so that $LINENO is not a special
22956 # case at line end.
22957 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22958 # scripts with optimization help from Paolo Bonzini. Blame Lee
22959 # E. McMahon (1931-1989) for sed's syntax. :-)
22960 sed -n '
22961 p
22962 /[$]LINENO/=
22963 ' <$as_myself |
22964 sed '
22965 s/[$]LINENO.*/&-/
22966 t lineno
22967 b
22968 :lineno
22969 N
22970 :loop
22971 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22972 t loop
22973 s/-\n.*//
22974 ' >$as_me.lineno &&
22975 chmod +x "$as_me.lineno" ||
22976 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22977 { (exit 1); exit 1; }; }
22978
22979 # Don't try to exec as it changes $[0], causing all sort of problems
22980 # (the dirname of $[0] is not the place where we might find the
22981 # original and so on. Autoconf is especially sensitive to this).
22982 . "./$as_me.lineno"
22983 # Exit status is that of the last command.
22984 exit
22985}
22986
22987
22988if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22989 as_dirname=dirname
22990else
22991 as_dirname=false
22992fi
Reid Spencera773bd52006-08-04 18:18:08 +000022993
22994ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022995case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000022996-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022997 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000022998 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022999 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000023000 esac;;
23001*)
23002 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000023003esac
23004
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023005if expr a : '\(a\)' >/dev/null 2>&1 &&
23006 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23007 as_expr=expr
23008else
23009 as_expr=false
23010fi
23011
John Criswell7a73b802003-06-30 21:59:07 +000023012rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000023013if test -d conf$$.dir; then
23014 rm -f conf$$.dir/conf$$.file
23015else
23016 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023017 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000023018fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023019echo >conf$$.file
23020if ln -s conf$$.file conf$$ 2>/dev/null; then
23021 as_ln_s='ln -s'
23022 # ... but there are two gotchas:
23023 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23024 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23025 # In both cases, we have to default to `cp -p'.
23026 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000023027 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023028elif ln conf$$.file conf$$ 2>/dev/null; then
23029 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000023030else
23031 as_ln_s='cp -p'
23032fi
Reid Spencera773bd52006-08-04 18:18:08 +000023033rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23034rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000023035
John Criswell0c38eaf2003-09-10 15:17:25 +000023036if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023037 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000023038else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023039 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000023040 as_mkdir_p=false
23041fi
23042
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023043# Find out whether ``test -x'' works. Don't use a zero-byte file, as
23044# systems may use methods other than mode bits to determine executability.
23045cat >conf$$.file <<_ASEOF
23046#! /bin/sh
23047exit 0
23048_ASEOF
23049chmod +x conf$$.file
23050if test -x conf$$.file >/dev/null 2>&1; then
23051 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000023052else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023053 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000023054fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023055rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000023056
23057# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023058as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000023059
23060# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023061as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000023062
23063
John Criswell7a73b802003-06-30 21:59:07 +000023064exec 6>&1
23065
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023066# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000023067# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000023068# values after options handling.
23069ac_log="
Bill Wendlingebc2fc12011-03-08 03:00:02 +000023070This file was extended by llvm $as_me 3.0svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023071generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000023072
23073 CONFIG_FILES = $CONFIG_FILES
23074 CONFIG_HEADERS = $CONFIG_HEADERS
23075 CONFIG_LINKS = $CONFIG_LINKS
23076 CONFIG_COMMANDS = $CONFIG_COMMANDS
23077 $ $0 $@
23078
Reid Spencera773bd52006-08-04 18:18:08 +000023079on `(hostname || uname -n) 2>/dev/null | sed 1q`
23080"
23081
John Criswell7a73b802003-06-30 21:59:07 +000023082_ACEOF
23083
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023084cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023085# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000023086config_files="$ac_config_files"
23087config_headers="$ac_config_headers"
23088config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000023089
Reid Spencera773bd52006-08-04 18:18:08 +000023090_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023091
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023092cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023093ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023094\`$as_me' instantiates files from templates according to the
23095current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000023096
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023097Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000023098
23099 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023100 -V, --version print version number, then exit
23101 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000023102 -d, --debug don't remove temporary files
23103 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023104 --file=FILE[:TEMPLATE]
23105 instantiate the configuration file FILE
23106 --header=FILE[:TEMPLATE]
23107 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000023108
23109Configuration files:
23110$config_files
23111
23112Configuration headers:
23113$config_headers
23114
John Criswellc764fbc2003-09-06 15:17:13 +000023115Configuration commands:
23116$config_commands
23117
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023118Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000023119
Reid Spencera773bd52006-08-04 18:18:08 +000023120_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023121cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023122ac_cs_version="\\
Bill Wendlingebc2fc12011-03-08 03:00:02 +000023123llvm config.status 3.0svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023124configured by $0, generated by GNU Autoconf 2.60,
23125 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000023126
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023127Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000023128This config.status script is free software; the Free Software Foundation
23129gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000023130
23131ac_pwd='$ac_pwd'
23132srcdir='$srcdir'
23133INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000023134_ACEOF
23135
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023136cat >>$CONFIG_STATUS <<\_ACEOF
23137# If no file are specified by the user, then we need to provide default
23138# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000023139ac_need_defaults=:
23140while test $# != 0
23141do
23142 case $1 in
23143 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000023144 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23145 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023146 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000023147 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023148 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000023149 ac_option=$1
23150 ac_optarg=$2
23151 ac_shift=shift
23152 ;;
John Criswell7a73b802003-06-30 21:59:07 +000023153 esac
23154
John Criswell0c38eaf2003-09-10 15:17:25 +000023155 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000023156 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000023157 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23158 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023159 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023160 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023161 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000023162 debug=: ;;
23163 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000023164 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023165 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023166 ac_need_defaults=false;;
23167 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000023168 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023169 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023170 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000023171 --he | --h)
23172 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023173 { echo "$as_me: error: ambiguous option: $1
23174Try \`$0 --help' for more information." >&2
23175 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000023176 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023177 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023178 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23179 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23180 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023181
23182 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023183 -*) { echo "$as_me: error: unrecognized option: $1
23184Try \`$0 --help' for more information." >&2
23185 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000023186
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023187 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000023188 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000023189
23190 esac
23191 shift
23192done
23193
John Criswell0c38eaf2003-09-10 15:17:25 +000023194ac_configure_extra_args=
23195
23196if $ac_cs_silent; then
23197 exec 6>/dev/null
23198 ac_configure_extra_args="$ac_configure_extra_args --silent"
23199fi
23200
23201_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023202cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023203if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023204 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23205 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000023206 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023207 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000023208fi
23209
John Criswell7a73b802003-06-30 21:59:07 +000023210_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023211cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000023212exec 5>>config.log
23213{
23214 echo
23215 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23216## Running $as_me. ##
23217_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023218 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000023219} >&5
John Criswell7a73b802003-06-30 21:59:07 +000023220
Reid Spencera773bd52006-08-04 18:18:08 +000023221_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023222cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000023223#
Reid Spencera773bd52006-08-04 18:18:08 +000023224# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000023225#
Reid Spencerc0682832005-02-24 19:05:19 +000023226llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000023227
23228_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023229
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023230cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000023231
23232# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000023233for ac_config_target in $ac_config_targets
23234do
Reid Spencera773bd52006-08-04 18:18:08 +000023235 case $ac_config_target in
23236 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000023237 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000023238 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
23239 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000023240 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000023241 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000023242 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023243 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000023244 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Peter Collingbourne7be3a602011-05-13 03:27:56 +000023245 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
23246 "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
Mikhail Glushenkov4b643c02010-08-15 07:07:17 +000023247 "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023248 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
23249 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
23250 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23251 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23252 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
23253 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000023254 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023255 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23256 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000023257 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023258 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23259 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23260 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000023261 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
23262 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023263
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023264 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23265echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23266 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000023267 esac
23268done
23269
Reid Spencera773bd52006-08-04 18:18:08 +000023270
John Criswell7a73b802003-06-30 21:59:07 +000023271# If the user did not use the arguments to specify the items to instantiate,
23272# then the envvar interface is used. Set only those that are not.
23273# We use the long form for the default assignment because of an extremely
23274# bizarre bug on SunOS 4.1.3.
23275if $ac_need_defaults; then
23276 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23277 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000023278 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000023279fi
23280
John Criswell0c38eaf2003-09-10 15:17:25 +000023281# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000023282# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000023283# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000023284# Hook for its removal unless debugging.
23285# Note that there is a small window in which the directory will not be cleaned:
23286# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000023287$debug ||
23288{
Reid Spencera773bd52006-08-04 18:18:08 +000023289 tmp=
23290 trap 'exit_status=$?
23291 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23292' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023293 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000023294}
John Criswell7a73b802003-06-30 21:59:07 +000023295# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000023296
John Criswell7a73b802003-06-30 21:59:07 +000023297{
Reid Spencera773bd52006-08-04 18:18:08 +000023298 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000023299 test -n "$tmp" && test -d "$tmp"
23300} ||
23301{
Reid Spencera773bd52006-08-04 18:18:08 +000023302 tmp=./conf$$-$RANDOM
23303 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023304} ||
23305{
23306 echo "$me: cannot create a temporary directory in ." >&2
23307 { (exit 1); exit 1; }
23308}
John Criswell7a73b802003-06-30 21:59:07 +000023309
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023310#
23311# Set up the sed scripts for CONFIG_FILES section.
23312#
23313
23314# No need to generate the scripts if there are no CONFIG_FILES.
23315# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000023316if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000023317
23318_ACEOF
23319
Reid Spencera773bd52006-08-04 18:18:08 +000023320
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023321
Reid Spencera773bd52006-08-04 18:18:08 +000023322ac_delim='%!_!# '
23323for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023324 cat >conf$$subs.sed <<_ACEOF
23325SHELL!$SHELL$ac_delim
23326PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23327PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23328PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23329PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23330PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23331PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23332exec_prefix!$exec_prefix$ac_delim
23333prefix!$prefix$ac_delim
23334program_transform_name!$program_transform_name$ac_delim
23335bindir!$bindir$ac_delim
23336sbindir!$sbindir$ac_delim
23337libexecdir!$libexecdir$ac_delim
23338datarootdir!$datarootdir$ac_delim
23339datadir!$datadir$ac_delim
23340sysconfdir!$sysconfdir$ac_delim
23341sharedstatedir!$sharedstatedir$ac_delim
23342localstatedir!$localstatedir$ac_delim
23343includedir!$includedir$ac_delim
23344oldincludedir!$oldincludedir$ac_delim
23345docdir!$docdir$ac_delim
23346infodir!$infodir$ac_delim
23347htmldir!$htmldir$ac_delim
23348dvidir!$dvidir$ac_delim
23349pdfdir!$pdfdir$ac_delim
23350psdir!$psdir$ac_delim
23351libdir!$libdir$ac_delim
23352localedir!$localedir$ac_delim
23353mandir!$mandir$ac_delim
23354DEFS!$DEFS$ac_delim
23355ECHO_C!$ECHO_C$ac_delim
23356ECHO_N!$ECHO_N$ac_delim
23357ECHO_T!$ECHO_T$ac_delim
23358LIBS!$LIBS$ac_delim
23359build_alias!$build_alias$ac_delim
23360host_alias!$host_alias$ac_delim
23361target_alias!$target_alias$ac_delim
23362LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23363subdirs!$subdirs$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000023364ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23365LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023366build!$build$ac_delim
23367build_cpu!$build_cpu$ac_delim
23368build_vendor!$build_vendor$ac_delim
23369build_os!$build_os$ac_delim
23370host!$host$ac_delim
23371host_cpu!$host_cpu$ac_delim
23372host_vendor!$host_vendor$ac_delim
23373host_os!$host_os$ac_delim
23374target!$target$ac_delim
23375target_cpu!$target_cpu$ac_delim
23376target_vendor!$target_vendor$ac_delim
23377target_os!$target_os$ac_delim
23378OS!$OS$ac_delim
23379HOST_OS!$HOST_OS$ac_delim
23380TARGET_OS!$TARGET_OS$ac_delim
23381LINKALL!$LINKALL$ac_delim
23382NOLINKALL!$NOLINKALL$ac_delim
23383LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23384LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23385ARCH!$ARCH$ac_delim
23386ENDIAN!$ENDIAN$ac_delim
23387CC!$CC$ac_delim
23388CFLAGS!$CFLAGS$ac_delim
23389LDFLAGS!$LDFLAGS$ac_delim
23390CPPFLAGS!$CPPFLAGS$ac_delim
23391ac_ct_CC!$ac_ct_CC$ac_delim
23392EXEEXT!$EXEEXT$ac_delim
23393OBJEXT!$OBJEXT$ac_delim
23394CPP!$CPP$ac_delim
23395GREP!$GREP$ac_delim
23396EGREP!$EGREP$ac_delim
23397LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23398BUILD_CC!$BUILD_CC$ac_delim
23399BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23400BUILD_CXX!$BUILD_CXX$ac_delim
23401CVSBUILD!$CVSBUILD$ac_delim
23402ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23403ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23404DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23405ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23406EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23407DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23408DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23409JIT!$JIT$ac_delim
23410TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000023411ENABLE_DOCS!$ENABLE_DOCS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023412ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23413ENABLE_THREADS!$ENABLE_THREADS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000023414ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023415ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000023416ENABLE_SHARED!$ENABLE_SHARED$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000023417ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
Daniel Dunbardd464df2010-05-10 20:11:56 +000023418ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023419TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23420LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23421LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023422_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000023423
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023424 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000023425 break
23426 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023427 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23428echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23429 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000023430 else
23431 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000023432 fi
Reid Spencera773bd52006-08-04 18:18:08 +000023433done
23434
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023435ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23436if test -n "$ac_eof"; then
23437 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23438 ac_eof=`expr $ac_eof + 1`
23439fi
23440
23441cat >>$CONFIG_STATUS <<_ACEOF
23442cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23443/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000023444_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023445sed '
23446s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23447s/^/s,@/; s/!/@,|#_!!_#|/
23448:n
23449t n
23450s/'"$ac_delim"'$/,g/; t
23451s/$/\\/; p
23452N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23453' >>$CONFIG_STATUS <conf$$subs.sed
23454rm -f conf$$subs.sed
23455cat >>$CONFIG_STATUS <<_ACEOF
23456CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000023457_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023458
23459
23460ac_delim='%!_!# '
23461for ac_last_try in false false false false false :; do
23462 cat >conf$$subs.sed <<_ACEOF
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000023463LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000023464LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000023465ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000023466CLANGPATH!$CLANGPATH$ac_delim
23467CLANGXXPATH!$CLANGXXPATH$ac_delim
Daniel Dunbardd464df2010-05-10 20:11:56 +000023468ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000023469OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000023470EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Daniel Dunbared344d22011-06-16 22:30:41 +000023471EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000023472BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023473CXX!$CXX$ac_delim
23474CXXFLAGS!$CXXFLAGS$ac_delim
23475ac_ct_CXX!$ac_ct_CXX$ac_delim
23476NM!$NM$ac_delim
23477ifGNUmake!$ifGNUmake$ac_delim
23478LN_S!$LN_S$ac_delim
23479CMP!$CMP$ac_delim
23480CP!$CP$ac_delim
23481DATE!$DATE$ac_delim
23482FIND!$FIND$ac_delim
23483MKDIR!$MKDIR$ac_delim
23484MV!$MV$ac_delim
23485RANLIB!$RANLIB$ac_delim
23486AR!$AR$ac_delim
23487RM!$RM$ac_delim
23488SED!$SED$ac_delim
23489TAR!$TAR$ac_delim
23490BINPWD!$BINPWD$ac_delim
23491GRAPHVIZ!$GRAPHVIZ$ac_delim
23492DOT!$DOT$ac_delim
23493FDP!$FDP$ac_delim
23494NEATO!$NEATO$ac_delim
23495TWOPI!$TWOPI$ac_delim
23496CIRCO!$CIRCO$ac_delim
23497GV!$GV$ac_delim
23498DOTTY!$DOTTY$ac_delim
Dan Gohman48fd5a72010-09-27 16:28:34 +000023499XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023500PERL!$PERL$ac_delim
23501HAVE_PERL!$HAVE_PERL$ac_delim
23502INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23503INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23504INSTALL_DATA!$INSTALL_DATA$ac_delim
23505BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000023506CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023507DOXYGEN!$DOXYGEN$ac_delim
23508GROFF!$GROFF$ac_delim
Eric Christopher031d3072010-12-10 01:31:51 +000023509GZIPBIN!$GZIPBIN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023510POD2HTML!$POD2HTML$ac_delim
23511POD2MAN!$POD2MAN$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000023512PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023513RUNTEST!$RUNTEST$ac_delim
23514TCLSH!$TCLSH$ac_delim
23515ZIP!$ZIP$ac_delim
23516OCAMLC!$OCAMLC$ac_delim
23517OCAMLOPT!$OCAMLOPT$ac_delim
23518OCAMLDEP!$OCAMLDEP$ac_delim
23519OCAMLDOC!$OCAMLDOC$ac_delim
23520GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000023521HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023522INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23523INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23524CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23525CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23526LIBADD_DL!$LIBADD_DL$ac_delim
23527LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
23528LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
23529LLVMGCC!$LLVMGCC$ac_delim
23530LLVMGXX!$LLVMGXX$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000023531LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023532NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23533NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23534USE_UDIS86!$USE_UDIS86$ac_delim
23535USE_OPROFILE!$USE_OPROFILE$ac_delim
23536HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23537HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23538MMAP_FILE!$MMAP_FILE$ac_delim
Tobias Grossera84b5672010-11-10 16:31:34 +000023539LLVMCC_EMITIR_FLAG!$LLVMCC_EMITIR_FLAG$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023540LLVMCC1!$LLVMCC1$ac_delim
23541LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
23542LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023543LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Tobias Grossera84b5672010-11-10 16:31:34 +000023544LLVMGCC_DRAGONEGG!$LLVMGCC_DRAGONEGG$ac_delim
Eric Christopher481d4022010-12-03 07:45:22 +000023545LLVMCC_DISABLEOPT_FLAGS!$LLVMCC_DISABLEOPT_FLAGS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023546SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000023547SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023548LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23549LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23550LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
23551LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23552LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23553LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23554LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23555LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23556LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23557LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23558BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23559ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000023560_ACEOF
23561
Tobias Grossera84b5672010-11-10 16:31:34 +000023562 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023563 break
23564 elif $ac_last_try; then
23565 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23566echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23567 { (exit 1); exit 1; }; }
23568 else
23569 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23570 fi
23571done
23572
23573ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23574if test -n "$ac_eof"; then
23575 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23576 ac_eof=`expr $ac_eof + 1`
23577fi
23578
23579cat >>$CONFIG_STATUS <<_ACEOF
23580cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Tobias Grosserbaaadb22010-10-30 00:54:26 +000023581/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023582_ACEOF
23583sed '
23584s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23585s/^/s,@/; s/!/@,|#_!!_#|/
23586:n
23587t n
23588s/'"$ac_delim"'$/,g/; t
23589s/$/\\/; p
23590N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23591' >>$CONFIG_STATUS <conf$$subs.sed
23592rm -f conf$$subs.sed
23593cat >>$CONFIG_STATUS <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023594CEOF$ac_eof
23595_ACEOF
23596
23597
Tobias Grossera84b5672010-11-10 16:31:34 +000023598ac_delim='%!_!# '
23599for ac_last_try in false false false false false :; do
23600 cat >conf$$subs.sed <<_ACEOF
Daniel Dunbared344d22011-06-16 22:30:41 +000023601OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000023602ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000023603RPATH!$RPATH$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000023604RDYNAMIC!$RDYNAMIC$ac_delim
Tobias Grossera84b5672010-11-10 16:31:34 +000023605LIBOBJS!$LIBOBJS$ac_delim
23606LTLIBOBJS!$LTLIBOBJS$ac_delim
23607_ACEOF
23608
Daniel Dunbared344d22011-06-16 22:30:41 +000023609 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
Tobias Grossera84b5672010-11-10 16:31:34 +000023610 break
23611 elif $ac_last_try; then
23612 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23613echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23614 { (exit 1); exit 1; }; }
23615 else
23616 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23617 fi
23618done
23619
23620ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23621if test -n "$ac_eof"; then
23622 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23623 ac_eof=`expr $ac_eof + 1`
23624fi
23625
23626cat >>$CONFIG_STATUS <<_ACEOF
23627cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23628/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23629_ACEOF
23630sed '
23631s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23632s/^/s,@/; s/!/@,|#_!!_#|/
23633:n
23634t n
23635s/'"$ac_delim"'$/,g/; t
23636s/$/\\/; p
23637N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23638' >>$CONFIG_STATUS <conf$$subs.sed
23639rm -f conf$$subs.sed
23640cat >>$CONFIG_STATUS <<_ACEOF
23641:end
23642s/|#_!!_#|//g
23643CEOF$ac_eof
23644_ACEOF
23645
23646
Reid Spencera773bd52006-08-04 18:18:08 +000023647# VPATH may cause trouble with some makes, so we remove $(srcdir),
23648# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23649# trailing colons and then remove the whole line if VPATH becomes empty
23650# (actually we leave an empty line to preserve line numbers).
23651if test "x$srcdir" = x.; then
23652 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23653s/:*\$(srcdir):*/:/
23654s/:*\${srcdir}:*/:/
23655s/:*@srcdir@:*/:/
23656s/^\([^=]*=[ ]*\):*/\1/
23657s/:*$//
23658s/^[^=]*=[ ]*$//
23659}'
23660fi
23661
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023662cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023663fi # test -n "$CONFIG_FILES"
23664
Reid Spencera773bd52006-08-04 18:18:08 +000023665
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023666for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000023667do
23668 case $ac_tag in
23669 :[FHLC]) ac_mode=$ac_tag; continue;;
23670 esac
23671 case $ac_mode$ac_tag in
23672 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023673 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23674echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23675 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000023676 :[FH]-) ac_tag=-:-;;
23677 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23678 esac
23679 ac_save_IFS=$IFS
23680 IFS=:
23681 set x $ac_tag
23682 IFS=$ac_save_IFS
23683 shift
23684 ac_file=$1
23685 shift
23686
23687 case $ac_mode in
23688 :L) ac_source=$1;;
23689 :[FH])
23690 ac_file_inputs=
23691 for ac_f
23692 do
23693 case $ac_f in
23694 -) ac_f="$tmp/stdin";;
23695 *) # Look for the file first in the build tree, then in the source tree
23696 # (if the path is not absolute). The absolute path cannot be DOS-style,
23697 # because $ac_f cannot contain `:'.
23698 test -f "$ac_f" ||
23699 case $ac_f in
23700 [\\/$]*) false;;
23701 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23702 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023703 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23704echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23705 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000023706 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023707 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000023708 done
23709
23710 # Let's still pretend it is `configure' which instantiates (i.e., don't
23711 # use $as_me), people would be surprised to read:
23712 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023713 configure_input="Generated from "`IFS=:
23714 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000023715 if test x"$ac_file" != x-; then
23716 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023717 { echo "$as_me:$LINENO: creating $ac_file" >&5
23718echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000023719 fi
23720
23721 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023722 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000023723 esac
23724 ;;
John Criswell7a73b802003-06-30 21:59:07 +000023725 esac
23726
Reid Spencera773bd52006-08-04 18:18:08 +000023727 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000023728$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000023729 X"$ac_file" : 'X\(//\)[^/]' \| \
23730 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000023731 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023732echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000023733 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23734 s//\1/
23735 q
23736 }
23737 /^X\(\/\/\)[^/].*/{
23738 s//\1/
23739 q
23740 }
23741 /^X\(\/\/\)$/{
23742 s//\1/
23743 q
23744 }
23745 /^X\(\/\).*/{
23746 s//\1/
23747 q
23748 }
23749 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023750 { as_dir="$ac_dir"
23751 case $as_dir in #(
23752 -*) as_dir=./$as_dir;;
23753 esac
23754 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23755 as_dirs=
23756 while :; do
23757 case $as_dir in #(
23758 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23759 *) as_qdir=$as_dir;;
23760 esac
23761 as_dirs="'$as_qdir' $as_dirs"
23762 as_dir=`$as_dirname -- "$as_dir" ||
23763$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23764 X"$as_dir" : 'X\(//\)[^/]' \| \
23765 X"$as_dir" : 'X\(//\)$' \| \
23766 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23767echo X"$as_dir" |
23768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23769 s//\1/
23770 q
23771 }
23772 /^X\(\/\/\)[^/].*/{
23773 s//\1/
23774 q
23775 }
23776 /^X\(\/\/\)$/{
23777 s//\1/
23778 q
23779 }
23780 /^X\(\/\).*/{
23781 s//\1/
23782 q
23783 }
23784 s/.*/./; q'`
23785 test -d "$as_dir" && break
23786 done
23787 test -z "$as_dirs" || eval "mkdir $as_dirs"
23788 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23789echo "$as_me: error: cannot create directory $as_dir" >&2;}
23790 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000023791 ac_builddir=.
23792
Reid Spencera773bd52006-08-04 18:18:08 +000023793case "$ac_dir" in
23794.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23795*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023796 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000023797 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023798 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000023799 case $ac_top_builddir_sub in
23800 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23801 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23802 esac ;;
23803esac
23804ac_abs_top_builddir=$ac_pwd
23805ac_abs_builddir=$ac_pwd$ac_dir_suffix
23806# for backward compatibility:
23807ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000023808
23809case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000023810 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000023811 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000023812 ac_top_srcdir=$ac_top_builddir_sub
23813 ac_abs_top_srcdir=$ac_pwd ;;
23814 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000023815 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000023816 ac_top_srcdir=$srcdir
23817 ac_abs_top_srcdir=$srcdir ;;
23818 *) # Relative name.
23819 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23820 ac_top_srcdir=$ac_top_build_prefix$srcdir
23821 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000023822esac
Reid Spencera773bd52006-08-04 18:18:08 +000023823ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000023824
John Criswell7a73b802003-06-30 21:59:07 +000023825
Reid Spencera773bd52006-08-04 18:18:08 +000023826 case $ac_mode in
23827 :F)
23828 #
23829 # CONFIG_FILE
23830 #
John Criswell7a73b802003-06-30 21:59:07 +000023831
23832 case $INSTALL in
23833 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023834 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000023835 esac
John Criswell7a73b802003-06-30 21:59:07 +000023836_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000023837
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023838cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000023839# If the template does not know about datarootdir, expand it.
23840# FIXME: This hack should be removed a few years after 2.60.
23841ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023842
23843case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000023844 p
23845 q
23846}
23847/@datadir@/p
23848/@docdir@/p
23849/@infodir@/p
23850/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023851/@mandir@/p
23852' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000023853*datarootdir*) ac_datarootdir_seen=yes;;
23854*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023855 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23856echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000023857_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023858cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000023859 ac_datarootdir_hack='
23860 s&@datadir@&$datadir&g
23861 s&@docdir@&$docdir&g
23862 s&@infodir@&$infodir&g
23863 s&@localedir@&$localedir&g
23864 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023865 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023866esac
23867_ACEOF
23868
23869# Neutralize VPATH when `$srcdir' = `.'.
23870# Shell code in configure.ac might set extrasub.
23871# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023872cat >>$CONFIG_STATUS <<_ACEOF
23873 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000023874$extrasub
23875_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023876cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023877:t
23878/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023879s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000023880s&@top_builddir@&$ac_top_builddir_sub&;t t
23881s&@srcdir@&$ac_srcdir&;t t
23882s&@abs_srcdir@&$ac_abs_srcdir&;t t
23883s&@top_srcdir@&$ac_top_srcdir&;t t
23884s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23885s&@builddir@&$ac_builddir&;t t
23886s&@abs_builddir@&$ac_abs_builddir&;t t
23887s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23888s&@INSTALL@&$ac_INSTALL&;t t
23889$ac_datarootdir_hack
Tobias Grossera84b5672010-11-10 16:31:34 +000023890" $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 +000023891
Reid Spencera773bd52006-08-04 18:18:08 +000023892test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23893 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23894 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023895 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000023896which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023897echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000023898which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000023899
Reid Spencera773bd52006-08-04 18:18:08 +000023900 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000023901 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023902 -) cat "$tmp/out"; rm -f "$tmp/out";;
23903 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23904 esac
Reid Spencera773bd52006-08-04 18:18:08 +000023905 ;;
23906 :H)
23907 #
23908 # CONFIG_HEADER
23909 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023910_ACEOF
23911
23912# Transform confdefs.h into a sed script `conftest.defines', that
23913# substitutes the proper values into config.h.in to produce config.h.
23914rm -f conftest.defines conftest.tail
23915# First, append a space to every undef/define line, to ease matching.
23916echo 's/$/ /' >conftest.defines
23917# Then, protect against being on the right side of a sed subst, or in
23918# an unquoted here document, in config.status. If some macros were
23919# called several times there might be several #defines for the same
23920# symbol, which is useless. But do not sort them, since the last
23921# AC_DEFINE must be honored.
23922ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23923# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23924# NAME is the cpp macro being defined, VALUE is the value it is being given.
23925# PARAMS is the parameter list in the macro definition--in most cases, it's
23926# just an empty string.
23927ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23928ac_dB='\\)[ (].*,\\1define\\2'
23929ac_dC=' '
23930ac_dD=' ,'
23931
23932uniq confdefs.h |
23933 sed -n '
23934 t rset
23935 :rset
23936 s/^[ ]*#[ ]*define[ ][ ]*//
23937 t ok
23938 d
23939 :ok
23940 s/[\\&,]/\\&/g
23941 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23942 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23943 ' >>conftest.defines
23944
23945# Remove the space that was appended to ease matching.
23946# Then replace #undef with comments. This is necessary, for
23947# example, in the case of _POSIX_SOURCE, which is predefined and required
23948# on some systems where configure will not decide to define it.
23949# (The regexp can be short, since the line contains either #define or #undef.)
23950echo 's/ $//
23951s,^[ #]*u.*,/* & */,' >>conftest.defines
23952
23953# Break up conftest.defines:
23954ac_max_sed_lines=50
23955
23956# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23957# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23958# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23959# et cetera.
23960ac_in='$ac_file_inputs'
23961ac_out='"$tmp/out1"'
23962ac_nxt='"$tmp/out2"'
23963
23964while :
23965do
23966 # Write a here document:
23967 cat >>$CONFIG_STATUS <<_ACEOF
23968 # First, check the format of the line:
23969 cat >"\$tmp/defines.sed" <<\\CEOF
23970/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23971/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23972b
23973:def
23974_ACEOF
23975 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23976 echo 'CEOF
23977 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23978 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23979 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23980 grep . conftest.tail >/dev/null || break
23981 rm -f conftest.defines
23982 mv conftest.tail conftest.defines
23983done
23984rm -f conftest.defines conftest.tail
23985
23986echo "ac_result=$ac_in" >>$CONFIG_STATUS
23987cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023988 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023989 echo "/* $configure_input */" >"$tmp/config.h"
23990 cat "$ac_result" >>"$tmp/config.h"
23991 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23992 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23993echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000023994 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023995 rm -f $ac_file
23996 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000023997 fi
23998 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023999 echo "/* $configure_input */"
24000 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000024001 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024002 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000024003 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024004
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024005 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24006echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000024007 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024008 esac
John Criswell7a73b802003-06-30 21:59:07 +000024009
Reid Spencera773bd52006-08-04 18:18:08 +000024010
24011 case $ac_file$ac_mode in
24012 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000024013 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024014 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000024015 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024016 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000024017 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024018 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000024019 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000024020 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000024021 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024022 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000024023 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024024 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000024025 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000024026 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000024027 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024028 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000024029 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024030 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000024031 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024032 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000024033 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000024034 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000024035 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000024036 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000024037 ${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 +000024038
24039 esac
24040done # for ac_tag
24041
John Criswell7a73b802003-06-30 21:59:07 +000024042
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024043{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000024044_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024045chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024046ac_clean_files=$ac_clean_files_save
24047
24048
24049# configure is writing to config.log, and then calls config.status.
24050# config.status does its own redirection, appending to config.log.
24051# Unfortunately, on DOS this fails, as config.log is still kept open
24052# by configure, so config.status won't be able to write to it; its
24053# output is simply discarded. So we exec the FD to /dev/null,
24054# effectively closing config.log, so it can be properly (re)opened and
24055# appended to by config.status. When coming back to configure, we
24056# need to make the FD available again.
24057if test "$no_create" != yes; then
24058 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000024059 ac_config_status_args=
24060 test "$silent" = yes &&
24061 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000024062 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000024063 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000024064 exec 5>>config.log
24065 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24066 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024067 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000024068fi
24069
John Criswell12399a12003-09-30 15:55:44 +000024070#
24071# CONFIG_SUBDIRS section.
24072#
24073if test "$no_recursion" != yes; then
24074
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024075 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000024076 ac_sub_configure_args=
24077 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000024078 eval "set x $ac_configure_args"
24079 shift
24080 for ac_arg
24081 do
John Criswell12399a12003-09-30 15:55:44 +000024082 if test -n "$ac_prev"; then
24083 ac_prev=
24084 continue
24085 fi
24086 case $ac_arg in
24087 -cache-file | --cache-file | --cache-fil | --cache-fi \
24088 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24089 ac_prev=cache_file ;;
24090 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24091 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24092 | --c=*)
24093 ;;
24094 --config-cache | -C)
24095 ;;
24096 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24097 ac_prev=srcdir ;;
24098 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24099 ;;
24100 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24101 ac_prev=prefix ;;
24102 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24103 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024104 *)
24105 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024106 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024107 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024108 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000024109 esac
24110 done
24111
24112 # Always prepend --prefix to ensure using the same prefix
24113 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000024114 ac_arg="--prefix=$prefix"
24115 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024116 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024117 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024118 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000024119
24120 ac_popdir=`pwd`
24121 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24122
24123 # Do not complain, so a configure script can configure whichever
24124 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000024125 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000024126
Reid Spencera773bd52006-08-04 18:18:08 +000024127 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024128 echo "$as_me:$LINENO: $ac_msg" >&5
24129 echo "$ac_msg" >&6
24130 { as_dir="$ac_dir"
24131 case $as_dir in #(
24132 -*) as_dir=./$as_dir;;
24133 esac
24134 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24135 as_dirs=
24136 while :; do
24137 case $as_dir in #(
24138 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24139 *) as_qdir=$as_dir;;
24140 esac
24141 as_dirs="'$as_qdir' $as_dirs"
24142 as_dir=`$as_dirname -- "$as_dir" ||
24143$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24144 X"$as_dir" : 'X\(//\)[^/]' \| \
24145 X"$as_dir" : 'X\(//\)$' \| \
24146 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24147echo X"$as_dir" |
24148 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24149 s//\1/
24150 q
24151 }
24152 /^X\(\/\/\)[^/].*/{
24153 s//\1/
24154 q
24155 }
24156 /^X\(\/\/\)$/{
24157 s//\1/
24158 q
24159 }
24160 /^X\(\/\).*/{
24161 s//\1/
24162 q
24163 }
24164 s/.*/./; q'`
24165 test -d "$as_dir" && break
24166 done
24167 test -z "$as_dirs" || eval "mkdir $as_dirs"
24168 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24169echo "$as_me: error: cannot create directory $as_dir" >&2;}
24170 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000024171 ac_builddir=.
24172
Reid Spencera773bd52006-08-04 18:18:08 +000024173case "$ac_dir" in
24174.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24175*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024176 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000024177 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024178 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000024179 case $ac_top_builddir_sub in
24180 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24181 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24182 esac ;;
24183esac
24184ac_abs_top_builddir=$ac_pwd
24185ac_abs_builddir=$ac_pwd$ac_dir_suffix
24186# for backward compatibility:
24187ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000024188
24189case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000024190 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000024191 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000024192 ac_top_srcdir=$ac_top_builddir_sub
24193 ac_abs_top_srcdir=$ac_pwd ;;
24194 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000024195 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000024196 ac_top_srcdir=$srcdir
24197 ac_abs_top_srcdir=$srcdir ;;
24198 *) # Relative name.
24199 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24200 ac_top_srcdir=$ac_top_build_prefix$srcdir
24201 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000024202esac
Reid Spencera773bd52006-08-04 18:18:08 +000024203ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000024204
24205
Reid Spencera773bd52006-08-04 18:18:08 +000024206 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000024207
24208 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000024209 if test -f "$ac_srcdir/configure.gnu"; then
24210 ac_sub_configure=$ac_srcdir/configure.gnu
24211 elif test -f "$ac_srcdir/configure"; then
24212 ac_sub_configure=$ac_srcdir/configure
24213 elif test -f "$ac_srcdir/configure.in"; then
24214 # This should be Cygnus configure.
24215 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000024216 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024217 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24218echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000024219 ac_sub_configure=
24220 fi
24221
24222 # The recursion is here.
24223 if test -n "$ac_sub_configure"; then
24224 # Make the cache file name correct relative to the subdirectory.
24225 case $cache_file in
24226 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024227 *) # Relative name.
24228 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000024229 esac
24230
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024231 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24232echo "$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 +000024233 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000024234 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24235 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024236 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24237echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24238 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000024239 fi
24240
Reid Spencera773bd52006-08-04 18:18:08 +000024241 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000024242 done
24243fi
24244