blob: a2aad3ea3ced178f21fae1914b865d5d20132396 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Tanya Lattnerdc29dff2010-03-19 21:22:13 +00003# Generated by GNU Autoconf 2.60 for llvm 2.8svn.
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
Reid Spencera773bd52006-08-04 18:18:08 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011#
John Criswell5a129712010-03-19 21:04:16 +000012# Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000016
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017# Be Bourne compatible
18if 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-'
Tanya Lattnerdc29dff2010-03-19 21:22:13 +0000564PACKAGE_VERSION='2.8svn'
565PACKAGE_STRING='llvm 2.8svn'
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
644build
645build_cpu
646build_vendor
647build_os
648host
649host_cpu
650host_vendor
651host_os
652target
653target_cpu
654target_vendor
655target_os
656OS
657HOST_OS
658TARGET_OS
659LINKALL
660NOLINKALL
661LLVM_ON_UNIX
662LLVM_ON_WIN32
663ARCH
664ENDIAN
665CC
666CFLAGS
667LDFLAGS
668CPPFLAGS
669ac_ct_CC
670EXEEXT
671OBJEXT
672CPP
673GREP
674EGREP
675LLVM_CROSS_COMPILING
676BUILD_CC
677BUILD_EXEEXT
678BUILD_CXX
679CVSBUILD
680ENABLE_OPTIMIZED
681ENABLE_PROFILING
682DISABLE_ASSERTIONS
683ENABLE_EXPENSIVE_CHECKS
684EXPENSIVE_CHECKS
685DEBUG_RUNTIME
686DEBUG_SYMBOLS
687JIT
688TARGET_HAS_JIT
689ENABLE_DOXYGEN
690ENABLE_THREADS
691ENABLE_PIC
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000692ENABLE_SHARED
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000693TARGETS_TO_BUILD
694LLVM_ENUM_TARGETS
695LLVM_ENUM_ASM_PRINTERS
696LLVM_ENUM_ASM_PARSERS
697LLVM_ENUM_DISASSEMBLERS
698ENABLE_CBE_PRINTF_A
Daniel Dunbar98515672010-02-23 10:00:49 +0000699CLANGPATH
700CLANGXXPATH
701ENABLE_BUILT_CLANG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000702OPTIMIZE_OPTION
703EXTRA_OPTIONS
704BINUTILS_INCDIR
705ENABLE_LLVMC_DYNAMIC
706ENABLE_LLVMC_DYNAMIC_PLUGINS
707CXX
708CXXFLAGS
709ac_ct_CXX
710NM
711ifGNUmake
712LN_S
713CMP
714CP
715DATE
716FIND
717MKDIR
718MV
719RANLIB
720AR
721RM
722SED
723TAR
724BINPWD
725GRAPHVIZ
726DOT
727FDP
728NEATO
729TWOPI
730CIRCO
731GV
732DOTTY
733PERL
734HAVE_PERL
735INSTALL_PROGRAM
736INSTALL_SCRIPT
737INSTALL_DATA
738BZIP2
739DOXYGEN
740GROFF
741GZIP
742POD2HTML
743POD2MAN
744RUNTEST
745TCLSH
746ZIP
747OCAMLC
748OCAMLOPT
749OCAMLDEP
750OCAMLDOC
751GAS
752INSTALL_LTDL_TRUE
753INSTALL_LTDL_FALSE
754CONVENIENCE_LTDL_TRUE
755CONVENIENCE_LTDL_FALSE
756LIBADD_DL
757LLVMGCCCOMMAND
758LLVMGXXCOMMAND
759LLVMGCC
760LLVMGXX
Daniel Dunbar98515672010-02-23 10:00:49 +0000761LLVMCC_OPTION
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000762NO_VARIADIC_MACROS
763NO_MISSING_FIELD_INITIALIZERS
764USE_UDIS86
765USE_OPROFILE
766HAVE_PTHREAD
767HUGE_VAL_SANITY
768MMAP_FILE
769LLVMCC1
770LLVMCC1PLUS
771LLVMGCCDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000772LLVMGCC_LANGS
773SHLIBEXT
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000774SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000775LLVM_PREFIX
776LLVM_BINDIR
777LLVM_LIBDIR
778LLVM_DATADIR
779LLVM_DOCSDIR
780LLVM_ETCDIR
781LLVM_INCLUDEDIR
782LLVM_INFODIR
783LLVM_MANDIR
784LLVM_CONFIGTIME
785BINDINGS_TO_BUILD
786ALL_BINDINGS
787OCAML_LIBDIR
788ENABLE_VISIBILITY_INLINES_HIDDEN
789RPATH
790RDYNAMIC
791LIBOBJS
792LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000793ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000794 ac_precious_vars='build_alias
795host_alias
796target_alias
797CC
798CFLAGS
799LDFLAGS
800CPPFLAGS
801CPP
802CXX
803CXXFLAGS
Torok Edwin871384f2010-01-26 08:50:50 +0000804CCC'
John Criswell0157f502010-03-19 21:31:39 +0000805ac_subdirs_all='projects/llvm-gcc
806projects/test-suite
807projects/llvm-test
808projects/poolalloc
809projects/llvm-poolalloc
810projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000811projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000812projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000813projects/llvm-reopt
Reid Spencera773bd52006-08-04 18:18:08 +0000814projects/llvm-java
815projects/llvm-tv
John Criswell7def2932010-02-25 22:57:19 +0000816projects/safecode
Reid Spencera773bd52006-08-04 18:18:08 +0000817projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000818
819# Initialize some variables set by options.
820ac_init_help=
821ac_init_version=false
822# The variables have the same names as the options, with
823# dashes changed to underlines.
824cache_file=/dev/null
825exec_prefix=NONE
826no_create=
827no_recursion=
828prefix=NONE
829program_prefix=NONE
830program_suffix=NONE
831program_transform_name=s,x,x,
832silent=
833site=
834srcdir=
835verbose=
836x_includes=NONE
837x_libraries=NONE
838
839# Installation directory options.
840# These are left unexpanded so users can "make install exec_prefix=/foo"
841# and all the variables that are supposed to be based on exec_prefix
842# by default will actually change.
843# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000844# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000845bindir='${exec_prefix}/bin'
846sbindir='${exec_prefix}/sbin'
847libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000848datarootdir='${prefix}/share'
849datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000850sysconfdir='${prefix}/etc'
851sharedstatedir='${prefix}/com'
852localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000853includedir='${prefix}/include'
854oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000855docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
856infodir='${datarootdir}/info'
857htmldir='${docdir}'
858dvidir='${docdir}'
859pdfdir='${docdir}'
860psdir='${docdir}'
861libdir='${exec_prefix}/lib'
862localedir='${datarootdir}/locale'
863mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000864
865ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000866ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000867for ac_option
868do
869 # If the previous option needs an argument, assign it.
870 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000871 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000872 ac_prev=
873 continue
874 fi
875
Reid Spencera773bd52006-08-04 18:18:08 +0000876 case $ac_option in
877 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
878 *) ac_optarg=yes ;;
879 esac
John Criswell7a73b802003-06-30 21:59:07 +0000880
881 # Accept the important Cygnus configure options, so we can diagnose typos.
882
Reid Spencera773bd52006-08-04 18:18:08 +0000883 case $ac_dashdash$ac_option in
884 --)
885 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000886
887 -bindir | --bindir | --bindi | --bind | --bin | --bi)
888 ac_prev=bindir ;;
889 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
890 bindir=$ac_optarg ;;
891
892 -build | --build | --buil | --bui | --bu)
893 ac_prev=build_alias ;;
894 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
895 build_alias=$ac_optarg ;;
896
897 -cache-file | --cache-file | --cache-fil | --cache-fi \
898 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
899 ac_prev=cache_file ;;
900 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
901 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
902 cache_file=$ac_optarg ;;
903
904 --config-cache | -C)
905 cache_file=config.cache ;;
906
Reid Spencera773bd52006-08-04 18:18:08 +0000907 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000908 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000909 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000910 datadir=$ac_optarg ;;
911
Reid Spencera773bd52006-08-04 18:18:08 +0000912 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
913 | --dataroo | --dataro | --datar)
914 ac_prev=datarootdir ;;
915 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
916 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
917 datarootdir=$ac_optarg ;;
918
John Criswell7a73b802003-06-30 21:59:07 +0000919 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000920 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000921 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000922 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
923 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
924 { (exit 1); exit 1; }; }
925 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
926 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000927
928 -docdir | --docdir | --docdi | --doc | --do)
929 ac_prev=docdir ;;
930 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
931 docdir=$ac_optarg ;;
932
933 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
934 ac_prev=dvidir ;;
935 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
936 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000937
938 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000939 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000940 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000941 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
942 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
943 { (exit 1); exit 1; }; }
944 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
945 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000946
947 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
948 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
949 | --exec | --exe | --ex)
950 ac_prev=exec_prefix ;;
951 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
952 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
953 | --exec=* | --exe=* | --ex=*)
954 exec_prefix=$ac_optarg ;;
955
956 -gas | --gas | --ga | --g)
957 # Obsolete; use --with-gas.
958 with_gas=yes ;;
959
960 -help | --help | --hel | --he | -h)
961 ac_init_help=long ;;
962 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
963 ac_init_help=recursive ;;
964 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
965 ac_init_help=short ;;
966
967 -host | --host | --hos | --ho)
968 ac_prev=host_alias ;;
969 -host=* | --host=* | --hos=* | --ho=*)
970 host_alias=$ac_optarg ;;
971
Reid Spencera773bd52006-08-04 18:18:08 +0000972 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
973 ac_prev=htmldir ;;
974 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
975 | --ht=*)
976 htmldir=$ac_optarg ;;
977
John Criswell7a73b802003-06-30 21:59:07 +0000978 -includedir | --includedir | --includedi | --included | --include \
979 | --includ | --inclu | --incl | --inc)
980 ac_prev=includedir ;;
981 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
982 | --includ=* | --inclu=* | --incl=* | --inc=*)
983 includedir=$ac_optarg ;;
984
985 -infodir | --infodir | --infodi | --infod | --info | --inf)
986 ac_prev=infodir ;;
987 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
988 infodir=$ac_optarg ;;
989
990 -libdir | --libdir | --libdi | --libd)
991 ac_prev=libdir ;;
992 -libdir=* | --libdir=* | --libdi=* | --libd=*)
993 libdir=$ac_optarg ;;
994
995 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
996 | --libexe | --libex | --libe)
997 ac_prev=libexecdir ;;
998 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
999 | --libexe=* | --libex=* | --libe=*)
1000 libexecdir=$ac_optarg ;;
1001
Reid Spencera773bd52006-08-04 18:18:08 +00001002 -localedir | --localedir | --localedi | --localed | --locale)
1003 ac_prev=localedir ;;
1004 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1005 localedir=$ac_optarg ;;
1006
John Criswell7a73b802003-06-30 21:59:07 +00001007 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001008 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001009 ac_prev=localstatedir ;;
1010 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001011 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001012 localstatedir=$ac_optarg ;;
1013
1014 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1015 ac_prev=mandir ;;
1016 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1017 mandir=$ac_optarg ;;
1018
1019 -nfp | --nfp | --nf)
1020 # Obsolete; use --without-fp.
1021 with_fp=no ;;
1022
1023 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1024 | --no-cr | --no-c | -n)
1025 no_create=yes ;;
1026
1027 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1028 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1029 no_recursion=yes ;;
1030
1031 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1032 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1033 | --oldin | --oldi | --old | --ol | --o)
1034 ac_prev=oldincludedir ;;
1035 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1036 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1037 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1038 oldincludedir=$ac_optarg ;;
1039
1040 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1041 ac_prev=prefix ;;
1042 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1043 prefix=$ac_optarg ;;
1044
1045 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1046 | --program-pre | --program-pr | --program-p)
1047 ac_prev=program_prefix ;;
1048 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1049 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1050 program_prefix=$ac_optarg ;;
1051
1052 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1053 | --program-suf | --program-su | --program-s)
1054 ac_prev=program_suffix ;;
1055 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1056 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1057 program_suffix=$ac_optarg ;;
1058
1059 -program-transform-name | --program-transform-name \
1060 | --program-transform-nam | --program-transform-na \
1061 | --program-transform-n | --program-transform- \
1062 | --program-transform | --program-transfor \
1063 | --program-transfo | --program-transf \
1064 | --program-trans | --program-tran \
1065 | --progr-tra | --program-tr | --program-t)
1066 ac_prev=program_transform_name ;;
1067 -program-transform-name=* | --program-transform-name=* \
1068 | --program-transform-nam=* | --program-transform-na=* \
1069 | --program-transform-n=* | --program-transform-=* \
1070 | --program-transform=* | --program-transfor=* \
1071 | --program-transfo=* | --program-transf=* \
1072 | --program-trans=* | --program-tran=* \
1073 | --progr-tra=* | --program-tr=* | --program-t=*)
1074 program_transform_name=$ac_optarg ;;
1075
Reid Spencera773bd52006-08-04 18:18:08 +00001076 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1077 ac_prev=pdfdir ;;
1078 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1079 pdfdir=$ac_optarg ;;
1080
1081 -psdir | --psdir | --psdi | --psd | --ps)
1082 ac_prev=psdir ;;
1083 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1084 psdir=$ac_optarg ;;
1085
John Criswell7a73b802003-06-30 21:59:07 +00001086 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1087 | -silent | --silent | --silen | --sile | --sil)
1088 silent=yes ;;
1089
1090 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1091 ac_prev=sbindir ;;
1092 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1093 | --sbi=* | --sb=*)
1094 sbindir=$ac_optarg ;;
1095
1096 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1097 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1098 | --sharedst | --shareds | --shared | --share | --shar \
1099 | --sha | --sh)
1100 ac_prev=sharedstatedir ;;
1101 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1102 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1103 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1104 | --sha=* | --sh=*)
1105 sharedstatedir=$ac_optarg ;;
1106
1107 -site | --site | --sit)
1108 ac_prev=site ;;
1109 -site=* | --site=* | --sit=*)
1110 site=$ac_optarg ;;
1111
1112 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1113 ac_prev=srcdir ;;
1114 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1115 srcdir=$ac_optarg ;;
1116
1117 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1118 | --syscon | --sysco | --sysc | --sys | --sy)
1119 ac_prev=sysconfdir ;;
1120 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1121 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1122 sysconfdir=$ac_optarg ;;
1123
1124 -target | --target | --targe | --targ | --tar | --ta | --t)
1125 ac_prev=target_alias ;;
1126 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1127 target_alias=$ac_optarg ;;
1128
1129 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1130 verbose=yes ;;
1131
1132 -version | --version | --versio | --versi | --vers | -V)
1133 ac_init_version=: ;;
1134
1135 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001136 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001137 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001138 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1139 { echo "$as_me: error: invalid package name: $ac_package" >&2
1140 { (exit 1); exit 1; }; }
1141 ac_package=`echo $ac_package| sed 's/-/_/g'`
1142 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001143
1144 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001145 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001146 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001147 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1148 { echo "$as_me: error: invalid package name: $ac_package" >&2
1149 { (exit 1); exit 1; }; }
1150 ac_package=`echo $ac_package | sed 's/-/_/g'`
1151 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001152
1153 --x)
1154 # Obsolete; use --with-x.
1155 with_x=yes ;;
1156
1157 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1158 | --x-incl | --x-inc | --x-in | --x-i)
1159 ac_prev=x_includes ;;
1160 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1161 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1162 x_includes=$ac_optarg ;;
1163
1164 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1165 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1166 ac_prev=x_libraries ;;
1167 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1168 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1169 x_libraries=$ac_optarg ;;
1170
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001171 -*) { echo "$as_me: error: unrecognized option: $ac_option
1172Try \`$0 --help' for more information." >&2
1173 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001174 ;;
1175
1176 *=*)
1177 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001179 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1180 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1181 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001182 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001183 export $ac_envvar ;;
1184
1185 *)
1186 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001187 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001188 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001189 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001190 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1191 ;;
1192
1193 esac
1194done
1195
1196if test -n "$ac_prev"; then
1197 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001198 { echo "$as_me: error: missing argument to $ac_option" >&2
1199 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001200fi
1201
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001202# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001203for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1204 datadir sysconfdir sharedstatedir localstatedir includedir \
1205 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1206 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001207do
Reid Spencera773bd52006-08-04 18:18:08 +00001208 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001209 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001210 [\\/$]* | ?:[\\/]* ) continue;;
1211 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001212 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001213 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1214 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001215done
1216
1217# There might be people who depend on the old broken behavior: `$host'
1218# used to hold the argument of --host etc.
1219# FIXME: To remove some day.
1220build=$build_alias
1221host=$host_alias
1222target=$target_alias
1223
1224# FIXME: To remove some day.
1225if test "x$host_alias" != x; then
1226 if test "x$build_alias" = x; then
1227 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001228 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001229 If a cross compiler is detected then cross compile mode will be used." >&2
1230 elif test "x$build_alias" != "x$host_alias"; then
1231 cross_compiling=yes
1232 fi
1233fi
1234
1235ac_tool_prefix=
1236test -n "$host_alias" && ac_tool_prefix=$host_alias-
1237
1238test "$silent" = yes && exec 6>/dev/null
1239
1240
Reid Spencera773bd52006-08-04 18:18:08 +00001241ac_pwd=`pwd` && test -n "$ac_pwd" &&
1242ac_ls_di=`ls -di .` &&
1243ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001244 { echo "$as_me: error: Working directory cannot be determined" >&2
1245 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001246test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001247 { echo "$as_me: error: pwd does not report name of working directory" >&2
1248 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001249
1250
John Criswell7a73b802003-06-30 21:59:07 +00001251# Find the source files, if location was not specified.
1252if test -z "$srcdir"; then
1253 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001254 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001255 ac_confdir=`$as_dirname -- "$0" ||
1256$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1257 X"$0" : 'X\(//\)[^/]' \| \
1258 X"$0" : 'X\(//\)$' \| \
1259 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1260echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1262 s//\1/
1263 q
1264 }
1265 /^X\(\/\/\)[^/].*/{
1266 s//\1/
1267 q
1268 }
1269 /^X\(\/\/\)$/{
1270 s//\1/
1271 q
1272 }
1273 /^X\(\/\).*/{
1274 s//\1/
1275 q
1276 }
1277 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001278 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001279 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001280 srcdir=..
1281 fi
1282else
1283 ac_srcdir_defaulted=no
1284fi
Reid Spencera773bd52006-08-04 18:18:08 +00001285if test ! -r "$srcdir/$ac_unique_file"; then
1286 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001287 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1288 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001289fi
Reid Spencera773bd52006-08-04 18:18:08 +00001290ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1291ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001292 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1293 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001294 pwd)`
1295# When building in place, set srcdir=.
1296if test "$ac_abs_confdir" = "$ac_pwd"; then
1297 srcdir=.
1298fi
1299# Remove unnecessary trailing slashes from srcdir.
1300# Double slashes in file names in object file debugging info
1301# mess up M-x gdb in Emacs.
1302case $srcdir in
1303*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1304esac
1305for ac_var in $ac_precious_vars; do
1306 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1307 eval ac_env_${ac_var}_value=\$${ac_var}
1308 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1310done
John Criswell7a73b802003-06-30 21:59:07 +00001311
1312#
1313# Report the --help message.
1314#
1315if test "$ac_init_help" = "long"; then
1316 # Omit some internal or obsolete options to make the list less imposing.
1317 # This message is too long to be a string in the A/UX 3.1 sh.
1318 cat <<_ACEOF
Tanya Lattnerdc29dff2010-03-19 21:22:13 +00001319\`configure' configures llvm 2.8svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001320
1321Usage: $0 [OPTION]... [VAR=VALUE]...
1322
1323To assign environment variables (e.g., CC, CFLAGS...), specify them as
1324VAR=VALUE. See below for descriptions of some of the useful variables.
1325
1326Defaults for the options are specified in brackets.
1327
1328Configuration:
1329 -h, --help display this help and exit
1330 --help=short display options specific to this package
1331 --help=recursive display the short help of all the included packages
1332 -V, --version display version information and exit
1333 -q, --quiet, --silent do not print \`checking...' messages
1334 --cache-file=FILE cache test results in FILE [disabled]
1335 -C, --config-cache alias for \`--cache-file=config.cache'
1336 -n, --no-create do not create output files
1337 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1338
John Criswell7a73b802003-06-30 21:59:07 +00001339Installation directories:
1340 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001341 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001342 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001343 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001344
1345By default, \`make install' will install all the files in
1346\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1347an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1348for instance \`--prefix=\$HOME'.
1349
1350For better control, use the options below.
1351
1352Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001353 --bindir=DIR user executables [EPREFIX/bin]
1354 --sbindir=DIR system admin executables [EPREFIX/sbin]
1355 --libexecdir=DIR program executables [EPREFIX/libexec]
1356 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1357 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1358 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1359 --libdir=DIR object code libraries [EPREFIX/lib]
1360 --includedir=DIR C header files [PREFIX/include]
1361 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1362 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1363 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1364 --infodir=DIR info documentation [DATAROOTDIR/info]
1365 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1366 --mandir=DIR man documentation [DATAROOTDIR/man]
1367 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1368 --htmldir=DIR html documentation [DOCDIR]
1369 --dvidir=DIR dvi documentation [DOCDIR]
1370 --pdfdir=DIR pdf documentation [DOCDIR]
1371 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001372_ACEOF
1373
1374 cat <<\_ACEOF
1375
1376System types:
1377 --build=BUILD configure for building on BUILD [guessed]
1378 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1379 --target=TARGET configure for building compilers for TARGET [HOST]
1380_ACEOF
1381fi
1382
1383if test -n "$ac_init_help"; then
1384 case $ac_init_help in
Tanya Lattnerdc29dff2010-03-19 21:22:13 +00001385 short | recursive ) echo "Configuration of llvm 2.8svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001386 esac
1387 cat <<\_ACEOF
1388
1389Optional Features:
1390 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1391 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001392 --enable-optimized Compile with optimizations enabled (default is NO)
1393 --enable-profiling Compile with profiling enabled (default is NO)
1394 --enable-assertions Compile with assertion checks enabled (default is
1395 YES)
David Greenea696d242007-06-28 19:36:08 +00001396 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001397 Compile with expensive debug checks enabled (default
1398 is NO)
1399 --enable-debug-runtime Build runtime libs with debug symbols (default is
1400 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001401 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1402 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001403 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001404 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001405 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001406 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001407 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001408 --enable-shared Build a shared library and link tools against it
1409 (default is NO)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001410 --enable-targets Build specific host targets: all or
1411 target1,target2,... Valid targets are: host, x86,
1412 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1413 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1414 and cpp (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001415 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1416 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001417 --enable-bindings Build specific language bindings:
1418 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001419 --enable-libffi Check for the presence of libffi (default is NO)
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00001420 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1421 Win32)
1422 --enable-llvmc-dynamic-plugins
1423 Enable dynamic LLVMC plugins (default is YES)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001424 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001425
1426Optional Packages:
1427 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1428 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001429 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1430 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001431 --with-llvmgcc Specify location of llvm-gcc driver (default
1432 searches PATH)
1433 --with-llvmgxx Specify location of llvm-g++ driver (default
1434 searches PATH)
Daniel Dunbar98515672010-02-23 10:00:49 +00001435 --with-clang Specify location of clang compiler (default is
1436 --with-built-clang)
1437 --with-built-clang Use the compiled Clang as the LLVM compiler
1438 (default=check)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001439 --with-optimize-option Select the compiler options to use for optimized
1440 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001441 --with-extra-options Specify additional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001442 --with-ocaml-libdir Specify install location for ocaml bindings (default
1443 is stdlib)
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001444 --with-c-include-dirs Colon separated list of directories clang will
1445 search for headers
Rafael Espindola420d23c2009-11-16 19:46:55 +00001446 --with-cxx-include-root Directory with the libstdc++ headers.
1447 --with-cxx-include-arch Architecture of the libstdc++ headers.
1448 --with-cxx-include-32bit-dir
1449 32 bit multilib dir.
1450 --with-cxx-include-64bit-dir
1451 64 bit multilib directory.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001452 --with-binutils-include Specify path to binutils/include/ containing
1453 plugin-api.h file for gold plugin.
Reid Spencer0fcb9412004-11-30 08:11:54 +00001454 --with-tclinclude directory where tcl headers are
Daniel Dunbar98515672010-02-23 10:00:49 +00001455 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1456 clang, or none; default=check)
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001457 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001458 --with-oprofile=<prefix>
1459 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001460
1461Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001462 CC C compiler command
1463 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001464 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1465 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001466 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001467 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001468 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001469 CXX C++ compiler command
1470 CXXFLAGS C++ compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001471
1472Use these variables to override the choices made by `configure' or to help
1473it to find libraries and programs with nonstandard names/locations.
1474
1475Report bugs to <llvmbugs@cs.uiuc.edu>.
1476_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001477ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001478fi
1479
1480if test "$ac_init_help" = "recursive"; then
1481 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001482 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001483 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001484 ac_builddir=.
1485
Reid Spencera773bd52006-08-04 18:18:08 +00001486case "$ac_dir" in
1487.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001489 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001490 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001491 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001492 case $ac_top_builddir_sub in
1493 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1495 esac ;;
1496esac
1497ac_abs_top_builddir=$ac_pwd
1498ac_abs_builddir=$ac_pwd$ac_dir_suffix
1499# for backward compatibility:
1500ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001501
1502case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001503 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001504 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001505 ac_top_srcdir=$ac_top_builddir_sub
1506 ac_abs_top_srcdir=$ac_pwd ;;
1507 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001508 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001509 ac_top_srcdir=$srcdir
1510 ac_abs_top_srcdir=$srcdir ;;
1511 *) # Relative name.
1512 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513 ac_top_srcdir=$ac_top_build_prefix$srcdir
1514 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001515esac
Reid Spencera773bd52006-08-04 18:18:08 +00001516ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001517
Reid Spencera773bd52006-08-04 18:18:08 +00001518 cd "$ac_dir" || { ac_status=$?; continue; }
1519 # Check for guested configure.
1520 if test -f "$ac_srcdir/configure.gnu"; then
1521 echo &&
1522 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1523 elif test -f "$ac_srcdir/configure"; then
1524 echo &&
1525 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001526 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001527 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001528 fi || ac_status=$?
1529 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001530 done
1531fi
1532
Reid Spencera773bd52006-08-04 18:18:08 +00001533test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001534if $ac_init_version; then
1535 cat <<\_ACEOF
Tanya Lattnerdc29dff2010-03-19 21:22:13 +00001536llvm configure 2.8svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001537generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001538
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001539Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15402002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001541This configure script is free software; the Free Software Foundation
1542gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001543
John Criswell5a129712010-03-19 21:04:16 +00001544Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001545_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001546 exit
John Criswell7a73b802003-06-30 21:59:07 +00001547fi
Reid Spencera773bd52006-08-04 18:18:08 +00001548cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001549This file contains any messages produced by compilers while
1550running configure, to aid debugging if configure makes a mistake.
1551
Tanya Lattnerdc29dff2010-03-19 21:22:13 +00001552It was created by llvm $as_me 2.8svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001553generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001554
1555 $ $0 $@
1556
1557_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001558exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001559{
1560cat <<_ASUNAME
1561## --------- ##
1562## Platform. ##
1563## --------- ##
1564
1565hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1566uname -m = `(uname -m) 2>/dev/null || echo unknown`
1567uname -r = `(uname -r) 2>/dev/null || echo unknown`
1568uname -s = `(uname -s) 2>/dev/null || echo unknown`
1569uname -v = `(uname -v) 2>/dev/null || echo unknown`
1570
1571/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1572/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1573
1574/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1575/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1576/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001577/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001578/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1579/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1580/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1581
1582_ASUNAME
1583
1584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1585for as_dir in $PATH
1586do
1587 IFS=$as_save_IFS
1588 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001589 echo "PATH: $as_dir"
1590done
Reid Spencera773bd52006-08-04 18:18:08 +00001591IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001592
1593} >&5
1594
1595cat >&5 <<_ACEOF
1596
1597
1598## ----------- ##
1599## Core tests. ##
1600## ----------- ##
1601
1602_ACEOF
1603
1604
1605# Keep a trace of the command line.
1606# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001607# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001608# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001609# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001610ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001611ac_configure_args0=
1612ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001613ac_must_keep_next=false
1614for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001615do
John Criswell0c38eaf2003-09-10 15:17:25 +00001616 for ac_arg
1617 do
1618 case $ac_arg in
1619 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1620 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1621 | -silent | --silent | --silen | --sile | --sil)
1622 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001623 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001624 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001625 esac
1626 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001627 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001628 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001629 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001630 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001631 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001632 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001633 case $ac_arg in
1634 *=* | --config-cache | -C | -disable-* | --disable-* \
1635 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1636 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1637 | -with-* | --with-* | -without-* | --without-* | --x)
1638 case "$ac_configure_args0 " in
1639 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1640 esac
1641 ;;
1642 -* ) ac_must_keep_next=true ;;
1643 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001644 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001645 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001646 ;;
1647 esac
1648 done
John Criswell7a73b802003-06-30 21:59:07 +00001649done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001650$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1651$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 +00001652
1653# When interrupted or exit'd, cleanup temporary files, and complete
1654# config.log. We remove comments because anyway the quotes in there
1655# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001656# WARNING: Use '\'' to represent an apostrophe within the trap.
1657# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001658trap 'exit_status=$?
1659 # Save into config.log some information that might help in debugging.
1660 {
1661 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001662
John Criswell7a73b802003-06-30 21:59:07 +00001663 cat <<\_ASBOX
1664## ---------------- ##
1665## Cache variables. ##
1666## ---------------- ##
1667_ASBOX
1668 echo
1669 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001670(
1671 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1672 eval ac_val=\$$ac_var
1673 case $ac_val in #(
1674 *${as_nl}*)
1675 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001676 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1677echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001678 esac
1679 case $ac_var in #(
1680 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001681 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001682 esac ;;
1683 esac
1684 done
John Criswell7a73b802003-06-30 21:59:07 +00001685 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001686 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1687 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001688 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001689 "s/'\''/'\''\\\\'\'''\''/g;
1690 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1691 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001692 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001693 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001694 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001695 esac |
1696 sort
1697)
John Criswell7a73b802003-06-30 21:59:07 +00001698 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001699
1700 cat <<\_ASBOX
1701## ----------------- ##
1702## Output variables. ##
1703## ----------------- ##
1704_ASBOX
1705 echo
1706 for ac_var in $ac_subst_vars
1707 do
Reid Spencera773bd52006-08-04 18:18:08 +00001708 eval ac_val=\$$ac_var
1709 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001710 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001711 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001712 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001713 done | sort
1714 echo
1715
1716 if test -n "$ac_subst_files"; then
1717 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001718## ------------------- ##
1719## File substitutions. ##
1720## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001721_ASBOX
1722 echo
1723 for ac_var in $ac_subst_files
1724 do
Reid Spencera773bd52006-08-04 18:18:08 +00001725 eval ac_val=\$$ac_var
1726 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001727 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001728 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001729 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001730 done | sort
1731 echo
1732 fi
1733
John Criswell7a73b802003-06-30 21:59:07 +00001734 if test -s confdefs.h; then
1735 cat <<\_ASBOX
1736## ----------- ##
1737## confdefs.h. ##
1738## ----------- ##
1739_ASBOX
1740 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001741 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001742 echo
1743 fi
1744 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001745 echo "$as_me: caught signal $ac_signal"
1746 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001747 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001748 rm -f core *.core core.conftest.* &&
1749 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001750 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001751' 0
John Criswell7a73b802003-06-30 21:59:07 +00001752for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001753 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001754done
1755ac_signal=0
1756
1757# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001758rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001759
1760# Predefined preprocessor variables.
1761
1762cat >>confdefs.h <<_ACEOF
1763#define PACKAGE_NAME "$PACKAGE_NAME"
1764_ACEOF
1765
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001766
John Criswell7a73b802003-06-30 21:59:07 +00001767cat >>confdefs.h <<_ACEOF
1768#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1769_ACEOF
1770
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001771
John Criswell7a73b802003-06-30 21:59:07 +00001772cat >>confdefs.h <<_ACEOF
1773#define PACKAGE_VERSION "$PACKAGE_VERSION"
1774_ACEOF
1775
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001776
John Criswell7a73b802003-06-30 21:59:07 +00001777cat >>confdefs.h <<_ACEOF
1778#define PACKAGE_STRING "$PACKAGE_STRING"
1779_ACEOF
1780
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001781
John Criswell7a73b802003-06-30 21:59:07 +00001782cat >>confdefs.h <<_ACEOF
1783#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1784_ACEOF
1785
1786
1787# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001788# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001789if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001790 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001791elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001792 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001793else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001794 set x "$ac_default_prefix/share/config.site" \
1795 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001796fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001797shift
1798for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001799do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001800 if test -r "$ac_site_file"; then
1801 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1802echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001803 sed 's/^/| /' "$ac_site_file" >&5
1804 . "$ac_site_file"
1805 fi
1806done
1807
1808if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001809 # Some versions of bash will fail to source /dev/null (special
1810 # files actually), so we avoid doing that.
1811 if test -f "$cache_file"; then
1812 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1813echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001814 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001815 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1816 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001817 esac
1818 fi
1819else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001820 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1821echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001822 >$cache_file
1823fi
1824
1825# Check that the precious variables saved in the cache have kept the same
1826# value.
1827ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001828for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001829 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1830 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001831 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1832 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001833 case $ac_old_set,$ac_new_set in
1834 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001835 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1836echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001837 ac_cache_corrupted=: ;;
1838 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001839 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1840echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001841 ac_cache_corrupted=: ;;
1842 ,);;
1843 *)
1844 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001845 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1846echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1847 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1848echo "$as_me: former value: $ac_old_val" >&2;}
1849 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1850echo "$as_me: current value: $ac_new_val" >&2;}
1851 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001852 fi;;
1853 esac
1854 # Pass precious variables to config.status.
1855 if test "$ac_new_set" = set; then
1856 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001857 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001858 *) ac_arg=$ac_var=$ac_new_val ;;
1859 esac
1860 case " $ac_configure_args " in
1861 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001862 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001863 esac
1864 fi
1865done
1866if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001867 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1868echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1869 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1870echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1871 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001872fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
Reid Spencera773bd52006-08-04 18:18:08 +00001897
John Criswell7a73b802003-06-30 21:59:07 +00001898ac_ext=c
1899ac_cpp='$CPP $CPPFLAGS'
1900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1902ac_compiler_gnu=$ac_cv_c_compiler_gnu
1903
1904
1905
John Criswell5a129712010-03-19 21:04:16 +00001906LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001907
1908
1909
1910
1911
1912
1913
John Criswell7a73b802003-06-30 21:59:07 +00001914ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001915for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001916 if test -f "$ac_dir/install-sh"; then
1917 ac_aux_dir=$ac_dir
1918 ac_install_sh="$ac_aux_dir/install-sh -c"
1919 break
1920 elif test -f "$ac_dir/install.sh"; then
1921 ac_aux_dir=$ac_dir
1922 ac_install_sh="$ac_aux_dir/install.sh -c"
1923 break
1924 elif test -f "$ac_dir/shtool"; then
1925 ac_aux_dir=$ac_dir
1926 ac_install_sh="$ac_aux_dir/shtool install -c"
1927 break
1928 fi
John Criswell7a73b802003-06-30 21:59:07 +00001929done
1930if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001931 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1932echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1933 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001934fi
Reid Spencera773bd52006-08-04 18:18:08 +00001935
1936# These three variables are undocumented and unsupported,
1937# and are intended to be withdrawn in a future Autoconf release.
1938# They can cause serious problems if a builder's source tree is in a directory
1939# whose full name contains unusual characters.
1940ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1941ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1942ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1943
John Criswell7a73b802003-06-30 21:59:07 +00001944
John Criswell392aaa32003-07-22 19:18:09 +00001945
Reid Spencer2706f8c2004-09-19 23:53:36 +00001946if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001947 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001948 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1949echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1950 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001951 fi
John Criswell93e1c722003-09-15 17:04:06 +00001952fi
1953
John Criswell0157f502010-03-19 21:31:39 +00001954
1955
1956if test -d ${srcdir}/projects/llvm-gcc ; then
1957 subdirs="$subdirs projects/llvm-gcc"
1958
1959fi
1960
1961if test -d ${srcdir}/projects/test-suite ; then
1962 subdirs="$subdirs projects/test-suite"
1963
1964fi
1965
1966if test -d ${srcdir}/projects/llvm-test ; then
1967 subdirs="$subdirs projects/llvm-test"
1968
1969fi
1970
1971if test -d ${srcdir}/projects/poolalloc ; then
1972 subdirs="$subdirs projects/poolalloc"
1973
1974fi
1975
1976if test -d ${srcdir}/projects/llvm-poolalloc ; then
1977 subdirs="$subdirs projects/llvm-poolalloc"
1978
1979fi
1980
John Criswell33a911a2003-11-25 20:36:46 +00001981for i in `ls ${srcdir}/projects`
1982do
Reid Spencer4d68ba22004-09-07 16:35:45 +00001983 if test -d ${srcdir}/projects/${i} ; then
1984 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00001985 CVS) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001986 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001987 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001988 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00001989 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001990 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001991 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001992 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001993;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001994 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00001995 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001996 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001997 ;;
John Criswell7def2932010-02-25 22:57:19 +00001998 safecode) subdirs="$subdirs projects/safecode"
1999 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002000 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002001 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002002 *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002003 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2004echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002005 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002006 esac
John Criswell33a911a2003-11-25 20:36:46 +00002007 fi
2008done
John Criswell559a6c12003-09-30 16:31:48 +00002009
John Criswell7a73b802003-06-30 21:59:07 +00002010
2011# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002012$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002013 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2014echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2015 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002016
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002017{ echo "$as_me:$LINENO: checking build system type" >&5
2018echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2019if test "${ac_cv_build+set}" = set; then
2020 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002021else
Reid Spencera773bd52006-08-04 18:18:08 +00002022 ac_build_alias=$build_alias
2023test "x$ac_build_alias" = x &&
2024 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2025test "x$ac_build_alias" = x &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002026 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2027echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2028 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002029ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002030 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2031echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2032 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002033
2034fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002035{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2036echo "${ECHO_T}$ac_cv_build" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002037case $ac_cv_build in
2038*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002039*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2040echo "$as_me: error: invalid value of canonical build" >&2;}
2041 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002042esac
John Criswell7a73b802003-06-30 21:59:07 +00002043build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002044ac_save_IFS=$IFS; IFS='-'
2045set x $ac_cv_build
2046shift
2047build_cpu=$1
2048build_vendor=$2
2049shift; shift
2050# Remember, the first character of IFS is used to create $*,
2051# except with old shells:
2052build_os=$*
2053IFS=$ac_save_IFS
2054case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002055
2056
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002057{ echo "$as_me:$LINENO: checking host system type" >&5
2058echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2059if test "${ac_cv_host+set}" = set; then
2060 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002061else
Reid Spencera773bd52006-08-04 18:18:08 +00002062 if test "x$host_alias" = x; then
2063 ac_cv_host=$ac_cv_build
2064else
2065 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002066 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2067echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2068 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002069fi
John Criswell7a73b802003-06-30 21:59:07 +00002070
2071fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002072{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2073echo "${ECHO_T}$ac_cv_host" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002074case $ac_cv_host in
2075*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002076*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2077echo "$as_me: error: invalid value of canonical host" >&2;}
2078 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002079esac
John Criswell7a73b802003-06-30 21:59:07 +00002080host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002081ac_save_IFS=$IFS; IFS='-'
2082set x $ac_cv_host
2083shift
2084host_cpu=$1
2085host_vendor=$2
2086shift; shift
2087# Remember, the first character of IFS is used to create $*,
2088# except with old shells:
2089host_os=$*
2090IFS=$ac_save_IFS
2091case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002092
2093
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002094{ echo "$as_me:$LINENO: checking target system type" >&5
2095echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2096if test "${ac_cv_target+set}" = set; then
2097 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002098else
Reid Spencera773bd52006-08-04 18:18:08 +00002099 if test "x$target_alias" = x; then
2100 ac_cv_target=$ac_cv_host
2101else
2102 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002103 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2104echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2105 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002106fi
John Criswell7a73b802003-06-30 21:59:07 +00002107
2108fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002109{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2110echo "${ECHO_T}$ac_cv_target" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002111case $ac_cv_target in
2112*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002113*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2114echo "$as_me: error: invalid value of canonical target" >&2;}
2115 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002116esac
John Criswell7a73b802003-06-30 21:59:07 +00002117target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002118ac_save_IFS=$IFS; IFS='-'
2119set x $ac_cv_target
2120shift
2121target_cpu=$1
2122target_vendor=$2
2123shift; shift
2124# Remember, the first character of IFS is used to create $*,
2125# except with old shells:
2126target_os=$*
2127IFS=$ac_save_IFS
2128case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002129
2130
2131# The aliases save the names the user supplied, while $host etc.
2132# will get canonicalized.
2133test -n "$target_alias" &&
2134 test "$program_prefix$program_suffix$program_transform_name" = \
2135 NONENONEs,x,x, &&
2136 program_prefix=${target_alias}-
2137
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002138{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2139echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2140if test "${llvm_cv_os_type+set}" = set; then
2141 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002142else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002143 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002144 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002145 llvm_cv_link_all_option="-Wl,--whole-archive"
2146 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002147 llvm_cv_os_type="AIX"
2148 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002149 *-*-irix*)
2150 llvm_cv_link_all_option="-Wl,--whole-archive"
2151 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2152 llvm_cv_os_type="IRIX"
2153 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002154 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002155 llvm_cv_link_all_option="-Wl,--whole-archive"
2156 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002157 llvm_cv_os_type="Cygwin"
2158 llvm_cv_platform_type="Unix" ;;
2159 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002160 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002161 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002162 llvm_cv_os_type="Darwin"
2163 llvm_cv_platform_type="Unix" ;;
2164 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002165 llvm_cv_link_all_option="-Wl,--whole-archive"
2166 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002167 llvm_cv_os_type="FreeBSD"
2168 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002169 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002170 llvm_cv_link_all_option="-Wl,--whole-archive"
2171 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002172 llvm_cv_os_type="OpenBSD"
2173 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002174 *-*-netbsd*)
2175 llvm_cv_link_all_option="-Wl,--whole-archive"
2176 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2177 llvm_cv_os_type="NetBSD"
2178 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002179 *-*-dragonfly*)
2180 llvm_cv_link_all_option="-Wl,--whole-archive"
2181 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2182 llvm_cv_os_type="DragonFly"
2183 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002184 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002185 llvm_cv_link_all_option="-Wl,--whole-archive"
2186 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002187 llvm_cv_os_type="HP-UX"
2188 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002189 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002190 llvm_cv_link_all_option="-Wl,--whole-archive"
2191 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002192 llvm_cv_os_type="Interix"
2193 llvm_cv_platform_type="Unix" ;;
2194 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002195 llvm_cv_link_all_option="-Wl,--whole-archive"
2196 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002197 llvm_cv_os_type="Linux"
2198 llvm_cv_platform_type="Unix" ;;
2199 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002200 llvm_cv_link_all_option="-Wl,-z,allextract"
2201 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002202 llvm_cv_os_type="SunOS"
2203 llvm_cv_platform_type="Unix" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002204 *-*-auroraux*)
2205 llvm_cv_link_all_option="-Wl,-z,allextract"
2206 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2207 llvm_cv_os_type="AuroraUX"
2208 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002209 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002210 llvm_cv_link_all_option="-Wl,--whole-archive"
2211 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002212 llvm_cv_os_type="Win32"
2213 llvm_cv_platform_type="Win32" ;;
2214 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002215 llvm_cv_link_all_option="-Wl,--whole-archive"
2216 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002217 llvm_cv_os_type="MingW"
2218 llvm_cv_platform_type="Win32" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002219 *-*-haiku*)
2220 llvm_cv_link_all_option="-Wl,--whole-archive"
2221 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2222 llvm_cv_os_type="Haiku"
2223 llvm_cv_platform_type="Unix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002224 *-unknown-eabi*)
2225 llvm_cv_link_all_option="-Wl,--whole-archive"
2226 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2227 llvm_cv_os_type="Freestanding"
2228 llvm_cv_platform_type="Unix" ;;
2229 *-unknown-elf*)
2230 llvm_cv_link_all_option="-Wl,--whole-archive"
2231 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2232 llvm_cv_os_type="Freestanding"
2233 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002234 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002235 llvm_cv_link_all_option=""
2236 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002237 llvm_cv_os_type="Unknown"
2238 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002239esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002240fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002241{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2242echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002243
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002244{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2245echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2246if test "${llvm_cv_target_os_type+set}" = set; then
2247 echo $ECHO_N "(cached) $ECHO_C" >&6
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002248else
2249 case $target in
2250 *-*-aix*)
2251 llvm_cv_target_os_type="AIX" ;;
2252 *-*-irix*)
2253 llvm_cv_target_os_type="IRIX" ;;
2254 *-*-cygwin*)
2255 llvm_cv_target_os_type="Cygwin" ;;
2256 *-*-darwin*)
2257 llvm_cv_target_os_type="Darwin" ;;
2258 *-*-freebsd*)
2259 llvm_cv_target_os_type="FreeBSD" ;;
2260 *-*-openbsd*)
2261 llvm_cv_target_os_type="OpenBSD" ;;
2262 *-*-netbsd*)
2263 llvm_cv_target_os_type="NetBSD" ;;
2264 *-*-dragonfly*)
2265 llvm_cv_target_os_type="DragonFly" ;;
2266 *-*-hpux*)
2267 llvm_cv_target_os_type="HP-UX" ;;
2268 *-*-interix*)
2269 llvm_cv_target_os_type="Interix" ;;
2270 *-*-linux*)
2271 llvm_cv_target_os_type="Linux" ;;
2272 *-*-solaris*)
2273 llvm_cv_target_os_type="SunOS" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002274 *-*-auroraux*)
2275 llvm_cv_target_os_type="AuroraUX" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002276 *-*-win32*)
2277 llvm_cv_target_os_type="Win32" ;;
2278 *-*-mingw*)
2279 llvm_cv_target_os_type="MingW" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002280 *-*-haiku*)
2281 llvm_cv_target_os_type="Haiku" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002282 *-unknown-eabi*)
2283 llvm_cv_target_os_type="Freestanding" ;;
2284 *)
2285 llvm_cv_target_os_type="Unknown" ;;
2286esac
2287fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002288{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2289echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002290
Reid Spencer7b3e8512004-12-24 06:29:05 +00002291if test "$llvm_cv_os_type" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002292 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2293echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2294 { (exit 1); exit 1; }; }
Reid Spencer886e9512004-08-31 01:34:10 +00002295fi
2296
Reid Spencer7b3e8512004-12-24 06:29:05 +00002297OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002298
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002299HOST_OS=$llvm_cv_os_type
2300
2301TARGET_OS=$llvm_cv_target_os_type
2302
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002303
Reid Spencera773bd52006-08-04 18:18:08 +00002304LINKALL=$llvm_cv_link_all_option
2305
2306NOLINKALL=$llvm_cv_no_link_all_option
2307
2308
Reid Spencer7b3e8512004-12-24 06:29:05 +00002309case $llvm_cv_platform_type in
2310 Unix)
2311
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002312cat >>confdefs.h <<\_ACEOF
2313#define LLVM_ON_UNIX 1
2314_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002315
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002316 LLVM_ON_UNIX=1
2317
2318 LLVM_ON_WIN32=0
2319
Reid Spencer7b3e8512004-12-24 06:29:05 +00002320 ;;
2321 Win32)
2322
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002323cat >>confdefs.h <<\_ACEOF
2324#define LLVM_ON_WIN32 1
2325_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002326
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002327 LLVM_ON_UNIX=0
2328
2329 LLVM_ON_WIN32=1
2330
Reid Spencer7b3e8512004-12-24 06:29:05 +00002331 ;;
2332esac
2333
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002334{ echo "$as_me:$LINENO: checking target architecture" >&5
2335echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2336if test "${llvm_cv_target_arch+set}" = set; then
2337 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002338else
2339 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002340 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002341 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002342 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2343 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002344 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Nick Lewyckyfa8ffc12009-04-18 18:11:26 +00002345 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002346 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00002347 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002348 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00002349 msp430-*) llvm_cv_target_arch="MSP430" ;;
Anton Korobeynikov4403b932009-07-16 13:27:25 +00002350 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00002351 bfin-*) llvm_cv_target_arch="Blackfin" ;;
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00002352 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002353 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002354esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002355fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002356{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2357echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002358
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002359if test "$llvm_cv_target_arch" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002360 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2361echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002362fi
John Criswell76595452003-07-01 22:07:39 +00002363
Nick Lewycky83fc4472009-09-29 05:48:51 +00002364# Determine the LLVM native architecture for the target
2365case "$llvm_cv_target_arch" in
2366 x86) LLVM_NATIVE_ARCH="X86" ;;
2367 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2368 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2369esac
2370
2371ARCH=$llvm_cv_target_arch
2372
2373
2374ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002375ac_cpp='$CPP $CPPFLAGS'
2376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2378ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002379if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002380 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2381set dummy ${ac_tool_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002382{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2383echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2384if test "${ac_cv_prog_CC+set}" = set; then
2385 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002386else
2387 if test -n "$CC"; then
2388 ac_cv_prog_CC="$CC" # Let the user override the test.
2389else
2390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2391for as_dir in $PATH
2392do
2393 IFS=$as_save_IFS
2394 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002395 for ac_exec_ext in '' $ac_executable_extensions; do
2396 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 +00002397 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002399 break 2
2400 fi
2401done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002402done
Reid Spencera773bd52006-08-04 18:18:08 +00002403IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002404
2405fi
2406fi
2407CC=$ac_cv_prog_CC
2408if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002409 { echo "$as_me:$LINENO: result: $CC" >&5
2410echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002411else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002412 { echo "$as_me:$LINENO: result: no" >&5
2413echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002414fi
2415
Reid Spencera773bd52006-08-04 18:18:08 +00002416
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002417fi
2418if test -z "$ac_cv_prog_CC"; then
2419 ac_ct_CC=$CC
2420 # Extract the first word of "gcc", so it can be a program name with args.
2421set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002422{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2423echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2424if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2425 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002426else
2427 if test -n "$ac_ct_CC"; then
2428 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2429else
2430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2431for as_dir in $PATH
2432do
2433 IFS=$as_save_IFS
2434 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002435 for ac_exec_ext in '' $ac_executable_extensions; do
2436 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 +00002437 ac_cv_prog_ac_ct_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002439 break 2
2440 fi
2441done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002442done
Reid Spencera773bd52006-08-04 18:18:08 +00002443IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002444
2445fi
2446fi
2447ac_ct_CC=$ac_cv_prog_ac_ct_CC
2448if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002449 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2450echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002451else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002452 { echo "$as_me:$LINENO: result: no" >&5
2453echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002454fi
2455
Reid Spencera773bd52006-08-04 18:18:08 +00002456 if test "x$ac_ct_CC" = x; then
2457 CC=""
2458 else
2459 case $cross_compiling:$ac_tool_warned in
2460yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002461{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2462whose name does not start with the host triplet. If you think this
2463configuration is useful to you, please write to autoconf@gnu.org." >&5
2464echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2465whose name does not start with the host triplet. If you think this
2466configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002467ac_tool_warned=yes ;;
2468esac
2469 CC=$ac_ct_CC
2470 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002471else
2472 CC="$ac_cv_prog_CC"
2473fi
2474
2475if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002476 if test -n "$ac_tool_prefix"; then
2477 # 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 +00002478set dummy ${ac_tool_prefix}cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002479{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2480echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2481if test "${ac_cv_prog_CC+set}" = set; then
2482 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002483else
2484 if test -n "$CC"; then
2485 ac_cv_prog_CC="$CC" # Let the user override the test.
2486else
2487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488for as_dir in $PATH
2489do
2490 IFS=$as_save_IFS
2491 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002492 for ac_exec_ext in '' $ac_executable_extensions; do
2493 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 +00002494 ac_cv_prog_CC="${ac_tool_prefix}cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002496 break 2
2497 fi
2498done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002499done
Reid Spencera773bd52006-08-04 18:18:08 +00002500IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002501
2502fi
2503fi
2504CC=$ac_cv_prog_CC
2505if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002506 { echo "$as_me:$LINENO: result: $CC" >&5
2507echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002508else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002509 { echo "$as_me:$LINENO: result: no" >&5
2510echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002511fi
2512
Reid Spencera773bd52006-08-04 18:18:08 +00002513
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002514 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002515fi
2516if test -z "$CC"; then
2517 # Extract the first word of "cc", so it can be a program name with args.
2518set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002519{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2521if test "${ac_cv_prog_CC+set}" = set; then
2522 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002523else
2524 if test -n "$CC"; then
2525 ac_cv_prog_CC="$CC" # Let the user override the test.
2526else
2527 ac_prog_rejected=no
2528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529for as_dir in $PATH
2530do
2531 IFS=$as_save_IFS
2532 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002533 for ac_exec_ext in '' $ac_executable_extensions; do
2534 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 +00002535 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2536 ac_prog_rejected=yes
2537 continue
2538 fi
2539 ac_cv_prog_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002541 break 2
2542 fi
2543done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002544done
Reid Spencera773bd52006-08-04 18:18:08 +00002545IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002546
2547if test $ac_prog_rejected = yes; then
2548 # We found a bogon in the path, so make sure we never use it.
2549 set dummy $ac_cv_prog_CC
2550 shift
2551 if test $# != 0; then
2552 # We chose a different compiler from the bogus one.
2553 # However, it has the same basename, so the bogon will be chosen
2554 # first if we set CC to just the basename; use the full file name.
2555 shift
2556 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2557 fi
2558fi
2559fi
2560fi
2561CC=$ac_cv_prog_CC
2562if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002563 { echo "$as_me:$LINENO: result: $CC" >&5
2564echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002565else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002566 { echo "$as_me:$LINENO: result: no" >&5
2567echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002568fi
2569
Reid Spencera773bd52006-08-04 18:18:08 +00002570
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002571fi
2572if test -z "$CC"; then
2573 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002574 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002575 do
2576 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2577set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002578{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2579echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2580if test "${ac_cv_prog_CC+set}" = set; then
2581 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002582else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002583 if test -n "$CC"; then
2584 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002585else
2586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587for as_dir in $PATH
2588do
2589 IFS=$as_save_IFS
2590 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002591 for ac_exec_ext in '' $ac_executable_extensions; do
2592 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 +00002593 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002595 break 2
2596 fi
2597done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002598done
Reid Spencera773bd52006-08-04 18:18:08 +00002599IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002600
2601fi
2602fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002603CC=$ac_cv_prog_CC
2604if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002605 { echo "$as_me:$LINENO: result: $CC" >&5
2606echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002607else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002608 { echo "$as_me:$LINENO: result: no" >&5
2609echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002610fi
2611
Reid Spencera773bd52006-08-04 18:18:08 +00002612
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002613 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002614 done
2615fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002616if test -z "$CC"; then
2617 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002618 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002619do
2620 # Extract the first word of "$ac_prog", so it can be a program name with args.
2621set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002622{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2624if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2625 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002626else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002627 if test -n "$ac_ct_CC"; then
2628 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002629else
2630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2631for as_dir in $PATH
2632do
2633 IFS=$as_save_IFS
2634 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002635 for ac_exec_ext in '' $ac_executable_extensions; do
2636 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 +00002637 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002639 break 2
2640 fi
2641done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002642done
Reid Spencera773bd52006-08-04 18:18:08 +00002643IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002644
2645fi
2646fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002647ac_ct_CC=$ac_cv_prog_ac_ct_CC
2648if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002649 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2650echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002651else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002652 { echo "$as_me:$LINENO: result: no" >&5
2653echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002654fi
2655
Reid Spencera773bd52006-08-04 18:18:08 +00002656
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002657 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002658done
John Criswell7a73b802003-06-30 21:59:07 +00002659
Reid Spencera773bd52006-08-04 18:18:08 +00002660 if test "x$ac_ct_CC" = x; then
2661 CC=""
2662 else
2663 case $cross_compiling:$ac_tool_warned in
2664yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002665{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2666whose name does not start with the host triplet. If you think this
2667configuration is useful to you, please write to autoconf@gnu.org." >&5
2668echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2669whose name does not start with the host triplet. If you think this
2670configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002671ac_tool_warned=yes ;;
2672esac
2673 CC=$ac_ct_CC
2674 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002675fi
2676
John Criswell7a73b802003-06-30 21:59:07 +00002677fi
2678
2679
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002680test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2681See \`config.log' for more details." >&5
2682echo "$as_me: error: no acceptable C compiler found in \$PATH
2683See \`config.log' for more details." >&2;}
2684 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002685
John Criswell7a73b802003-06-30 21:59:07 +00002686# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002687echo "$as_me:$LINENO: checking for C compiler version" >&5
2688ac_compiler=`set X $ac_compile; echo $2`
2689{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002690case "(($ac_try" in
2691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2692 *) ac_try_echo=$ac_try;;
2693esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2695 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002696 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); }
2699{ (ac_try="$ac_compiler -v >&5"
2700case "(($ac_try" in
2701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2702 *) ac_try_echo=$ac_try;;
2703esac
2704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2705 (eval "$ac_compiler -v >&5") 2>&5
2706 ac_status=$?
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); }
2709{ (ac_try="$ac_compiler -V >&5"
2710case "(($ac_try" in
2711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2712 *) ac_try_echo=$ac_try;;
2713esac
2714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2715 (eval "$ac_compiler -V >&5") 2>&5
2716 ac_status=$?
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002719
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002720cat >conftest.$ac_ext <<_ACEOF
2721/* confdefs.h. */
2722_ACEOF
2723cat confdefs.h >>conftest.$ac_ext
2724cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002725/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002726
John Criswell7a73b802003-06-30 21:59:07 +00002727int
2728main ()
2729{
2730
2731 ;
2732 return 0;
2733}
2734_ACEOF
2735ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002736ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002737# Try to create an executable without -o first, disregard a.out.
2738# It will help us diagnose broken compilers, and finding out an intuition
2739# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002740{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2741echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2742ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2743#
2744# List of possible output files, starting from the most likely.
2745# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2746# only as a last resort. b.out is created by i960 compilers.
2747ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2748#
2749# The IRIX 6 linker writes into existing files which may not be
2750# executable, retaining their permissions. Remove them first so a
2751# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002752ac_rmfiles=
2753for ac_file in $ac_files
2754do
2755 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002756 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002757 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2758 esac
2759done
2760rm -f $ac_rmfiles
2761
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002762if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002763case "(($ac_try" in
2764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2765 *) ac_try_echo=$ac_try;;
2766esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002768 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002769 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002772 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2773# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2774# in a Makefile. We should not override ac_cv_exeext if it was cached,
2775# so that the user can short-circuit this test for compilers unknown to
2776# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002777for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002778do
2779 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002780 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002781 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002782 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002783 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002784 # We found the default executable, but exeext='' is most
2785 # certainly right.
2786 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002787 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002788 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002789 then :; else
2790 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2791 fi
2792 # We set ac_cv_exeext here because the later test for it is not
2793 # safe: cross compilers may not add the suffix if given an `-o'
2794 # argument, so we may need to know it at that point already.
2795 # Even if this section looks crufty: it has the advantage of
2796 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002797 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002798 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002799 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002800 esac
2801done
Reid Spencera773bd52006-08-04 18:18:08 +00002802test "$ac_cv_exeext" = no && ac_cv_exeext=
2803
John Criswell7a73b802003-06-30 21:59:07 +00002804else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002805 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002806sed 's/^/| /' conftest.$ac_ext >&5
2807
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002808{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2809See \`config.log' for more details." >&5
2810echo "$as_me: error: C compiler cannot create executables
2811See \`config.log' for more details." >&2;}
2812 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002813fi
John Criswell7a73b802003-06-30 21:59:07 +00002814
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002815ac_exeext=$ac_cv_exeext
2816{ echo "$as_me:$LINENO: result: $ac_file" >&5
2817echo "${ECHO_T}$ac_file" >&6; }
2818
2819# Check that the compiler produces executables we can run. If not, either
2820# the compiler is broken, or we cross compile.
2821{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2822echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2823# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2824# If not cross compiling, check that we can run a simple program.
2825if test "$cross_compiling" != yes; then
2826 if { ac_try='./$ac_file'
2827 { (case "(($ac_try" in
2828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2829 *) ac_try_echo=$ac_try;;
2830esac
2831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2832 (eval "$ac_try") 2>&5
2833 ac_status=$?
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); }; }; then
2836 cross_compiling=no
2837 else
2838 if test "$cross_compiling" = maybe; then
2839 cross_compiling=yes
2840 else
2841 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2842If you meant to cross compile, use \`--host'.
2843See \`config.log' for more details." >&5
2844echo "$as_me: error: cannot run C compiled programs.
2845If you meant to cross compile, use \`--host'.
2846See \`config.log' for more details." >&2;}
2847 { (exit 1); exit 1; }; }
2848 fi
2849 fi
2850fi
2851{ echo "$as_me:$LINENO: result: yes" >&5
2852echo "${ECHO_T}yes" >&6; }
2853
2854rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002855ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002856# Check that the compiler produces executables we can run. If not, either
2857# the compiler is broken, or we cross compile.
2858{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2859echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2860{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2861echo "${ECHO_T}$cross_compiling" >&6; }
2862
2863{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2864echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2865if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002866case "(($ac_try" in
2867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2868 *) ac_try_echo=$ac_try;;
2869esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002871 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002872 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002875 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2876# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2877# work properly (i.e., refer to `conftest.exe'), while it won't with
2878# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002879for ac_file in conftest.exe conftest conftest.*; do
2880 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002881 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002882 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002883 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002884 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002885 * ) break;;
2886 esac
2887done
2888else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002889 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2890See \`config.log' for more details." >&5
2891echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2892See \`config.log' for more details." >&2;}
2893 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002894fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002895
2896rm -f conftest$ac_cv_exeext
2897{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2898echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002899
2900rm -f conftest.$ac_ext
2901EXEEXT=$ac_cv_exeext
2902ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002903{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2904echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2905if test "${ac_cv_objext+set}" = set; then
2906 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002907else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002908 cat >conftest.$ac_ext <<_ACEOF
2909/* confdefs.h. */
2910_ACEOF
2911cat confdefs.h >>conftest.$ac_ext
2912cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002913/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002914
John Criswell7a73b802003-06-30 21:59:07 +00002915int
2916main ()
2917{
2918
2919 ;
2920 return 0;
2921}
2922_ACEOF
2923rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002924if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002925case "(($ac_try" in
2926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2927 *) ac_try_echo=$ac_try;;
2928esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002930 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002931 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002934 for ac_file in conftest.o conftest.obj conftest.*; do
2935 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002936 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002937 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002938 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2939 break;;
2940 esac
2941done
2942else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002943 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002944sed 's/^/| /' conftest.$ac_ext >&5
2945
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002946{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2947See \`config.log' for more details." >&5
2948echo "$as_me: error: cannot compute suffix of object files: cannot compile
2949See \`config.log' for more details." >&2;}
2950 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002951fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002952
John Criswell7a73b802003-06-30 21:59:07 +00002953rm -f conftest.$ac_cv_objext conftest.$ac_ext
2954fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002955{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2956echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002957OBJEXT=$ac_cv_objext
2958ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002959{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2960echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2961if test "${ac_cv_c_compiler_gnu+set}" = set; then
2962 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002963else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002964 cat >conftest.$ac_ext <<_ACEOF
2965/* confdefs.h. */
2966_ACEOF
2967cat confdefs.h >>conftest.$ac_ext
2968cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002969/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002970
John Criswell7a73b802003-06-30 21:59:07 +00002971int
2972main ()
2973{
2974#ifndef __GNUC__
2975 choke me
2976#endif
2977
2978 ;
2979 return 0;
2980}
2981_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002982rm -f conftest.$ac_objext
2983if { (ac_try="$ac_compile"
2984case "(($ac_try" in
2985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986 *) ac_try_echo=$ac_try;;
2987esac
2988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2989 (eval "$ac_compile") 2>conftest.er1
2990 ac_status=$?
2991 grep -v '^ *+' conftest.er1 >conftest.err
2992 rm -f conftest.er1
2993 cat conftest.err >&5
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); } &&
2996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2997 { (case "(($ac_try" in
2998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999 *) ac_try_echo=$ac_try;;
3000esac
3001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3002 (eval "$ac_try") 2>&5
3003 ac_status=$?
3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 (exit $ac_status); }; } &&
3006 { ac_try='test -s conftest.$ac_objext'
3007 { (case "(($ac_try" in
3008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009 *) ac_try_echo=$ac_try;;
3010esac
3011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3012 (eval "$ac_try") 2>&5
3013 ac_status=$?
3014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003016 ac_compiler_gnu=yes
3017else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003018 echo "$as_me: failed program was:" >&5
3019sed 's/^/| /' conftest.$ac_ext >&5
3020
3021 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003022fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003023
Reid Spencera773bd52006-08-04 18:18:08 +00003024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003025ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003026
3027fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003028{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3029echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3030GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003031ac_test_CFLAGS=${CFLAGS+set}
3032ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003033{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3034echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3035if test "${ac_cv_prog_cc_g+set}" = set; then
3036 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003037else
Reid Spencera773bd52006-08-04 18:18:08 +00003038 ac_save_c_werror_flag=$ac_c_werror_flag
3039 ac_c_werror_flag=yes
3040 ac_cv_prog_cc_g=no
3041 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003042 cat >conftest.$ac_ext <<_ACEOF
3043/* confdefs.h. */
3044_ACEOF
3045cat confdefs.h >>conftest.$ac_ext
3046cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003047/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003048
John Criswell7a73b802003-06-30 21:59:07 +00003049int
3050main ()
3051{
3052
3053 ;
3054 return 0;
3055}
3056_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003057rm -f conftest.$ac_objext
3058if { (ac_try="$ac_compile"
3059case "(($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_compile") 2>conftest.er1
3065 ac_status=$?
3066 grep -v '^ *+' conftest.er1 >conftest.err
3067 rm -f conftest.er1
3068 cat conftest.err >&5
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); } &&
3071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3072 { (case "(($ac_try" in
3073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074 *) ac_try_echo=$ac_try;;
3075esac
3076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3077 (eval "$ac_try") 2>&5
3078 ac_status=$?
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); }; } &&
3081 { ac_try='test -s conftest.$ac_objext'
3082 { (case "(($ac_try" in
3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
3085esac
3086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087 (eval "$ac_try") 2>&5
3088 ac_status=$?
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003091 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003092else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003093 echo "$as_me: failed program was:" >&5
3094sed 's/^/| /' conftest.$ac_ext >&5
3095
3096 CFLAGS=""
3097 cat >conftest.$ac_ext <<_ACEOF
3098/* confdefs.h. */
3099_ACEOF
3100cat confdefs.h >>conftest.$ac_ext
3101cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003102/* end confdefs.h. */
3103
3104int
3105main ()
3106{
3107
3108 ;
3109 return 0;
3110}
3111_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003112rm -f conftest.$ac_objext
3113if { (ac_try="$ac_compile"
3114case "(($ac_try" in
3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116 *) ac_try_echo=$ac_try;;
3117esac
3118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3119 (eval "$ac_compile") 2>conftest.er1
3120 ac_status=$?
3121 grep -v '^ *+' conftest.er1 >conftest.err
3122 rm -f conftest.er1
3123 cat conftest.err >&5
3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125 (exit $ac_status); } &&
3126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3127 { (case "(($ac_try" in
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3130esac
3131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3132 (eval "$ac_try") 2>&5
3133 ac_status=$?
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); }; } &&
3136 { ac_try='test -s conftest.$ac_objext'
3137 { (case "(($ac_try" in
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3140esac
3141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142 (eval "$ac_try") 2>&5
3143 ac_status=$?
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); }; }; then
3146 :
Torok Edwin871384f2010-01-26 08:50:50 +00003147else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003148 echo "$as_me: failed program was:" >&5
3149sed 's/^/| /' conftest.$ac_ext >&5
3150
3151 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00003152 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003153 cat >conftest.$ac_ext <<_ACEOF
3154/* confdefs.h. */
3155_ACEOF
3156cat confdefs.h >>conftest.$ac_ext
3157cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003158/* end confdefs.h. */
3159
3160int
3161main ()
3162{
3163
3164 ;
3165 return 0;
3166}
3167_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003168rm -f conftest.$ac_objext
3169if { (ac_try="$ac_compile"
3170case "(($ac_try" in
3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172 *) ac_try_echo=$ac_try;;
3173esac
3174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3175 (eval "$ac_compile") 2>conftest.er1
3176 ac_status=$?
3177 grep -v '^ *+' conftest.er1 >conftest.err
3178 rm -f conftest.er1
3179 cat conftest.err >&5
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); } &&
3182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3183 { (case "(($ac_try" in
3184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185 *) ac_try_echo=$ac_try;;
3186esac
3187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3188 (eval "$ac_try") 2>&5
3189 ac_status=$?
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); }; } &&
3192 { ac_try='test -s conftest.$ac_objext'
3193 { (case "(($ac_try" in
3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3196esac
3197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3198 (eval "$ac_try") 2>&5
3199 ac_status=$?
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003202 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003203else
3204 echo "$as_me: failed program was:" >&5
3205sed 's/^/| /' conftest.$ac_ext >&5
3206
3207
John Criswell7a73b802003-06-30 21:59:07 +00003208fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003209
Reid Spencera773bd52006-08-04 18:18:08 +00003210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003211fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003212
Reid Spencera773bd52006-08-04 18:18:08 +00003213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3214fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003215
Reid Spencera773bd52006-08-04 18:18:08 +00003216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3217 ac_c_werror_flag=$ac_save_c_werror_flag
3218fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003219{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3220echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003221if test "$ac_test_CFLAGS" = set; then
3222 CFLAGS=$ac_save_CFLAGS
3223elif test $ac_cv_prog_cc_g = yes; then
3224 if test "$GCC" = yes; then
3225 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003226 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003227 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003228 fi
3229else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003230 if test "$GCC" = yes; then
3231 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003232 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003233 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003234 fi
3235fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003236{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3237echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3238if test "${ac_cv_prog_cc_c89+set}" = set; then
3239 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003240else
Reid Spencera773bd52006-08-04 18:18:08 +00003241 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003242ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003243cat >conftest.$ac_ext <<_ACEOF
3244/* confdefs.h. */
3245_ACEOF
3246cat confdefs.h >>conftest.$ac_ext
3247cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003248/* end confdefs.h. */
3249#include <stdarg.h>
3250#include <stdio.h>
3251#include <sys/types.h>
3252#include <sys/stat.h>
3253/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3254struct buf { int x; };
3255FILE * (*rcsopen) (struct buf *, struct stat *, int);
3256static char *e (p, i)
3257 char **p;
3258 int i;
3259{
3260 return p[i];
3261}
3262static char *f (char * (*g) (char **, int), char **p, ...)
3263{
3264 char *s;
3265 va_list v;
3266 va_start (v,p);
3267 s = g (p, va_arg (v,int));
3268 va_end (v);
3269 return s;
3270}
3271
3272/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3273 function prototypes and stuff, but not '\xHH' hex character constants.
3274 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003275 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003276 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3277 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003278 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003279int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3280
Reid Spencera773bd52006-08-04 18:18:08 +00003281/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3282 inside strings and character constants. */
3283#define FOO(x) 'x'
3284int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3285
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003286int test (int i, double x);
3287struct s1 {int (*f) (int a);};
3288struct s2 {int (*f) (double a);};
3289int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3290int argc;
3291char **argv;
3292int
3293main ()
3294{
3295return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3296 ;
3297 return 0;
3298}
3299_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003300for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3301 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003302do
3303 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003304 rm -f conftest.$ac_objext
3305if { (ac_try="$ac_compile"
3306case "(($ac_try" in
3307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3308 *) ac_try_echo=$ac_try;;
3309esac
3310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3311 (eval "$ac_compile") 2>conftest.er1
3312 ac_status=$?
3313 grep -v '^ *+' conftest.er1 >conftest.err
3314 rm -f conftest.er1
3315 cat conftest.err >&5
3316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317 (exit $ac_status); } &&
3318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3319 { (case "(($ac_try" in
3320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321 *) ac_try_echo=$ac_try;;
3322esac
3323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3324 (eval "$ac_try") 2>&5
3325 ac_status=$?
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); }; } &&
3328 { ac_try='test -s conftest.$ac_objext'
3329 { (case "(($ac_try" in
3330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331 *) ac_try_echo=$ac_try;;
3332esac
3333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3334 (eval "$ac_try") 2>&5
3335 ac_status=$?
3336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003338 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003339else
3340 echo "$as_me: failed program was:" >&5
3341sed 's/^/| /' conftest.$ac_ext >&5
3342
3343
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003344fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003345
Reid Spencera773bd52006-08-04 18:18:08 +00003346rm -f core conftest.err conftest.$ac_objext
3347 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003348done
Reid Spencera773bd52006-08-04 18:18:08 +00003349rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003350CC=$ac_save_CC
3351
3352fi
Reid Spencera773bd52006-08-04 18:18:08 +00003353# AC_CACHE_VAL
3354case "x$ac_cv_prog_cc_c89" in
3355 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003356 { echo "$as_me:$LINENO: result: none needed" >&5
3357echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00003358 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003359 { echo "$as_me:$LINENO: result: unsupported" >&5
3360echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003361 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003362 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003363 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3364echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003365esac
3366
John Criswell0c38eaf2003-09-10 15:17:25 +00003367
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003368ac_ext=c
3369ac_cpp='$CPP $CPPFLAGS'
3370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3372ac_compiler_gnu=$ac_cv_c_compiler_gnu
3373
3374
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003375ac_ext=c
3376ac_cpp='$CPP $CPPFLAGS'
3377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3379ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003380{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3381echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003382# On Suns, sometimes $CPP names a directory.
3383if test -n "$CPP" && test -d "$CPP"; then
3384 CPP=
3385fi
3386if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003387 if test "${ac_cv_prog_CPP+set}" = set; then
3388 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003389else
3390 # Double quotes because CPP needs to be expanded
3391 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3392 do
3393 ac_preproc_ok=false
3394for ac_c_preproc_warn_flag in '' yes
3395do
3396 # Use a header file that comes with gcc, so configuring glibc
3397 # with a fresh cross-compiler works.
3398 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3399 # <limits.h> exists even on freestanding compilers.
3400 # On the NeXT, cc -E runs the code through the compiler's parser,
3401 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003402 cat >conftest.$ac_ext <<_ACEOF
3403/* confdefs.h. */
3404_ACEOF
3405cat confdefs.h >>conftest.$ac_ext
3406cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003407/* end confdefs.h. */
3408#ifdef __STDC__
3409# include <limits.h>
3410#else
3411# include <assert.h>
3412#endif
3413 Syntax error
3414_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003415if { (ac_try="$ac_cpp conftest.$ac_ext"
3416case "(($ac_try" in
3417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418 *) ac_try_echo=$ac_try;;
3419esac
3420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3422 ac_status=$?
3423 grep -v '^ *+' conftest.er1 >conftest.err
3424 rm -f conftest.er1
3425 cat conftest.err >&5
3426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427 (exit $ac_status); } >/dev/null; then
3428 if test -s conftest.err; then
3429 ac_cpp_err=$ac_c_preproc_warn_flag
3430 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3431 else
3432 ac_cpp_err=
3433 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003434else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003435 ac_cpp_err=yes
3436fi
3437if test -z "$ac_cpp_err"; then
3438 :
3439else
3440 echo "$as_me: failed program was:" >&5
3441sed 's/^/| /' conftest.$ac_ext >&5
3442
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003443 # Broken: fails on valid input.
3444continue
3445fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003446
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003447rm -f conftest.err conftest.$ac_ext
3448
Reid Spencera773bd52006-08-04 18:18:08 +00003449 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003450 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003451 cat >conftest.$ac_ext <<_ACEOF
3452/* confdefs.h. */
3453_ACEOF
3454cat confdefs.h >>conftest.$ac_ext
3455cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003456/* end confdefs.h. */
3457#include <ac_nonexistent.h>
3458_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003459if { (ac_try="$ac_cpp conftest.$ac_ext"
3460case "(($ac_try" in
3461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3462 *) ac_try_echo=$ac_try;;
3463esac
3464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3465 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3466 ac_status=$?
3467 grep -v '^ *+' conftest.er1 >conftest.err
3468 rm -f conftest.er1
3469 cat conftest.err >&5
3470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471 (exit $ac_status); } >/dev/null; then
3472 if test -s conftest.err; then
3473 ac_cpp_err=$ac_c_preproc_warn_flag
3474 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3475 else
3476 ac_cpp_err=
3477 fi
3478else
3479 ac_cpp_err=yes
3480fi
3481if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003482 # Broken: success on invalid input.
3483continue
3484else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003485 echo "$as_me: failed program was:" >&5
3486sed 's/^/| /' conftest.$ac_ext >&5
3487
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003488 # Passes both tests.
3489ac_preproc_ok=:
3490break
3491fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003492
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003493rm -f conftest.err conftest.$ac_ext
3494
3495done
3496# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3497rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003498if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003499 break
3500fi
3501
3502 done
3503 ac_cv_prog_CPP=$CPP
3504
3505fi
3506 CPP=$ac_cv_prog_CPP
3507else
3508 ac_cv_prog_CPP=$CPP
3509fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003510{ echo "$as_me:$LINENO: result: $CPP" >&5
3511echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003512ac_preproc_ok=false
3513for ac_c_preproc_warn_flag in '' yes
3514do
3515 # Use a header file that comes with gcc, so configuring glibc
3516 # with a fresh cross-compiler works.
3517 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3518 # <limits.h> exists even on freestanding compilers.
3519 # On the NeXT, cc -E runs the code through the compiler's parser,
3520 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003521 cat >conftest.$ac_ext <<_ACEOF
3522/* confdefs.h. */
3523_ACEOF
3524cat confdefs.h >>conftest.$ac_ext
3525cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003526/* end confdefs.h. */
3527#ifdef __STDC__
3528# include <limits.h>
3529#else
3530# include <assert.h>
3531#endif
3532 Syntax error
3533_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003534if { (ac_try="$ac_cpp conftest.$ac_ext"
3535case "(($ac_try" in
3536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537 *) ac_try_echo=$ac_try;;
3538esac
3539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3541 ac_status=$?
3542 grep -v '^ *+' conftest.er1 >conftest.err
3543 rm -f conftest.er1
3544 cat conftest.err >&5
3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546 (exit $ac_status); } >/dev/null; then
3547 if test -s conftest.err; then
3548 ac_cpp_err=$ac_c_preproc_warn_flag
3549 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3550 else
3551 ac_cpp_err=
3552 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003553else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003554 ac_cpp_err=yes
3555fi
3556if test -z "$ac_cpp_err"; then
3557 :
3558else
3559 echo "$as_me: failed program was:" >&5
3560sed 's/^/| /' conftest.$ac_ext >&5
3561
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003562 # Broken: fails on valid input.
3563continue
3564fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003565
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003566rm -f conftest.err conftest.$ac_ext
3567
Reid Spencera773bd52006-08-04 18:18:08 +00003568 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003569 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003570 cat >conftest.$ac_ext <<_ACEOF
3571/* confdefs.h. */
3572_ACEOF
3573cat confdefs.h >>conftest.$ac_ext
3574cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003575/* end confdefs.h. */
3576#include <ac_nonexistent.h>
3577_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003578if { (ac_try="$ac_cpp conftest.$ac_ext"
3579case "(($ac_try" in
3580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3581 *) ac_try_echo=$ac_try;;
3582esac
3583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3585 ac_status=$?
3586 grep -v '^ *+' conftest.er1 >conftest.err
3587 rm -f conftest.er1
3588 cat conftest.err >&5
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); } >/dev/null; then
3591 if test -s conftest.err; then
3592 ac_cpp_err=$ac_c_preproc_warn_flag
3593 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3594 else
3595 ac_cpp_err=
3596 fi
3597else
3598 ac_cpp_err=yes
3599fi
3600if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003601 # Broken: success on invalid input.
3602continue
3603else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003604 echo "$as_me: failed program was:" >&5
3605sed 's/^/| /' conftest.$ac_ext >&5
3606
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003607 # Passes both tests.
3608ac_preproc_ok=:
3609break
3610fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003611
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003612rm -f conftest.err conftest.$ac_ext
3613
3614done
3615# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3616rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003617if $ac_preproc_ok; then
3618 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003619else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003620 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3621See \`config.log' for more details." >&5
3622echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3623See \`config.log' for more details." >&2;}
3624 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003625fi
3626
John Criswell7a73b802003-06-30 21:59:07 +00003627ac_ext=c
3628ac_cpp='$CPP $CPPFLAGS'
3629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3631ac_compiler_gnu=$ac_cv_c_compiler_gnu
3632
John Criswell7a73b802003-06-30 21:59:07 +00003633
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003634{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3635echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3636if test "${ac_cv_path_GREP+set}" = set; then
3637 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003638else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003639 # Extract the first word of "grep ggrep" to use in msg output
3640if test -z "$GREP"; then
3641set dummy grep ggrep; ac_prog_name=$2
3642if test "${ac_cv_path_GREP+set}" = set; then
3643 echo $ECHO_N "(cached) $ECHO_C" >&6
3644else
Reid Spencera773bd52006-08-04 18:18:08 +00003645 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003646# Loop through the user's path and test for each of PROGNAME-LIST
3647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003648for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003649do
3650 IFS=$as_save_IFS
3651 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003652 for ac_prog in grep ggrep; do
3653 for ac_exec_ext in '' $ac_executable_extensions; do
3654 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3655 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3656 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003657 # Check for GNU $ac_path_GREP
3658case `"$ac_path_GREP" --version 2>&1` in
3659*GNU*)
3660 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3661*)
3662 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003663 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003664 while :
3665 do
3666 cat "conftest.in" "conftest.in" >"conftest.tmp"
3667 mv "conftest.tmp" "conftest.in"
3668 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003669 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003670 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3671 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003672 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003673 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3674 # Best one so far, save it but keep looking for a better one
3675 ac_cv_path_GREP="$ac_path_GREP"
3676 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003677 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003678 # 10*(2^10) chars as input seems more than enough
3679 test $ac_count -gt 10 && break
3680 done
3681 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3682esac
3683
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003684
3685 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003686 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003687done
3688
3689done
Reid Spencera773bd52006-08-04 18:18:08 +00003690IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003691
3692
3693fi
3694
3695GREP="$ac_cv_path_GREP"
3696if test -z "$GREP"; then
3697 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3698echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3699 { (exit 1); exit 1; }; }
3700fi
3701
Reid Spencera773bd52006-08-04 18:18:08 +00003702else
3703 ac_cv_path_GREP=$GREP
3704fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003705
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003706
Reid Spencera773bd52006-08-04 18:18:08 +00003707fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003708{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3709echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003710 GREP="$ac_cv_path_GREP"
3711
3712
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003713{ echo "$as_me:$LINENO: checking for egrep" >&5
3714echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3715if test "${ac_cv_path_EGREP+set}" = set; then
3716 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00003717else
3718 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3719 then ac_cv_path_EGREP="$GREP -E"
3720 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003721 # Extract the first word of "egrep" to use in msg output
3722if test -z "$EGREP"; then
3723set dummy egrep; ac_prog_name=$2
3724if test "${ac_cv_path_EGREP+set}" = set; then
3725 echo $ECHO_N "(cached) $ECHO_C" >&6
3726else
Reid Spencera773bd52006-08-04 18:18:08 +00003727 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003728# Loop through the user's path and test for each of PROGNAME-LIST
3729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003730for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3731do
3732 IFS=$as_save_IFS
3733 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003734 for ac_prog in egrep; do
3735 for ac_exec_ext in '' $ac_executable_extensions; do
3736 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3737 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3738 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003739 # Check for GNU $ac_path_EGREP
3740case `"$ac_path_EGREP" --version 2>&1` in
3741*GNU*)
3742 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3743*)
3744 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003745 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003746 while :
3747 do
3748 cat "conftest.in" "conftest.in" >"conftest.tmp"
3749 mv "conftest.tmp" "conftest.in"
3750 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003751 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003752 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3753 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003754 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003755 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3756 # Best one so far, save it but keep looking for a better one
3757 ac_cv_path_EGREP="$ac_path_EGREP"
3758 ac_path_EGREP_max=$ac_count
3759 fi
3760 # 10*(2^10) chars as input seems more than enough
3761 test $ac_count -gt 10 && break
3762 done
3763 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3764esac
3765
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003766
3767 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003768 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003769done
3770
3771done
Reid Spencera773bd52006-08-04 18:18:08 +00003772IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003773
3774
3775fi
3776
3777EGREP="$ac_cv_path_EGREP"
3778if test -z "$EGREP"; then
3779 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3780echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3781 { (exit 1); exit 1; }; }
3782fi
3783
Reid Spencera773bd52006-08-04 18:18:08 +00003784else
3785 ac_cv_path_EGREP=$EGREP
3786fi
3787
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003788
Reid Spencera773bd52006-08-04 18:18:08 +00003789 fi
3790fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003791{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3792echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003793 EGREP="$ac_cv_path_EGREP"
3794
3795
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003796{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3797echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3798if test "${ac_cv_header_stdc+set}" = set; then
3799 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003800else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003801 cat >conftest.$ac_ext <<_ACEOF
3802/* confdefs.h. */
3803_ACEOF
3804cat confdefs.h >>conftest.$ac_ext
3805cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003806/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003807#include <stdlib.h>
3808#include <stdarg.h>
3809#include <string.h>
3810#include <float.h>
3811
John Criswell0c38eaf2003-09-10 15:17:25 +00003812int
3813main ()
3814{
3815
3816 ;
3817 return 0;
3818}
John Criswell7a73b802003-06-30 21:59:07 +00003819_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003820rm -f conftest.$ac_objext
3821if { (ac_try="$ac_compile"
3822case "(($ac_try" in
3823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3824 *) ac_try_echo=$ac_try;;
3825esac
3826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3827 (eval "$ac_compile") 2>conftest.er1
3828 ac_status=$?
3829 grep -v '^ *+' conftest.er1 >conftest.err
3830 rm -f conftest.er1
3831 cat conftest.err >&5
3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); } &&
3834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3835 { (case "(($ac_try" in
3836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3837 *) ac_try_echo=$ac_try;;
3838esac
3839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3840 (eval "$ac_try") 2>&5
3841 ac_status=$?
3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843 (exit $ac_status); }; } &&
3844 { ac_try='test -s conftest.$ac_objext'
3845 { (case "(($ac_try" in
3846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3847 *) ac_try_echo=$ac_try;;
3848esac
3849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3850 (eval "$ac_try") 2>&5
3851 ac_status=$?
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003854 ac_cv_header_stdc=yes
3855else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003856 echo "$as_me: failed program was:" >&5
3857sed 's/^/| /' conftest.$ac_ext >&5
3858
3859 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003860fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003861
Reid Spencera773bd52006-08-04 18:18:08 +00003862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003863
3864if test $ac_cv_header_stdc = yes; then
3865 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003866 cat >conftest.$ac_ext <<_ACEOF
3867/* confdefs.h. */
3868_ACEOF
3869cat confdefs.h >>conftest.$ac_ext
3870cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003871/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003872#include <string.h>
3873
3874_ACEOF
3875if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003876 $EGREP "memchr" >/dev/null 2>&1; then
3877 :
John Criswell7a73b802003-06-30 21:59:07 +00003878else
3879 ac_cv_header_stdc=no
3880fi
3881rm -f conftest*
3882
3883fi
3884
3885if test $ac_cv_header_stdc = yes; then
3886 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003887 cat >conftest.$ac_ext <<_ACEOF
3888/* confdefs.h. */
3889_ACEOF
3890cat confdefs.h >>conftest.$ac_ext
3891cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003892/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003893#include <stdlib.h>
3894
3895_ACEOF
3896if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003897 $EGREP "free" >/dev/null 2>&1; then
3898 :
John Criswell7a73b802003-06-30 21:59:07 +00003899else
3900 ac_cv_header_stdc=no
3901fi
3902rm -f conftest*
3903
3904fi
3905
3906if test $ac_cv_header_stdc = yes; then
3907 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003908 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00003909 :
3910else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003911 cat >conftest.$ac_ext <<_ACEOF
3912/* confdefs.h. */
3913_ACEOF
3914cat confdefs.h >>conftest.$ac_ext
3915cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003916/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003917#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003918#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003919#if ((' ' & 0x0FF) == 0x020)
3920# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3921# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3922#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003923# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003924 (('a' <= (c) && (c) <= 'i') \
3925 || ('j' <= (c) && (c) <= 'r') \
3926 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003927# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3928#endif
3929
3930#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3931int
3932main ()
3933{
3934 int i;
3935 for (i = 0; i < 256; i++)
3936 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003937 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003938 return 2;
3939 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003940}
3941_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003942rm -f conftest$ac_exeext
3943if { (ac_try="$ac_link"
3944case "(($ac_try" in
3945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3946 *) ac_try_echo=$ac_try;;
3947esac
3948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3949 (eval "$ac_link") 2>&5
3950 ac_status=$?
3951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3953 { (case "(($ac_try" in
3954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3955 *) ac_try_echo=$ac_try;;
3956esac
3957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3958 (eval "$ac_try") 2>&5
3959 ac_status=$?
3960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961 (exit $ac_status); }; }; then
3962 :
John Criswell7a73b802003-06-30 21:59:07 +00003963else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003964 echo "$as_me: program exited with status $ac_status" >&5
3965echo "$as_me: failed program was:" >&5
3966sed 's/^/| /' conftest.$ac_ext >&5
3967
3968( exit $ac_status )
3969ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003970fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003971rm -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 +00003972fi
3973
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003974
John Criswell7a73b802003-06-30 21:59:07 +00003975fi
3976fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003977{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3978echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003979if test $ac_cv_header_stdc = yes; then
3980
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003981cat >>confdefs.h <<\_ACEOF
3982#define STDC_HEADERS 1
3983_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00003984
3985fi
3986
Reid Spencera773bd52006-08-04 18:18:08 +00003987# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003988
3989
3990
3991
3992
3993
3994
3995
3996
Reid Spencera773bd52006-08-04 18:18:08 +00003997for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3998 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003999do
4000as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4001{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4002echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4003if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4004 echo $ECHO_N "(cached) $ECHO_C" >&6
4005else
4006 cat >conftest.$ac_ext <<_ACEOF
4007/* confdefs.h. */
4008_ACEOF
4009cat confdefs.h >>conftest.$ac_ext
4010cat >>conftest.$ac_ext <<_ACEOF
4011/* end confdefs.h. */
4012$ac_includes_default
4013
4014#include <$ac_header>
4015_ACEOF
4016rm -f conftest.$ac_objext
4017if { (ac_try="$ac_compile"
4018case "(($ac_try" in
4019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4020 *) ac_try_echo=$ac_try;;
4021esac
4022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4023 (eval "$ac_compile") 2>conftest.er1
4024 ac_status=$?
4025 grep -v '^ *+' conftest.er1 >conftest.err
4026 rm -f conftest.er1
4027 cat conftest.err >&5
4028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029 (exit $ac_status); } &&
4030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4031 { (case "(($ac_try" in
4032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033 *) ac_try_echo=$ac_try;;
4034esac
4035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4036 (eval "$ac_try") 2>&5
4037 ac_status=$?
4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039 (exit $ac_status); }; } &&
4040 { ac_try='test -s conftest.$ac_objext'
4041 { (case "(($ac_try" in
4042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4043 *) ac_try_echo=$ac_try;;
4044esac
4045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4046 (eval "$ac_try") 2>&5
4047 ac_status=$?
4048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049 (exit $ac_status); }; }; then
4050 eval "$as_ac_Header=yes"
4051else
4052 echo "$as_me: failed program was:" >&5
4053sed 's/^/| /' conftest.$ac_ext >&5
4054
4055 eval "$as_ac_Header=no"
4056fi
4057
4058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4059fi
4060ac_res=`eval echo '${'$as_ac_Header'}'`
4061 { echo "$as_me:$LINENO: result: $ac_res" >&5
4062echo "${ECHO_T}$ac_res" >&6; }
4063if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004064 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004065#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004066_ACEOF
4067
4068fi
4069
4070done
4071
4072
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004073{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4074echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4075if test "${ac_cv_c_bigendian+set}" = set; then
4076 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004077else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004078 # See if sys/param.h defines the BYTE_ORDER macro.
4079cat >conftest.$ac_ext <<_ACEOF
4080/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004081_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004082cat confdefs.h >>conftest.$ac_ext
4083cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004084/* end confdefs.h. */
4085#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004086#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004087
4088int
4089main ()
4090{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004091#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4092 bogus endian macros
4093#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004094
4095 ;
4096 return 0;
4097}
4098_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004099rm -f conftest.$ac_objext
4100if { (ac_try="$ac_compile"
4101case "(($ac_try" in
4102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103 *) ac_try_echo=$ac_try;;
4104esac
4105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4106 (eval "$ac_compile") 2>conftest.er1
4107 ac_status=$?
4108 grep -v '^ *+' conftest.er1 >conftest.err
4109 rm -f conftest.er1
4110 cat conftest.err >&5
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); } &&
4113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4114 { (case "(($ac_try" in
4115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4116 *) ac_try_echo=$ac_try;;
4117esac
4118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4119 (eval "$ac_try") 2>&5
4120 ac_status=$?
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); }; } &&
4123 { ac_try='test -s conftest.$ac_objext'
4124 { (case "(($ac_try" in
4125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4126 *) ac_try_echo=$ac_try;;
4127esac
4128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4129 (eval "$ac_try") 2>&5
4130 ac_status=$?
4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004133 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004134cat >conftest.$ac_ext <<_ACEOF
4135/* confdefs.h. */
4136_ACEOF
4137cat confdefs.h >>conftest.$ac_ext
4138cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004139/* end confdefs.h. */
4140#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004141#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004142
4143int
4144main ()
4145{
4146#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004147 not big endian
4148#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004149
4150 ;
4151 return 0;
4152}
4153_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004154rm -f conftest.$ac_objext
4155if { (ac_try="$ac_compile"
4156case "(($ac_try" in
4157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4158 *) ac_try_echo=$ac_try;;
4159esac
4160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4161 (eval "$ac_compile") 2>conftest.er1
4162 ac_status=$?
4163 grep -v '^ *+' conftest.er1 >conftest.err
4164 rm -f conftest.er1
4165 cat conftest.err >&5
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); } &&
4168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4169 { (case "(($ac_try" in
4170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4171 *) ac_try_echo=$ac_try;;
4172esac
4173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4174 (eval "$ac_try") 2>&5
4175 ac_status=$?
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); }; } &&
4178 { ac_try='test -s conftest.$ac_objext'
4179 { (case "(($ac_try" in
4180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4181 *) ac_try_echo=$ac_try;;
4182esac
4183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4184 (eval "$ac_try") 2>&5
4185 ac_status=$?
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004188 ac_cv_c_bigendian=yes
4189else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004190 echo "$as_me: failed program was:" >&5
4191sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004192
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004193 ac_cv_c_bigendian=no
4194fi
4195
4196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4197else
4198 echo "$as_me: failed program was:" >&5
4199sed 's/^/| /' conftest.$ac_ext >&5
4200
4201 # It does not; compile a test program.
4202if test "$cross_compiling" = yes; then
4203 # try to guess the endianness by grepping values into an object file
4204 ac_cv_c_bigendian=unknown
4205 cat >conftest.$ac_ext <<_ACEOF
4206/* confdefs.h. */
4207_ACEOF
4208cat confdefs.h >>conftest.$ac_ext
4209cat >>conftest.$ac_ext <<_ACEOF
4210/* end confdefs.h. */
4211short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4212short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4213void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4214short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4215short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4216void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004217int
4218main ()
4219{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004220 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004221 ;
4222 return 0;
4223}
4224_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004225rm -f conftest.$ac_objext
4226if { (ac_try="$ac_compile"
4227case "(($ac_try" in
4228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229 *) ac_try_echo=$ac_try;;
4230esac
4231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4232 (eval "$ac_compile") 2>conftest.er1
4233 ac_status=$?
4234 grep -v '^ *+' conftest.er1 >conftest.err
4235 rm -f conftest.er1
4236 cat conftest.err >&5
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); } &&
4239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4240 { (case "(($ac_try" in
4241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4242 *) ac_try_echo=$ac_try;;
4243esac
4244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4245 (eval "$ac_try") 2>&5
4246 ac_status=$?
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); }; } &&
4249 { ac_try='test -s conftest.$ac_objext'
4250 { (case "(($ac_try" in
4251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4252 *) ac_try_echo=$ac_try;;
4253esac
4254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4255 (eval "$ac_try") 2>&5
4256 ac_status=$?
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); }; }; then
4259 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004260 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004261fi
4262if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4263 if test "$ac_cv_c_bigendian" = unknown; then
4264 ac_cv_c_bigendian=no
4265 else
4266 # finding both strings is unlikely to happen, but who knows?
4267 ac_cv_c_bigendian=unknown
4268 fi
4269fi
Reid Spencera773bd52006-08-04 18:18:08 +00004270else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004271 echo "$as_me: failed program was:" >&5
4272sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004273
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004274
Torok Edwin871384f2010-01-26 08:50:50 +00004275fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004276
Reid Spencera773bd52006-08-04 18:18:08 +00004277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4278else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004279 cat >conftest.$ac_ext <<_ACEOF
4280/* confdefs.h. */
4281_ACEOF
4282cat confdefs.h >>conftest.$ac_ext
4283cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004284/* end confdefs.h. */
4285$ac_includes_default
4286int
4287main ()
4288{
4289
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004290 /* Are we little or big endian? From Harbison&Steele. */
4291 union
4292 {
4293 long int l;
4294 char c[sizeof (long int)];
4295 } u;
4296 u.l = 1;
4297 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004298
4299 ;
4300 return 0;
4301}
4302_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004303rm -f conftest$ac_exeext
4304if { (ac_try="$ac_link"
4305case "(($ac_try" in
4306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307 *) ac_try_echo=$ac_try;;
4308esac
4309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4310 (eval "$ac_link") 2>&5
4311 ac_status=$?
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4314 { (case "(($ac_try" in
4315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4316 *) ac_try_echo=$ac_try;;
4317esac
4318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4319 (eval "$ac_try") 2>&5
4320 ac_status=$?
4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004323 ac_cv_c_bigendian=no
4324else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004325 echo "$as_me: program exited with status $ac_status" >&5
4326echo "$as_me: failed program was:" >&5
4327sed 's/^/| /' conftest.$ac_ext >&5
4328
4329( exit $ac_status )
4330ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004331fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004332rm -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 +00004333fi
4334
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004335
Reid Spencera773bd52006-08-04 18:18:08 +00004336fi
4337
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4339fi
4340{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4341echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4342case $ac_cv_c_bigendian in
4343 yes)
4344 ENDIAN=big
4345 ;;
4346 no)
4347 ENDIAN=little
4348 ;;
4349 *)
4350 { { echo "$as_me:$LINENO: error: unknown endianness
4351presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4352echo "$as_me: error: unknown endianness
4353presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4354 { (exit 1); exit 1; }; } ;;
4355esac
Reid Spencera773bd52006-08-04 18:18:08 +00004356
4357
4358if test "$cross_compiling" = yes; then
4359 LLVM_CROSS_COMPILING=1
4360
4361
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004362{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4363echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4364if test "${ac_cv_build_exeext+set}" = set; then
4365 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004366else
4367 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4368 ac_cv_build_exeext=.exe
4369else
4370 ac_build_prefix=${build_alias}-
4371
4372 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4373set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004374{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4375echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4376if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4377 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004378else
4379 if test -n "$BUILD_CC"; then
4380 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4381else
4382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4383for as_dir in $PATH
4384do
4385 IFS=$as_save_IFS
4386 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004387 for ac_exec_ext in '' $ac_executable_extensions; do
4388 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 +00004389 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004391 break 2
4392 fi
4393done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004394done
Reid Spencera773bd52006-08-04 18:18:08 +00004395IFS=$as_save_IFS
4396
4397fi
4398fi
4399BUILD_CC=$ac_cv_prog_BUILD_CC
4400if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004401 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4402echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004403else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004404 { echo "$as_me:$LINENO: result: no" >&5
4405echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004406fi
4407
4408
4409 if test -z "$BUILD_CC"; then
4410 # Extract the first word of "gcc", so it can be a program name with args.
4411set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004412{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4413echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4414if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4415 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004416else
4417 if test -n "$BUILD_CC"; then
4418 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4419else
4420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4421for as_dir in $PATH
4422do
4423 IFS=$as_save_IFS
4424 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004425 for ac_exec_ext in '' $ac_executable_extensions; do
4426 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 +00004427 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004429 break 2
4430 fi
4431done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004432done
Reid Spencera773bd52006-08-04 18:18:08 +00004433IFS=$as_save_IFS
4434
4435fi
4436fi
4437BUILD_CC=$ac_cv_prog_BUILD_CC
4438if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004439 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4440echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004441else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004442 { echo "$as_me:$LINENO: result: no" >&5
4443echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004444fi
4445
4446
4447 if test -z "$BUILD_CC"; then
4448 # Extract the first word of "cc", so it can be a program name with args.
4449set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004450{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4451echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4452if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4453 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004454else
4455 if test -n "$BUILD_CC"; then
4456 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4457else
4458 ac_prog_rejected=no
4459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4460for as_dir in $PATH
4461do
4462 IFS=$as_save_IFS
4463 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004464 for ac_exec_ext in '' $ac_executable_extensions; do
4465 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 +00004466 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4467 ac_prog_rejected=yes
4468 continue
4469 fi
4470 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004472 break 2
4473 fi
4474done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004475done
Reid Spencera773bd52006-08-04 18:18:08 +00004476IFS=$as_save_IFS
4477
4478if test $ac_prog_rejected = yes; then
4479 # We found a bogon in the path, so make sure we never use it.
4480 set dummy $ac_cv_prog_BUILD_CC
4481 shift
4482 if test $# != 0; then
4483 # We chose a different compiler from the bogus one.
4484 # However, it has the same basename, so the bogon will be chosen
4485 # first if we set BUILD_CC to just the basename; use the full file name.
4486 shift
4487 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4488 fi
4489fi
4490fi
4491fi
4492BUILD_CC=$ac_cv_prog_BUILD_CC
4493if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004494 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4495echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004496else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004497 { echo "$as_me:$LINENO: result: no" >&5
4498echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004499fi
4500
4501
4502 fi
4503 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004504 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4505echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4506 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004507 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4508 rm -f conftest*
4509 echo 'int main () { return 0; }' > conftest.$ac_ext
4510 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004511 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004512 (eval $ac_build_link) 2>&5
4513 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004516 for file in conftest.*; do
4517 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004518 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004519 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4520 esac
4521 done
4522 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004523 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4524echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4525 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004526 fi
4527 rm -f conftest*
4528 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4529fi
4530fi
4531
4532BUILD_EXEEXT=""
4533test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004534{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4535echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004536ac_build_exeext=$BUILD_EXEEXT
4537
Jim Grosbach673612e2008-10-02 22:56:44 +00004538 ac_build_prefix=${build_alias}-
4539 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4540set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004541{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4542echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4543if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4544 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004545else
4546 if test -n "$BUILD_CXX"; then
4547 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4548else
4549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4550for as_dir in $PATH
4551do
4552 IFS=$as_save_IFS
4553 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004554 for ac_exec_ext in '' $ac_executable_extensions; do
4555 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 +00004556 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004558 break 2
4559 fi
4560done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004561done
Jim Grosbach673612e2008-10-02 22:56:44 +00004562IFS=$as_save_IFS
4563
4564fi
4565fi
4566BUILD_CXX=$ac_cv_prog_BUILD_CXX
4567if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004568 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4569echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004570else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004571 { echo "$as_me:$LINENO: result: no" >&5
4572echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004573fi
4574
4575
4576 if test -z "$BUILD_CXX"; then
4577 # Extract the first word of "g++", so it can be a program name with args.
4578set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004579{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4580echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4581if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004583else
4584 if test -n "$BUILD_CXX"; then
4585 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4586else
4587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4588for as_dir in $PATH
4589do
4590 IFS=$as_save_IFS
4591 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004592 for ac_exec_ext in '' $ac_executable_extensions; do
4593 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 +00004594 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004596 break 2
4597 fi
4598done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004599done
Jim Grosbach673612e2008-10-02 22:56:44 +00004600IFS=$as_save_IFS
4601
4602fi
4603fi
4604BUILD_CXX=$ac_cv_prog_BUILD_CXX
4605if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004606 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4607echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004608else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004609 { echo "$as_me:$LINENO: result: no" >&5
4610echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004611fi
4612
4613
4614 if test -z "$BUILD_CXX"; then
4615 # Extract the first word of "c++", so it can be a program name with args.
4616set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004617{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4618echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4619if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4620 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004621else
4622 if test -n "$BUILD_CXX"; then
4623 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4624else
4625 ac_prog_rejected=no
4626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627for as_dir in $PATH
4628do
4629 IFS=$as_save_IFS
4630 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004631 for ac_exec_ext in '' $ac_executable_extensions; do
4632 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 +00004633 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4634 ac_prog_rejected=yes
4635 continue
4636 fi
4637 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004639 break 2
4640 fi
4641done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004642done
Jim Grosbach673612e2008-10-02 22:56:44 +00004643IFS=$as_save_IFS
4644
4645if test $ac_prog_rejected = yes; then
4646 # We found a bogon in the path, so make sure we never use it.
4647 set dummy $ac_cv_prog_BUILD_CXX
4648 shift
4649 if test $# != 0; then
4650 # We chose a different compiler from the bogus one.
4651 # However, it has the same basename, so the bogon will be chosen
4652 # first if we set BUILD_CXX to just the basename; use the full file name.
4653 shift
4654 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4655 fi
4656fi
4657fi
4658fi
4659BUILD_CXX=$ac_cv_prog_BUILD_CXX
4660if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004661 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4662echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004663else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004664 { echo "$as_me:$LINENO: result: no" >&5
4665echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004666fi
4667
4668
4669 fi
4670 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004671else
4672 LLVM_CROSS_COMPILING=0
4673
4674fi
4675
Nick Lewycky5b28f862009-04-10 05:18:27 +00004676if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004677 cvsbuild="yes"
4678 optimize="no"
4679 CVSBUILD=CVSBUILD=1
4680
4681else
4682 cvsbuild="no"
4683 optimize="yes"
4684fi
4685
4686
4687# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004688if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004689 enableval=$enable_optimized;
4690else
4691 enableval=$optimize
4692fi
4693
4694if test ${enableval} = "no" ; then
4695 ENABLE_OPTIMIZED=
4696
4697else
4698 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4699
4700fi
4701
David Greene2a5a12c2009-04-17 14:50:39 +00004702# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004703if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00004704 enableval=$enable_profiling;
4705else
4706 enableval="no"
4707fi
4708
4709if test ${enableval} = "no" ; then
4710 ENABLE_PROFILING=
4711
4712else
4713 ENABLE_PROFILING=ENABLE_PROFILING=1
4714
4715fi
4716
Reid Spencera773bd52006-08-04 18:18:08 +00004717# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004718if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004719 enableval=$enable_assertions;
4720else
4721 enableval="yes"
4722fi
4723
4724if test ${enableval} = "yes" ; then
4725 DISABLE_ASSERTIONS=
4726
4727else
4728 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4729
4730fi
4731
David Greenea696d242007-06-28 19:36:08 +00004732# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004733if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00004734 enableval=$enable_expensive_checks;
4735else
4736 enableval="no"
4737fi
4738
4739if test ${enableval} = "yes" ; then
4740 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4741
4742 EXPENSIVE_CHECKS=yes
4743
4744else
4745 ENABLE_EXPENSIVE_CHECKS=
4746
4747 EXPENSIVE_CHECKS=no
4748
4749fi
4750
Reid Spencer8b2e1412006-11-17 03:32:33 +00004751# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004752if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00004753 enableval=$enable_debug_runtime;
4754else
4755 enableval=no
4756fi
4757
4758if test ${enableval} = "no" ; then
4759 DEBUG_RUNTIME=
4760
4761else
4762 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4763
4764fi
4765
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004766# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004767if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004768 enableval=$enable_debug_symbols;
4769else
4770 enableval=no
4771fi
4772
4773if test ${enableval} = "no" ; then
4774 DEBUG_SYMBOLS=
4775
4776else
4777 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4778
4779fi
4780
Reid Spencera773bd52006-08-04 18:18:08 +00004781# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004782if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004783 enableval=$enable_jit;
4784else
4785 enableval=default
4786fi
4787
4788if test ${enableval} = "no"
4789then
4790 JIT=
4791
4792else
4793 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004794 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004795 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004796 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004797 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004798 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004799 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004800 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004801 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004802 Alpha) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004803 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00004804 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00004805 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004806 Mips) TARGET_HAS_JIT=0
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004807 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004808 PIC16) TARGET_HAS_JIT=0
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004809 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004810 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00004811 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004812 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004813 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004814 SystemZ) TARGET_HAS_JIT=0
Anton Korobeynikov4403b932009-07-16 13:27:25 +00004815 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004816 Blackfin) TARGET_HAS_JIT=0
4817 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004818 MBlaze) TARGET_HAS_JIT=0
4819 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004820 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004821 ;;
4822 esac
4823fi
4824
4825# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004826if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004827 enableval=$enable_doxygen;
4828else
4829 enableval=default
4830fi
4831
4832case "$enableval" in
4833 yes) ENABLE_DOXYGEN=1
4834 ;;
4835 no) ENABLE_DOXYGEN=0
4836 ;;
4837 default) ENABLE_DOXYGEN=0
4838 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004839 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4840echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4841 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004842esac
4843
4844# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004845if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004846 enableval=$enable_threads;
4847else
Reid Spencer65c5d752006-11-05 17:08:18 +00004848 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004849fi
4850
4851case "$enableval" in
4852 yes) ENABLE_THREADS=1
4853 ;;
4854 no) ENABLE_THREADS=0
4855 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004856 default) ENABLE_THREADS=1
4857 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004858 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4859echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4860 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004861esac
4862
Owen Andersona8603702009-05-19 22:18:56 +00004863cat >>confdefs.h <<_ACEOF
4864#define ENABLE_THREADS $ENABLE_THREADS
4865_ACEOF
4866
4867
Reid Spencer89b0d992006-12-16 22:07:52 +00004868# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004869if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00004870 enableval=$enable_pic;
4871else
4872 enableval=default
4873fi
4874
4875case "$enableval" in
4876 yes) ENABLE_PIC=1
4877 ;;
4878 no) ENABLE_PIC=0
4879 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00004880 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00004881 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004882 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4883echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4884 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00004885esac
4886
4887cat >>confdefs.h <<_ACEOF
4888#define ENABLE_PIC $ENABLE_PIC
4889_ACEOF
4890
4891
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00004892# Check whether --enable-shared was given.
4893if test "${enable_shared+set}" = set; then
4894 enableval=$enable_shared;
4895else
4896 enableval=default
4897fi
4898
4899case "$enableval" in
4900 yes) ENABLE_SHARED=1
4901 ;;
4902 no) ENABLE_SHARED=0
4903 ;;
4904 default) ENABLE_SHARED=0
4905 ;;
4906 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4907echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4908 { (exit 1); exit 1; }; } ;;
4909esac
4910
Reid Spencera773bd52006-08-04 18:18:08 +00004911TARGETS_TO_BUILD=""
4912# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004913if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004914 enableval=$enable_targets;
4915else
4916 enableval=all
4917fi
4918
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004919if test "$enableval" = host-only ; then
4920 enableval=host
4921fi
Reid Spencera773bd52006-08-04 18:18:08 +00004922case "$enableval" in
Wesley Pecka70f28c2010-02-23 19:15:24 +00004923 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend MBlaze" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004924 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4925 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004926 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4927 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4928 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4929 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4930 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4931 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4932 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4933 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4934 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4935 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4936 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4937 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4938 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4939 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4940 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4941 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004942 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004943 host) case "$llvm_cv_target_arch" in
4944 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4945 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4946 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4947 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4948 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4949 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4950 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004951 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004952 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4953 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4954 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4955 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Anton Korobeynikov6ca835d2010-01-05 20:45:43 +00004956 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004957 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004958 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4959echo "$as_me: error: Can not set target to build" >&2;}
4960 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004961 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004962 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4963echo "$as_me: error: Unrecognized target $a_target" >&2;}
4964 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004965 esac
4966 done
4967 ;;
4968esac
Reid Spencera773bd52006-08-04 18:18:08 +00004969TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4970
4971
Douglas Gregor0711c302009-06-17 00:43:20 +00004972# Determine whether we are building LLVM support for the native architecture.
4973# If so, define LLVM_NATIVE_ARCH to that LLVM target.
4974for a_target in $TARGETS_TO_BUILD; do
4975 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
Douglas Gregora0162ff2009-06-23 17:22:05 +00004976 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
Douglas Gregor0711c302009-06-17 00:43:20 +00004977
4978cat >>confdefs.h <<_ACEOF
Douglas Gregora0162ff2009-06-23 17:22:05 +00004979#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
Douglas Gregor0711c302009-06-17 00:43:20 +00004980_ACEOF
4981
4982 fi
4983done
4984
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00004985# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
4986# target feature def files.
Douglas Gregor1555a232009-06-16 20:12:29 +00004987LLVM_ENUM_TARGETS=""
4988LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00004989LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00004990LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00004991for target_to_build in $TARGETS_TO_BUILD; do
4992 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
4993 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
4994 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
4995 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00004996 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
4997 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
4998 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00004999 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5000 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5001 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005002done
5003
5004
5005
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005006
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005007
Reid Spencer65c5d752006-11-05 17:08:18 +00005008# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005009if test "${enable_cbe_printf_a+set}" = set; then
Reid Spencer65c5d752006-11-05 17:08:18 +00005010 enableval=$enable_cbe_printf_a;
5011else
5012 enableval=default
5013fi
5014
5015case "$enableval" in
5016 yes) ENABLE_CBE_PRINTF_A=1
5017 ;;
5018 no) ENABLE_CBE_PRINTF_A=0
5019 ;;
5020 default) ENABLE_CBE_PRINTF_A=1
5021 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005022 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5023echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5024 { (exit 1); exit 1; }; } ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005025esac
5026
5027cat >>confdefs.h <<_ACEOF
5028#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5029_ACEOF
5030
5031
Reid Spencera773bd52006-08-04 18:18:08 +00005032
5033# Check whether --with-llvmgccdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005034if test "${with_llvmgccdir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005035 withval=$with_llvmgccdir;
5036else
5037 withval=default
5038fi
5039
5040case "$withval" in
5041 default) WITH_LLVMGCCDIR=default ;;
5042 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005043 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5044echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5045 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005046esac
5047
5048
Devang Patel5d28b882007-12-04 22:54:47 +00005049# Check whether --with-llvmgcc was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005050if test "${with_llvmgcc+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005051 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5052 WITH_LLVMGCCDIR=""
5053fi
5054
5055
5056
5057# Check whether --with-llvmgxx was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005058if test "${with_llvmgxx+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005059 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5060 WITH_LLVMGCCDIR=""
5061fi
5062
Douglas Gregor01746742009-05-11 18:05:52 +00005063
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00005064if test -n "$LLVMGCC"; then
5065 LLVMGCCCOMMAND="$LLVMGCC"
5066fi
5067
5068if test -n "$LLVMGXX"; then
5069 LLVMGXXCOMMAND="$LLVMGXX"
5070fi
Devang Patel5d28b882007-12-04 22:54:47 +00005071
5072if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005073 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5074echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5075 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005076fi
5077
5078if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005079 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5080echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5081 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005082fi
5083
5084
Daniel Dunbar98515672010-02-23 10:00:49 +00005085# Check whether --with-clang was given.
5086if test "${with_clang+set}" = set; then
5087 withval=$with_clang;
5088else
5089 with_clang=default
5090fi
5091
5092
5093
5094# Check whether --with-built-clang was given.
5095if test "${with_built_clang+set}" = set; then
5096 withval=$with_built_clang;
5097else
5098 with_built_clang=check
5099fi
5100
5101
5102{ echo "$as_me:$LINENO: checking clang compiler" >&5
5103echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5104WITH_CLANGPATH=""
5105WITH_BUILT_CLANG=0
5106if test "$with_clang" != "default"; then
5107 WITH_CLANGPATH="$with_clang"
5108 if ! test -x "$WITH_CLANGPATH"; then
5109 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5110echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5111 { (exit 1); exit 1; }; }
5112 fi
5113elif test "$with_built_clang" = "yes"; then
5114 WITH_BUILT_CLANG=1
5115elif test "$with_built_clang" = "no"; then
5116 WITH_BUILT_CLANG=0
5117else
5118 if test "$with_built_clang" != "check"; then
5119 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5120echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5121 { (exit 1); exit 1; }; }
5122 fi
5123
5124 if test -f ${srcdir}/tools/clang/README.txt; then
5125 WITH_BUILT_CLANG=1
5126 fi
5127fi
5128
5129if ! test -z "$WITH_CLANGPATH"; then
5130 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5131echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5132 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5133elif test "$WITH_BUILT_CLANG" = "1"; then
5134 { echo "$as_me:$LINENO: result: built" >&5
5135echo "${ECHO_T}built" >&6; }
5136else
5137 { echo "$as_me:$LINENO: result: none" >&5
5138echo "${ECHO_T}none" >&6; }
5139fi
5140CLANGPATH=$WITH_CLANGPATH
5141
5142CLANGXXPATH=$WITH_CLANGXXPATH
5143
5144ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5145
5146
5147
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005148# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005149if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005150 withval=$with_optimize_option;
5151else
5152 withval=default
5153fi
5154
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005155{ echo "$as_me:$LINENO: checking optimization flags" >&5
5156echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005157case "$withval" in
5158 default)
5159 case "$llvm_cv_os_type" in
5160 MingW) optimize_option=-O3 ;;
5161 *) optimize_option=-O2 ;;
5162 esac ;;
5163 *) optimize_option="$withval" ;;
5164esac
5165OPTIMIZE_OPTION=$optimize_option
5166
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005167{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5168echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005169
5170
Reid Spencera773bd52006-08-04 18:18:08 +00005171# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005172if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005173 withval=$with_extra_options;
5174else
5175 withval=default
5176fi
5177
5178case "$withval" in
5179 default) EXTRA_OPTIONS= ;;
5180 *) EXTRA_OPTIONS=$withval ;;
5181esac
5182EXTRA_OPTIONS=$EXTRA_OPTIONS
5183
5184
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005185# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005186if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005187 enableval=$enable_bindings;
5188else
5189 enableval=default
5190fi
5191
5192BINDINGS_TO_BUILD=""
5193case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005194 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005195 all ) BINDINGS_TO_BUILD="ocaml" ;;
5196 none | no) BINDINGS_TO_BUILD="" ;;
5197 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5198 case "$a_binding" in
5199 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005200 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5201echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5202 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005203 esac
5204 done
5205 ;;
5206esac
5207
Reid Spencera773bd52006-08-04 18:18:08 +00005208
Gordon Henriksenf0915682007-10-02 16:42:22 +00005209# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005210if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005211 withval=$with_ocaml_libdir;
5212else
5213 withval=auto
5214fi
5215
5216case "$withval" in
5217 auto) with_ocaml_libdir="$withval" ;;
5218 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005219 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5220echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5221 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005222esac
5223
5224
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005225# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005226if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005227 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005228else
5229 withval=""
5230fi
5231
5232
5233cat >>confdefs.h <<_ACEOF
5234#define C_INCLUDE_DIRS "$withval"
5235_ACEOF
5236
5237
5238
Rafael Espindola420d23c2009-11-16 19:46:55 +00005239# Check whether --with-cxx-include-root was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005240if test "${with_cxx_include_root+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005241 withval=$with_cxx_include_root;
5242else
5243 withval=""
5244fi
5245
5246
5247cat >>confdefs.h <<_ACEOF
5248#define CXX_INCLUDE_ROOT "$withval"
5249_ACEOF
5250
5251
5252
5253# Check whether --with-cxx-include-arch was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005254if test "${with_cxx_include_arch+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005255 withval=$with_cxx_include_arch;
5256else
5257 withval=""
5258fi
5259
5260
5261cat >>confdefs.h <<_ACEOF
5262#define CXX_INCLUDE_ARCH "$withval"
5263_ACEOF
5264
5265
5266
5267# Check whether --with-cxx-include-32bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005268if test "${with_cxx_include_32bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005269 withval=$with_cxx_include_32bit_dir;
5270else
5271 withval=""
5272fi
5273
5274
5275cat >>confdefs.h <<_ACEOF
5276#define CXX_INCLUDE_32BIT_DIR "$withval"
5277_ACEOF
5278
5279
5280
5281# Check whether --with-cxx-include-64bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005282if test "${with_cxx_include_64bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005283 withval=$with_cxx_include_64bit_dir;
5284else
5285 withval=""
5286fi
5287
5288
5289cat >>confdefs.h <<_ACEOF
5290#define CXX_INCLUDE_64BIT_DIR "$withval"
5291_ACEOF
5292
5293
5294
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005295# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005296if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005297 withval=$with_binutils_include;
5298else
5299 withval=default
5300fi
5301
5302case "$withval" in
5303 default) WITH_BINUTILS_INCDIR=default ;;
5304 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005305 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5306echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5307 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005308esac
5309if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5310 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5311
5312 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5313 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005314 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5315echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5316 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005317 fi
5318fi
5319
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005320# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005321if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005322 enableval=$enable_libffi; case "$enableval" in
5323 yes) llvm_cv_enable_libffi="yes" ;;
5324 no) llvm_cv_enable_libffi="no" ;;
5325 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005326echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5327 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005328 esac
5329else
5330 llvm_cv_enable_libffi=no
5331fi
5332
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005333
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005334if test "$llvm_cv_os_type" = "Win32" ; then
5335 llvmc_dynamic="yes"
5336else
5337 llvmc_dynamic="no"
5338fi
5339
5340# Check whether --enable-llvmc-dynamic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005341if test "${enable_llvmc_dynamic+set}" = set; then
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005342 enableval=$enable_llvmc_dynamic;
5343else
5344 enableval=$llvmc_dynamic
5345fi
5346
5347if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5348 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5349
5350else
5351 ENABLE_LLVMC_DYNAMIC=
5352
5353fi
5354
5355# Check whether --enable-llvmc-dynamic-plugins was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005356if test "${enable_llvmc_dynamic_plugins+set}" = set; then
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005357 enableval=$enable_llvmc_dynamic_plugins;
5358else
5359 enableval=yes
5360fi
5361
5362if test ${enableval} = "yes" ; then
5363 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5364
5365else
5366 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5367
5368fi
5369
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005370
Reid Spencera773bd52006-08-04 18:18:08 +00005371ac_ext=c
5372ac_cpp='$CPP $CPPFLAGS'
5373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5375ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005376{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5377echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005378# On Suns, sometimes $CPP names a directory.
5379if test -n "$CPP" && test -d "$CPP"; then
5380 CPP=
5381fi
5382if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005383 if test "${ac_cv_prog_CPP+set}" = set; then
5384 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005385else
5386 # Double quotes because CPP needs to be expanded
5387 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5388 do
5389 ac_preproc_ok=false
5390for ac_c_preproc_warn_flag in '' yes
5391do
5392 # Use a header file that comes with gcc, so configuring glibc
5393 # with a fresh cross-compiler works.
5394 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5395 # <limits.h> exists even on freestanding compilers.
5396 # On the NeXT, cc -E runs the code through the compiler's parser,
5397 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005398 cat >conftest.$ac_ext <<_ACEOF
5399/* confdefs.h. */
5400_ACEOF
5401cat confdefs.h >>conftest.$ac_ext
5402cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005403/* end confdefs.h. */
5404#ifdef __STDC__
5405# include <limits.h>
5406#else
5407# include <assert.h>
5408#endif
5409 Syntax error
5410_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005411if { (ac_try="$ac_cpp conftest.$ac_ext"
5412case "(($ac_try" in
5413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5414 *) ac_try_echo=$ac_try;;
5415esac
5416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5417 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5418 ac_status=$?
5419 grep -v '^ *+' conftest.er1 >conftest.err
5420 rm -f conftest.er1
5421 cat conftest.err >&5
5422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423 (exit $ac_status); } >/dev/null; then
5424 if test -s conftest.err; then
5425 ac_cpp_err=$ac_c_preproc_warn_flag
5426 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5427 else
5428 ac_cpp_err=
5429 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005430else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005431 ac_cpp_err=yes
5432fi
5433if test -z "$ac_cpp_err"; then
5434 :
5435else
5436 echo "$as_me: failed program was:" >&5
5437sed 's/^/| /' conftest.$ac_ext >&5
5438
Reid Spencera773bd52006-08-04 18:18:08 +00005439 # Broken: fails on valid input.
5440continue
5441fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005442
Reid Spencera773bd52006-08-04 18:18:08 +00005443rm -f conftest.err conftest.$ac_ext
5444
5445 # OK, works on sane cases. Now check whether nonexistent headers
5446 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005447 cat >conftest.$ac_ext <<_ACEOF
5448/* confdefs.h. */
5449_ACEOF
5450cat confdefs.h >>conftest.$ac_ext
5451cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005452/* end confdefs.h. */
5453#include <ac_nonexistent.h>
5454_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005455if { (ac_try="$ac_cpp conftest.$ac_ext"
5456case "(($ac_try" in
5457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5458 *) ac_try_echo=$ac_try;;
5459esac
5460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5461 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5462 ac_status=$?
5463 grep -v '^ *+' conftest.er1 >conftest.err
5464 rm -f conftest.er1
5465 cat conftest.err >&5
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); } >/dev/null; then
5468 if test -s conftest.err; then
5469 ac_cpp_err=$ac_c_preproc_warn_flag
5470 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5471 else
5472 ac_cpp_err=
5473 fi
5474else
5475 ac_cpp_err=yes
5476fi
5477if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005478 # Broken: success on invalid input.
5479continue
5480else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005481 echo "$as_me: failed program was:" >&5
5482sed 's/^/| /' conftest.$ac_ext >&5
5483
Reid Spencera773bd52006-08-04 18:18:08 +00005484 # Passes both tests.
5485ac_preproc_ok=:
5486break
5487fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005488
Reid Spencera773bd52006-08-04 18:18:08 +00005489rm -f conftest.err conftest.$ac_ext
5490
5491done
5492# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5493rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005494if $ac_preproc_ok; then
Reid Spencera773bd52006-08-04 18:18:08 +00005495 break
5496fi
5497
5498 done
5499 ac_cv_prog_CPP=$CPP
5500
5501fi
5502 CPP=$ac_cv_prog_CPP
5503else
5504 ac_cv_prog_CPP=$CPP
5505fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005506{ echo "$as_me:$LINENO: result: $CPP" >&5
5507echo "${ECHO_T}$CPP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005508ac_preproc_ok=false
5509for ac_c_preproc_warn_flag in '' yes
5510do
5511 # Use a header file that comes with gcc, so configuring glibc
5512 # with a fresh cross-compiler works.
5513 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5514 # <limits.h> exists even on freestanding compilers.
5515 # On the NeXT, cc -E runs the code through the compiler's parser,
5516 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005517 cat >conftest.$ac_ext <<_ACEOF
5518/* confdefs.h. */
5519_ACEOF
5520cat confdefs.h >>conftest.$ac_ext
5521cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005522/* end confdefs.h. */
5523#ifdef __STDC__
5524# include <limits.h>
5525#else
5526# include <assert.h>
5527#endif
5528 Syntax error
5529_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005530if { (ac_try="$ac_cpp conftest.$ac_ext"
5531case "(($ac_try" in
5532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5533 *) ac_try_echo=$ac_try;;
5534esac
5535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5536 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5537 ac_status=$?
5538 grep -v '^ *+' conftest.er1 >conftest.err
5539 rm -f conftest.er1
5540 cat conftest.err >&5
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); } >/dev/null; then
5543 if test -s conftest.err; then
5544 ac_cpp_err=$ac_c_preproc_warn_flag
5545 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5546 else
5547 ac_cpp_err=
5548 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005549else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005550 ac_cpp_err=yes
5551fi
5552if test -z "$ac_cpp_err"; then
5553 :
5554else
5555 echo "$as_me: failed program was:" >&5
5556sed 's/^/| /' conftest.$ac_ext >&5
5557
Reid Spencera773bd52006-08-04 18:18:08 +00005558 # Broken: fails on valid input.
5559continue
5560fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005561
Reid Spencera773bd52006-08-04 18:18:08 +00005562rm -f conftest.err conftest.$ac_ext
5563
5564 # OK, works on sane cases. Now check whether nonexistent headers
5565 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005566 cat >conftest.$ac_ext <<_ACEOF
5567/* confdefs.h. */
5568_ACEOF
5569cat confdefs.h >>conftest.$ac_ext
5570cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005571/* end confdefs.h. */
5572#include <ac_nonexistent.h>
5573_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005574if { (ac_try="$ac_cpp conftest.$ac_ext"
5575case "(($ac_try" in
5576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5577 *) ac_try_echo=$ac_try;;
5578esac
5579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5580 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5581 ac_status=$?
5582 grep -v '^ *+' conftest.er1 >conftest.err
5583 rm -f conftest.er1
5584 cat conftest.err >&5
5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); } >/dev/null; then
5587 if test -s conftest.err; then
5588 ac_cpp_err=$ac_c_preproc_warn_flag
5589 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5590 else
5591 ac_cpp_err=
5592 fi
5593else
5594 ac_cpp_err=yes
5595fi
5596if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005597 # Broken: success on invalid input.
5598continue
5599else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005600 echo "$as_me: failed program was:" >&5
5601sed 's/^/| /' conftest.$ac_ext >&5
5602
Reid Spencera773bd52006-08-04 18:18:08 +00005603 # Passes both tests.
5604ac_preproc_ok=:
5605break
5606fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005607
Reid Spencera773bd52006-08-04 18:18:08 +00005608rm -f conftest.err conftest.$ac_ext
5609
5610done
5611# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5612rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005613if $ac_preproc_ok; then
5614 :
Reid Spencera773bd52006-08-04 18:18:08 +00005615else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005616 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5617See \`config.log' for more details." >&5
5618echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5619See \`config.log' for more details." >&2;}
5620 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005621fi
5622
5623ac_ext=c
5624ac_cpp='$CPP $CPPFLAGS'
5625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5627ac_compiler_gnu=$ac_cv_c_compiler_gnu
5628
5629ac_ext=c
5630ac_cpp='$CPP $CPPFLAGS'
5631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5633ac_compiler_gnu=$ac_cv_c_compiler_gnu
5634if test -n "$ac_tool_prefix"; then
5635 for ac_prog in gcc
5636 do
5637 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5638set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005639{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5641if test "${ac_cv_prog_CC+set}" = set; then
5642 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005643else
5644 if test -n "$CC"; then
5645 ac_cv_prog_CC="$CC" # Let the user override the test.
5646else
5647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5648for as_dir in $PATH
5649do
5650 IFS=$as_save_IFS
5651 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005652 for ac_exec_ext in '' $ac_executable_extensions; do
5653 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 +00005654 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005656 break 2
5657 fi
5658done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005659done
Reid Spencera773bd52006-08-04 18:18:08 +00005660IFS=$as_save_IFS
5661
5662fi
5663fi
5664CC=$ac_cv_prog_CC
5665if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005666 { echo "$as_me:$LINENO: result: $CC" >&5
5667echo "${ECHO_T}$CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005668else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005669 { echo "$as_me:$LINENO: result: no" >&5
5670echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005671fi
5672
5673
5674 test -n "$CC" && break
5675 done
5676fi
5677if test -z "$CC"; then
5678 ac_ct_CC=$CC
5679 for ac_prog in gcc
5680do
5681 # Extract the first word of "$ac_prog", so it can be a program name with args.
5682set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005683{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5684echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5685if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5686 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005687else
5688 if test -n "$ac_ct_CC"; then
5689 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5690else
5691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5692for as_dir in $PATH
5693do
5694 IFS=$as_save_IFS
5695 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005696 for ac_exec_ext in '' $ac_executable_extensions; do
5697 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 +00005698 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005700 break 2
5701 fi
5702done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005703done
Reid Spencera773bd52006-08-04 18:18:08 +00005704IFS=$as_save_IFS
5705
5706fi
5707fi
5708ac_ct_CC=$ac_cv_prog_ac_ct_CC
5709if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005710 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5711echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005712else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005713 { echo "$as_me:$LINENO: result: no" >&5
5714echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005715fi
5716
5717
5718 test -n "$ac_ct_CC" && break
5719done
5720
5721 if test "x$ac_ct_CC" = x; then
5722 CC=""
5723 else
5724 case $cross_compiling:$ac_tool_warned in
5725yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005726{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5727whose name does not start with the host triplet. If you think this
5728configuration is useful to you, please write to autoconf@gnu.org." >&5
5729echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5730whose name does not start with the host triplet. If you think this
5731configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00005732ac_tool_warned=yes ;;
5733esac
5734 CC=$ac_ct_CC
5735 fi
5736fi
5737
5738
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005739test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5740See \`config.log' for more details." >&5
5741echo "$as_me: error: no acceptable C compiler found in \$PATH
5742See \`config.log' for more details." >&2;}
5743 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005744
5745# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005746echo "$as_me:$LINENO: checking for C compiler version" >&5
5747ac_compiler=`set X $ac_compile; echo $2`
5748{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00005749case "(($ac_try" in
5750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5751 *) ac_try_echo=$ac_try;;
5752esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5754 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00005755 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); }
5758{ (ac_try="$ac_compiler -v >&5"
5759case "(($ac_try" in
5760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5761 *) ac_try_echo=$ac_try;;
5762esac
5763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5764 (eval "$ac_compiler -v >&5") 2>&5
5765 ac_status=$?
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); }
5768{ (ac_try="$ac_compiler -V >&5"
5769case "(($ac_try" in
5770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5771 *) ac_try_echo=$ac_try;;
5772esac
5773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5774 (eval "$ac_compiler -V >&5") 2>&5
5775 ac_status=$?
5776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00005778
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005779{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5780echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5781if test "${ac_cv_c_compiler_gnu+set}" = set; then
5782 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005783else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005784 cat >conftest.$ac_ext <<_ACEOF
5785/* confdefs.h. */
5786_ACEOF
5787cat confdefs.h >>conftest.$ac_ext
5788cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005789/* end confdefs.h. */
5790
5791int
5792main ()
5793{
5794#ifndef __GNUC__
5795 choke me
5796#endif
5797
5798 ;
5799 return 0;
5800}
5801_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005802rm -f conftest.$ac_objext
5803if { (ac_try="$ac_compile"
5804case "(($ac_try" in
5805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5806 *) ac_try_echo=$ac_try;;
5807esac
5808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5809 (eval "$ac_compile") 2>conftest.er1
5810 ac_status=$?
5811 grep -v '^ *+' conftest.er1 >conftest.err
5812 rm -f conftest.er1
5813 cat conftest.err >&5
5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815 (exit $ac_status); } &&
5816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5817 { (case "(($ac_try" in
5818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5819 *) ac_try_echo=$ac_try;;
5820esac
5821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5822 (eval "$ac_try") 2>&5
5823 ac_status=$?
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); }; } &&
5826 { ac_try='test -s conftest.$ac_objext'
5827 { (case "(($ac_try" in
5828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5829 *) ac_try_echo=$ac_try;;
5830esac
5831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5832 (eval "$ac_try") 2>&5
5833 ac_status=$?
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005836 ac_compiler_gnu=yes
5837else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005838 echo "$as_me: failed program was:" >&5
5839sed 's/^/| /' conftest.$ac_ext >&5
5840
5841 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00005842fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005843
Reid Spencera773bd52006-08-04 18:18:08 +00005844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5845ac_cv_c_compiler_gnu=$ac_compiler_gnu
5846
5847fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005848{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5849echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5850GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00005851ac_test_CFLAGS=${CFLAGS+set}
5852ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005853{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5854echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5855if test "${ac_cv_prog_cc_g+set}" = set; then
5856 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005857else
5858 ac_save_c_werror_flag=$ac_c_werror_flag
5859 ac_c_werror_flag=yes
5860 ac_cv_prog_cc_g=no
5861 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005862 cat >conftest.$ac_ext <<_ACEOF
5863/* confdefs.h. */
5864_ACEOF
5865cat confdefs.h >>conftest.$ac_ext
5866cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005867/* end confdefs.h. */
5868
5869int
5870main ()
5871{
5872
5873 ;
5874 return 0;
5875}
5876_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005877rm -f conftest.$ac_objext
5878if { (ac_try="$ac_compile"
5879case "(($ac_try" in
5880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5881 *) ac_try_echo=$ac_try;;
5882esac
5883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5884 (eval "$ac_compile") 2>conftest.er1
5885 ac_status=$?
5886 grep -v '^ *+' conftest.er1 >conftest.err
5887 rm -f conftest.er1
5888 cat conftest.err >&5
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); } &&
5891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5892 { (case "(($ac_try" in
5893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5894 *) ac_try_echo=$ac_try;;
5895esac
5896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5897 (eval "$ac_try") 2>&5
5898 ac_status=$?
5899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900 (exit $ac_status); }; } &&
5901 { ac_try='test -s conftest.$ac_objext'
5902 { (case "(($ac_try" in
5903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5904 *) ac_try_echo=$ac_try;;
5905esac
5906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5907 (eval "$ac_try") 2>&5
5908 ac_status=$?
5909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005911 ac_cv_prog_cc_g=yes
5912else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005913 echo "$as_me: failed program was:" >&5
5914sed 's/^/| /' conftest.$ac_ext >&5
5915
5916 CFLAGS=""
5917 cat >conftest.$ac_ext <<_ACEOF
5918/* confdefs.h. */
5919_ACEOF
5920cat confdefs.h >>conftest.$ac_ext
5921cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005922/* end confdefs.h. */
5923
5924int
5925main ()
5926{
5927
5928 ;
5929 return 0;
5930}
5931_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005932rm -f conftest.$ac_objext
5933if { (ac_try="$ac_compile"
5934case "(($ac_try" in
5935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5936 *) ac_try_echo=$ac_try;;
5937esac
5938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5939 (eval "$ac_compile") 2>conftest.er1
5940 ac_status=$?
5941 grep -v '^ *+' conftest.er1 >conftest.err
5942 rm -f conftest.er1
5943 cat conftest.err >&5
5944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945 (exit $ac_status); } &&
5946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5947 { (case "(($ac_try" in
5948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5949 *) ac_try_echo=$ac_try;;
5950esac
5951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5952 (eval "$ac_try") 2>&5
5953 ac_status=$?
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); }; } &&
5956 { ac_try='test -s conftest.$ac_objext'
5957 { (case "(($ac_try" in
5958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5959 *) ac_try_echo=$ac_try;;
5960esac
5961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5962 (eval "$ac_try") 2>&5
5963 ac_status=$?
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); }; }; then
5966 :
Torok Edwin871384f2010-01-26 08:50:50 +00005967else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005968 echo "$as_me: failed program was:" >&5
5969sed 's/^/| /' conftest.$ac_ext >&5
5970
5971 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00005972 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005973 cat >conftest.$ac_ext <<_ACEOF
5974/* confdefs.h. */
5975_ACEOF
5976cat confdefs.h >>conftest.$ac_ext
5977cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005978/* end confdefs.h. */
5979
5980int
5981main ()
5982{
5983
5984 ;
5985 return 0;
5986}
5987_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005988rm -f conftest.$ac_objext
5989if { (ac_try="$ac_compile"
5990case "(($ac_try" in
5991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5992 *) ac_try_echo=$ac_try;;
5993esac
5994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5995 (eval "$ac_compile") 2>conftest.er1
5996 ac_status=$?
5997 grep -v '^ *+' conftest.er1 >conftest.err
5998 rm -f conftest.er1
5999 cat conftest.err >&5
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); } &&
6002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6003 { (case "(($ac_try" in
6004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6005 *) ac_try_echo=$ac_try;;
6006esac
6007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6008 (eval "$ac_try") 2>&5
6009 ac_status=$?
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); }; } &&
6012 { ac_try='test -s conftest.$ac_objext'
6013 { (case "(($ac_try" in
6014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6015 *) ac_try_echo=$ac_try;;
6016esac
6017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6018 (eval "$ac_try") 2>&5
6019 ac_status=$?
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006022 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006023else
6024 echo "$as_me: failed program was:" >&5
6025sed 's/^/| /' conftest.$ac_ext >&5
6026
6027
Reid Spencera773bd52006-08-04 18:18:08 +00006028fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006029
Reid Spencera773bd52006-08-04 18:18:08 +00006030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6031fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006032
Reid Spencera773bd52006-08-04 18:18:08 +00006033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6034fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006035
Reid Spencera773bd52006-08-04 18:18:08 +00006036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6037 ac_c_werror_flag=$ac_save_c_werror_flag
6038fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006039{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6040echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006041if test "$ac_test_CFLAGS" = set; then
6042 CFLAGS=$ac_save_CFLAGS
6043elif test $ac_cv_prog_cc_g = yes; then
6044 if test "$GCC" = yes; then
6045 CFLAGS="-g -O2"
6046 else
6047 CFLAGS="-g"
6048 fi
6049else
6050 if test "$GCC" = yes; then
6051 CFLAGS="-O2"
6052 else
6053 CFLAGS=
6054 fi
6055fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006056{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6057echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6058if test "${ac_cv_prog_cc_c89+set}" = set; then
6059 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006060else
6061 ac_cv_prog_cc_c89=no
6062ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006063cat >conftest.$ac_ext <<_ACEOF
6064/* confdefs.h. */
6065_ACEOF
6066cat confdefs.h >>conftest.$ac_ext
6067cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006068/* end confdefs.h. */
6069#include <stdarg.h>
6070#include <stdio.h>
6071#include <sys/types.h>
6072#include <sys/stat.h>
6073/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6074struct buf { int x; };
6075FILE * (*rcsopen) (struct buf *, struct stat *, int);
6076static char *e (p, i)
6077 char **p;
6078 int i;
6079{
6080 return p[i];
6081}
6082static char *f (char * (*g) (char **, int), char **p, ...)
6083{
6084 char *s;
6085 va_list v;
6086 va_start (v,p);
6087 s = g (p, va_arg (v,int));
6088 va_end (v);
6089 return s;
6090}
6091
6092/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6093 function prototypes and stuff, but not '\xHH' hex character constants.
6094 These don't provoke an error unfortunately, instead are silently treated
6095 as 'x'. The following induces an error, until -std is added to get
6096 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6097 array size at least. It's necessary to write '\x00'==0 to get something
6098 that's true only with -std. */
6099int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6100
6101/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6102 inside strings and character constants. */
6103#define FOO(x) 'x'
6104int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6105
6106int test (int i, double x);
6107struct s1 {int (*f) (int a);};
6108struct s2 {int (*f) (double a);};
6109int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6110int argc;
6111char **argv;
6112int
6113main ()
6114{
6115return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6116 ;
6117 return 0;
6118}
6119_ACEOF
6120for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6121 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6122do
6123 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006124 rm -f conftest.$ac_objext
6125if { (ac_try="$ac_compile"
6126case "(($ac_try" in
6127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6128 *) ac_try_echo=$ac_try;;
6129esac
6130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6131 (eval "$ac_compile") 2>conftest.er1
6132 ac_status=$?
6133 grep -v '^ *+' conftest.er1 >conftest.err
6134 rm -f conftest.er1
6135 cat conftest.err >&5
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); } &&
6138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6139 { (case "(($ac_try" in
6140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6141 *) ac_try_echo=$ac_try;;
6142esac
6143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6144 (eval "$ac_try") 2>&5
6145 ac_status=$?
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); }; } &&
6148 { ac_try='test -s conftest.$ac_objext'
6149 { (case "(($ac_try" in
6150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6151 *) ac_try_echo=$ac_try;;
6152esac
6153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6154 (eval "$ac_try") 2>&5
6155 ac_status=$?
6156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006158 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006159else
6160 echo "$as_me: failed program was:" >&5
6161sed 's/^/| /' conftest.$ac_ext >&5
6162
6163
Reid Spencera773bd52006-08-04 18:18:08 +00006164fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006165
Reid Spencera773bd52006-08-04 18:18:08 +00006166rm -f core conftest.err conftest.$ac_objext
6167 test "x$ac_cv_prog_cc_c89" != "xno" && break
6168done
6169rm -f conftest.$ac_ext
6170CC=$ac_save_CC
6171
6172fi
6173# AC_CACHE_VAL
6174case "x$ac_cv_prog_cc_c89" in
6175 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006176 { echo "$as_me:$LINENO: result: none needed" >&5
6177echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006178 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006179 { echo "$as_me:$LINENO: result: unsupported" >&5
6180echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006181 *)
6182 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006183 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6184echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006185esac
6186
6187
6188ac_ext=c
6189ac_cpp='$CPP $CPPFLAGS'
6190ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6191ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6192ac_compiler_gnu=$ac_cv_c_compiler_gnu
6193
6194ac_ext=cpp
6195ac_cpp='$CXXCPP $CPPFLAGS'
6196ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6197ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6198ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6199if test -z "$CXX"; then
6200 if test -n "$CCC"; then
6201 CXX=$CCC
6202 else
6203 if test -n "$ac_tool_prefix"; then
6204 for ac_prog in g++
6205 do
6206 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6207set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006208{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6210if test "${ac_cv_prog_CXX+set}" = set; then
6211 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006212else
6213 if test -n "$CXX"; then
6214 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6215else
6216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6217for as_dir in $PATH
6218do
6219 IFS=$as_save_IFS
6220 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006221 for ac_exec_ext in '' $ac_executable_extensions; do
6222 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 +00006223 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006225 break 2
6226 fi
6227done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006228done
Reid Spencera773bd52006-08-04 18:18:08 +00006229IFS=$as_save_IFS
6230
6231fi
6232fi
6233CXX=$ac_cv_prog_CXX
6234if test -n "$CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006235 { echo "$as_me:$LINENO: result: $CXX" >&5
6236echo "${ECHO_T}$CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006237else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006238 { echo "$as_me:$LINENO: result: no" >&5
6239echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006240fi
6241
6242
6243 test -n "$CXX" && break
6244 done
6245fi
6246if test -z "$CXX"; then
6247 ac_ct_CXX=$CXX
6248 for ac_prog in g++
6249do
6250 # Extract the first word of "$ac_prog", so it can be a program name with args.
6251set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006252{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6253echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6254if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6255 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006256else
6257 if test -n "$ac_ct_CXX"; then
6258 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6259else
6260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6261for as_dir in $PATH
6262do
6263 IFS=$as_save_IFS
6264 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006265 for ac_exec_ext in '' $ac_executable_extensions; do
6266 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 +00006267 ac_cv_prog_ac_ct_CXX="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006269 break 2
6270 fi
6271done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006272done
Reid Spencera773bd52006-08-04 18:18:08 +00006273IFS=$as_save_IFS
6274
6275fi
6276fi
6277ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6278if test -n "$ac_ct_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006279 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6280echo "${ECHO_T}$ac_ct_CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006281else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006282 { echo "$as_me:$LINENO: result: no" >&5
6283echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006284fi
6285
6286
6287 test -n "$ac_ct_CXX" && break
6288done
6289
6290 if test "x$ac_ct_CXX" = x; then
6291 CXX="g++"
6292 else
6293 case $cross_compiling:$ac_tool_warned in
6294yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006295{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6296whose name does not start with the host triplet. If you think this
6297configuration is useful to you, please write to autoconf@gnu.org." >&5
6298echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6299whose name does not start with the host triplet. If you think this
6300configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006301ac_tool_warned=yes ;;
6302esac
6303 CXX=$ac_ct_CXX
6304 fi
6305fi
6306
6307 fi
6308fi
6309# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006310echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6311ac_compiler=`set X $ac_compile; echo $2`
6312{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00006313case "(($ac_try" in
6314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6315 *) ac_try_echo=$ac_try;;
6316esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6318 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00006319 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); }
6322{ (ac_try="$ac_compiler -v >&5"
6323case "(($ac_try" in
6324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6325 *) ac_try_echo=$ac_try;;
6326esac
6327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6328 (eval "$ac_compiler -v >&5") 2>&5
6329 ac_status=$?
6330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331 (exit $ac_status); }
6332{ (ac_try="$ac_compiler -V >&5"
6333case "(($ac_try" in
6334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6335 *) ac_try_echo=$ac_try;;
6336esac
6337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6338 (eval "$ac_compiler -V >&5") 2>&5
6339 ac_status=$?
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00006342
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006343{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6344echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6345if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6346 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006347else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006348 cat >conftest.$ac_ext <<_ACEOF
6349/* confdefs.h. */
6350_ACEOF
6351cat confdefs.h >>conftest.$ac_ext
6352cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006353/* end confdefs.h. */
6354
6355int
6356main ()
6357{
6358#ifndef __GNUC__
6359 choke me
6360#endif
6361
6362 ;
6363 return 0;
6364}
6365_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006366rm -f conftest.$ac_objext
6367if { (ac_try="$ac_compile"
6368case "(($ac_try" in
6369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6370 *) ac_try_echo=$ac_try;;
6371esac
6372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6373 (eval "$ac_compile") 2>conftest.er1
6374 ac_status=$?
6375 grep -v '^ *+' conftest.er1 >conftest.err
6376 rm -f conftest.er1
6377 cat conftest.err >&5
6378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379 (exit $ac_status); } &&
6380 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6381 { (case "(($ac_try" in
6382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6383 *) ac_try_echo=$ac_try;;
6384esac
6385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6386 (eval "$ac_try") 2>&5
6387 ac_status=$?
6388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389 (exit $ac_status); }; } &&
6390 { ac_try='test -s conftest.$ac_objext'
6391 { (case "(($ac_try" in
6392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6393 *) ac_try_echo=$ac_try;;
6394esac
6395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6396 (eval "$ac_try") 2>&5
6397 ac_status=$?
6398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006400 ac_compiler_gnu=yes
6401else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006402 echo "$as_me: failed program was:" >&5
6403sed 's/^/| /' conftest.$ac_ext >&5
6404
6405 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00006406fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006407
Reid Spencera773bd52006-08-04 18:18:08 +00006408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6409ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6410
6411fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006412{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6413echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6414GXX=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00006415ac_test_CXXFLAGS=${CXXFLAGS+set}
6416ac_save_CXXFLAGS=$CXXFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006417{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6418echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6419if test "${ac_cv_prog_cxx_g+set}" = set; then
6420 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006421else
6422 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6423 ac_cxx_werror_flag=yes
6424 ac_cv_prog_cxx_g=no
6425 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006426 cat >conftest.$ac_ext <<_ACEOF
6427/* confdefs.h. */
6428_ACEOF
6429cat confdefs.h >>conftest.$ac_ext
6430cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006431/* end confdefs.h. */
6432
6433int
6434main ()
6435{
6436
6437 ;
6438 return 0;
6439}
6440_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006441rm -f conftest.$ac_objext
6442if { (ac_try="$ac_compile"
6443case "(($ac_try" in
6444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6445 *) ac_try_echo=$ac_try;;
6446esac
6447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6448 (eval "$ac_compile") 2>conftest.er1
6449 ac_status=$?
6450 grep -v '^ *+' conftest.er1 >conftest.err
6451 rm -f conftest.er1
6452 cat conftest.err >&5
6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454 (exit $ac_status); } &&
6455 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6456 { (case "(($ac_try" in
6457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6458 *) ac_try_echo=$ac_try;;
6459esac
6460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6461 (eval "$ac_try") 2>&5
6462 ac_status=$?
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); }; } &&
6465 { ac_try='test -s conftest.$ac_objext'
6466 { (case "(($ac_try" in
6467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6468 *) ac_try_echo=$ac_try;;
6469esac
6470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6471 (eval "$ac_try") 2>&5
6472 ac_status=$?
6473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006475 ac_cv_prog_cxx_g=yes
6476else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006477 echo "$as_me: failed program was:" >&5
6478sed 's/^/| /' conftest.$ac_ext >&5
6479
6480 CXXFLAGS=""
6481 cat >conftest.$ac_ext <<_ACEOF
6482/* confdefs.h. */
6483_ACEOF
6484cat confdefs.h >>conftest.$ac_ext
6485cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006486/* end confdefs.h. */
6487
6488int
6489main ()
6490{
6491
6492 ;
6493 return 0;
6494}
6495_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006496rm -f conftest.$ac_objext
6497if { (ac_try="$ac_compile"
6498case "(($ac_try" in
6499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6500 *) ac_try_echo=$ac_try;;
6501esac
6502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6503 (eval "$ac_compile") 2>conftest.er1
6504 ac_status=$?
6505 grep -v '^ *+' conftest.er1 >conftest.err
6506 rm -f conftest.er1
6507 cat conftest.err >&5
6508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509 (exit $ac_status); } &&
6510 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6511 { (case "(($ac_try" in
6512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6513 *) ac_try_echo=$ac_try;;
6514esac
6515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6516 (eval "$ac_try") 2>&5
6517 ac_status=$?
6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); }; } &&
6520 { ac_try='test -s conftest.$ac_objext'
6521 { (case "(($ac_try" in
6522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6523 *) ac_try_echo=$ac_try;;
6524esac
6525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6526 (eval "$ac_try") 2>&5
6527 ac_status=$?
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); }; }; then
6530 :
Torok Edwin871384f2010-01-26 08:50:50 +00006531else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006532 echo "$as_me: failed program was:" >&5
6533sed 's/^/| /' conftest.$ac_ext >&5
6534
6535 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00006536 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006537 cat >conftest.$ac_ext <<_ACEOF
6538/* confdefs.h. */
6539_ACEOF
6540cat confdefs.h >>conftest.$ac_ext
6541cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006542/* end confdefs.h. */
6543
6544int
6545main ()
6546{
6547
6548 ;
6549 return 0;
6550}
6551_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006552rm -f conftest.$ac_objext
6553if { (ac_try="$ac_compile"
6554case "(($ac_try" in
6555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6556 *) ac_try_echo=$ac_try;;
6557esac
6558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6559 (eval "$ac_compile") 2>conftest.er1
6560 ac_status=$?
6561 grep -v '^ *+' conftest.er1 >conftest.err
6562 rm -f conftest.er1
6563 cat conftest.err >&5
6564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); } &&
6566 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6567 { (case "(($ac_try" in
6568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6569 *) ac_try_echo=$ac_try;;
6570esac
6571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6572 (eval "$ac_try") 2>&5
6573 ac_status=$?
6574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575 (exit $ac_status); }; } &&
6576 { ac_try='test -s conftest.$ac_objext'
6577 { (case "(($ac_try" in
6578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6579 *) ac_try_echo=$ac_try;;
6580esac
6581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6582 (eval "$ac_try") 2>&5
6583 ac_status=$?
6584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006586 ac_cv_prog_cxx_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006587else
6588 echo "$as_me: failed program was:" >&5
6589sed 's/^/| /' conftest.$ac_ext >&5
6590
6591
Reid Spencera773bd52006-08-04 18:18:08 +00006592fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006593
Reid Spencera773bd52006-08-04 18:18:08 +00006594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6595fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006596
Reid Spencera773bd52006-08-04 18:18:08 +00006597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6598fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006599
Reid Spencera773bd52006-08-04 18:18:08 +00006600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6601 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6602fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006603{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6604echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006605if test "$ac_test_CXXFLAGS" = set; then
6606 CXXFLAGS=$ac_save_CXXFLAGS
6607elif test $ac_cv_prog_cxx_g = yes; then
6608 if test "$GXX" = yes; then
6609 CXXFLAGS="-g -O2"
6610 else
6611 CXXFLAGS="-g"
6612 fi
6613else
6614 if test "$GXX" = yes; then
6615 CXXFLAGS="-O2"
6616 else
6617 CXXFLAGS=
6618 fi
6619fi
6620ac_ext=c
6621ac_cpp='$CPP $CPPFLAGS'
6622ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6623ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6624ac_compiler_gnu=$ac_cv_c_compiler_gnu
6625
Reid Spencera773bd52006-08-04 18:18:08 +00006626
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006627{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6628echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6629if test "${lt_cv_path_NM+set}" = set; then
6630 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006631else
6632 if test -n "$NM"; then
6633 # Let the user override the test.
6634 lt_cv_path_NM="$NM"
6635else
6636 lt_nm_to_check="${ac_tool_prefix}nm"
6637 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6638 lt_nm_to_check="$lt_nm_to_check nm"
6639 fi
6640 for lt_tmp_nm in $lt_nm_to_check; do
6641 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6642 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6643 IFS="$lt_save_ifs"
6644 test -z "$ac_dir" && ac_dir=.
6645 tmp_nm="$ac_dir/$lt_tmp_nm"
6646 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6647 # Check to see if the nm accepts a BSD-compat flag.
6648 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6649 # nm: unknown option "B" ignored
6650 # Tru64's nm complains that /dev/null is an invalid object file
6651 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6652 */dev/null* | *'Invalid file or object type'*)
6653 lt_cv_path_NM="$tmp_nm -B"
6654 break
6655 ;;
6656 *)
6657 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6658 */dev/null*)
6659 lt_cv_path_NM="$tmp_nm -p"
6660 break
6661 ;;
6662 *)
6663 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6664 continue # so that we can try to find one that supports BSD flags
6665 ;;
6666 esac
6667 ;;
6668 esac
6669 fi
6670 done
6671 IFS="$lt_save_ifs"
6672 done
6673 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6674fi
6675fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006676{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6677echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006678NM="$lt_cv_path_NM"
6679
6680
6681
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006682{ echo "$as_me:$LINENO: checking for GNU make" >&5
6683echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6684if test "${llvm_cv_gnu_make_command+set}" = set; then
6685 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006686else
6687 llvm_cv_gnu_make_command=''
6688 for a in "$MAKE" make gmake gnumake ; do
6689 if test -z "$a" ; then continue ; fi ;
6690 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6691 then
6692 llvm_cv_gnu_make_command=$a ;
6693 break;
6694 fi
6695 done
6696fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006697{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6698echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006699 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6700 ifGNUmake='' ;
6701 else
6702 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006703 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6704echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00006705 fi
6706
6707
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006708{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6709echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006710LN_S=$as_ln_s
6711if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006712 { echo "$as_me:$LINENO: result: yes" >&5
6713echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006714else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006715 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6716echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006717fi
6718
6719# Extract the first word of "cmp", so it can be a program name with args.
6720set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006721{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6722echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6723if test "${ac_cv_path_CMP+set}" = set; then
6724 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006725else
6726 case $CMP in
6727 [\\/]* | ?:[\\/]*)
6728 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6729 ;;
6730 *)
6731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6732for as_dir in $PATH
6733do
6734 IFS=$as_save_IFS
6735 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006736 for ac_exec_ext in '' $ac_executable_extensions; do
6737 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 +00006738 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006740 break 2
6741 fi
6742done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006743done
Reid Spencera773bd52006-08-04 18:18:08 +00006744IFS=$as_save_IFS
6745
6746 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6747 ;;
6748esac
6749fi
6750CMP=$ac_cv_path_CMP
6751if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006752 { echo "$as_me:$LINENO: result: $CMP" >&5
6753echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006754else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006755 { echo "$as_me:$LINENO: result: no" >&5
6756echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006757fi
6758
6759
6760# Extract the first word of "cp", so it can be a program name with args.
6761set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006762{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6763echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6764if test "${ac_cv_path_CP+set}" = set; then
6765 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006766else
6767 case $CP in
6768 [\\/]* | ?:[\\/]*)
6769 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6770 ;;
6771 *)
6772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773for as_dir in $PATH
6774do
6775 IFS=$as_save_IFS
6776 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006777 for ac_exec_ext in '' $ac_executable_extensions; do
6778 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 +00006779 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006781 break 2
6782 fi
6783done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006784done
Reid Spencera773bd52006-08-04 18:18:08 +00006785IFS=$as_save_IFS
6786
6787 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6788 ;;
6789esac
6790fi
6791CP=$ac_cv_path_CP
6792if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006793 { echo "$as_me:$LINENO: result: $CP" >&5
6794echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006795else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006796 { echo "$as_me:$LINENO: result: no" >&5
6797echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006798fi
6799
6800
6801# Extract the first word of "date", so it can be a program name with args.
6802set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006803{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6804echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6805if test "${ac_cv_path_DATE+set}" = set; then
6806 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006807else
6808 case $DATE in
6809 [\\/]* | ?:[\\/]*)
6810 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6811 ;;
6812 *)
6813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6814for as_dir in $PATH
6815do
6816 IFS=$as_save_IFS
6817 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006818 for ac_exec_ext in '' $ac_executable_extensions; do
6819 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 +00006820 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006822 break 2
6823 fi
6824done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006825done
Reid Spencera773bd52006-08-04 18:18:08 +00006826IFS=$as_save_IFS
6827
6828 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6829 ;;
6830esac
6831fi
6832DATE=$ac_cv_path_DATE
6833if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006834 { echo "$as_me:$LINENO: result: $DATE" >&5
6835echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006836else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006837 { echo "$as_me:$LINENO: result: no" >&5
6838echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006839fi
6840
6841
6842# Extract the first word of "find", so it can be a program name with args.
6843set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006844{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6846if test "${ac_cv_path_FIND+set}" = set; then
6847 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006848else
6849 case $FIND in
6850 [\\/]* | ?:[\\/]*)
6851 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6852 ;;
6853 *)
6854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6855for as_dir in $PATH
6856do
6857 IFS=$as_save_IFS
6858 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006859 for ac_exec_ext in '' $ac_executable_extensions; do
6860 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 +00006861 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006863 break 2
6864 fi
6865done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006866done
Reid Spencera773bd52006-08-04 18:18:08 +00006867IFS=$as_save_IFS
6868
6869 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6870 ;;
6871esac
6872fi
6873FIND=$ac_cv_path_FIND
6874if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006875 { echo "$as_me:$LINENO: result: $FIND" >&5
6876echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006877else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006878 { echo "$as_me:$LINENO: result: no" >&5
6879echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006880fi
6881
6882
6883# Extract the first word of "grep", so it can be a program name with args.
6884set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006885{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6886echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6887if test "${ac_cv_path_GREP+set}" = set; then
6888 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006889else
6890 case $GREP in
6891 [\\/]* | ?:[\\/]*)
6892 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6893 ;;
6894 *)
6895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6896for as_dir in $PATH
6897do
6898 IFS=$as_save_IFS
6899 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006900 for ac_exec_ext in '' $ac_executable_extensions; do
6901 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 +00006902 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006904 break 2
6905 fi
6906done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006907done
Reid Spencera773bd52006-08-04 18:18:08 +00006908IFS=$as_save_IFS
6909
6910 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6911 ;;
6912esac
6913fi
6914GREP=$ac_cv_path_GREP
6915if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006916 { echo "$as_me:$LINENO: result: $GREP" >&5
6917echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006918else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006919 { echo "$as_me:$LINENO: result: no" >&5
6920echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006921fi
6922
6923
6924# Extract the first word of "mkdir", so it can be a program name with args.
6925set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006926{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6928if test "${ac_cv_path_MKDIR+set}" = set; then
6929 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006930else
6931 case $MKDIR in
6932 [\\/]* | ?:[\\/]*)
6933 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6934 ;;
6935 *)
6936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6937for as_dir in $PATH
6938do
6939 IFS=$as_save_IFS
6940 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006941 for ac_exec_ext in '' $ac_executable_extensions; do
6942 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 +00006943 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006945 break 2
6946 fi
6947done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006948done
Reid Spencera773bd52006-08-04 18:18:08 +00006949IFS=$as_save_IFS
6950
6951 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6952 ;;
6953esac
6954fi
6955MKDIR=$ac_cv_path_MKDIR
6956if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006957 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6958echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006959else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006960 { echo "$as_me:$LINENO: result: no" >&5
6961echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006962fi
6963
6964
6965# Extract the first word of "mv", so it can be a program name with args.
6966set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006967{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6968echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6969if test "${ac_cv_path_MV+set}" = set; then
6970 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006971else
6972 case $MV in
6973 [\\/]* | ?:[\\/]*)
6974 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6975 ;;
6976 *)
6977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6978for as_dir in $PATH
6979do
6980 IFS=$as_save_IFS
6981 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006982 for ac_exec_ext in '' $ac_executable_extensions; do
6983 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 +00006984 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006986 break 2
6987 fi
6988done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006989done
Reid Spencera773bd52006-08-04 18:18:08 +00006990IFS=$as_save_IFS
6991
6992 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6993 ;;
6994esac
6995fi
6996MV=$ac_cv_path_MV
6997if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006998 { echo "$as_me:$LINENO: result: $MV" >&5
6999echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007000else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007001 { echo "$as_me:$LINENO: result: no" >&5
7002echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007003fi
7004
7005
7006if test -n "$ac_tool_prefix"; then
7007 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7008set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007009{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7010echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7011if test "${ac_cv_prog_RANLIB+set}" = set; then
7012 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007013else
7014 if test -n "$RANLIB"; then
7015 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7016else
7017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7018for as_dir in $PATH
7019do
7020 IFS=$as_save_IFS
7021 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007022 for ac_exec_ext in '' $ac_executable_extensions; do
7023 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 +00007024 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007026 break 2
7027 fi
7028done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007029done
Reid Spencera773bd52006-08-04 18:18:08 +00007030IFS=$as_save_IFS
7031
7032fi
7033fi
7034RANLIB=$ac_cv_prog_RANLIB
7035if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007036 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7037echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007038else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007039 { echo "$as_me:$LINENO: result: no" >&5
7040echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007041fi
7042
7043
7044fi
7045if test -z "$ac_cv_prog_RANLIB"; then
7046 ac_ct_RANLIB=$RANLIB
7047 # Extract the first word of "ranlib", so it can be a program name with args.
7048set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007049{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7051if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7052 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007053else
7054 if test -n "$ac_ct_RANLIB"; then
7055 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7056else
7057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7058for as_dir in $PATH
7059do
7060 IFS=$as_save_IFS
7061 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007062 for ac_exec_ext in '' $ac_executable_extensions; do
7063 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 +00007064 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007066 break 2
7067 fi
7068done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007069done
Reid Spencera773bd52006-08-04 18:18:08 +00007070IFS=$as_save_IFS
7071
7072fi
7073fi
7074ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7075if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007076 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7077echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007078else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007079 { echo "$as_me:$LINENO: result: no" >&5
7080echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007081fi
7082
7083 if test "x$ac_ct_RANLIB" = x; then
7084 RANLIB=":"
7085 else
7086 case $cross_compiling:$ac_tool_warned in
7087yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007088{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7089whose name does not start with the host triplet. If you think this
7090configuration is useful to you, please write to autoconf@gnu.org." >&5
7091echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7092whose name does not start with the host triplet. If you think this
7093configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00007094ac_tool_warned=yes ;;
7095esac
7096 RANLIB=$ac_ct_RANLIB
7097 fi
7098else
7099 RANLIB="$ac_cv_prog_RANLIB"
7100fi
7101
Torok Edwin871384f2010-01-26 08:50:50 +00007102if test -n "$ac_tool_prefix"; then
7103 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7104set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007105{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7106echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7107if test "${ac_cv_prog_AR+set}" = set; then
7108 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007109else
7110 if test -n "$AR"; then
7111 ac_cv_prog_AR="$AR" # Let the user override the test.
7112else
7113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114for as_dir in $PATH
7115do
7116 IFS=$as_save_IFS
7117 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007118 for ac_exec_ext in '' $ac_executable_extensions; do
7119 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 +00007120 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007122 break 2
7123 fi
7124done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007125done
Torok Edwin871384f2010-01-26 08:50:50 +00007126IFS=$as_save_IFS
7127
7128fi
7129fi
7130AR=$ac_cv_prog_AR
7131if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007132 { echo "$as_me:$LINENO: result: $AR" >&5
7133echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007134else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007135 { echo "$as_me:$LINENO: result: no" >&5
7136echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007137fi
7138
7139
7140fi
7141if test -z "$ac_cv_prog_AR"; then
7142 ac_ct_AR=$AR
7143 # Extract the first word of "ar", so it can be a program name with args.
7144set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007145{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7146echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7147if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7148 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007149else
7150 if test -n "$ac_ct_AR"; then
7151 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7152else
7153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7154for as_dir in $PATH
7155do
7156 IFS=$as_save_IFS
7157 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007158 for ac_exec_ext in '' $ac_executable_extensions; do
7159 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 +00007160 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007162 break 2
7163 fi
7164done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007165done
Torok Edwin871384f2010-01-26 08:50:50 +00007166IFS=$as_save_IFS
7167
7168fi
7169fi
7170ac_ct_AR=$ac_cv_prog_ac_ct_AR
7171if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007172 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7173echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007174else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007175 { echo "$as_me:$LINENO: result: no" >&5
7176echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007177fi
7178
7179 if test "x$ac_ct_AR" = x; then
7180 AR="false"
7181 else
7182 case $cross_compiling:$ac_tool_warned in
7183yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007184{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7185whose name does not start with the host triplet. If you think this
7186configuration is useful to you, please write to autoconf@gnu.org." >&5
7187echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7188whose name does not start with the host triplet. If you think this
7189configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00007190ac_tool_warned=yes ;;
7191esac
7192 AR=$ac_ct_AR
7193 fi
7194else
7195 AR="$ac_cv_prog_AR"
7196fi
7197
Reid Spencera773bd52006-08-04 18:18:08 +00007198# Extract the first word of "rm", so it can be a program name with args.
7199set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007200{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7201echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7202if test "${ac_cv_path_RM+set}" = set; then
7203 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007204else
7205 case $RM in
7206 [\\/]* | ?:[\\/]*)
7207 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7208 ;;
7209 *)
7210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7211for as_dir in $PATH
7212do
7213 IFS=$as_save_IFS
7214 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007215 for ac_exec_ext in '' $ac_executable_extensions; do
7216 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 +00007217 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007219 break 2
7220 fi
7221done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007222done
Reid Spencera773bd52006-08-04 18:18:08 +00007223IFS=$as_save_IFS
7224
7225 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7226 ;;
7227esac
7228fi
7229RM=$ac_cv_path_RM
7230if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007231 { echo "$as_me:$LINENO: result: $RM" >&5
7232echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007233else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007234 { echo "$as_me:$LINENO: result: no" >&5
7235echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007236fi
7237
7238
7239# Extract the first word of "sed", so it can be a program name with args.
7240set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007241{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7242echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7243if test "${ac_cv_path_SED+set}" = set; then
7244 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007245else
7246 case $SED in
7247 [\\/]* | ?:[\\/]*)
7248 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7249 ;;
7250 *)
7251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7252for as_dir in $PATH
7253do
7254 IFS=$as_save_IFS
7255 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007256 for ac_exec_ext in '' $ac_executable_extensions; do
7257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007258 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007260 break 2
7261 fi
7262done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007263done
Reid Spencera773bd52006-08-04 18:18:08 +00007264IFS=$as_save_IFS
7265
7266 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7267 ;;
7268esac
7269fi
7270SED=$ac_cv_path_SED
7271if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007272 { echo "$as_me:$LINENO: result: $SED" >&5
7273echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007274else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007275 { echo "$as_me:$LINENO: result: no" >&5
7276echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007277fi
7278
7279
7280# Extract the first word of "tar", so it can be a program name with args.
7281set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007282{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7283echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7284if test "${ac_cv_path_TAR+set}" = set; then
7285 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007286else
7287 case $TAR in
7288 [\\/]* | ?:[\\/]*)
7289 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7290 ;;
7291 *)
7292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7293for as_dir in $PATH
7294do
7295 IFS=$as_save_IFS
7296 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007297 for ac_exec_ext in '' $ac_executable_extensions; do
7298 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 +00007299 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007301 break 2
7302 fi
7303done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007304done
Reid Spencera773bd52006-08-04 18:18:08 +00007305IFS=$as_save_IFS
7306
7307 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7308 ;;
7309esac
7310fi
7311TAR=$ac_cv_path_TAR
7312if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007313 { echo "$as_me:$LINENO: result: $TAR" >&5
7314echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007315else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007316 { echo "$as_me:$LINENO: result: no" >&5
7317echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007318fi
7319
7320
7321# Extract the first word of "pwd", so it can be a program name with args.
7322set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007323{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7324echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7325if test "${ac_cv_path_BINPWD+set}" = set; then
7326 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007327else
7328 case $BINPWD in
7329 [\\/]* | ?:[\\/]*)
7330 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7331 ;;
7332 *)
7333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7334for as_dir in $PATH
7335do
7336 IFS=$as_save_IFS
7337 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007338 for ac_exec_ext in '' $ac_executable_extensions; do
7339 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 +00007340 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007342 break 2
7343 fi
7344done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007345done
Reid Spencera773bd52006-08-04 18:18:08 +00007346IFS=$as_save_IFS
7347
7348 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7349 ;;
7350esac
7351fi
7352BINPWD=$ac_cv_path_BINPWD
7353if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007354 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7355echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007356else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007357 { echo "$as_me:$LINENO: result: no" >&5
7358echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007359fi
7360
7361
7362
7363# Extract the first word of "Graphviz", so it can be a program name with args.
7364set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007365{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7366echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7367if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7368 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007369else
7370 case $GRAPHVIZ in
7371 [\\/]* | ?:[\\/]*)
7372 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7373 ;;
7374 *)
7375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7376for as_dir in $PATH
7377do
7378 IFS=$as_save_IFS
7379 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007380 for ac_exec_ext in '' $ac_executable_extensions; do
7381 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 +00007382 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007384 break 2
7385 fi
7386done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007387done
Reid Spencera773bd52006-08-04 18:18:08 +00007388IFS=$as_save_IFS
7389
7390 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7391 ;;
7392esac
7393fi
7394GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7395if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007396 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7397echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007398else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007399 { echo "$as_me:$LINENO: result: no" >&5
7400echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007401fi
7402
7403
7404if test "$GRAPHVIZ" != "echo Graphviz" ; then
7405
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007406cat >>confdefs.h <<\_ACEOF
7407#define HAVE_GRAPHVIZ 1
7408_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007409
Jeff Cohen28783c32007-01-12 18:22:38 +00007410 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007411 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7412 fi
7413
7414cat >>confdefs.h <<_ACEOF
7415#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7416_ACEOF
7417
7418fi
7419# Extract the first word of "dot", so it can be a program name with args.
7420set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007421{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7422echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7423if test "${ac_cv_path_DOT+set}" = set; then
7424 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007425else
7426 case $DOT in
7427 [\\/]* | ?:[\\/]*)
7428 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7429 ;;
7430 *)
7431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7432for as_dir in $PATH
7433do
7434 IFS=$as_save_IFS
7435 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007436 for ac_exec_ext in '' $ac_executable_extensions; do
7437 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 +00007438 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007440 break 2
7441 fi
7442done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007443done
Reid Spencera773bd52006-08-04 18:18:08 +00007444IFS=$as_save_IFS
7445
7446 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7447 ;;
7448esac
7449fi
7450DOT=$ac_cv_path_DOT
7451if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007452 { echo "$as_me:$LINENO: result: $DOT" >&5
7453echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007454else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007455 { echo "$as_me:$LINENO: result: no" >&5
7456echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007457fi
7458
7459
7460if test "$DOT" != "echo dot" ; then
7461
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007462cat >>confdefs.h <<\_ACEOF
7463#define HAVE_DOT 1
7464_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007465
Jeff Cohen28783c32007-01-12 18:22:38 +00007466 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007467 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7468 fi
7469
7470cat >>confdefs.h <<_ACEOF
7471#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7472_ACEOF
7473
7474fi
David Greenef0b9eff2009-07-09 17:16:26 +00007475# Extract the first word of "fdp", so it can be a program name with args.
7476set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007477{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7478echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7479if test "${ac_cv_path_FDP+set}" = set; then
7480 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007481else
7482 case $FDP in
7483 [\\/]* | ?:[\\/]*)
7484 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7485 ;;
7486 *)
7487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7488for as_dir in $PATH
7489do
7490 IFS=$as_save_IFS
7491 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007492 for ac_exec_ext in '' $ac_executable_extensions; do
7493 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 +00007494 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007496 break 2
7497 fi
7498done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007499done
David Greenef0b9eff2009-07-09 17:16:26 +00007500IFS=$as_save_IFS
7501
7502 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7503 ;;
7504esac
7505fi
7506FDP=$ac_cv_path_FDP
7507if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007508 { echo "$as_me:$LINENO: result: $FDP" >&5
7509echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007510else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007511 { echo "$as_me:$LINENO: result: no" >&5
7512echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007513fi
7514
7515
7516if test "$FDP" != "echo fdp" ; then
7517
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007518cat >>confdefs.h <<\_ACEOF
7519#define HAVE_FDP 1
7520_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007521
7522 if test "$llvm_cv_os_type" = "MingW" ; then
7523 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7524 fi
7525
7526cat >>confdefs.h <<_ACEOF
7527#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7528_ACEOF
7529
7530fi
7531# Extract the first word of "neato", so it can be a program name with args.
7532set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007533{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7534echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7535if test "${ac_cv_path_NEATO+set}" = set; then
7536 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007537else
7538 case $NEATO in
7539 [\\/]* | ?:[\\/]*)
7540 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7541 ;;
7542 *)
7543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7544for as_dir in $PATH
7545do
7546 IFS=$as_save_IFS
7547 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007548 for ac_exec_ext in '' $ac_executable_extensions; do
7549 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 +00007550 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007552 break 2
7553 fi
7554done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007555done
David Greenef0b9eff2009-07-09 17:16:26 +00007556IFS=$as_save_IFS
7557
7558 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7559 ;;
7560esac
7561fi
7562NEATO=$ac_cv_path_NEATO
7563if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007564 { echo "$as_me:$LINENO: result: $NEATO" >&5
7565echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007566else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007567 { echo "$as_me:$LINENO: result: no" >&5
7568echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007569fi
7570
7571
7572if test "$NEATO" != "echo neato" ; then
7573
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007574cat >>confdefs.h <<\_ACEOF
7575#define HAVE_NEATO 1
7576_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007577
7578 if test "$llvm_cv_os_type" = "MingW" ; then
7579 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7580 fi
7581
7582cat >>confdefs.h <<_ACEOF
7583#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7584_ACEOF
7585
7586fi
7587# Extract the first word of "twopi", so it can be a program name with args.
7588set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007589{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7590echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7591if test "${ac_cv_path_TWOPI+set}" = set; then
7592 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007593else
7594 case $TWOPI in
7595 [\\/]* | ?:[\\/]*)
7596 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7597 ;;
7598 *)
7599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7600for as_dir in $PATH
7601do
7602 IFS=$as_save_IFS
7603 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007604 for ac_exec_ext in '' $ac_executable_extensions; do
7605 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 +00007606 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007608 break 2
7609 fi
7610done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007611done
David Greenef0b9eff2009-07-09 17:16:26 +00007612IFS=$as_save_IFS
7613
7614 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7615 ;;
7616esac
7617fi
7618TWOPI=$ac_cv_path_TWOPI
7619if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007620 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7621echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007622else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007623 { echo "$as_me:$LINENO: result: no" >&5
7624echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007625fi
7626
7627
7628if test "$TWOPI" != "echo twopi" ; then
7629
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007630cat >>confdefs.h <<\_ACEOF
7631#define HAVE_TWOPI 1
7632_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007633
7634 if test "$llvm_cv_os_type" = "MingW" ; then
7635 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7636 fi
7637
7638cat >>confdefs.h <<_ACEOF
7639#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7640_ACEOF
7641
7642fi
7643# Extract the first word of "circo", so it can be a program name with args.
7644set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007645{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7646echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7647if test "${ac_cv_path_CIRCO+set}" = set; then
7648 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007649else
7650 case $CIRCO in
7651 [\\/]* | ?:[\\/]*)
7652 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7653 ;;
7654 *)
7655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7656for as_dir in $PATH
7657do
7658 IFS=$as_save_IFS
7659 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007660 for ac_exec_ext in '' $ac_executable_extensions; do
7661 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 +00007662 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007664 break 2
7665 fi
7666done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007667done
David Greenef0b9eff2009-07-09 17:16:26 +00007668IFS=$as_save_IFS
7669
7670 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7671 ;;
7672esac
7673fi
7674CIRCO=$ac_cv_path_CIRCO
7675if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007676 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7677echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007678else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007679 { echo "$as_me:$LINENO: result: no" >&5
7680echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007681fi
7682
7683
7684if test "$CIRCO" != "echo circo" ; then
7685
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007686cat >>confdefs.h <<\_ACEOF
7687#define HAVE_CIRCO 1
7688_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007689
7690 if test "$llvm_cv_os_type" = "MingW" ; then
7691 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7692 fi
7693
7694cat >>confdefs.h <<_ACEOF
7695#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7696_ACEOF
7697
7698fi
Reid Spencera773bd52006-08-04 18:18:08 +00007699for ac_prog in gv gsview32
7700do
7701 # Extract the first word of "$ac_prog", so it can be a program name with args.
7702set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007703{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7704echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7705if test "${ac_cv_path_GV+set}" = set; then
7706 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007707else
7708 case $GV in
7709 [\\/]* | ?:[\\/]*)
7710 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7711 ;;
7712 *)
7713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7714for as_dir in $PATH
7715do
7716 IFS=$as_save_IFS
7717 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007718 for ac_exec_ext in '' $ac_executable_extensions; do
7719 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 +00007720 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007722 break 2
7723 fi
7724done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007725done
Reid Spencera773bd52006-08-04 18:18:08 +00007726IFS=$as_save_IFS
7727
7728 ;;
7729esac
7730fi
7731GV=$ac_cv_path_GV
7732if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007733 { echo "$as_me:$LINENO: result: $GV" >&5
7734echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007735else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007736 { echo "$as_me:$LINENO: result: no" >&5
7737echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007738fi
7739
7740
7741 test -n "$GV" && break
7742done
7743test -n "$GV" || GV="echo gv"
7744
7745if test "$GV" != "echo gv" ; then
7746
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007747cat >>confdefs.h <<\_ACEOF
7748#define HAVE_GV 1
7749_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007750
Jeff Cohen28783c32007-01-12 18:22:38 +00007751 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007752 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7753 fi
7754
7755cat >>confdefs.h <<_ACEOF
7756#define LLVM_PATH_GV "$GV${EXEEXT}"
7757_ACEOF
7758
7759fi
7760# Extract the first word of "dotty", so it can be a program name with args.
7761set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007762{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7763echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7764if test "${ac_cv_path_DOTTY+set}" = set; then
7765 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007766else
7767 case $DOTTY in
7768 [\\/]* | ?:[\\/]*)
7769 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7770 ;;
7771 *)
7772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7773for as_dir in $PATH
7774do
7775 IFS=$as_save_IFS
7776 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007777 for ac_exec_ext in '' $ac_executable_extensions; do
7778 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 +00007779 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007781 break 2
7782 fi
7783done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007784done
Reid Spencera773bd52006-08-04 18:18:08 +00007785IFS=$as_save_IFS
7786
7787 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7788 ;;
7789esac
7790fi
7791DOTTY=$ac_cv_path_DOTTY
7792if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007793 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7794echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007795else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007796 { echo "$as_me:$LINENO: result: no" >&5
7797echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007798fi
7799
7800
7801if test "$DOTTY" != "echo dotty" ; then
7802
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007803cat >>confdefs.h <<\_ACEOF
7804#define HAVE_DOTTY 1
7805_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007806
Jeff Cohen28783c32007-01-12 18:22:38 +00007807 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007808 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7809 fi
7810
7811cat >>confdefs.h <<_ACEOF
7812#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7813_ACEOF
7814
7815fi
7816
7817
7818# Extract the first word of "perl", so it can be a program name with args.
7819set dummy perl; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007820{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7822if test "${ac_cv_path_PERL+set}" = set; then
7823 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007824else
7825 case $PERL in
7826 [\\/]* | ?:[\\/]*)
7827 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7828 ;;
7829 *)
7830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7831for as_dir in $PATH
7832do
7833 IFS=$as_save_IFS
7834 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007835 for ac_exec_ext in '' $ac_executable_extensions; do
7836 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 +00007837 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007839 break 2
7840 fi
7841done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007842done
Reid Spencera773bd52006-08-04 18:18:08 +00007843IFS=$as_save_IFS
7844
7845 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7846 ;;
7847esac
7848fi
7849PERL=$ac_cv_path_PERL
7850if test -n "$PERL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007851 { echo "$as_me:$LINENO: result: $PERL" >&5
7852echo "${ECHO_T}$PERL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007853else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007854 { echo "$as_me:$LINENO: result: no" >&5
7855echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007856fi
7857
7858
7859if test "$PERL" != "none"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007860 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7861echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007862 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007863 { echo "$as_me:$LINENO: result: yes" >&5
7864echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007865 else
7866 PERL=none
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007867 { echo "$as_me:$LINENO: result: not found" >&5
7868echo "${ECHO_T}not found" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007869 fi
7870fi
7871
7872
7873if test x"$PERL" = xnone; then
7874 HAVE_PERL=0
7875
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007876 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7877echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7878 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007879else
7880 HAVE_PERL=1
7881
7882fi
7883
7884# Find a good install program. We prefer a C program (faster),
7885# so one script is as good as another. But avoid the broken or
7886# incompatible versions:
7887# SysV /etc/install, /usr/sbin/install
7888# SunOS /usr/etc/install
7889# IRIX /sbin/install
7890# AIX /bin/install
7891# AmigaOS /C/install, which installs bootblocks on floppy discs
7892# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7893# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7894# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7895# OS/2's system install, which has a completely different semantic
7896# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007897{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7898echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007899if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007900if test "${ac_cv_path_install+set}" = set; then
7901 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007902else
7903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7904for as_dir in $PATH
7905do
7906 IFS=$as_save_IFS
7907 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007908 # Account for people who put trailing slashes in PATH elements.
7909case $as_dir/ in
7910 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007911 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007912 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007913 /usr/ucb/* ) ;;
7914 *)
7915 # OSF1 and SCO ODT 3.0 have their own names for install.
7916 # Don't use installbsd from OSF since it installs stuff as root
7917 # by default.
7918 for ac_prog in ginstall scoinst install; do
7919 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007920 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 +00007921 if test $ac_prog = install &&
7922 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7923 # AIX install. It has an incompatible calling convention.
7924 :
7925 elif test $ac_prog = install &&
7926 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7927 # program-specific install script used by HP pwplus--don't use.
7928 :
7929 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007930 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7931 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00007932 fi
7933 fi
7934 done
7935 done
7936 ;;
7937esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007938done
Reid Spencera773bd52006-08-04 18:18:08 +00007939IFS=$as_save_IFS
7940
7941
7942fi
7943 if test "${ac_cv_path_install+set}" = set; then
7944 INSTALL=$ac_cv_path_install
7945 else
7946 # As a last resort, use the slow shell script. Don't cache a
7947 # value for INSTALL within a source directory, because that will
7948 # break other packages using the cache if that directory is
7949 # removed, or if the value is a relative name.
7950 INSTALL=$ac_install_sh
7951 fi
7952fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007953{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7954echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007955
7956# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7957# It thinks the first close brace ends the variable substitution.
7958test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7959
7960test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7961
7962test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7963
7964
7965# Extract the first word of "bzip2", so it can be a program name with args.
7966set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007967{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7968echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7969if test "${ac_cv_path_BZIP2+set}" = set; then
7970 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007971else
7972 case $BZIP2 in
7973 [\\/]* | ?:[\\/]*)
7974 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7975 ;;
7976 *)
7977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7978for as_dir in $PATH
7979do
7980 IFS=$as_save_IFS
7981 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007982 for ac_exec_ext in '' $ac_executable_extensions; do
7983 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 +00007984 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007986 break 2
7987 fi
7988done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007989done
Reid Spencera773bd52006-08-04 18:18:08 +00007990IFS=$as_save_IFS
7991
Reid Spencera773bd52006-08-04 18:18:08 +00007992 ;;
7993esac
7994fi
7995BZIP2=$ac_cv_path_BZIP2
7996if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007997 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7998echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007999else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008000 { echo "$as_me:$LINENO: result: no" >&5
8001echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008002fi
8003
8004
8005# Extract the first word of "doxygen", so it can be a program name with args.
8006set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008007{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8008echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8009if test "${ac_cv_path_DOXYGEN+set}" = set; then
8010 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008011else
8012 case $DOXYGEN in
8013 [\\/]* | ?:[\\/]*)
8014 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8015 ;;
8016 *)
8017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8018for as_dir in $PATH
8019do
8020 IFS=$as_save_IFS
8021 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008022 for ac_exec_ext in '' $ac_executable_extensions; do
8023 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 +00008024 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008026 break 2
8027 fi
8028done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008029done
Reid Spencera773bd52006-08-04 18:18:08 +00008030IFS=$as_save_IFS
8031
Reid Spencera773bd52006-08-04 18:18:08 +00008032 ;;
8033esac
8034fi
8035DOXYGEN=$ac_cv_path_DOXYGEN
8036if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008037 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8038echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008039else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008040 { echo "$as_me:$LINENO: result: no" >&5
8041echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008042fi
8043
8044
Reid Spencera773bd52006-08-04 18:18:08 +00008045# Extract the first word of "groff", so it can be a program name with args.
8046set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008047{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8048echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8049if test "${ac_cv_path_GROFF+set}" = set; then
8050 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008051else
8052 case $GROFF in
8053 [\\/]* | ?:[\\/]*)
8054 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8055 ;;
8056 *)
8057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8058for as_dir in $PATH
8059do
8060 IFS=$as_save_IFS
8061 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008062 for ac_exec_ext in '' $ac_executable_extensions; do
8063 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 +00008064 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008066 break 2
8067 fi
8068done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008069done
Reid Spencera773bd52006-08-04 18:18:08 +00008070IFS=$as_save_IFS
8071
Reid Spencera773bd52006-08-04 18:18:08 +00008072 ;;
8073esac
8074fi
8075GROFF=$ac_cv_path_GROFF
8076if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008077 { echo "$as_me:$LINENO: result: $GROFF" >&5
8078echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008079else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008080 { echo "$as_me:$LINENO: result: no" >&5
8081echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008082fi
8083
8084
8085# Extract the first word of "gzip", so it can be a program name with args.
8086set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008087{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8088echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8089if test "${ac_cv_path_GZIP+set}" = set; then
8090 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008091else
8092 case $GZIP in
8093 [\\/]* | ?:[\\/]*)
8094 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8095 ;;
8096 *)
8097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8098for as_dir in $PATH
8099do
8100 IFS=$as_save_IFS
8101 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008102 for ac_exec_ext in '' $ac_executable_extensions; do
8103 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 +00008104 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008106 break 2
8107 fi
8108done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008109done
Reid Spencera773bd52006-08-04 18:18:08 +00008110IFS=$as_save_IFS
8111
Reid Spencera773bd52006-08-04 18:18:08 +00008112 ;;
8113esac
8114fi
8115GZIP=$ac_cv_path_GZIP
8116if test -n "$GZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008117 { echo "$as_me:$LINENO: result: $GZIP" >&5
8118echo "${ECHO_T}$GZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008119else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008120 { echo "$as_me:$LINENO: result: no" >&5
8121echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008122fi
8123
8124
8125# Extract the first word of "pod2html", so it can be a program name with args.
8126set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008127{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8129if test "${ac_cv_path_POD2HTML+set}" = set; then
8130 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008131else
8132 case $POD2HTML in
8133 [\\/]* | ?:[\\/]*)
8134 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8135 ;;
8136 *)
8137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8138for as_dir in $PATH
8139do
8140 IFS=$as_save_IFS
8141 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008142 for ac_exec_ext in '' $ac_executable_extensions; do
8143 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 +00008144 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008146 break 2
8147 fi
8148done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008149done
Reid Spencera773bd52006-08-04 18:18:08 +00008150IFS=$as_save_IFS
8151
Reid Spencera773bd52006-08-04 18:18:08 +00008152 ;;
8153esac
8154fi
8155POD2HTML=$ac_cv_path_POD2HTML
8156if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008157 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8158echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008159else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008160 { echo "$as_me:$LINENO: result: no" >&5
8161echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008162fi
8163
8164
8165# Extract the first word of "pod2man", so it can be a program name with args.
8166set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008167{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8168echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8169if test "${ac_cv_path_POD2MAN+set}" = set; then
8170 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008171else
8172 case $POD2MAN in
8173 [\\/]* | ?:[\\/]*)
8174 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8175 ;;
8176 *)
8177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8178for as_dir in $PATH
8179do
8180 IFS=$as_save_IFS
8181 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008182 for ac_exec_ext in '' $ac_executable_extensions; do
8183 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 +00008184 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008186 break 2
8187 fi
8188done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008189done
Reid Spencera773bd52006-08-04 18:18:08 +00008190IFS=$as_save_IFS
8191
Reid Spencera773bd52006-08-04 18:18:08 +00008192 ;;
8193esac
8194fi
8195POD2MAN=$ac_cv_path_POD2MAN
8196if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008197 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8198echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008199else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008200 { echo "$as_me:$LINENO: result: no" >&5
8201echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008202fi
8203
8204
8205# Extract the first word of "runtest", so it can be a program name with args.
8206set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008207{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8208echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8209if test "${ac_cv_path_RUNTEST+set}" = set; then
8210 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008211else
8212 case $RUNTEST in
8213 [\\/]* | ?:[\\/]*)
8214 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8215 ;;
8216 *)
8217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8218for as_dir in $PATH
8219do
8220 IFS=$as_save_IFS
8221 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008222 for ac_exec_ext in '' $ac_executable_extensions; do
8223 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 +00008224 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008226 break 2
8227 fi
8228done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008229done
Reid Spencera773bd52006-08-04 18:18:08 +00008230IFS=$as_save_IFS
8231
Reid Spencera773bd52006-08-04 18:18:08 +00008232 ;;
8233esac
8234fi
8235RUNTEST=$ac_cv_path_RUNTEST
8236if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008237 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8238echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008239else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008240 { echo "$as_me:$LINENO: result: no" >&5
8241echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008242fi
8243
8244
8245
8246no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008247{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8248echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008249
8250# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008251if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008252 withval=$with_tclinclude; with_tclinclude=${withval}
8253else
8254 with_tclinclude=''
8255fi
8256
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008257if test "${ac_cv_path_tclsh+set}" = set; then
8258 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008259else
8260
8261if test x"${with_tclinclude}" != x ; then
8262 if test -f ${with_tclinclude}/tclsh ; then
8263 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8264 elif test -f ${with_tclinclude}/src/tclsh ; then
8265 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8266 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008267 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8268echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8269 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00008270 fi
8271fi
Torok Edwin871384f2010-01-26 08:50:50 +00008272fi
8273
Reid Spencera773bd52006-08-04 18:18:08 +00008274
8275if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008276 { echo "$as_me:$LINENO: result: none" >&5
8277echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008278 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
8279do
8280 # Extract the first word of "$ac_prog", so it can be a program name with args.
8281set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008282{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8283echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8284if test "${ac_cv_path_TCLSH+set}" = set; then
8285 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008286else
8287 case $TCLSH in
8288 [\\/]* | ?:[\\/]*)
8289 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8290 ;;
8291 *)
8292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8293for as_dir in $PATH
8294do
8295 IFS=$as_save_IFS
8296 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008297 for ac_exec_ext in '' $ac_executable_extensions; do
8298 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 +00008299 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008301 break 2
8302 fi
8303done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008304done
Reid Spencera773bd52006-08-04 18:18:08 +00008305IFS=$as_save_IFS
8306
8307 ;;
8308esac
8309fi
8310TCLSH=$ac_cv_path_TCLSH
8311if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008312 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8313echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008314else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008315 { echo "$as_me:$LINENO: result: no" >&5
8316echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008317fi
8318
8319
8320 test -n "$TCLSH" && break
8321done
8322
8323 if test x"${TCLSH}" = x ; then
8324 ac_cv_path_tclsh='';
8325 else
8326 ac_cv_path_tclsh="${TCLSH}";
8327 fi
8328else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008329 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8330echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008331 TCLSH="${ac_cv_path_tclsh}"
8332
8333fi
8334
Reid Spencera773bd52006-08-04 18:18:08 +00008335# Extract the first word of "zip", so it can be a program name with args.
8336set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008337{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8338echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8339if test "${ac_cv_path_ZIP+set}" = set; then
8340 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008341else
8342 case $ZIP in
8343 [\\/]* | ?:[\\/]*)
8344 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8345 ;;
8346 *)
8347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8348for as_dir in $PATH
8349do
8350 IFS=$as_save_IFS
8351 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008352 for ac_exec_ext in '' $ac_executable_extensions; do
8353 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 +00008354 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008356 break 2
8357 fi
8358done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008359done
Reid Spencera773bd52006-08-04 18:18:08 +00008360IFS=$as_save_IFS
8361
Reid Spencera773bd52006-08-04 18:18:08 +00008362 ;;
8363esac
8364fi
8365ZIP=$ac_cv_path_ZIP
8366if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008367 { echo "$as_me:$LINENO: result: $ZIP" >&5
8368echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008369else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008370 { echo "$as_me:$LINENO: result: no" >&5
8371echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008372fi
8373
8374
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008375for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00008376do
8377 # Extract the first word of "$ac_prog", so it can be a program name with args.
8378set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008379{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8380echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8381if test "${ac_cv_path_OCAMLC+set}" = set; then
8382 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008383else
8384 case $OCAMLC in
8385 [\\/]* | ?:[\\/]*)
8386 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8387 ;;
8388 *)
8389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8390for as_dir in $PATH
8391do
8392 IFS=$as_save_IFS
8393 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008394 for ac_exec_ext in '' $ac_executable_extensions; do
8395 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 +00008396 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008398 break 2
8399 fi
8400done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008401done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008402IFS=$as_save_IFS
8403
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008404 ;;
8405esac
8406fi
8407OCAMLC=$ac_cv_path_OCAMLC
8408if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008409 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8410echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008411else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008412 { echo "$as_me:$LINENO: result: no" >&5
8413echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008414fi
8415
8416
Gordon Henriksene7072162008-03-07 18:20:01 +00008417 test -n "$OCAMLC" && break
8418done
8419
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008420for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00008421do
8422 # Extract the first word of "$ac_prog", so it can be a program name with args.
8423set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008424{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8425echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8426if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8427 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008428else
8429 case $OCAMLOPT in
8430 [\\/]* | ?:[\\/]*)
8431 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8432 ;;
8433 *)
8434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8435for as_dir in $PATH
8436do
8437 IFS=$as_save_IFS
8438 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008439 for ac_exec_ext in '' $ac_executable_extensions; do
8440 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 +00008441 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008443 break 2
8444 fi
8445done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008446done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008447IFS=$as_save_IFS
8448
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008449 ;;
8450esac
8451fi
8452OCAMLOPT=$ac_cv_path_OCAMLOPT
8453if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008454 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8455echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008456else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008457 { echo "$as_me:$LINENO: result: no" >&5
8458echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008459fi
8460
8461
Gordon Henriksene7072162008-03-07 18:20:01 +00008462 test -n "$OCAMLOPT" && break
8463done
8464
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008465for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00008466do
8467 # Extract the first word of "$ac_prog", so it can be a program name with args.
8468set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008469{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8470echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8471if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8472 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008473else
8474 case $OCAMLDEP in
8475 [\\/]* | ?:[\\/]*)
8476 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8477 ;;
8478 *)
8479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8480for as_dir in $PATH
8481do
8482 IFS=$as_save_IFS
8483 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008484 for ac_exec_ext in '' $ac_executable_extensions; do
8485 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 +00008486 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008488 break 2
8489 fi
8490done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008491done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008492IFS=$as_save_IFS
8493
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008494 ;;
8495esac
8496fi
8497OCAMLDEP=$ac_cv_path_OCAMLDEP
8498if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008499 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8500echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008501else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008502 { echo "$as_me:$LINENO: result: no" >&5
8503echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008504fi
8505
8506
Gordon Henriksene7072162008-03-07 18:20:01 +00008507 test -n "$OCAMLDEP" && break
8508done
8509
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008510for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008511do
8512 # Extract the first word of "$ac_prog", so it can be a program name with args.
8513set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008514{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8515echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8516if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8517 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008518else
8519 case $OCAMLDOC in
8520 [\\/]* | ?:[\\/]*)
8521 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8522 ;;
8523 *)
8524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8525for as_dir in $PATH
8526do
8527 IFS=$as_save_IFS
8528 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008529 for ac_exec_ext in '' $ac_executable_extensions; do
8530 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 +00008531 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008533 break 2
8534 fi
8535done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008536done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008537IFS=$as_save_IFS
8538
8539 ;;
8540esac
8541fi
8542OCAMLDOC=$ac_cv_path_OCAMLDOC
8543if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008544 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8545echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008546else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008547 { echo "$as_me:$LINENO: result: no" >&5
8548echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008549fi
8550
8551
8552 test -n "$OCAMLDOC" && break
8553done
8554
Torok Edwincc499a42008-10-22 09:56:27 +00008555for ac_prog in gas as
8556do
8557 # Extract the first word of "$ac_prog", so it can be a program name with args.
8558set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008559{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8560echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8561if test "${ac_cv_path_GAS+set}" = set; then
8562 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00008563else
8564 case $GAS in
8565 [\\/]* | ?:[\\/]*)
8566 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8567 ;;
8568 *)
8569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8570for as_dir in $PATH
8571do
8572 IFS=$as_save_IFS
8573 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008574 for ac_exec_ext in '' $ac_executable_extensions; do
8575 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 +00008576 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00008578 break 2
8579 fi
8580done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008581done
Torok Edwincc499a42008-10-22 09:56:27 +00008582IFS=$as_save_IFS
8583
8584 ;;
8585esac
8586fi
8587GAS=$ac_cv_path_GAS
8588if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008589 { echo "$as_me:$LINENO: result: $GAS" >&5
8590echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008591else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008592 { echo "$as_me:$LINENO: result: no" >&5
8593echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008594fi
8595
8596
8597 test -n "$GAS" && break
8598done
8599
Reid Spencera773bd52006-08-04 18:18:08 +00008600
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008601{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8602echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8603if test "${llvm_cv_link_use_r+set}" = set; then
8604 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008605else
8606 ac_ext=c
8607ac_cpp='$CPP $CPPFLAGS'
8608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8610ac_compiler_gnu=$ac_cv_c_compiler_gnu
8611
8612 oldcflags="$CFLAGS"
8613 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008614 cat >conftest.$ac_ext <<_ACEOF
8615/* confdefs.h. */
8616_ACEOF
8617cat confdefs.h >>conftest.$ac_ext
8618cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008619/* end confdefs.h. */
8620
8621int
8622main ()
8623{
8624int main() { return 0; }
8625 ;
8626 return 0;
8627}
8628_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008629rm -f conftest.$ac_objext conftest$ac_exeext
8630if { (ac_try="$ac_link"
8631case "(($ac_try" in
8632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8633 *) ac_try_echo=$ac_try;;
8634esac
8635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8636 (eval "$ac_link") 2>conftest.er1
8637 ac_status=$?
8638 grep -v '^ *+' conftest.er1 >conftest.err
8639 rm -f conftest.er1
8640 cat conftest.err >&5
8641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642 (exit $ac_status); } &&
8643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8644 { (case "(($ac_try" in
8645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8646 *) ac_try_echo=$ac_try;;
8647esac
8648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8649 (eval "$ac_try") 2>&5
8650 ac_status=$?
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); }; } &&
8653 { ac_try='test -s conftest$ac_exeext'
8654 { (case "(($ac_try" in
8655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8656 *) ac_try_echo=$ac_try;;
8657esac
8658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8659 (eval "$ac_try") 2>&5
8660 ac_status=$?
8661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008663 llvm_cv_link_use_r=yes
8664else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008665 echo "$as_me: failed program was:" >&5
8666sed 's/^/| /' conftest.$ac_ext >&5
8667
8668 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00008669fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008670
Bill Wendlingebcceee2009-04-18 11:20:33 +00008671rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008672 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008673 CFLAGS="$oldcflags"
8674 ac_ext=c
8675ac_cpp='$CPP $CPPFLAGS'
8676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8678ac_compiler_gnu=$ac_cv_c_compiler_gnu
8679
8680
8681fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008682{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8683echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008684if test "$llvm_cv_link_use_r" = yes ; then
8685
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008686cat >>confdefs.h <<\_ACEOF
8687#define HAVE_LINK_R 1
8688_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008689
8690 fi
8691
8692
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008693{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8694echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8695if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8696 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008697else
8698 ac_ext=c
8699ac_cpp='$CPP $CPPFLAGS'
8700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8702ac_compiler_gnu=$ac_cv_c_compiler_gnu
8703
8704 oldcflags="$CFLAGS"
8705 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008706 cat >conftest.$ac_ext <<_ACEOF
8707/* confdefs.h. */
8708_ACEOF
8709cat confdefs.h >>conftest.$ac_ext
8710cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008711/* end confdefs.h. */
8712
8713int
8714main ()
8715{
8716int main() { return 0; }
8717 ;
8718 return 0;
8719}
8720_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008721rm -f conftest.$ac_objext conftest$ac_exeext
8722if { (ac_try="$ac_link"
8723case "(($ac_try" in
8724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8725 *) ac_try_echo=$ac_try;;
8726esac
8727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8728 (eval "$ac_link") 2>conftest.er1
8729 ac_status=$?
8730 grep -v '^ *+' conftest.er1 >conftest.err
8731 rm -f conftest.er1
8732 cat conftest.err >&5
8733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734 (exit $ac_status); } &&
8735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8736 { (case "(($ac_try" in
8737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8738 *) ac_try_echo=$ac_try;;
8739esac
8740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8741 (eval "$ac_try") 2>&5
8742 ac_status=$?
8743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744 (exit $ac_status); }; } &&
8745 { ac_try='test -s conftest$ac_exeext'
8746 { (case "(($ac_try" in
8747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8748 *) ac_try_echo=$ac_try;;
8749esac
8750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8751 (eval "$ac_try") 2>&5
8752 ac_status=$?
8753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008755 llvm_cv_link_use_export_dynamic=yes
8756else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008757 echo "$as_me: failed program was:" >&5
8758sed 's/^/| /' conftest.$ac_ext >&5
8759
8760 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008761fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008762
Bill Wendlingebcceee2009-04-18 11:20:33 +00008763rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008764 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008765 CFLAGS="$oldcflags"
8766 ac_ext=c
8767ac_cpp='$CPP $CPPFLAGS'
8768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8770ac_compiler_gnu=$ac_cv_c_compiler_gnu
8771
8772
8773fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008774{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8775echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008776if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8777
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008778cat >>confdefs.h <<\_ACEOF
8779#define HAVE_LINK_EXPORT_DYNAMIC 1
8780_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008781
8782 fi
8783
8784
Reid Spencera773bd52006-08-04 18:18:08 +00008785
8786
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008787{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8788echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8789if test "${ac_cv_c_const+set}" = set; then
8790 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008791else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008792 cat >conftest.$ac_ext <<_ACEOF
8793/* confdefs.h. */
8794_ACEOF
8795cat confdefs.h >>conftest.$ac_ext
8796cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008797/* end confdefs.h. */
8798
8799int
8800main ()
8801{
8802/* FIXME: Include the comments suggested by Paul. */
8803#ifndef __cplusplus
8804 /* Ultrix mips cc rejects this. */
8805 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008806 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008807 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008808 char const *const *ccp;
8809 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008810 /* NEC SVR4.0.2 mips cc rejects this. */
8811 struct point {int x, y;};
8812 static struct point const zero = {0,0};
8813 /* AIX XL C 1.02.0.0 rejects this.
8814 It does not let you subtract one const X* pointer from another in
8815 an arm of an if-expression whose if-part is not a constant
8816 expression */
8817 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008818 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008819 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008820 ++ccp;
8821 p = (char**) ccp;
8822 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008823 { /* SCO 3.2v4 cc rejects this. */
8824 char *t;
8825 char const *s = 0 ? (char *) 0 : (char const *) 0;
8826
8827 *t++ = 0;
8828 if (s) return 0;
8829 }
8830 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8831 int x[] = {25, 17};
8832 const int *foo = &x[0];
8833 ++foo;
8834 }
8835 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8836 typedef const int *iptr;
8837 iptr p = 0;
8838 ++p;
8839 }
8840 { /* AIX XL C 1.02.0.0 rejects this saying
8841 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8842 struct s { int j; const int *ap[3]; };
8843 struct s *b; b->j = 5;
8844 }
8845 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8846 const int foo = 10;
8847 if (!foo) return 0;
8848 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008849 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008850#endif
8851
8852 ;
8853 return 0;
8854}
8855_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008856rm -f conftest.$ac_objext
8857if { (ac_try="$ac_compile"
8858case "(($ac_try" in
8859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8860 *) ac_try_echo=$ac_try;;
8861esac
8862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8863 (eval "$ac_compile") 2>conftest.er1
8864 ac_status=$?
8865 grep -v '^ *+' conftest.er1 >conftest.err
8866 rm -f conftest.er1
8867 cat conftest.err >&5
8868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869 (exit $ac_status); } &&
8870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8871 { (case "(($ac_try" in
8872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8873 *) ac_try_echo=$ac_try;;
8874esac
8875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8876 (eval "$ac_try") 2>&5
8877 ac_status=$?
8878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879 (exit $ac_status); }; } &&
8880 { ac_try='test -s conftest.$ac_objext'
8881 { (case "(($ac_try" in
8882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8883 *) ac_try_echo=$ac_try;;
8884esac
8885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8886 (eval "$ac_try") 2>&5
8887 ac_status=$?
8888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008890 ac_cv_c_const=yes
8891else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008892 echo "$as_me: failed program was:" >&5
8893sed 's/^/| /' conftest.$ac_ext >&5
8894
8895 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00008896fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008897
Reid Spencera773bd52006-08-04 18:18:08 +00008898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8899fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008900{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8901echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008902if test $ac_cv_c_const = no; then
8903
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008904cat >>confdefs.h <<\_ACEOF
8905#define const
8906_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008907
8908fi
8909
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008910
8911
8912
8913
8914
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008915ac_header_dirent=no
8916for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008917 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8918{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8919echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8920if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8921 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008922else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008923 cat >conftest.$ac_ext <<_ACEOF
8924/* confdefs.h. */
8925_ACEOF
8926cat confdefs.h >>conftest.$ac_ext
8927cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008928/* end confdefs.h. */
8929#include <sys/types.h>
8930#include <$ac_hdr>
8931
8932int
8933main ()
8934{
8935if ((DIR *) 0)
8936return 0;
8937 ;
8938 return 0;
8939}
8940_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008941rm -f conftest.$ac_objext
8942if { (ac_try="$ac_compile"
8943case "(($ac_try" in
8944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8945 *) ac_try_echo=$ac_try;;
8946esac
8947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8948 (eval "$ac_compile") 2>conftest.er1
8949 ac_status=$?
8950 grep -v '^ *+' conftest.er1 >conftest.err
8951 rm -f conftest.er1
8952 cat conftest.err >&5
8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 (exit $ac_status); } &&
8955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8956 { (case "(($ac_try" in
8957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8958 *) ac_try_echo=$ac_try;;
8959esac
8960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8961 (eval "$ac_try") 2>&5
8962 ac_status=$?
8963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964 (exit $ac_status); }; } &&
8965 { ac_try='test -s conftest.$ac_objext'
8966 { (case "(($ac_try" in
8967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8968 *) ac_try_echo=$ac_try;;
8969esac
8970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8971 (eval "$ac_try") 2>&5
8972 ac_status=$?
8973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008975 eval "$as_ac_Header=yes"
8976else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008977 echo "$as_me: failed program was:" >&5
8978sed 's/^/| /' conftest.$ac_ext >&5
8979
8980 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008981fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008982
Reid Spencera773bd52006-08-04 18:18:08 +00008983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008984fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008985ac_res=`eval echo '${'$as_ac_Header'}'`
8986 { echo "$as_me:$LINENO: result: $ac_res" >&5
8987echo "${ECHO_T}$ac_res" >&6; }
8988if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008989 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008990#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008991_ACEOF
8992
8993ac_header_dirent=$ac_hdr; break
8994fi
8995
8996done
8997# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8998if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008999 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9000echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9001if test "${ac_cv_search_opendir+set}" = set; then
9002 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009003else
9004 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009005cat >conftest.$ac_ext <<_ACEOF
9006/* confdefs.h. */
9007_ACEOF
9008cat confdefs.h >>conftest.$ac_ext
9009cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009010/* end confdefs.h. */
9011
Reid Spencera773bd52006-08-04 18:18:08 +00009012/* Override any GCC internal prototype to avoid an error.
9013 Use char because int might match the return type of a GCC
9014 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009015#ifdef __cplusplus
9016extern "C"
9017#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009018char opendir ();
9019int
9020main ()
9021{
Reid Spencera773bd52006-08-04 18:18:08 +00009022return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009023 ;
9024 return 0;
9025}
9026_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009027for ac_lib in '' dir; do
9028 if test -z "$ac_lib"; then
9029 ac_res="none required"
9030 else
9031 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009032 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00009033 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009034 rm -f conftest.$ac_objext conftest$ac_exeext
9035if { (ac_try="$ac_link"
9036case "(($ac_try" in
9037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9038 *) ac_try_echo=$ac_try;;
9039esac
9040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9041 (eval "$ac_link") 2>conftest.er1
9042 ac_status=$?
9043 grep -v '^ *+' conftest.er1 >conftest.err
9044 rm -f conftest.er1
9045 cat conftest.err >&5
9046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047 (exit $ac_status); } &&
9048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9049 { (case "(($ac_try" in
9050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9051 *) ac_try_echo=$ac_try;;
9052esac
9053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9054 (eval "$ac_try") 2>&5
9055 ac_status=$?
9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 (exit $ac_status); }; } &&
9058 { ac_try='test -s conftest$ac_exeext'
9059 { (case "(($ac_try" in
9060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9061 *) ac_try_echo=$ac_try;;
9062esac
9063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9064 (eval "$ac_try") 2>&5
9065 ac_status=$?
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009068 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009069else
9070 echo "$as_me: failed program was:" >&5
9071sed 's/^/| /' conftest.$ac_ext >&5
9072
9073
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009074fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009075
Bill Wendlingebcceee2009-04-18 11:20:33 +00009076rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009077 conftest$ac_exeext
9078 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009079 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009080fi
John Criswell7a73b802003-06-30 21:59:07 +00009081done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009082if test "${ac_cv_search_opendir+set}" = set; then
9083 :
Reid Spencera773bd52006-08-04 18:18:08 +00009084else
9085 ac_cv_search_opendir=no
9086fi
9087rm conftest.$ac_ext
9088LIBS=$ac_func_search_save_LIBS
9089fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009090{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9091echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009092ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009093if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009094 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00009095
Reid Spencera773bd52006-08-04 18:18:08 +00009096fi
9097
9098else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009099 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9100echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9101if test "${ac_cv_search_opendir+set}" = set; then
9102 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009103else
9104 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009105cat >conftest.$ac_ext <<_ACEOF
9106/* confdefs.h. */
9107_ACEOF
9108cat confdefs.h >>conftest.$ac_ext
9109cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009110/* end confdefs.h. */
9111
9112/* Override any GCC internal prototype to avoid an error.
9113 Use char because int might match the return type of a GCC
9114 builtin and then its argument prototype would still apply. */
9115#ifdef __cplusplus
9116extern "C"
9117#endif
9118char opendir ();
9119int
9120main ()
9121{
9122return opendir ();
9123 ;
9124 return 0;
9125}
9126_ACEOF
9127for ac_lib in '' x; do
9128 if test -z "$ac_lib"; then
9129 ac_res="none required"
9130 else
9131 ac_res=-l$ac_lib
9132 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9133 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009134 rm -f conftest.$ac_objext conftest$ac_exeext
9135if { (ac_try="$ac_link"
9136case "(($ac_try" in
9137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9138 *) ac_try_echo=$ac_try;;
9139esac
9140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9141 (eval "$ac_link") 2>conftest.er1
9142 ac_status=$?
9143 grep -v '^ *+' conftest.er1 >conftest.err
9144 rm -f conftest.er1
9145 cat conftest.err >&5
9146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147 (exit $ac_status); } &&
9148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9149 { (case "(($ac_try" in
9150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9151 *) ac_try_echo=$ac_try;;
9152esac
9153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9154 (eval "$ac_try") 2>&5
9155 ac_status=$?
9156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157 (exit $ac_status); }; } &&
9158 { ac_try='test -s conftest$ac_exeext'
9159 { (case "(($ac_try" in
9160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9161 *) ac_try_echo=$ac_try;;
9162esac
9163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9164 (eval "$ac_try") 2>&5
9165 ac_status=$?
9166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009168 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009169else
9170 echo "$as_me: failed program was:" >&5
9171sed 's/^/| /' conftest.$ac_ext >&5
9172
9173
Reid Spencera773bd52006-08-04 18:18:08 +00009174fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009175
Bill Wendlingebcceee2009-04-18 11:20:33 +00009176rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009177 conftest$ac_exeext
9178 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009179 break
9180fi
9181done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009182if test "${ac_cv_search_opendir+set}" = set; then
9183 :
Reid Spencera773bd52006-08-04 18:18:08 +00009184else
9185 ac_cv_search_opendir=no
9186fi
9187rm conftest.$ac_ext
9188LIBS=$ac_func_search_save_LIBS
9189fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009190{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9191echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009192ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009193if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009194 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9195
9196fi
9197
9198fi
John Criswell7a73b802003-06-30 21:59:07 +00009199
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009200
John Criswell7a73b802003-06-30 21:59:07 +00009201for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009202do
9203as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9204if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9205 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9206echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9207if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9208 echo $ECHO_N "(cached) $ECHO_C" >&6
9209fi
9210ac_res=`eval echo '${'$as_ac_Header'}'`
9211 { echo "$as_me:$LINENO: result: $ac_res" >&5
9212echo "${ECHO_T}$ac_res" >&6; }
9213else
9214 # Is the header compilable?
9215{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9216echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9217cat >conftest.$ac_ext <<_ACEOF
9218/* confdefs.h. */
9219_ACEOF
9220cat confdefs.h >>conftest.$ac_ext
9221cat >>conftest.$ac_ext <<_ACEOF
9222/* end confdefs.h. */
9223$ac_includes_default
9224#include <$ac_header>
9225_ACEOF
9226rm -f conftest.$ac_objext
9227if { (ac_try="$ac_compile"
9228case "(($ac_try" in
9229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9230 *) ac_try_echo=$ac_try;;
9231esac
9232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9233 (eval "$ac_compile") 2>conftest.er1
9234 ac_status=$?
9235 grep -v '^ *+' conftest.er1 >conftest.err
9236 rm -f conftest.er1
9237 cat conftest.err >&5
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); } &&
9240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9241 { (case "(($ac_try" in
9242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9243 *) ac_try_echo=$ac_try;;
9244esac
9245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9246 (eval "$ac_try") 2>&5
9247 ac_status=$?
9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 (exit $ac_status); }; } &&
9250 { ac_try='test -s conftest.$ac_objext'
9251 { (case "(($ac_try" in
9252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9253 *) ac_try_echo=$ac_try;;
9254esac
9255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9256 (eval "$ac_try") 2>&5
9257 ac_status=$?
9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 (exit $ac_status); }; }; then
9260 ac_header_compiler=yes
9261else
9262 echo "$as_me: failed program was:" >&5
9263sed 's/^/| /' conftest.$ac_ext >&5
9264
9265 ac_header_compiler=no
9266fi
9267
9268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9269{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9270echo "${ECHO_T}$ac_header_compiler" >&6; }
9271
9272# Is the header present?
9273{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9274echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9275cat >conftest.$ac_ext <<_ACEOF
9276/* confdefs.h. */
9277_ACEOF
9278cat confdefs.h >>conftest.$ac_ext
9279cat >>conftest.$ac_ext <<_ACEOF
9280/* end confdefs.h. */
9281#include <$ac_header>
9282_ACEOF
9283if { (ac_try="$ac_cpp conftest.$ac_ext"
9284case "(($ac_try" in
9285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9286 *) ac_try_echo=$ac_try;;
9287esac
9288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9289 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9290 ac_status=$?
9291 grep -v '^ *+' conftest.er1 >conftest.err
9292 rm -f conftest.er1
9293 cat conftest.err >&5
9294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 (exit $ac_status); } >/dev/null; then
9296 if test -s conftest.err; then
9297 ac_cpp_err=$ac_c_preproc_warn_flag
9298 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9299 else
9300 ac_cpp_err=
9301 fi
9302else
9303 ac_cpp_err=yes
9304fi
9305if test -z "$ac_cpp_err"; then
9306 ac_header_preproc=yes
9307else
9308 echo "$as_me: failed program was:" >&5
9309sed 's/^/| /' conftest.$ac_ext >&5
9310
9311 ac_header_preproc=no
9312fi
9313
9314rm -f conftest.err conftest.$ac_ext
9315{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9316echo "${ECHO_T}$ac_header_preproc" >&6; }
9317
9318# So? What about this header?
9319case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9320 yes:no: )
9321 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9322echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9323 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9324echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9325 ac_header_preproc=yes
9326 ;;
9327 no:yes:* )
9328 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9329echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9330 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9331echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9332 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9333echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9334 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9335echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9336 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9337echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9338 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9339echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9340 ( cat <<\_ASBOX
9341## ----------------------------------- ##
9342## Report this to llvmbugs@cs.uiuc.edu ##
9343## ----------------------------------- ##
9344_ASBOX
9345 ) | sed "s/^/$as_me: WARNING: /" >&2
9346 ;;
9347esac
9348{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9349echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9350if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9351 echo $ECHO_N "(cached) $ECHO_C" >&6
9352else
9353 eval "$as_ac_Header=\$ac_header_preproc"
9354fi
9355ac_res=`eval echo '${'$as_ac_Header'}'`
9356 { echo "$as_me:$LINENO: result: $ac_res" >&5
9357echo "${ECHO_T}$ac_res" >&6; }
9358
9359fi
9360if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00009361 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009362#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00009363_ACEOF
9364
9365fi
9366
9367done
9368
Reid Spencera773bd52006-08-04 18:18:08 +00009369# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009370if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009371 enableval=$enable_ltdl_install;
9372fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009373
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009374
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009375
9376
9377if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009378 INSTALL_LTDL_TRUE=
9379 INSTALL_LTDL_FALSE='#'
9380else
9381 INSTALL_LTDL_TRUE='#'
9382 INSTALL_LTDL_FALSE=
9383fi
9384
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009385
9386
9387if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009388 CONVENIENCE_LTDL_TRUE=
9389 CONVENIENCE_LTDL_FALSE='#'
9390else
9391 CONVENIENCE_LTDL_TRUE='#'
9392 CONVENIENCE_LTDL_FALSE=
9393fi
9394
9395
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009396{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9397echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009398library_names_spec=
9399libname_spec='lib$name'
9400soname_spec=
9401shrext_cmds=".so"
9402postinstall_cmds=
9403postuninstall_cmds=
9404finish_cmds=
9405finish_eval=
9406shlibpath_var=
9407shlibpath_overrides_runpath=unknown
9408version_type=none
9409dynamic_linker="$host_os ld.so"
9410sys_lib_dlsearch_path_spec="/lib /usr/lib"
9411if test "$GCC" = yes; then
9412 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9413 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9414 # if the path contains ";" then we assume it to be the separator
9415 # otherwise default to the standard path separator (i.e. ":") - it is
9416 # assumed that no part of a normal pathname contains ";" but that should
9417 # okay in the real world where ";" in dirpaths is itself problematic.
9418 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9419 else
9420 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9421 fi
9422else
9423 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9424fi
9425need_lib_prefix=unknown
9426hardcode_into_libs=no
9427
9428# when you set need_version to no, make sure it does not cause -set_version
9429# flags to be left without arguments
9430need_version=unknown
9431
9432case $host_os in
9433aix3*)
9434 version_type=linux
9435 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9436 shlibpath_var=LIBPATH
9437
9438 # AIX 3 has no versioning support, so we append a major version to the name.
9439 soname_spec='${libname}${release}${shared_ext}$major'
9440 ;;
9441
9442aix4* | aix5*)
9443 version_type=linux
9444 need_lib_prefix=no
9445 need_version=no
9446 hardcode_into_libs=yes
9447 if test "$host_cpu" = ia64; then
9448 # AIX 5 supports IA64
9449 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9450 shlibpath_var=LD_LIBRARY_PATH
9451 else
9452 # With GCC up to 2.95.x, collect2 would create an import file
9453 # for dependence libraries. The import file would start with
9454 # the line `#! .'. This would cause the generated library to
9455 # depend on `.', always an invalid library. This was fixed in
9456 # development snapshots of GCC prior to 3.0.
9457 case $host_os in
9458 aix4 | aix4.[01] | aix4.[01].*)
9459 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9460 echo ' yes '
9461 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9462 :
9463 else
9464 can_build_shared=no
9465 fi
9466 ;;
9467 esac
9468 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9469 # soname into executable. Probably we can add versioning support to
9470 # collect2, so additional links can be useful in future.
9471 if test "$aix_use_runtimelinking" = yes; then
9472 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9473 # instead of lib<name>.a to let people know that these are not
9474 # typical AIX shared libraries.
9475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9476 else
9477 # We preserve .a as extension for shared libraries through AIX4.2
9478 # and later when we are not doing run time linking.
9479 library_names_spec='${libname}${release}.a $libname.a'
9480 soname_spec='${libname}${release}${shared_ext}$major'
9481 fi
9482 shlibpath_var=LIBPATH
9483 fi
9484 ;;
9485
9486amigaos*)
9487 library_names_spec='$libname.ixlibrary $libname.a'
9488 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9489 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'
9490 ;;
9491
9492beos*)
9493 library_names_spec='${libname}${shared_ext}'
9494 dynamic_linker="$host_os ld.so"
9495 shlibpath_var=LIBRARY_PATH
9496 ;;
9497
9498bsdi[45]*)
9499 version_type=linux
9500 need_version=no
9501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9502 soname_spec='${libname}${release}${shared_ext}$major'
9503 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9504 shlibpath_var=LD_LIBRARY_PATH
9505 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9506 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9507 # the default ld.so.conf also contains /usr/contrib/lib and
9508 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9509 # libtool to hard-code these into programs
9510 ;;
9511
9512cygwin* | mingw* | pw32*)
9513 version_type=windows
9514 shrext_cmds=".dll"
9515 need_version=no
9516 need_lib_prefix=no
9517
9518 case $GCC,$host_os in
9519 yes,cygwin* | yes,mingw* | yes,pw32*)
9520 library_names_spec='$libname.dll.a'
9521 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9522 postinstall_cmds='base_file=`basename \${file}`~
9523 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9524 dldir=$destdir/`dirname \$dlpath`~
9525 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009526 $install_prog $dir/$dlname \$dldir/$dlname~
9527 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009528 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9529 dlpath=$dir/\$dldll~
9530 $rm \$dlpath'
9531 shlibpath_overrides_runpath=yes
9532
9533 case $host_os in
9534 cygwin*)
9535 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9536 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9537 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9538 ;;
9539 mingw*)
9540 # MinGW DLLs use traditional 'lib' prefix
9541 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9542 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9543 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9544 # It is most probably a Windows format PATH printed by
9545 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9546 # path with ; separators, and with drive letters. We can handle the
9547 # drive letters (cygwin fileutils understands them), so leave them,
9548 # especially as we might pass files found there to a mingw objdump,
9549 # which wouldn't understand a cygwinified path. Ahh.
9550 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9551 else
9552 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9553 fi
9554 ;;
9555 pw32*)
9556 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009557 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 +00009558 ;;
9559 esac
9560 ;;
9561
9562 *)
9563 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9564 ;;
9565 esac
9566 dynamic_linker='Win32 ld.exe'
9567 # FIXME: first we should search . and the directory the executable is in
9568 shlibpath_var=PATH
9569 ;;
9570
9571darwin* | rhapsody*)
9572 dynamic_linker="$host_os dyld"
9573 version_type=darwin
9574 need_lib_prefix=no
9575 need_version=no
9576 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9577 soname_spec='${libname}${release}${major}$shared_ext'
9578 shlibpath_overrides_runpath=yes
9579 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009580 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009581 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9582 if test "$GCC" = yes; then
9583 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"`
9584 else
9585 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9586 fi
9587 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9588 ;;
9589
9590dgux*)
9591 version_type=linux
9592 need_lib_prefix=no
9593 need_version=no
9594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9595 soname_spec='${libname}${release}${shared_ext}$major'
9596 shlibpath_var=LD_LIBRARY_PATH
9597 ;;
9598
9599freebsd1*)
9600 dynamic_linker=no
9601 ;;
9602
9603kfreebsd*-gnu)
9604 version_type=linux
9605 need_lib_prefix=no
9606 need_version=no
9607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9608 soname_spec='${libname}${release}${shared_ext}$major'
9609 shlibpath_var=LD_LIBRARY_PATH
9610 shlibpath_overrides_runpath=no
9611 hardcode_into_libs=yes
9612 dynamic_linker='GNU ld.so'
9613 ;;
9614
Reid Spencera773bd52006-08-04 18:18:08 +00009615freebsd* | dragonfly*)
9616 # DragonFly does not have aout. When/if they implement a new
9617 # versioning mechanism, adjust this.
9618 if test -x /usr/bin/objformat; then
9619 objformat=`/usr/bin/objformat`
9620 else
9621 case $host_os in
9622 freebsd[123]*) objformat=aout ;;
9623 *) objformat=elf ;;
9624 esac
9625 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009626 version_type=freebsd-$objformat
9627 case $version_type in
9628 freebsd-elf*)
9629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9630 need_version=no
9631 need_lib_prefix=no
9632 ;;
9633 freebsd-*)
9634 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9635 need_version=yes
9636 ;;
9637 esac
9638 shlibpath_var=LD_LIBRARY_PATH
9639 case $host_os in
9640 freebsd2*)
9641 shlibpath_overrides_runpath=yes
9642 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009643 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009644 shlibpath_overrides_runpath=yes
9645 hardcode_into_libs=yes
9646 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009647 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9648 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009649 shlibpath_overrides_runpath=no
9650 hardcode_into_libs=yes
9651 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009652 freebsd*) # from 4.6 on
9653 shlibpath_overrides_runpath=yes
9654 hardcode_into_libs=yes
9655 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009656 esac
9657 ;;
9658
9659gnu*)
9660 version_type=linux
9661 need_lib_prefix=no
9662 need_version=no
9663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9664 soname_spec='${libname}${release}${shared_ext}$major'
9665 shlibpath_var=LD_LIBRARY_PATH
9666 hardcode_into_libs=yes
9667 ;;
9668
9669hpux9* | hpux10* | hpux11*)
9670 # Give a soname corresponding to the major version so that dld.sl refuses to
9671 # link against other versions.
9672 version_type=sunos
9673 need_lib_prefix=no
9674 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009675 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009676 ia64*)
9677 shrext_cmds='.so'
9678 hardcode_into_libs=yes
9679 dynamic_linker="$host_os dld.so"
9680 shlibpath_var=LD_LIBRARY_PATH
9681 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9683 soname_spec='${libname}${release}${shared_ext}$major'
9684 if test "X$HPUX_IA64_MODE" = X32; then
9685 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9686 else
9687 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9688 fi
9689 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9690 ;;
9691 hppa*64*)
9692 shrext_cmds='.sl'
9693 hardcode_into_libs=yes
9694 dynamic_linker="$host_os dld.sl"
9695 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9696 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9698 soname_spec='${libname}${release}${shared_ext}$major'
9699 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9700 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9701 ;;
9702 *)
9703 shrext_cmds='.sl'
9704 dynamic_linker="$host_os dld.sl"
9705 shlibpath_var=SHLIB_PATH
9706 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9708 soname_spec='${libname}${release}${shared_ext}$major'
9709 ;;
9710 esac
9711 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9712 postinstall_cmds='chmod 555 $lib'
9713 ;;
9714
Reid Spencera773bd52006-08-04 18:18:08 +00009715interix3*)
9716 version_type=linux
9717 need_lib_prefix=no
9718 need_version=no
9719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9720 soname_spec='${libname}${release}${shared_ext}$major'
9721 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9722 shlibpath_var=LD_LIBRARY_PATH
9723 shlibpath_overrides_runpath=no
9724 hardcode_into_libs=yes
9725 ;;
9726
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009727irix5* | irix6* | nonstopux*)
9728 case $host_os in
9729 nonstopux*) version_type=nonstopux ;;
9730 *)
9731 if test "$lt_cv_prog_gnu_ld" = yes; then
9732 version_type=linux
9733 else
9734 version_type=irix
9735 fi ;;
9736 esac
9737 need_lib_prefix=no
9738 need_version=no
9739 soname_spec='${libname}${release}${shared_ext}$major'
9740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9741 case $host_os in
9742 irix5* | nonstopux*)
9743 libsuff= shlibsuff=
9744 ;;
9745 *)
9746 case $LD in # libtool.m4 will add one of these switches to LD
9747 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9748 libsuff= shlibsuff= libmagic=32-bit;;
9749 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9750 libsuff=32 shlibsuff=N32 libmagic=N32;;
9751 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9752 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9753 *) libsuff= shlibsuff= libmagic=never-match;;
9754 esac
9755 ;;
9756 esac
9757 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9758 shlibpath_overrides_runpath=no
9759 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9760 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9761 hardcode_into_libs=yes
9762 ;;
9763
9764# No shared lib support for Linux oldld, aout, or coff.
9765linux*oldld* | linux*aout* | linux*coff*)
9766 dynamic_linker=no
9767 ;;
9768
9769# This must be Linux ELF.
9770linux*)
9771 version_type=linux
9772 need_lib_prefix=no
9773 need_version=no
9774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9775 soname_spec='${libname}${release}${shared_ext}$major'
9776 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9777 shlibpath_var=LD_LIBRARY_PATH
9778 shlibpath_overrides_runpath=no
9779 # This implies no fast_install, which is unacceptable.
9780 # Some rework will be needed to allow for fast_install
9781 # before this can be enabled.
9782 hardcode_into_libs=yes
9783
9784 # Append ld.so.conf contents to the search path
9785 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009786 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 +00009787 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9788 fi
9789
9790 # We used to test for /lib/ld.so.1 and disable shared libraries on
9791 # powerpc, because MkLinux only supported shared libraries with the
9792 # GNU dynamic linker. Since this was broken with cross compilers,
9793 # most powerpc-linux boxes support dynamic linking these days and
9794 # people can always --disable-shared, the test was removed, and we
9795 # assume the GNU/Linux dynamic linker is in use.
9796 dynamic_linker='GNU/Linux ld.so'
9797 ;;
9798
9799knetbsd*-gnu)
9800 version_type=linux
9801 need_lib_prefix=no
9802 need_version=no
9803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9804 soname_spec='${libname}${release}${shared_ext}$major'
9805 shlibpath_var=LD_LIBRARY_PATH
9806 shlibpath_overrides_runpath=no
9807 hardcode_into_libs=yes
9808 dynamic_linker='GNU ld.so'
9809 ;;
9810
9811netbsd*)
9812 version_type=sunos
9813 need_lib_prefix=no
9814 need_version=no
9815 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9817 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9818 dynamic_linker='NetBSD (a.out) ld.so'
9819 else
9820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9821 soname_spec='${libname}${release}${shared_ext}$major'
9822 dynamic_linker='NetBSD ld.elf_so'
9823 fi
9824 shlibpath_var=LD_LIBRARY_PATH
9825 shlibpath_overrides_runpath=yes
9826 hardcode_into_libs=yes
9827 ;;
9828
9829newsos6)
9830 version_type=linux
9831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9832 shlibpath_var=LD_LIBRARY_PATH
9833 shlibpath_overrides_runpath=yes
9834 ;;
9835
9836nto-qnx*)
9837 version_type=linux
9838 need_lib_prefix=no
9839 need_version=no
9840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9841 soname_spec='${libname}${release}${shared_ext}$major'
9842 shlibpath_var=LD_LIBRARY_PATH
9843 shlibpath_overrides_runpath=yes
9844 ;;
9845
9846openbsd*)
9847 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009848 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009849 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009850 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9851 case $host_os in
9852 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9853 *) need_version=no ;;
9854 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9856 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9857 shlibpath_var=LD_LIBRARY_PATH
9858 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9859 case $host_os in
9860 openbsd2.[89] | openbsd2.[89].*)
9861 shlibpath_overrides_runpath=no
9862 ;;
9863 *)
9864 shlibpath_overrides_runpath=yes
9865 ;;
9866 esac
9867 else
9868 shlibpath_overrides_runpath=yes
9869 fi
9870 ;;
9871
9872os2*)
9873 libname_spec='$name'
9874 shrext_cmds=".dll"
9875 need_lib_prefix=no
9876 library_names_spec='$libname${shared_ext} $libname.a'
9877 dynamic_linker='OS/2 ld.exe'
9878 shlibpath_var=LIBPATH
9879 ;;
9880
9881osf3* | osf4* | osf5*)
9882 version_type=osf
9883 need_lib_prefix=no
9884 need_version=no
9885 soname_spec='${libname}${release}${shared_ext}$major'
9886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9887 shlibpath_var=LD_LIBRARY_PATH
9888 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9889 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9890 ;;
9891
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009892solaris*)
9893 version_type=linux
9894 need_lib_prefix=no
9895 need_version=no
9896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9897 soname_spec='${libname}${release}${shared_ext}$major'
9898 shlibpath_var=LD_LIBRARY_PATH
9899 shlibpath_overrides_runpath=yes
9900 hardcode_into_libs=yes
9901 # ldd complains unless libraries are executable
9902 postinstall_cmds='chmod +x $lib'
9903 ;;
9904
9905sunos4*)
9906 version_type=sunos
9907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9908 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9909 shlibpath_var=LD_LIBRARY_PATH
9910 shlibpath_overrides_runpath=yes
9911 if test "$with_gnu_ld" = yes; then
9912 need_lib_prefix=no
9913 fi
9914 need_version=yes
9915 ;;
9916
Reid Spencera773bd52006-08-04 18:18:08 +00009917sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009918 version_type=linux
9919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9920 soname_spec='${libname}${release}${shared_ext}$major'
9921 shlibpath_var=LD_LIBRARY_PATH
9922 case $host_vendor in
9923 sni)
9924 shlibpath_overrides_runpath=no
9925 need_lib_prefix=no
9926 export_dynamic_flag_spec='${wl}-Blargedynsym'
9927 runpath_var=LD_RUN_PATH
9928 ;;
9929 siemens)
9930 need_lib_prefix=no
9931 ;;
9932 motorola)
9933 need_lib_prefix=no
9934 need_version=no
9935 shlibpath_overrides_runpath=no
9936 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9937 ;;
9938 esac
9939 ;;
9940
9941sysv4*MP*)
9942 if test -d /usr/nec ;then
9943 version_type=linux
9944 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9945 soname_spec='$libname${shared_ext}.$major'
9946 shlibpath_var=LD_LIBRARY_PATH
9947 fi
9948 ;;
9949
Reid Spencera773bd52006-08-04 18:18:08 +00009950sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9951 version_type=freebsd-elf
9952 need_lib_prefix=no
9953 need_version=no
9954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9955 soname_spec='${libname}${release}${shared_ext}$major'
9956 shlibpath_var=LD_LIBRARY_PATH
9957 hardcode_into_libs=yes
9958 if test "$with_gnu_ld" = yes; then
9959 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9960 shlibpath_overrides_runpath=no
9961 else
9962 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9963 shlibpath_overrides_runpath=yes
9964 case $host_os in
9965 sco3.2v5*)
9966 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9967 ;;
9968 esac
9969 fi
9970 sys_lib_dlsearch_path_spec='/usr/lib'
9971 ;;
9972
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009973uts4*)
9974 version_type=linux
9975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9976 soname_spec='${libname}${release}${shared_ext}$major'
9977 shlibpath_var=LD_LIBRARY_PATH
9978 ;;
9979
9980*)
9981 dynamic_linker=no
9982 ;;
9983esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009984{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9985echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009986test "$dynamic_linker" = no && can_build_shared=no
9987
Reid Spencera773bd52006-08-04 18:18:08 +00009988variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9989if test "$GCC" = yes; then
9990 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9991fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009992
Reid Spencera773bd52006-08-04 18:18:08 +00009993
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009994{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9995echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9996if test "${libltdl_cv_shlibext+set}" = set; then
9997 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009998else
9999
10000module=yes
10001eval libltdl_cv_shlibext=$shrext_cmds
10002
10003fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010004{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10005echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010006if test -n "$libltdl_cv_shlibext"; then
10007
10008cat >>confdefs.h <<_ACEOF
10009#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10010_ACEOF
10011
10012fi
10013
10014
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010015{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10016echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10017if test "${libltdl_cv_shlibpath_var+set}" = set; then
10018 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010019else
10020 libltdl_cv_shlibpath_var="$shlibpath_var"
10021fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010022{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10023echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010024if test -n "$libltdl_cv_shlibpath_var"; then
10025
10026cat >>confdefs.h <<_ACEOF
10027#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10028_ACEOF
10029
10030fi
10031
10032
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010033{ echo "$as_me:$LINENO: checking for the default library search path" >&5
10034echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10035if test "${libltdl_cv_sys_search_path+set}" = set; then
10036 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010037else
10038 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10039fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010040{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10041echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010042if test -n "$libltdl_cv_sys_search_path"; then
10043 sys_search_path=
10044 for dir in $libltdl_cv_sys_search_path; do
10045 if test -z "$sys_search_path"; then
10046 sys_search_path="$dir"
10047 else
10048 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10049 fi
10050 done
10051
10052cat >>confdefs.h <<_ACEOF
10053#define LTDL_SYSSEARCHPATH "$sys_search_path"
10054_ACEOF
10055
10056fi
10057
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010058{ echo "$as_me:$LINENO: checking for objdir" >&5
10059echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10060if test "${libltdl_cv_objdir+set}" = set; then
10061 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010062else
10063 libltdl_cv_objdir="$objdir"
10064 if test -n "$objdir"; then
10065 :
10066 else
10067 rm -f .libs 2>/dev/null
10068 mkdir .libs 2>/dev/null
10069 if test -d .libs; then
10070 libltdl_cv_objdir=.libs
10071 else
10072 # MS-DOS does not allow filenames that begin with a dot.
10073 libltdl_cv_objdir=_libs
10074 fi
10075 rmdir .libs 2>/dev/null
10076 fi
10077
10078fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010079{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10080echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010081
10082cat >>confdefs.h <<_ACEOF
10083#define LTDL_OBJDIR "$libltdl_cv_objdir/"
10084_ACEOF
10085
10086
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010087
10088
10089
10090
10091# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010092{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10093echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10094if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10095 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010096else
10097
10098# These are sane defaults that work on at least a few old systems.
10099# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10100
10101# Character class describing NM global symbol codes.
10102symcode='[BCDEGRST]'
10103
10104# Regexp to match symbols that can be accessed directly from C.
10105sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10106
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010107# Transform an extracted symbol line into a proper C declaration
10108lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10109
10110# Transform an extracted symbol line into symbol name and symbol address
10111lt_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'"
10112
10113# Define system-specific variables.
10114case $host_os in
10115aix*)
10116 symcode='[BCDT]'
10117 ;;
10118cygwin* | mingw* | pw32*)
10119 symcode='[ABCDGISTW]'
10120 ;;
10121hpux*) # Its linker distinguishes data from code symbols
10122 if test "$host_cpu" = ia64; then
10123 symcode='[ABCDEGRST]'
10124 fi
10125 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10126 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'"
10127 ;;
10128linux*)
10129 if test "$host_cpu" = ia64; then
10130 symcode='[ABCDGIRSTW]'
10131 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10132 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'"
10133 fi
10134 ;;
10135irix* | nonstopux*)
10136 symcode='[BCDEGRST]'
10137 ;;
10138osf*)
10139 symcode='[BCDEGQRST]'
10140 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010141solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010142 symcode='[BDRT]'
10143 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010144sco3.2v5*)
10145 symcode='[DT]'
10146 ;;
10147sysv4.2uw2*)
10148 symcode='[DT]'
10149 ;;
10150sysv5* | sco5v6* | unixware* | OpenUNIX*)
10151 symcode='[ABDT]'
10152 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010153sysv4)
10154 symcode='[DFNSTU]'
10155 ;;
10156esac
10157
10158# Handle CRLF in mingw tool chain
10159opt_cr=
10160case $build_os in
10161mingw*)
10162 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10163 ;;
10164esac
10165
10166# If we're using GNU nm, then use its standard symbol codes.
10167case `$NM -V 2>&1` in
10168*GNU* | *'with BFD'*)
10169 symcode='[ABCDGIRSTW]' ;;
10170esac
10171
10172# Try without a prefix undercore, then with it.
10173for ac_symprfx in "" "_"; do
10174
Reid Spencera773bd52006-08-04 18:18:08 +000010175 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10176 symxfrm="\\1 $ac_symprfx\\2 \\2"
10177
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010178 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000010179 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 +000010180
10181 # Check to see that the pipe works correctly.
10182 pipe_works=no
10183
10184 rm -f conftest*
10185 cat > conftest.$ac_ext <<EOF
10186#ifdef __cplusplus
10187extern "C" {
10188#endif
10189char nm_test_var;
10190void nm_test_func(){}
10191#ifdef __cplusplus
10192}
10193#endif
10194int main(){nm_test_var='a';nm_test_func();return(0);}
10195EOF
10196
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010198 (eval $ac_compile) 2>&5
10199 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010202 # Now try to grab the symbols.
10203 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010204 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 +000010205 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10206 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010209 # Try sorting and uniquifying the output.
10210 if sort "$nlist" | uniq > "$nlist"T; then
10211 mv -f "$nlist"T "$nlist"
10212 else
10213 rm -f "$nlist"T
10214 fi
10215
10216 # Make sure that we snagged all the symbols we need.
10217 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10218 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10219 cat <<EOF > conftest.$ac_ext
10220#ifdef __cplusplus
10221extern "C" {
10222#endif
10223
10224EOF
10225 # Now generate the symbol file.
10226 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10227
10228 cat <<EOF >> conftest.$ac_ext
10229#if defined (__STDC__) && __STDC__
10230# define lt_ptr_t void *
10231#else
10232# define lt_ptr_t char *
10233# define const
10234#endif
10235
10236/* The mapping between symbol names and symbols. */
10237const struct {
10238 const char *name;
10239 lt_ptr_t address;
10240}
10241lt_preloaded_symbols[] =
10242{
10243EOF
10244 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10245 cat <<\EOF >> conftest.$ac_ext
10246 {0, (lt_ptr_t) 0}
10247};
10248
10249#ifdef __cplusplus
10250}
10251#endif
10252EOF
10253 # Now try linking the two files.
10254 mv conftest.$ac_objext conftstm.$ac_objext
10255 lt_save_LIBS="$LIBS"
10256 lt_save_CFLAGS="$CFLAGS"
10257 LIBS="conftstm.$ac_objext"
10258 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010260 (eval $ac_link) 2>&5
10261 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010264 pipe_works=yes
10265 fi
10266 LIBS="$lt_save_LIBS"
10267 CFLAGS="$lt_save_CFLAGS"
10268 else
10269 echo "cannot find nm_test_func in $nlist" >&5
10270 fi
10271 else
10272 echo "cannot find nm_test_var in $nlist" >&5
10273 fi
10274 else
10275 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10276 fi
10277 else
10278 echo "$progname: failed program was:" >&5
10279 cat conftest.$ac_ext >&5
10280 fi
10281 rm -f conftest* conftst*
10282
10283 # Do not use the global_symbol_pipe unless it works.
10284 if test "$pipe_works" = yes; then
10285 break
10286 else
10287 lt_cv_sys_global_symbol_pipe=
10288 fi
10289done
10290
10291fi
10292
10293if test -z "$lt_cv_sys_global_symbol_pipe"; then
10294 lt_cv_sys_global_symbol_to_cdecl=
10295fi
10296if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010297 { echo "$as_me:$LINENO: result: failed" >&5
10298echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010299else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010300 { echo "$as_me:$LINENO: result: ok" >&5
10301echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010302fi
10303
10304
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010305{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10306echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10307if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10308 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010309else
10310 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10311 libltdl_cv_preloaded_symbols=yes
10312 else
10313 libltdl_cv_preloaded_symbols=no
10314 fi
10315
10316fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010317{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10318echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010319if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10320
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010321cat >>confdefs.h <<\_ACEOF
10322#define HAVE_PRELOADED_SYMBOLS 1
10323_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010324
10325fi
10326
10327LIBADD_DL=
10328
10329ac_ext=c
10330ac_cpp='$CPP $CPPFLAGS'
10331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10333ac_compiler_gnu=$ac_cv_c_compiler_gnu
10334
10335
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010336{ echo "$as_me:$LINENO: checking for shl_load" >&5
10337echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10338if test "${ac_cv_func_shl_load+set}" = set; then
10339 echo $ECHO_N "(cached) $ECHO_C" >&6
10340else
10341 cat >conftest.$ac_ext <<_ACEOF
10342/* confdefs.h. */
10343_ACEOF
10344cat confdefs.h >>conftest.$ac_ext
10345cat >>conftest.$ac_ext <<_ACEOF
10346/* end confdefs.h. */
10347/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10348 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10349#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010350
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010351/* System header to define __stub macros and hopefully few prototypes,
10352 which can conflict with char shl_load (); below.
10353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10354 <limits.h> exists even on freestanding compilers. */
10355
10356#ifdef __STDC__
10357# include <limits.h>
10358#else
10359# include <assert.h>
10360#endif
10361
10362#undef shl_load
10363
10364/* Override any GCC internal prototype to avoid an error.
10365 Use char because int might match the return type of a GCC
10366 builtin and then its argument prototype would still apply. */
10367#ifdef __cplusplus
10368extern "C"
10369#endif
10370char shl_load ();
10371/* The GNU C library defines this for functions which it implements
10372 to always fail with ENOSYS. Some functions are actually named
10373 something starting with __ and the normal name is an alias. */
10374#if defined __stub_shl_load || defined __stub___shl_load
10375choke me
10376#endif
10377
10378int
10379main ()
10380{
10381return shl_load ();
10382 ;
10383 return 0;
10384}
10385_ACEOF
10386rm -f conftest.$ac_objext conftest$ac_exeext
10387if { (ac_try="$ac_link"
10388case "(($ac_try" in
10389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10390 *) ac_try_echo=$ac_try;;
10391esac
10392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10393 (eval "$ac_link") 2>conftest.er1
10394 ac_status=$?
10395 grep -v '^ *+' conftest.er1 >conftest.err
10396 rm -f conftest.er1
10397 cat conftest.err >&5
10398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); } &&
10400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10401 { (case "(($ac_try" in
10402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10403 *) ac_try_echo=$ac_try;;
10404esac
10405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10406 (eval "$ac_try") 2>&5
10407 ac_status=$?
10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); }; } &&
10410 { ac_try='test -s conftest$ac_exeext'
10411 { (case "(($ac_try" in
10412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10413 *) ac_try_echo=$ac_try;;
10414esac
10415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10416 (eval "$ac_try") 2>&5
10417 ac_status=$?
10418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419 (exit $ac_status); }; }; then
10420 ac_cv_func_shl_load=yes
10421else
10422 echo "$as_me: failed program was:" >&5
10423sed 's/^/| /' conftest.$ac_ext >&5
10424
10425 ac_cv_func_shl_load=no
10426fi
10427
10428rm -f core conftest.err conftest.$ac_objext \
10429 conftest$ac_exeext conftest.$ac_ext
10430fi
10431{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10432echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10433if test $ac_cv_func_shl_load = yes; then
10434
10435cat >>confdefs.h <<\_ACEOF
10436#define HAVE_SHL_LOAD 1
10437_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010438
10439else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010440 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10441echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10442if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10443 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010444else
10445 ac_check_lib_save_LIBS=$LIBS
10446LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010447cat >conftest.$ac_ext <<_ACEOF
10448/* confdefs.h. */
10449_ACEOF
10450cat confdefs.h >>conftest.$ac_ext
10451cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010452/* end confdefs.h. */
10453
Reid Spencera773bd52006-08-04 18:18:08 +000010454/* Override any GCC internal prototype to avoid an error.
10455 Use char because int might match the return type of a GCC
10456 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010457#ifdef __cplusplus
10458extern "C"
10459#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010460char shl_load ();
10461int
10462main ()
10463{
Reid Spencera773bd52006-08-04 18:18:08 +000010464return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010465 ;
10466 return 0;
10467}
10468_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010469rm -f conftest.$ac_objext conftest$ac_exeext
10470if { (ac_try="$ac_link"
10471case "(($ac_try" in
10472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10473 *) ac_try_echo=$ac_try;;
10474esac
10475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10476 (eval "$ac_link") 2>conftest.er1
10477 ac_status=$?
10478 grep -v '^ *+' conftest.er1 >conftest.err
10479 rm -f conftest.er1
10480 cat conftest.err >&5
10481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482 (exit $ac_status); } &&
10483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10484 { (case "(($ac_try" in
10485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10486 *) ac_try_echo=$ac_try;;
10487esac
10488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10489 (eval "$ac_try") 2>&5
10490 ac_status=$?
10491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492 (exit $ac_status); }; } &&
10493 { ac_try='test -s conftest$ac_exeext'
10494 { (case "(($ac_try" in
10495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10496 *) ac_try_echo=$ac_try;;
10497esac
10498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10499 (eval "$ac_try") 2>&5
10500 ac_status=$?
10501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010503 ac_cv_lib_dld_shl_load=yes
10504else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010505 echo "$as_me: failed program was:" >&5
10506sed 's/^/| /' conftest.$ac_ext >&5
10507
10508 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010509fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010510
Bill Wendlingebcceee2009-04-18 11:20:33 +000010511rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010512 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010513LIBS=$ac_check_lib_save_LIBS
10514fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010515{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10516echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10517if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010518
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010519cat >>confdefs.h <<\_ACEOF
10520#define HAVE_SHL_LOAD 1
10521_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010522
10523 LIBADD_DL="$LIBADD_DL -ldld"
10524else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010525 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10526echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10527if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10528 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010529else
10530 ac_check_lib_save_LIBS=$LIBS
10531LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010532cat >conftest.$ac_ext <<_ACEOF
10533/* confdefs.h. */
10534_ACEOF
10535cat confdefs.h >>conftest.$ac_ext
10536cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010537/* end confdefs.h. */
10538
Reid Spencera773bd52006-08-04 18:18:08 +000010539/* Override any GCC internal prototype to avoid an error.
10540 Use char because int might match the return type of a GCC
10541 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010542#ifdef __cplusplus
10543extern "C"
10544#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010545char dlopen ();
10546int
10547main ()
10548{
Reid Spencera773bd52006-08-04 18:18:08 +000010549return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010550 ;
10551 return 0;
10552}
10553_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010554rm -f conftest.$ac_objext conftest$ac_exeext
10555if { (ac_try="$ac_link"
10556case "(($ac_try" in
10557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10558 *) ac_try_echo=$ac_try;;
10559esac
10560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10561 (eval "$ac_link") 2>conftest.er1
10562 ac_status=$?
10563 grep -v '^ *+' conftest.er1 >conftest.err
10564 rm -f conftest.er1
10565 cat conftest.err >&5
10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); } &&
10568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10569 { (case "(($ac_try" in
10570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10571 *) ac_try_echo=$ac_try;;
10572esac
10573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10574 (eval "$ac_try") 2>&5
10575 ac_status=$?
10576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 (exit $ac_status); }; } &&
10578 { ac_try='test -s conftest$ac_exeext'
10579 { (case "(($ac_try" in
10580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10581 *) ac_try_echo=$ac_try;;
10582esac
10583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10584 (eval "$ac_try") 2>&5
10585 ac_status=$?
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010588 ac_cv_lib_dl_dlopen=yes
10589else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010590 echo "$as_me: failed program was:" >&5
10591sed 's/^/| /' conftest.$ac_ext >&5
10592
10593 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010594fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010595
Bill Wendlingebcceee2009-04-18 11:20:33 +000010596rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010597 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010598LIBS=$ac_check_lib_save_LIBS
10599fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010600{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10601echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10602if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010603
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010604cat >>confdefs.h <<\_ACEOF
10605#define HAVE_LIBDL 1
10606_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010607
10608 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10609else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010610 cat >conftest.$ac_ext <<_ACEOF
10611/* confdefs.h. */
10612_ACEOF
10613cat confdefs.h >>conftest.$ac_ext
10614cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010615/* end confdefs.h. */
10616#if HAVE_DLFCN_H
10617# include <dlfcn.h>
10618#endif
10619
10620int
10621main ()
10622{
10623dlopen(0, 0);
10624 ;
10625 return 0;
10626}
10627_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010628rm -f conftest.$ac_objext conftest$ac_exeext
10629if { (ac_try="$ac_link"
10630case "(($ac_try" in
10631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10632 *) ac_try_echo=$ac_try;;
10633esac
10634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10635 (eval "$ac_link") 2>conftest.er1
10636 ac_status=$?
10637 grep -v '^ *+' conftest.er1 >conftest.err
10638 rm -f conftest.er1
10639 cat conftest.err >&5
10640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641 (exit $ac_status); } &&
10642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10643 { (case "(($ac_try" in
10644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10645 *) ac_try_echo=$ac_try;;
10646esac
10647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10648 (eval "$ac_try") 2>&5
10649 ac_status=$?
10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); }; } &&
10652 { ac_try='test -s conftest$ac_exeext'
10653 { (case "(($ac_try" in
10654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10655 *) ac_try_echo=$ac_try;;
10656esac
10657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10658 (eval "$ac_try") 2>&5
10659 ac_status=$?
10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010662
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010663cat >>confdefs.h <<\_ACEOF
10664#define HAVE_LIBDL 1
10665_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010666 libltdl_cv_func_dlopen="yes"
10667else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010668 echo "$as_me: failed program was:" >&5
10669sed 's/^/| /' conftest.$ac_ext >&5
10670
10671 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10672echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10673if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10674 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010675else
10676 ac_check_lib_save_LIBS=$LIBS
10677LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010678cat >conftest.$ac_ext <<_ACEOF
10679/* confdefs.h. */
10680_ACEOF
10681cat confdefs.h >>conftest.$ac_ext
10682cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010683/* end confdefs.h. */
10684
Reid Spencera773bd52006-08-04 18:18:08 +000010685/* Override any GCC internal prototype to avoid an error.
10686 Use char because int might match the return type of a GCC
10687 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010688#ifdef __cplusplus
10689extern "C"
10690#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010691char dlopen ();
10692int
10693main ()
10694{
Reid Spencera773bd52006-08-04 18:18:08 +000010695return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010696 ;
10697 return 0;
10698}
10699_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010700rm -f conftest.$ac_objext conftest$ac_exeext
10701if { (ac_try="$ac_link"
10702case "(($ac_try" in
10703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10704 *) ac_try_echo=$ac_try;;
10705esac
10706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10707 (eval "$ac_link") 2>conftest.er1
10708 ac_status=$?
10709 grep -v '^ *+' conftest.er1 >conftest.err
10710 rm -f conftest.er1
10711 cat conftest.err >&5
10712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713 (exit $ac_status); } &&
10714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10715 { (case "(($ac_try" in
10716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10717 *) ac_try_echo=$ac_try;;
10718esac
10719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10720 (eval "$ac_try") 2>&5
10721 ac_status=$?
10722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723 (exit $ac_status); }; } &&
10724 { ac_try='test -s conftest$ac_exeext'
10725 { (case "(($ac_try" in
10726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10727 *) ac_try_echo=$ac_try;;
10728esac
10729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10730 (eval "$ac_try") 2>&5
10731 ac_status=$?
10732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10733 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010734 ac_cv_lib_svld_dlopen=yes
10735else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010736 echo "$as_me: failed program was:" >&5
10737sed 's/^/| /' conftest.$ac_ext >&5
10738
10739 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010740fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010741
Bill Wendlingebcceee2009-04-18 11:20:33 +000010742rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010743 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010744LIBS=$ac_check_lib_save_LIBS
10745fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010746{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10747echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10748if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010749
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010750cat >>confdefs.h <<\_ACEOF
10751#define HAVE_LIBDL 1
10752_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010753
10754 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10755else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010756 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10757echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10758if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10759 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010760else
10761 ac_check_lib_save_LIBS=$LIBS
10762LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010763cat >conftest.$ac_ext <<_ACEOF
10764/* confdefs.h. */
10765_ACEOF
10766cat confdefs.h >>conftest.$ac_ext
10767cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010768/* end confdefs.h. */
10769
Reid Spencera773bd52006-08-04 18:18:08 +000010770/* Override any GCC internal prototype to avoid an error.
10771 Use char because int might match the return type of a GCC
10772 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010773#ifdef __cplusplus
10774extern "C"
10775#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010776char dld_link ();
10777int
10778main ()
10779{
Reid Spencera773bd52006-08-04 18:18:08 +000010780return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010781 ;
10782 return 0;
10783}
10784_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010785rm -f conftest.$ac_objext conftest$ac_exeext
10786if { (ac_try="$ac_link"
10787case "(($ac_try" in
10788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10789 *) ac_try_echo=$ac_try;;
10790esac
10791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10792 (eval "$ac_link") 2>conftest.er1
10793 ac_status=$?
10794 grep -v '^ *+' conftest.er1 >conftest.err
10795 rm -f conftest.er1
10796 cat conftest.err >&5
10797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798 (exit $ac_status); } &&
10799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10800 { (case "(($ac_try" in
10801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10802 *) ac_try_echo=$ac_try;;
10803esac
10804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10805 (eval "$ac_try") 2>&5
10806 ac_status=$?
10807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808 (exit $ac_status); }; } &&
10809 { ac_try='test -s conftest$ac_exeext'
10810 { (case "(($ac_try" in
10811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10812 *) ac_try_echo=$ac_try;;
10813esac
10814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10815 (eval "$ac_try") 2>&5
10816 ac_status=$?
10817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010819 ac_cv_lib_dld_dld_link=yes
10820else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010821 echo "$as_me: failed program was:" >&5
10822sed 's/^/| /' conftest.$ac_ext >&5
10823
10824 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010825fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010826
Bill Wendlingebcceee2009-04-18 11:20:33 +000010827rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010828 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010829LIBS=$ac_check_lib_save_LIBS
10830fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010831{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10832echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10833if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010834
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010835cat >>confdefs.h <<\_ACEOF
10836#define HAVE_DLD 1
10837_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010838
10839 LIBADD_DL="$LIBADD_DL -ldld"
10840else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010841 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10842echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10843if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10844 echo $ECHO_N "(cached) $ECHO_C" >&6
10845else
10846 cat >conftest.$ac_ext <<_ACEOF
10847/* confdefs.h. */
10848_ACEOF
10849cat confdefs.h >>conftest.$ac_ext
10850cat >>conftest.$ac_ext <<_ACEOF
10851/* end confdefs.h. */
10852/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10853 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10854#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010855
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010856/* System header to define __stub macros and hopefully few prototypes,
10857 which can conflict with char _dyld_func_lookup (); below.
10858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10859 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010860
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010861#ifdef __STDC__
10862# include <limits.h>
10863#else
10864# include <assert.h>
10865#endif
10866
10867#undef _dyld_func_lookup
10868
10869/* Override any GCC internal prototype to avoid an error.
10870 Use char because int might match the return type of a GCC
10871 builtin and then its argument prototype would still apply. */
10872#ifdef __cplusplus
10873extern "C"
10874#endif
10875char _dyld_func_lookup ();
10876/* The GNU C library defines this for functions which it implements
10877 to always fail with ENOSYS. Some functions are actually named
10878 something starting with __ and the normal name is an alias. */
10879#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10880choke me
10881#endif
10882
10883int
10884main ()
10885{
10886return _dyld_func_lookup ();
10887 ;
10888 return 0;
10889}
10890_ACEOF
10891rm -f conftest.$ac_objext conftest$ac_exeext
10892if { (ac_try="$ac_link"
10893case "(($ac_try" in
10894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10895 *) ac_try_echo=$ac_try;;
10896esac
10897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10898 (eval "$ac_link") 2>conftest.er1
10899 ac_status=$?
10900 grep -v '^ *+' conftest.er1 >conftest.err
10901 rm -f conftest.er1
10902 cat conftest.err >&5
10903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); } &&
10905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10906 { (case "(($ac_try" in
10907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10908 *) ac_try_echo=$ac_try;;
10909esac
10910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10911 (eval "$ac_try") 2>&5
10912 ac_status=$?
10913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914 (exit $ac_status); }; } &&
10915 { ac_try='test -s conftest$ac_exeext'
10916 { (case "(($ac_try" in
10917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10918 *) ac_try_echo=$ac_try;;
10919esac
10920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10921 (eval "$ac_try") 2>&5
10922 ac_status=$?
10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924 (exit $ac_status); }; }; then
10925 ac_cv_func__dyld_func_lookup=yes
10926else
10927 echo "$as_me: failed program was:" >&5
10928sed 's/^/| /' conftest.$ac_ext >&5
10929
10930 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010931fi
Reid Spencera773bd52006-08-04 18:18:08 +000010932
Bill Wendlingebcceee2009-04-18 11:20:33 +000010933rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010934 conftest$ac_exeext conftest.$ac_ext
10935fi
10936{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10937echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10938if test $ac_cv_func__dyld_func_lookup = yes; then
10939
10940cat >>confdefs.h <<\_ACEOF
10941#define HAVE_DYLD 1
10942_ACEOF
10943
10944fi
10945
10946
10947fi
10948
10949
10950fi
10951
10952
10953fi
10954
10955rm -f core conftest.err conftest.$ac_objext \
10956 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010957
10958fi
10959
10960
10961fi
10962
10963
10964fi
10965
10966
10967if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10968then
10969 lt_save_LIBS="$LIBS"
10970 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010971
10972for ac_func in dlerror
10973do
10974as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10975{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10976echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10977if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10978 echo $ECHO_N "(cached) $ECHO_C" >&6
10979else
10980 cat >conftest.$ac_ext <<_ACEOF
10981/* confdefs.h. */
10982_ACEOF
10983cat confdefs.h >>conftest.$ac_ext
10984cat >>conftest.$ac_ext <<_ACEOF
10985/* end confdefs.h. */
10986/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10988#define $ac_func innocuous_$ac_func
10989
10990/* System header to define __stub macros and hopefully few prototypes,
10991 which can conflict with char $ac_func (); below.
10992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10993 <limits.h> exists even on freestanding compilers. */
10994
10995#ifdef __STDC__
10996# include <limits.h>
10997#else
10998# include <assert.h>
10999#endif
11000
11001#undef $ac_func
11002
11003/* Override any GCC internal prototype to avoid an error.
11004 Use char because int might match the return type of a GCC
11005 builtin and then its argument prototype would still apply. */
11006#ifdef __cplusplus
11007extern "C"
11008#endif
11009char $ac_func ();
11010/* The GNU C library defines this for functions which it implements
11011 to always fail with ENOSYS. Some functions are actually named
11012 something starting with __ and the normal name is an alias. */
11013#if defined __stub_$ac_func || defined __stub___$ac_func
11014choke me
11015#endif
11016
11017int
11018main ()
11019{
11020return $ac_func ();
11021 ;
11022 return 0;
11023}
11024_ACEOF
11025rm -f conftest.$ac_objext conftest$ac_exeext
11026if { (ac_try="$ac_link"
11027case "(($ac_try" in
11028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11029 *) ac_try_echo=$ac_try;;
11030esac
11031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11032 (eval "$ac_link") 2>conftest.er1
11033 ac_status=$?
11034 grep -v '^ *+' conftest.er1 >conftest.err
11035 rm -f conftest.er1
11036 cat conftest.err >&5
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); } &&
11039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11049 { ac_try='test -s conftest$ac_exeext'
11050 { (case "(($ac_try" in
11051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11052 *) ac_try_echo=$ac_try;;
11053esac
11054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11055 (eval "$ac_try") 2>&5
11056 ac_status=$?
11057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058 (exit $ac_status); }; }; then
11059 eval "$as_ac_var=yes"
11060else
11061 echo "$as_me: failed program was:" >&5
11062sed 's/^/| /' conftest.$ac_ext >&5
11063
11064 eval "$as_ac_var=no"
11065fi
11066
11067rm -f core conftest.err conftest.$ac_objext \
11068 conftest$ac_exeext conftest.$ac_ext
11069fi
11070ac_res=`eval echo '${'$as_ac_var'}'`
11071 { echo "$as_me:$LINENO: result: $ac_res" >&5
11072echo "${ECHO_T}$ac_res" >&6; }
11073if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011074 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011075#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011076_ACEOF
11077
11078fi
11079done
11080
11081 LIBS="$lt_save_LIBS"
11082fi
11083ac_ext=c
11084ac_cpp='$CPP $CPPFLAGS'
11085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11087ac_compiler_gnu=$ac_cv_c_compiler_gnu
11088
11089
11090
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011091{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11092echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11093if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11094 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011095else
11096 ac_cv_sys_symbol_underscore=no
11097 cat > conftest.$ac_ext <<EOF
11098void nm_test_func(){}
11099int main(){nm_test_func;return 0;}
11100EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011102 (eval $ac_compile) 2>&5
11103 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011106 # Now try to grab the symbols.
11107 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011108 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 +000011109 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11110 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011113 # See whether the symbols have a leading underscore.
11114 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11115 ac_cv_sys_symbol_underscore=yes
11116 else
11117 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11118 :
11119 else
11120 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11121 fi
11122 fi
11123 else
11124 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11125 fi
11126 else
11127 echo "configure: failed program was:" >&5
11128 cat conftest.c >&5
11129 fi
11130 rm -rf conftest*
11131
11132fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011133{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11134echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011135
11136
11137if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11138 if test x"$libltdl_cv_func_dlopen" = xyes ||
11139 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011140 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11141echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11142if test "${libltdl_cv_need_uscore+set}" = set; then
11143 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011144else
11145 libltdl_cv_need_uscore=unknown
11146 save_LIBS="$LIBS"
11147 LIBS="$LIBS $LIBADD_DL"
11148 if test "$cross_compiling" = yes; then :
11149 libltdl_cv_need_uscore=cross
11150else
11151 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11152 lt_status=$lt_dlunknown
11153 cat > conftest.$ac_ext <<EOF
John Criswell0157f502010-03-19 21:31:39 +000011154#line 11154 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011155#include "confdefs.h"
11156
11157#if HAVE_DLFCN_H
11158#include <dlfcn.h>
11159#endif
11160
11161#include <stdio.h>
11162
11163#ifdef RTLD_GLOBAL
11164# define LT_DLGLOBAL RTLD_GLOBAL
11165#else
11166# ifdef DL_GLOBAL
11167# define LT_DLGLOBAL DL_GLOBAL
11168# else
11169# define LT_DLGLOBAL 0
11170# endif
11171#endif
11172
11173/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11174 find out it does not work in some platform. */
11175#ifndef LT_DLLAZY_OR_NOW
11176# ifdef RTLD_LAZY
11177# define LT_DLLAZY_OR_NOW RTLD_LAZY
11178# else
11179# ifdef DL_LAZY
11180# define LT_DLLAZY_OR_NOW DL_LAZY
11181# else
11182# ifdef RTLD_NOW
11183# define LT_DLLAZY_OR_NOW RTLD_NOW
11184# else
11185# ifdef DL_NOW
11186# define LT_DLLAZY_OR_NOW DL_NOW
11187# else
11188# define LT_DLLAZY_OR_NOW 0
11189# endif
11190# endif
11191# endif
11192# endif
11193#endif
11194
11195#ifdef __cplusplus
11196extern "C" void exit (int);
11197#endif
11198
11199void fnord() { int i=42;}
11200int main ()
11201{
11202 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11203 int status = $lt_dlunknown;
11204
11205 if (self)
11206 {
11207 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11208 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11209 /* dlclose (self); */
11210 }
Reid Spencera773bd52006-08-04 18:18:08 +000011211 else
11212 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011213
11214 exit (status);
11215}
11216EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011218 (eval $ac_link) 2>&5
11219 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000011222 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011223 lt_status=$?
11224 case x$lt_status in
11225 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11226 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011227 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011228 esac
11229 else :
11230 # compilation failed
11231
11232 fi
11233fi
11234rm -fr conftest*
11235
11236 LIBS="$save_LIBS"
11237
11238fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011239{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11240echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011241 fi
11242fi
11243
11244if test x"$libltdl_cv_need_uscore" = xyes; then
11245
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011246cat >>confdefs.h <<\_ACEOF
11247#define NEED_USCORE 1
11248_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011249
11250fi
11251
11252
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011253{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11254echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11255if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11256 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011257else
11258 # PORTME does your system automatically load deplibs for dlopen?
11259 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11260 # For now, we just catch OSes we know something about -- in the
11261 # future, we'll try test this programmatically.
11262 libltdl_cv_sys_dlopen_deplibs=unknown
11263 case "$host_os" in
11264 aix3*|aix4.1.*|aix4.2.*)
11265 # Unknown whether this is true for these versions of AIX, but
11266 # we want this `case' here to explicitly catch those versions.
11267 libltdl_cv_sys_dlopen_deplibs=unknown
11268 ;;
11269 aix[45]*)
11270 libltdl_cv_sys_dlopen_deplibs=yes
11271 ;;
11272 darwin*)
11273 # Assuming the user has installed a libdl from somewhere, this is true
11274 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11275 libltdl_cv_sys_dlopen_deplibs=yes
11276 ;;
11277 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11278 # GNU and its variants, using gnu ld.so (Glibc)
11279 libltdl_cv_sys_dlopen_deplibs=yes
11280 ;;
11281 hpux10*|hpux11*)
11282 libltdl_cv_sys_dlopen_deplibs=yes
11283 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011284 interix*)
11285 libltdl_cv_sys_dlopen_deplibs=yes
11286 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011287 irix[12345]*|irix6.[01]*)
11288 # Catch all versions of IRIX before 6.2, and indicate that we don't
11289 # know how it worked for any of those versions.
11290 libltdl_cv_sys_dlopen_deplibs=unknown
11291 ;;
11292 irix*)
11293 # The case above catches anything before 6.2, and it's known that
11294 # at 6.2 and later dlopen does load deplibs.
11295 libltdl_cv_sys_dlopen_deplibs=yes
11296 ;;
11297 netbsd*)
11298 libltdl_cv_sys_dlopen_deplibs=yes
11299 ;;
11300 openbsd*)
11301 libltdl_cv_sys_dlopen_deplibs=yes
11302 ;;
11303 osf[1234]*)
11304 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11305 # it did *not* use an RPATH in a shared library to find objects the
11306 # library depends on, so we explictly say `no'.
11307 libltdl_cv_sys_dlopen_deplibs=no
11308 ;;
11309 osf5.0|osf5.0a|osf5.1)
11310 # dlopen *does* load deplibs and with the right loader patch applied
11311 # it even uses RPATH in a shared library to search for shared objects
11312 # that the library depends on, but there's no easy way to know if that
11313 # patch is installed. Since this is the case, all we can really
11314 # say is unknown -- it depends on the patch being installed. If
11315 # it is, this changes to `yes'. Without it, it would be `no'.
11316 libltdl_cv_sys_dlopen_deplibs=unknown
11317 ;;
11318 osf*)
11319 # the two cases above should catch all versions of osf <= 5.1. Read
11320 # the comments above for what we know about them.
11321 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11322 # is used to find them so we can finally say `yes'.
11323 libltdl_cv_sys_dlopen_deplibs=yes
11324 ;;
11325 solaris*)
11326 libltdl_cv_sys_dlopen_deplibs=yes
11327 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011328 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11329 libltdl_cv_sys_dlopen_deplibs=yes
11330 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011331 esac
11332
11333fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011334{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11335echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011336if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11337
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011338cat >>confdefs.h <<\_ACEOF
11339#define LTDL_DLOPEN_DEPLIBS 1
11340_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011341
11342fi
11343
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011344
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011345for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011346do
11347as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11348if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11349 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11350echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11351if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11352 echo $ECHO_N "(cached) $ECHO_C" >&6
11353fi
11354ac_res=`eval echo '${'$as_ac_Header'}'`
11355 { echo "$as_me:$LINENO: result: $ac_res" >&5
11356echo "${ECHO_T}$ac_res" >&6; }
11357else
11358 # Is the header compilable?
11359{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11360echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11361cat >conftest.$ac_ext <<_ACEOF
11362/* confdefs.h. */
11363_ACEOF
11364cat confdefs.h >>conftest.$ac_ext
11365cat >>conftest.$ac_ext <<_ACEOF
11366/* end confdefs.h. */
11367$ac_includes_default
11368#include <$ac_header>
11369_ACEOF
11370rm -f conftest.$ac_objext
11371if { (ac_try="$ac_compile"
11372case "(($ac_try" in
11373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11374 *) ac_try_echo=$ac_try;;
11375esac
11376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11377 (eval "$ac_compile") 2>conftest.er1
11378 ac_status=$?
11379 grep -v '^ *+' conftest.er1 >conftest.err
11380 rm -f conftest.er1
11381 cat conftest.err >&5
11382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383 (exit $ac_status); } &&
11384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11385 { (case "(($ac_try" in
11386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11387 *) ac_try_echo=$ac_try;;
11388esac
11389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11390 (eval "$ac_try") 2>&5
11391 ac_status=$?
11392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393 (exit $ac_status); }; } &&
11394 { ac_try='test -s conftest.$ac_objext'
11395 { (case "(($ac_try" in
11396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11397 *) ac_try_echo=$ac_try;;
11398esac
11399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11400 (eval "$ac_try") 2>&5
11401 ac_status=$?
11402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403 (exit $ac_status); }; }; then
11404 ac_header_compiler=yes
11405else
11406 echo "$as_me: failed program was:" >&5
11407sed 's/^/| /' conftest.$ac_ext >&5
11408
11409 ac_header_compiler=no
11410fi
11411
11412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11413{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11414echo "${ECHO_T}$ac_header_compiler" >&6; }
11415
11416# Is the header present?
11417{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11418echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11419cat >conftest.$ac_ext <<_ACEOF
11420/* confdefs.h. */
11421_ACEOF
11422cat confdefs.h >>conftest.$ac_ext
11423cat >>conftest.$ac_ext <<_ACEOF
11424/* end confdefs.h. */
11425#include <$ac_header>
11426_ACEOF
11427if { (ac_try="$ac_cpp conftest.$ac_ext"
11428case "(($ac_try" in
11429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11430 *) ac_try_echo=$ac_try;;
11431esac
11432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11434 ac_status=$?
11435 grep -v '^ *+' conftest.er1 >conftest.err
11436 rm -f conftest.er1
11437 cat conftest.err >&5
11438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439 (exit $ac_status); } >/dev/null; then
11440 if test -s conftest.err; then
11441 ac_cpp_err=$ac_c_preproc_warn_flag
11442 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11443 else
11444 ac_cpp_err=
11445 fi
11446else
11447 ac_cpp_err=yes
11448fi
11449if test -z "$ac_cpp_err"; then
11450 ac_header_preproc=yes
11451else
11452 echo "$as_me: failed program was:" >&5
11453sed 's/^/| /' conftest.$ac_ext >&5
11454
11455 ac_header_preproc=no
11456fi
11457
11458rm -f conftest.err conftest.$ac_ext
11459{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11460echo "${ECHO_T}$ac_header_preproc" >&6; }
11461
11462# So? What about this header?
11463case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11464 yes:no: )
11465 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11466echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11468echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11469 ac_header_preproc=yes
11470 ;;
11471 no:yes:* )
11472 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11473echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11474 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11475echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11476 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11477echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11478 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11479echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11481echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11482 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11483echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11484 ( cat <<\_ASBOX
11485## ----------------------------------- ##
11486## Report this to llvmbugs@cs.uiuc.edu ##
11487## ----------------------------------- ##
11488_ASBOX
11489 ) | sed "s/^/$as_me: WARNING: /" >&2
11490 ;;
11491esac
11492{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11493echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11494if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11495 echo $ECHO_N "(cached) $ECHO_C" >&6
11496else
11497 eval "$as_ac_Header=\$ac_header_preproc"
11498fi
11499ac_res=`eval echo '${'$as_ac_Header'}'`
11500 { echo "$as_me:$LINENO: result: $ac_res" >&5
11501echo "${ECHO_T}$ac_res" >&6; }
11502
11503fi
11504if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011505 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011506#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011507_ACEOF
11508
11509fi
11510
11511done
11512
11513
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011514{ echo "$as_me:$LINENO: checking for error_t" >&5
11515echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11516if test "${ac_cv_type_error_t+set}" = set; then
11517 echo $ECHO_N "(cached) $ECHO_C" >&6
11518else
11519 cat >conftest.$ac_ext <<_ACEOF
11520/* confdefs.h. */
11521_ACEOF
11522cat confdefs.h >>conftest.$ac_ext
11523cat >>conftest.$ac_ext <<_ACEOF
11524/* end confdefs.h. */
11525#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011526# include <argz.h>
11527#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011528
11529typedef error_t ac__type_new_;
11530int
11531main ()
11532{
11533if ((ac__type_new_ *) 0)
11534 return 0;
11535if (sizeof (ac__type_new_))
11536 return 0;
11537 ;
11538 return 0;
11539}
11540_ACEOF
11541rm -f conftest.$ac_objext
11542if { (ac_try="$ac_compile"
11543case "(($ac_try" in
11544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11545 *) ac_try_echo=$ac_try;;
11546esac
11547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11548 (eval "$ac_compile") 2>conftest.er1
11549 ac_status=$?
11550 grep -v '^ *+' conftest.er1 >conftest.err
11551 rm -f conftest.er1
11552 cat conftest.err >&5
11553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554 (exit $ac_status); } &&
11555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11556 { (case "(($ac_try" in
11557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11558 *) ac_try_echo=$ac_try;;
11559esac
11560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11561 (eval "$ac_try") 2>&5
11562 ac_status=$?
11563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564 (exit $ac_status); }; } &&
11565 { ac_try='test -s conftest.$ac_objext'
11566 { (case "(($ac_try" in
11567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11568 *) ac_try_echo=$ac_try;;
11569esac
11570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11571 (eval "$ac_try") 2>&5
11572 ac_status=$?
11573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574 (exit $ac_status); }; }; then
11575 ac_cv_type_error_t=yes
11576else
11577 echo "$as_me: failed program was:" >&5
11578sed 's/^/| /' conftest.$ac_ext >&5
11579
11580 ac_cv_type_error_t=no
11581fi
11582
11583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11584fi
11585{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11586echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11587if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011588
11589cat >>confdefs.h <<_ACEOF
11590#define HAVE_ERROR_T 1
11591_ACEOF
11592
11593
11594else
11595
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011596cat >>confdefs.h <<\_ACEOF
11597#define error_t int
11598_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011599
11600fi
11601
11602
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011603
11604
11605
11606
11607
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011608for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011609do
11610as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11611{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11612echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11613if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11614 echo $ECHO_N "(cached) $ECHO_C" >&6
11615else
11616 cat >conftest.$ac_ext <<_ACEOF
11617/* confdefs.h. */
11618_ACEOF
11619cat confdefs.h >>conftest.$ac_ext
11620cat >>conftest.$ac_ext <<_ACEOF
11621/* end confdefs.h. */
11622/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11623 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11624#define $ac_func innocuous_$ac_func
11625
11626/* System header to define __stub macros and hopefully few prototypes,
11627 which can conflict with char $ac_func (); below.
11628 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11629 <limits.h> exists even on freestanding compilers. */
11630
11631#ifdef __STDC__
11632# include <limits.h>
11633#else
11634# include <assert.h>
11635#endif
11636
11637#undef $ac_func
11638
11639/* Override any GCC internal prototype to avoid an error.
11640 Use char because int might match the return type of a GCC
11641 builtin and then its argument prototype would still apply. */
11642#ifdef __cplusplus
11643extern "C"
11644#endif
11645char $ac_func ();
11646/* The GNU C library defines this for functions which it implements
11647 to always fail with ENOSYS. Some functions are actually named
11648 something starting with __ and the normal name is an alias. */
11649#if defined __stub_$ac_func || defined __stub___$ac_func
11650choke me
11651#endif
11652
11653int
11654main ()
11655{
11656return $ac_func ();
11657 ;
11658 return 0;
11659}
11660_ACEOF
11661rm -f conftest.$ac_objext conftest$ac_exeext
11662if { (ac_try="$ac_link"
11663case "(($ac_try" in
11664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11665 *) ac_try_echo=$ac_try;;
11666esac
11667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11668 (eval "$ac_link") 2>conftest.er1
11669 ac_status=$?
11670 grep -v '^ *+' conftest.er1 >conftest.err
11671 rm -f conftest.er1
11672 cat conftest.err >&5
11673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 (exit $ac_status); } &&
11675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11676 { (case "(($ac_try" in
11677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11678 *) ac_try_echo=$ac_try;;
11679esac
11680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11681 (eval "$ac_try") 2>&5
11682 ac_status=$?
11683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684 (exit $ac_status); }; } &&
11685 { ac_try='test -s conftest$ac_exeext'
11686 { (case "(($ac_try" in
11687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11688 *) ac_try_echo=$ac_try;;
11689esac
11690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11691 (eval "$ac_try") 2>&5
11692 ac_status=$?
11693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694 (exit $ac_status); }; }; then
11695 eval "$as_ac_var=yes"
11696else
11697 echo "$as_me: failed program was:" >&5
11698sed 's/^/| /' conftest.$ac_ext >&5
11699
11700 eval "$as_ac_var=no"
11701fi
11702
11703rm -f core conftest.err conftest.$ac_objext \
11704 conftest$ac_exeext conftest.$ac_ext
11705fi
11706ac_res=`eval echo '${'$as_ac_var'}'`
11707 { echo "$as_me:$LINENO: result: $ac_res" >&5
11708echo "${ECHO_T}$ac_res" >&6; }
11709if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011710 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011711#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011712_ACEOF
11713
11714fi
11715done
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011736
11737
11738
11739
11740
11741
11742
11743
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011744for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11745 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011746do
11747as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11748if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11749 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11750echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11751if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11752 echo $ECHO_N "(cached) $ECHO_C" >&6
11753fi
11754ac_res=`eval echo '${'$as_ac_Header'}'`
11755 { echo "$as_me:$LINENO: result: $ac_res" >&5
11756echo "${ECHO_T}$ac_res" >&6; }
11757else
11758 # Is the header compilable?
11759{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11760echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11761cat >conftest.$ac_ext <<_ACEOF
11762/* confdefs.h. */
11763_ACEOF
11764cat confdefs.h >>conftest.$ac_ext
11765cat >>conftest.$ac_ext <<_ACEOF
11766/* end confdefs.h. */
11767$ac_includes_default
11768#include <$ac_header>
11769_ACEOF
11770rm -f conftest.$ac_objext
11771if { (ac_try="$ac_compile"
11772case "(($ac_try" in
11773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11774 *) ac_try_echo=$ac_try;;
11775esac
11776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11777 (eval "$ac_compile") 2>conftest.er1
11778 ac_status=$?
11779 grep -v '^ *+' conftest.er1 >conftest.err
11780 rm -f conftest.er1
11781 cat conftest.err >&5
11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); } &&
11784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11785 { (case "(($ac_try" in
11786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11787 *) ac_try_echo=$ac_try;;
11788esac
11789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11790 (eval "$ac_try") 2>&5
11791 ac_status=$?
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); }; } &&
11794 { ac_try='test -s conftest.$ac_objext'
11795 { (case "(($ac_try" in
11796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11797 *) ac_try_echo=$ac_try;;
11798esac
11799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11800 (eval "$ac_try") 2>&5
11801 ac_status=$?
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); }; }; then
11804 ac_header_compiler=yes
11805else
11806 echo "$as_me: failed program was:" >&5
11807sed 's/^/| /' conftest.$ac_ext >&5
11808
11809 ac_header_compiler=no
11810fi
11811
11812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11813{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11814echo "${ECHO_T}$ac_header_compiler" >&6; }
11815
11816# Is the header present?
11817{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11818echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11819cat >conftest.$ac_ext <<_ACEOF
11820/* confdefs.h. */
11821_ACEOF
11822cat confdefs.h >>conftest.$ac_ext
11823cat >>conftest.$ac_ext <<_ACEOF
11824/* end confdefs.h. */
11825#include <$ac_header>
11826_ACEOF
11827if { (ac_try="$ac_cpp conftest.$ac_ext"
11828case "(($ac_try" in
11829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11830 *) ac_try_echo=$ac_try;;
11831esac
11832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11834 ac_status=$?
11835 grep -v '^ *+' conftest.er1 >conftest.err
11836 rm -f conftest.er1
11837 cat conftest.err >&5
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); } >/dev/null; then
11840 if test -s conftest.err; then
11841 ac_cpp_err=$ac_c_preproc_warn_flag
11842 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11843 else
11844 ac_cpp_err=
11845 fi
11846else
11847 ac_cpp_err=yes
11848fi
11849if test -z "$ac_cpp_err"; then
11850 ac_header_preproc=yes
11851else
11852 echo "$as_me: failed program was:" >&5
11853sed 's/^/| /' conftest.$ac_ext >&5
11854
11855 ac_header_preproc=no
11856fi
11857
11858rm -f conftest.err conftest.$ac_ext
11859{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11860echo "${ECHO_T}$ac_header_preproc" >&6; }
11861
11862# So? What about this header?
11863case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11864 yes:no: )
11865 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11866echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11867 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11868echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11869 ac_header_preproc=yes
11870 ;;
11871 no:yes:* )
11872 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11873echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11874 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11875echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11876 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11877echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11878 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11879echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11881echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11882 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11883echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11884 ( cat <<\_ASBOX
11885## ----------------------------------- ##
11886## Report this to llvmbugs@cs.uiuc.edu ##
11887## ----------------------------------- ##
11888_ASBOX
11889 ) | sed "s/^/$as_me: WARNING: /" >&2
11890 ;;
11891esac
11892{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11893echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11894if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11895 echo $ECHO_N "(cached) $ECHO_C" >&6
11896else
11897 eval "$as_ac_Header=\$ac_header_preproc"
11898fi
11899ac_res=`eval echo '${'$as_ac_Header'}'`
11900 { echo "$as_me:$LINENO: result: $ac_res" >&5
11901echo "${ECHO_T}$ac_res" >&6; }
11902
11903fi
11904if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011905 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011906#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011907_ACEOF
11908
11909fi
11910
11911done
11912
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011913
11914
11915
11916
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011917for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011918do
11919as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11920if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11921 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11922echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11923if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11924 echo $ECHO_N "(cached) $ECHO_C" >&6
11925fi
11926ac_res=`eval echo '${'$as_ac_Header'}'`
11927 { echo "$as_me:$LINENO: result: $ac_res" >&5
11928echo "${ECHO_T}$ac_res" >&6; }
11929else
11930 # Is the header compilable?
11931{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11932echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11933cat >conftest.$ac_ext <<_ACEOF
11934/* confdefs.h. */
11935_ACEOF
11936cat confdefs.h >>conftest.$ac_ext
11937cat >>conftest.$ac_ext <<_ACEOF
11938/* end confdefs.h. */
11939$ac_includes_default
11940#include <$ac_header>
11941_ACEOF
11942rm -f conftest.$ac_objext
11943if { (ac_try="$ac_compile"
11944case "(($ac_try" in
11945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11946 *) ac_try_echo=$ac_try;;
11947esac
11948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11949 (eval "$ac_compile") 2>conftest.er1
11950 ac_status=$?
11951 grep -v '^ *+' conftest.er1 >conftest.err
11952 rm -f conftest.er1
11953 cat conftest.err >&5
11954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955 (exit $ac_status); } &&
11956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11957 { (case "(($ac_try" in
11958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11959 *) ac_try_echo=$ac_try;;
11960esac
11961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11962 (eval "$ac_try") 2>&5
11963 ac_status=$?
11964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965 (exit $ac_status); }; } &&
11966 { ac_try='test -s conftest.$ac_objext'
11967 { (case "(($ac_try" in
11968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11969 *) ac_try_echo=$ac_try;;
11970esac
11971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11972 (eval "$ac_try") 2>&5
11973 ac_status=$?
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); }; }; then
11976 ac_header_compiler=yes
11977else
11978 echo "$as_me: failed program was:" >&5
11979sed 's/^/| /' conftest.$ac_ext >&5
11980
11981 ac_header_compiler=no
11982fi
11983
11984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11985{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11986echo "${ECHO_T}$ac_header_compiler" >&6; }
11987
11988# Is the header present?
11989{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11990echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11991cat >conftest.$ac_ext <<_ACEOF
11992/* confdefs.h. */
11993_ACEOF
11994cat confdefs.h >>conftest.$ac_ext
11995cat >>conftest.$ac_ext <<_ACEOF
11996/* end confdefs.h. */
11997#include <$ac_header>
11998_ACEOF
11999if { (ac_try="$ac_cpp conftest.$ac_ext"
12000case "(($ac_try" in
12001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12002 *) ac_try_echo=$ac_try;;
12003esac
12004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12005 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12006 ac_status=$?
12007 grep -v '^ *+' conftest.er1 >conftest.err
12008 rm -f conftest.er1
12009 cat conftest.err >&5
12010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011 (exit $ac_status); } >/dev/null; then
12012 if test -s conftest.err; then
12013 ac_cpp_err=$ac_c_preproc_warn_flag
12014 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12015 else
12016 ac_cpp_err=
12017 fi
12018else
12019 ac_cpp_err=yes
12020fi
12021if test -z "$ac_cpp_err"; then
12022 ac_header_preproc=yes
12023else
12024 echo "$as_me: failed program was:" >&5
12025sed 's/^/| /' conftest.$ac_ext >&5
12026
12027 ac_header_preproc=no
12028fi
12029
12030rm -f conftest.err conftest.$ac_ext
12031{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12032echo "${ECHO_T}$ac_header_preproc" >&6; }
12033
12034# So? What about this header?
12035case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12036 yes:no: )
12037 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12038echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12040echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12041 ac_header_preproc=yes
12042 ;;
12043 no:yes:* )
12044 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12045echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12046 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12047echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12048 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12049echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12050 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12051echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12053echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12054 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12055echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12056 ( cat <<\_ASBOX
12057## ----------------------------------- ##
12058## Report this to llvmbugs@cs.uiuc.edu ##
12059## ----------------------------------- ##
12060_ASBOX
12061 ) | sed "s/^/$as_me: WARNING: /" >&2
12062 ;;
12063esac
12064{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12065echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12066if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12067 echo $ECHO_N "(cached) $ECHO_C" >&6
12068else
12069 eval "$as_ac_Header=\$ac_header_preproc"
12070fi
12071ac_res=`eval echo '${'$as_ac_Header'}'`
12072 { echo "$as_me:$LINENO: result: $ac_res" >&5
12073echo "${ECHO_T}$ac_res" >&6; }
12074
12075fi
12076if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012077 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012078#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012079_ACEOF
12080
12081fi
12082
12083done
12084
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012085
12086
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012087for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012088do
12089as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12090if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12091 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12092echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12093if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12094 echo $ECHO_N "(cached) $ECHO_C" >&6
12095fi
12096ac_res=`eval echo '${'$as_ac_Header'}'`
12097 { echo "$as_me:$LINENO: result: $ac_res" >&5
12098echo "${ECHO_T}$ac_res" >&6; }
12099else
12100 # Is the header compilable?
12101{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12102echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12103cat >conftest.$ac_ext <<_ACEOF
12104/* confdefs.h. */
12105_ACEOF
12106cat confdefs.h >>conftest.$ac_ext
12107cat >>conftest.$ac_ext <<_ACEOF
12108/* end confdefs.h. */
12109$ac_includes_default
12110#include <$ac_header>
12111_ACEOF
12112rm -f conftest.$ac_objext
12113if { (ac_try="$ac_compile"
12114case "(($ac_try" in
12115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12116 *) ac_try_echo=$ac_try;;
12117esac
12118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12119 (eval "$ac_compile") 2>conftest.er1
12120 ac_status=$?
12121 grep -v '^ *+' conftest.er1 >conftest.err
12122 rm -f conftest.er1
12123 cat conftest.err >&5
12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); } &&
12126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12127 { (case "(($ac_try" in
12128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12129 *) ac_try_echo=$ac_try;;
12130esac
12131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12132 (eval "$ac_try") 2>&5
12133 ac_status=$?
12134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135 (exit $ac_status); }; } &&
12136 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
12146 ac_header_compiler=yes
12147else
12148 echo "$as_me: failed program was:" >&5
12149sed 's/^/| /' conftest.$ac_ext >&5
12150
12151 ac_header_compiler=no
12152fi
12153
12154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12155{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12156echo "${ECHO_T}$ac_header_compiler" >&6; }
12157
12158# Is the header present?
12159{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12160echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12161cat >conftest.$ac_ext <<_ACEOF
12162/* confdefs.h. */
12163_ACEOF
12164cat confdefs.h >>conftest.$ac_ext
12165cat >>conftest.$ac_ext <<_ACEOF
12166/* end confdefs.h. */
12167#include <$ac_header>
12168_ACEOF
12169if { (ac_try="$ac_cpp conftest.$ac_ext"
12170case "(($ac_try" in
12171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12172 *) ac_try_echo=$ac_try;;
12173esac
12174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12175 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12176 ac_status=$?
12177 grep -v '^ *+' conftest.er1 >conftest.err
12178 rm -f conftest.er1
12179 cat conftest.err >&5
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); } >/dev/null; then
12182 if test -s conftest.err; then
12183 ac_cpp_err=$ac_c_preproc_warn_flag
12184 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12185 else
12186 ac_cpp_err=
12187 fi
12188else
12189 ac_cpp_err=yes
12190fi
12191if test -z "$ac_cpp_err"; then
12192 ac_header_preproc=yes
12193else
12194 echo "$as_me: failed program was:" >&5
12195sed 's/^/| /' conftest.$ac_ext >&5
12196
12197 ac_header_preproc=no
12198fi
12199
12200rm -f conftest.err conftest.$ac_ext
12201{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12202echo "${ECHO_T}$ac_header_preproc" >&6; }
12203
12204# So? What about this header?
12205case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12206 yes:no: )
12207 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12208echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12209 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12210echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12211 ac_header_preproc=yes
12212 ;;
12213 no:yes:* )
12214 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12215echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12216 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12217echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12218 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12219echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12220 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12221echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12222 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12223echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12224 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12225echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12226 ( cat <<\_ASBOX
12227## ----------------------------------- ##
12228## Report this to llvmbugs@cs.uiuc.edu ##
12229## ----------------------------------- ##
12230_ASBOX
12231 ) | sed "s/^/$as_me: WARNING: /" >&2
12232 ;;
12233esac
12234{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12235echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12236if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12237 echo $ECHO_N "(cached) $ECHO_C" >&6
12238else
12239 eval "$as_ac_Header=\$ac_header_preproc"
12240fi
12241ac_res=`eval echo '${'$as_ac_Header'}'`
12242 { echo "$as_me:$LINENO: result: $ac_res" >&5
12243echo "${ECHO_T}$ac_res" >&6; }
12244
12245fi
12246if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012247 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012248#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012249_ACEOF
12250 break
12251fi
12252
12253done
12254
12255
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012256
12257
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012258for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012259do
12260as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12261{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12262echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12263if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12264 echo $ECHO_N "(cached) $ECHO_C" >&6
12265else
12266 cat >conftest.$ac_ext <<_ACEOF
12267/* confdefs.h. */
12268_ACEOF
12269cat confdefs.h >>conftest.$ac_ext
12270cat >>conftest.$ac_ext <<_ACEOF
12271/* end confdefs.h. */
12272/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12274#define $ac_func innocuous_$ac_func
12275
12276/* System header to define __stub macros and hopefully few prototypes,
12277 which can conflict with char $ac_func (); below.
12278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12279 <limits.h> exists even on freestanding compilers. */
12280
12281#ifdef __STDC__
12282# include <limits.h>
12283#else
12284# include <assert.h>
12285#endif
12286
12287#undef $ac_func
12288
12289/* Override any GCC internal prototype to avoid an error.
12290 Use char because int might match the return type of a GCC
12291 builtin and then its argument prototype would still apply. */
12292#ifdef __cplusplus
12293extern "C"
12294#endif
12295char $ac_func ();
12296/* The GNU C library defines this for functions which it implements
12297 to always fail with ENOSYS. Some functions are actually named
12298 something starting with __ and the normal name is an alias. */
12299#if defined __stub_$ac_func || defined __stub___$ac_func
12300choke me
12301#endif
12302
12303int
12304main ()
12305{
12306return $ac_func ();
12307 ;
12308 return 0;
12309}
12310_ACEOF
12311rm -f conftest.$ac_objext conftest$ac_exeext
12312if { (ac_try="$ac_link"
12313case "(($ac_try" in
12314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12315 *) ac_try_echo=$ac_try;;
12316esac
12317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12318 (eval "$ac_link") 2>conftest.er1
12319 ac_status=$?
12320 grep -v '^ *+' conftest.er1 >conftest.err
12321 rm -f conftest.er1
12322 cat conftest.err >&5
12323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324 (exit $ac_status); } &&
12325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12326 { (case "(($ac_try" in
12327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12328 *) ac_try_echo=$ac_try;;
12329esac
12330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12331 (eval "$ac_try") 2>&5
12332 ac_status=$?
12333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334 (exit $ac_status); }; } &&
12335 { ac_try='test -s conftest$ac_exeext'
12336 { (case "(($ac_try" in
12337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12338 *) ac_try_echo=$ac_try;;
12339esac
12340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12341 (eval "$ac_try") 2>&5
12342 ac_status=$?
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); }; }; then
12345 eval "$as_ac_var=yes"
12346else
12347 echo "$as_me: failed program was:" >&5
12348sed 's/^/| /' conftest.$ac_ext >&5
12349
12350 eval "$as_ac_var=no"
12351fi
12352
12353rm -f core conftest.err conftest.$ac_objext \
12354 conftest$ac_exeext conftest.$ac_ext
12355fi
12356ac_res=`eval echo '${'$as_ac_var'}'`
12357 { echo "$as_me:$LINENO: result: $ac_res" >&5
12358echo "${ECHO_T}$ac_res" >&6; }
12359if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012360 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012361#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012362_ACEOF
12363 break
12364fi
12365done
12366
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012367
12368
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012369for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012370do
12371as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12372{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12373echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12374if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12375 echo $ECHO_N "(cached) $ECHO_C" >&6
12376else
12377 cat >conftest.$ac_ext <<_ACEOF
12378/* confdefs.h. */
12379_ACEOF
12380cat confdefs.h >>conftest.$ac_ext
12381cat >>conftest.$ac_ext <<_ACEOF
12382/* end confdefs.h. */
12383/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12385#define $ac_func innocuous_$ac_func
12386
12387/* System header to define __stub macros and hopefully few prototypes,
12388 which can conflict with char $ac_func (); below.
12389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12390 <limits.h> exists even on freestanding compilers. */
12391
12392#ifdef __STDC__
12393# include <limits.h>
12394#else
12395# include <assert.h>
12396#endif
12397
12398#undef $ac_func
12399
12400/* Override any GCC internal prototype to avoid an error.
12401 Use char because int might match the return type of a GCC
12402 builtin and then its argument prototype would still apply. */
12403#ifdef __cplusplus
12404extern "C"
12405#endif
12406char $ac_func ();
12407/* The GNU C library defines this for functions which it implements
12408 to always fail with ENOSYS. Some functions are actually named
12409 something starting with __ and the normal name is an alias. */
12410#if defined __stub_$ac_func || defined __stub___$ac_func
12411choke me
12412#endif
12413
12414int
12415main ()
12416{
12417return $ac_func ();
12418 ;
12419 return 0;
12420}
12421_ACEOF
12422rm -f conftest.$ac_objext conftest$ac_exeext
12423if { (ac_try="$ac_link"
12424case "(($ac_try" in
12425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12426 *) ac_try_echo=$ac_try;;
12427esac
12428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12429 (eval "$ac_link") 2>conftest.er1
12430 ac_status=$?
12431 grep -v '^ *+' conftest.er1 >conftest.err
12432 rm -f conftest.er1
12433 cat conftest.err >&5
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); } &&
12436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12437 { (case "(($ac_try" in
12438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12439 *) ac_try_echo=$ac_try;;
12440esac
12441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12442 (eval "$ac_try") 2>&5
12443 ac_status=$?
12444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445 (exit $ac_status); }; } &&
12446 { ac_try='test -s conftest$ac_exeext'
12447 { (case "(($ac_try" in
12448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12449 *) ac_try_echo=$ac_try;;
12450esac
12451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12452 (eval "$ac_try") 2>&5
12453 ac_status=$?
12454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455 (exit $ac_status); }; }; then
12456 eval "$as_ac_var=yes"
12457else
12458 echo "$as_me: failed program was:" >&5
12459sed 's/^/| /' conftest.$ac_ext >&5
12460
12461 eval "$as_ac_var=no"
12462fi
12463
12464rm -f core conftest.err conftest.$ac_objext \
12465 conftest$ac_exeext conftest.$ac_ext
12466fi
12467ac_res=`eval echo '${'$as_ac_var'}'`
12468 { echo "$as_me:$LINENO: result: $ac_res" >&5
12469echo "${ECHO_T}$ac_res" >&6; }
12470if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012471 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012472#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012473_ACEOF
12474 break
12475fi
12476done
12477
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012478
12479
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012480for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012481do
12482as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12483{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12484echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12485if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12486 echo $ECHO_N "(cached) $ECHO_C" >&6
12487else
12488 cat >conftest.$ac_ext <<_ACEOF
12489/* confdefs.h. */
12490_ACEOF
12491cat confdefs.h >>conftest.$ac_ext
12492cat >>conftest.$ac_ext <<_ACEOF
12493/* end confdefs.h. */
12494/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12496#define $ac_func innocuous_$ac_func
12497
12498/* System header to define __stub macros and hopefully few prototypes,
12499 which can conflict with char $ac_func (); below.
12500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12501 <limits.h> exists even on freestanding compilers. */
12502
12503#ifdef __STDC__
12504# include <limits.h>
12505#else
12506# include <assert.h>
12507#endif
12508
12509#undef $ac_func
12510
12511/* Override any GCC internal prototype to avoid an error.
12512 Use char because int might match the return type of a GCC
12513 builtin and then its argument prototype would still apply. */
12514#ifdef __cplusplus
12515extern "C"
12516#endif
12517char $ac_func ();
12518/* The GNU C library defines this for functions which it implements
12519 to always fail with ENOSYS. Some functions are actually named
12520 something starting with __ and the normal name is an alias. */
12521#if defined __stub_$ac_func || defined __stub___$ac_func
12522choke me
12523#endif
12524
12525int
12526main ()
12527{
12528return $ac_func ();
12529 ;
12530 return 0;
12531}
12532_ACEOF
12533rm -f conftest.$ac_objext conftest$ac_exeext
12534if { (ac_try="$ac_link"
12535case "(($ac_try" in
12536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12537 *) ac_try_echo=$ac_try;;
12538esac
12539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12540 (eval "$ac_link") 2>conftest.er1
12541 ac_status=$?
12542 grep -v '^ *+' conftest.er1 >conftest.err
12543 rm -f conftest.er1
12544 cat conftest.err >&5
12545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546 (exit $ac_status); } &&
12547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12548 { (case "(($ac_try" in
12549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12550 *) ac_try_echo=$ac_try;;
12551esac
12552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12553 (eval "$ac_try") 2>&5
12554 ac_status=$?
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); }; } &&
12557 { ac_try='test -s conftest$ac_exeext'
12558 { (case "(($ac_try" in
12559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12560 *) ac_try_echo=$ac_try;;
12561esac
12562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12563 (eval "$ac_try") 2>&5
12564 ac_status=$?
12565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566 (exit $ac_status); }; }; then
12567 eval "$as_ac_var=yes"
12568else
12569 echo "$as_me: failed program was:" >&5
12570sed 's/^/| /' conftest.$ac_ext >&5
12571
12572 eval "$as_ac_var=no"
12573fi
12574
12575rm -f core conftest.err conftest.$ac_objext \
12576 conftest$ac_exeext conftest.$ac_ext
12577fi
12578ac_res=`eval echo '${'$as_ac_var'}'`
12579 { echo "$as_me:$LINENO: result: $ac_res" >&5
12580echo "${ECHO_T}$ac_res" >&6; }
12581if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012582 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012583#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012584_ACEOF
12585 break
12586fi
12587done
12588
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012589
12590
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012591for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012592do
12593as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12594{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12595echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12596if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12597 echo $ECHO_N "(cached) $ECHO_C" >&6
12598else
12599 cat >conftest.$ac_ext <<_ACEOF
12600/* confdefs.h. */
12601_ACEOF
12602cat confdefs.h >>conftest.$ac_ext
12603cat >>conftest.$ac_ext <<_ACEOF
12604/* end confdefs.h. */
12605/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12606 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12607#define $ac_func innocuous_$ac_func
12608
12609/* System header to define __stub macros and hopefully few prototypes,
12610 which can conflict with char $ac_func (); below.
12611 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12612 <limits.h> exists even on freestanding compilers. */
12613
12614#ifdef __STDC__
12615# include <limits.h>
12616#else
12617# include <assert.h>
12618#endif
12619
12620#undef $ac_func
12621
12622/* Override any GCC internal prototype to avoid an error.
12623 Use char because int might match the return type of a GCC
12624 builtin and then its argument prototype would still apply. */
12625#ifdef __cplusplus
12626extern "C"
12627#endif
12628char $ac_func ();
12629/* The GNU C library defines this for functions which it implements
12630 to always fail with ENOSYS. Some functions are actually named
12631 something starting with __ and the normal name is an alias. */
12632#if defined __stub_$ac_func || defined __stub___$ac_func
12633choke me
12634#endif
12635
12636int
12637main ()
12638{
12639return $ac_func ();
12640 ;
12641 return 0;
12642}
12643_ACEOF
12644rm -f conftest.$ac_objext conftest$ac_exeext
12645if { (ac_try="$ac_link"
12646case "(($ac_try" in
12647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12648 *) ac_try_echo=$ac_try;;
12649esac
12650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12651 (eval "$ac_link") 2>conftest.er1
12652 ac_status=$?
12653 grep -v '^ *+' conftest.er1 >conftest.err
12654 rm -f conftest.er1
12655 cat conftest.err >&5
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); } &&
12658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12659 { (case "(($ac_try" in
12660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12661 *) ac_try_echo=$ac_try;;
12662esac
12663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12664 (eval "$ac_try") 2>&5
12665 ac_status=$?
12666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667 (exit $ac_status); }; } &&
12668 { ac_try='test -s conftest$ac_exeext'
12669 { (case "(($ac_try" in
12670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12671 *) ac_try_echo=$ac_try;;
12672esac
12673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12674 (eval "$ac_try") 2>&5
12675 ac_status=$?
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); }; }; then
12678 eval "$as_ac_var=yes"
12679else
12680 echo "$as_me: failed program was:" >&5
12681sed 's/^/| /' conftest.$ac_ext >&5
12682
12683 eval "$as_ac_var=no"
12684fi
12685
12686rm -f core conftest.err conftest.$ac_objext \
12687 conftest$ac_exeext conftest.$ac_ext
12688fi
12689ac_res=`eval echo '${'$as_ac_var'}'`
12690 { echo "$as_me:$LINENO: result: $ac_res" >&5
12691echo "${ECHO_T}$ac_res" >&6; }
12692if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012693 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012694#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012695_ACEOF
12696
12697fi
12698done
12699
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012700
12701
12702
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012703for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012704do
12705as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12706{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12707echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12708if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12709 echo $ECHO_N "(cached) $ECHO_C" >&6
12710else
12711 cat >conftest.$ac_ext <<_ACEOF
12712/* confdefs.h. */
12713_ACEOF
12714cat confdefs.h >>conftest.$ac_ext
12715cat >>conftest.$ac_ext <<_ACEOF
12716/* end confdefs.h. */
12717/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12719#define $ac_func innocuous_$ac_func
12720
12721/* System header to define __stub macros and hopefully few prototypes,
12722 which can conflict with char $ac_func (); below.
12723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12724 <limits.h> exists even on freestanding compilers. */
12725
12726#ifdef __STDC__
12727# include <limits.h>
12728#else
12729# include <assert.h>
12730#endif
12731
12732#undef $ac_func
12733
12734/* Override any GCC internal prototype to avoid an error.
12735 Use char because int might match the return type of a GCC
12736 builtin and then its argument prototype would still apply. */
12737#ifdef __cplusplus
12738extern "C"
12739#endif
12740char $ac_func ();
12741/* The GNU C library defines this for functions which it implements
12742 to always fail with ENOSYS. Some functions are actually named
12743 something starting with __ and the normal name is an alias. */
12744#if defined __stub_$ac_func || defined __stub___$ac_func
12745choke me
12746#endif
12747
12748int
12749main ()
12750{
12751return $ac_func ();
12752 ;
12753 return 0;
12754}
12755_ACEOF
12756rm -f conftest.$ac_objext conftest$ac_exeext
12757if { (ac_try="$ac_link"
12758case "(($ac_try" in
12759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12760 *) ac_try_echo=$ac_try;;
12761esac
12762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12763 (eval "$ac_link") 2>conftest.er1
12764 ac_status=$?
12765 grep -v '^ *+' conftest.er1 >conftest.err
12766 rm -f conftest.er1
12767 cat conftest.err >&5
12768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769 (exit $ac_status); } &&
12770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12771 { (case "(($ac_try" in
12772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12773 *) ac_try_echo=$ac_try;;
12774esac
12775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12776 (eval "$ac_try") 2>&5
12777 ac_status=$?
12778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779 (exit $ac_status); }; } &&
12780 { ac_try='test -s conftest$ac_exeext'
12781 { (case "(($ac_try" in
12782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12783 *) ac_try_echo=$ac_try;;
12784esac
12785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12786 (eval "$ac_try") 2>&5
12787 ac_status=$?
12788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789 (exit $ac_status); }; }; then
12790 eval "$as_ac_var=yes"
12791else
12792 echo "$as_me: failed program was:" >&5
12793sed 's/^/| /' conftest.$ac_ext >&5
12794
12795 eval "$as_ac_var=no"
12796fi
12797
12798rm -f core conftest.err conftest.$ac_objext \
12799 conftest$ac_exeext conftest.$ac_ext
12800fi
12801ac_res=`eval echo '${'$as_ac_var'}'`
12802 { echo "$as_me:$LINENO: result: $ac_res" >&5
12803echo "${ECHO_T}$ac_res" >&6; }
12804if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012805 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012806#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012807_ACEOF
12808
12809fi
12810done
12811
12812
Douglas Gregor01746742009-05-11 18:05:52 +000012813
Reid Spencer7931a782004-12-27 06:15:02 +000012814if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000012815 LLVMGCC="llvm-gcc${EXEEXT}"
12816 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012817 LLVMGCCCOMMAND="$LLVMGCC"
12818 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012819 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12820
12821 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12822
Reid Spencerc84492c2005-06-02 22:34:49 +000012823 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
12824set dummy $LLVMGCC; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012825{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12827if test "${ac_cv_path_LLVMGCC+set}" = set; then
12828 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000012829else
12830 case $LLVMGCC in
12831 [\\/]* | ?:[\\/]*)
12832 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
12833 ;;
12834 *)
12835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12836for as_dir in $PATH
12837do
12838 IFS=$as_save_IFS
12839 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012840 for ac_exec_ext in '' $ac_executable_extensions; do
12841 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 +000012842 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000012844 break 2
12845 fi
12846done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012847done
Reid Spencera773bd52006-08-04 18:18:08 +000012848IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000012849
Reid Spencer59473af2004-12-25 07:31:29 +000012850 ;;
12851esac
12852fi
12853LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000012854if test -n "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012855 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
12856echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000012857else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012858 { echo "$as_me:$LINENO: result: no" >&5
12859echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000012860fi
12861
Reid Spencera773bd52006-08-04 18:18:08 +000012862
Reid Spencerc84492c2005-06-02 22:34:49 +000012863 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
12864set dummy $LLVMGXX; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012865{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12867if test "${ac_cv_path_LLVMGXX+set}" = set; then
12868 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000012869else
12870 case $LLVMGXX in
12871 [\\/]* | ?:[\\/]*)
12872 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
12873 ;;
12874 *)
12875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12876for as_dir in $PATH
12877do
12878 IFS=$as_save_IFS
12879 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012880 for ac_exec_ext in '' $ac_executable_extensions; do
12881 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 +000012882 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000012884 break 2
12885 fi
12886done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012887done
Reid Spencera773bd52006-08-04 18:18:08 +000012888IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000012889
Reid Spencer59473af2004-12-25 07:31:29 +000012890 ;;
12891esac
12892fi
12893LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000012894if test -n "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012895 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
12896echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000012897else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012898 { echo "$as_me:$LINENO: result: no" >&5
12899echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000012900fi
12901
Reid Spencera773bd52006-08-04 18:18:08 +000012902
Reid Spencer59473af2004-12-25 07:31:29 +000012903else
Devang Patel5d28b882007-12-04 22:54:47 +000012904 if test -z "$LLVMGCC"; then
12905 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012906 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000012907 fi
12908 if test -z "$LLVMGXX"; then
12909 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012910 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000012911 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012912
Reid Spencer59473af2004-12-25 07:31:29 +000012913 LLVMGCC=$LLVMGCC
12914
12915 LLVMGXX=$LLVMGXX
12916
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012917 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12918
12919 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12920
Reid Spencer59473af2004-12-25 07:31:29 +000012921fi
12922
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012923
Daniel Dunbar98515672010-02-23 10:00:49 +000012924# Check whether --with-llvmcc was given.
12925if test "${with_llvmcc+set}" = set; then
12926 withval=$with_llvmcc;
12927else
12928 with_llvmcc=check
12929fi
12930
12931{ echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
12932echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
12933if test "$with_llvmcc" != "check"; then
12934 if (test "$with_llvmcc" != "llvm-gcc" &&
12935 test "$with_llvmcc" != "clang" &&
12936 test "$with_llvmcc" != "none"); then
12937 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
12938echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
12939 { (exit 1); exit 1; }; }
12940 fi
12941 WITH_LLVMCC="$with_llvmcc"
12942elif test -n "$LLVMGCC"; then
12943 WITH_LLVMCC=llvm-gcc
12944elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
12945 WITH_LLVMCC=clang
12946else
12947 WITH_LLVMCC=none
12948fi
12949{ echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
12950echo "${ECHO_T}$WITH_LLVMCC" >&6; }
12951LLVMCC_OPTION=$WITH_LLVMCC
12952
12953
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012954{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12955echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012956
Reid Spencer86901802004-12-08 23:07:27 +000012957ICC=no
12958IXX=no
12959case $CC in
12960 icc*|icpc*)
12961 ICC=yes
12962 IXX=yes
12963 ;;
12964 *)
12965 ;;
12966esac
12967
Duraid Madina937c60a2006-02-15 07:57:42 +000012968if test "$GCC" != "yes" && test "$ICC" != "yes"
12969then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012970 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12971echo "$as_me: error: gcc|icc required but not found" >&2;}
12972 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012973fi
12974
12975if test "$GXX" != "yes" && test "$IXX" != "yes"
12976then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012977 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
12978echo "$as_me: error: g++|icc required but not found" >&2;}
12979 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012980fi
12981
Reid Spencer86901802004-12-08 23:07:27 +000012982if test "$GCC" = "yes"
12983then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012984 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000012985#if !defined(__GNUC__) || __GNUC__ < 3
12986#error Unsupported GCC version
12987#endif
12988
12989_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012990rm -f conftest.$ac_objext
12991if { (ac_try="$ac_compile"
12992case "(($ac_try" in
12993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12994 *) ac_try_echo=$ac_try;;
12995esac
12996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12997 (eval "$ac_compile") 2>conftest.er1
12998 ac_status=$?
12999 grep -v '^ *+' conftest.er1 >conftest.err
13000 rm -f conftest.er1
13001 cat conftest.err >&5
13002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003 (exit $ac_status); } &&
13004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13005 { (case "(($ac_try" in
13006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13007 *) ac_try_echo=$ac_try;;
13008esac
13009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13010 (eval "$ac_try") 2>&5
13011 ac_status=$?
13012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013 (exit $ac_status); }; } &&
13014 { ac_try='test -s conftest.$ac_objext'
13015 { (case "(($ac_try" in
13016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13017 *) ac_try_echo=$ac_try;;
13018esac
13019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13020 (eval "$ac_try") 2>&5
13021 ac_status=$?
13022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023 (exit $ac_status); }; }; then
13024 :
Chris Lattner399c7c72008-02-05 19:43:53 +000013025else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013026 echo "$as_me: failed program was:" >&5
13027sed 's/^/| /' conftest.$ac_ext >&5
13028
13029 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13030echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13031 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000013032fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013033
Chris Lattner399c7c72008-02-05 19:43:53 +000013034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013035fi
13036
13037if test -z "$llvm_cv_gnu_make_command"
13038then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013039 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13040echo "$as_me: error: GNU Make required but not found" >&2;}
13041 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013042fi
13043
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013044{ echo "$as_me:$LINENO: result: ok" >&5
13045echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013046
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013047{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
13048echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013049NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13050
13051NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13052
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013053{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13054echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013055
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000013056
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013057
13058{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
13059echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13060if test "${ac_cv_lib_m_sin+set}" = set; then
13061 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000013062else
13063 ac_check_lib_save_LIBS=$LIBS
13064LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013065cat >conftest.$ac_ext <<_ACEOF
13066/* confdefs.h. */
13067_ACEOF
13068cat confdefs.h >>conftest.$ac_ext
13069cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000013070/* end confdefs.h. */
13071
Reid Spencera773bd52006-08-04 18:18:08 +000013072/* Override any GCC internal prototype to avoid an error.
13073 Use char because int might match the return type of a GCC
13074 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000013075#ifdef __cplusplus
13076extern "C"
13077#endif
Reid Spencer3484a992006-01-19 08:31:08 +000013078char sin ();
13079int
13080main ()
13081{
Reid Spencera773bd52006-08-04 18:18:08 +000013082return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000013083 ;
13084 return 0;
13085}
13086_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013087rm -f conftest.$ac_objext conftest$ac_exeext
13088if { (ac_try="$ac_link"
13089case "(($ac_try" in
13090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13091 *) ac_try_echo=$ac_try;;
13092esac
13093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13094 (eval "$ac_link") 2>conftest.er1
13095 ac_status=$?
13096 grep -v '^ *+' conftest.er1 >conftest.err
13097 rm -f conftest.er1
13098 cat conftest.err >&5
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); } &&
13101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13102 { (case "(($ac_try" in
13103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13104 *) ac_try_echo=$ac_try;;
13105esac
13106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13107 (eval "$ac_try") 2>&5
13108 ac_status=$?
13109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 (exit $ac_status); }; } &&
13111 { ac_try='test -s conftest$ac_exeext'
13112 { (case "(($ac_try" in
13113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13114 *) ac_try_echo=$ac_try;;
13115esac
13116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13117 (eval "$ac_try") 2>&5
13118 ac_status=$?
13119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000013121 ac_cv_lib_m_sin=yes
13122else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013123 echo "$as_me: failed program was:" >&5
13124sed 's/^/| /' conftest.$ac_ext >&5
13125
13126 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000013127fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013128
Bill Wendlingebcceee2009-04-18 11:20:33 +000013129rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013130 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000013131LIBS=$ac_check_lib_save_LIBS
13132fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013133{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13134echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13135if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000013136 cat >>confdefs.h <<_ACEOF
13137#define HAVE_LIBM 1
13138_ACEOF
13139
13140 LIBS="-lm $LIBS"
13141
13142fi
13143
Jeff Cohen28783c32007-01-12 18:22:38 +000013144if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013145
13146{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13147echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13148if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13149 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013150else
13151 ac_check_lib_save_LIBS=$LIBS
13152LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013153cat >conftest.$ac_ext <<_ACEOF
13154/* confdefs.h. */
13155_ACEOF
13156cat confdefs.h >>conftest.$ac_ext
13157cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013158/* end confdefs.h. */
13159
Reid Spencer48fdf912006-06-01 19:03:21 +000013160
Reid Spencer484fc8e2006-06-01 16:55:59 +000013161int
13162main ()
13163{
Reid Spencera773bd52006-08-04 18:18:08 +000013164return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013165 ;
13166 return 0;
13167}
13168_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013169rm -f conftest.$ac_objext conftest$ac_exeext
13170if { (ac_try="$ac_link"
13171case "(($ac_try" in
13172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13173 *) ac_try_echo=$ac_try;;
13174esac
13175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13176 (eval "$ac_link") 2>conftest.er1
13177 ac_status=$?
13178 grep -v '^ *+' conftest.er1 >conftest.err
13179 rm -f conftest.er1
13180 cat conftest.err >&5
13181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182 (exit $ac_status); } &&
13183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13184 { (case "(($ac_try" in
13185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13186 *) ac_try_echo=$ac_try;;
13187esac
13188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13189 (eval "$ac_try") 2>&5
13190 ac_status=$?
13191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13192 (exit $ac_status); }; } &&
13193 { ac_try='test -s conftest$ac_exeext'
13194 { (case "(($ac_try" in
13195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13196 *) ac_try_echo=$ac_try;;
13197esac
13198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13199 (eval "$ac_try") 2>&5
13200 ac_status=$?
13201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13202 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013203 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013204else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013205 echo "$as_me: failed program was:" >&5
13206sed 's/^/| /' conftest.$ac_ext >&5
13207
13208 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013209fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013210
Bill Wendlingebcceee2009-04-18 11:20:33 +000013211rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013212 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013213LIBS=$ac_check_lib_save_LIBS
13214fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013215{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13216echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13217if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013218 cat >>confdefs.h <<_ACEOF
13219#define HAVE_LIBIMAGEHLP 1
13220_ACEOF
13221
13222 LIBS="-limagehlp $LIBS"
13223
13224fi
13225
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013226
13227{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13228echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13229if test "${ac_cv_lib_psapi_main+set}" = set; then
13230 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013231else
13232 ac_check_lib_save_LIBS=$LIBS
13233LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013234cat >conftest.$ac_ext <<_ACEOF
13235/* confdefs.h. */
13236_ACEOF
13237cat confdefs.h >>conftest.$ac_ext
13238cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013239/* end confdefs.h. */
13240
Reid Spencer48fdf912006-06-01 19:03:21 +000013241
Reid Spencer484fc8e2006-06-01 16:55:59 +000013242int
13243main ()
13244{
Reid Spencera773bd52006-08-04 18:18:08 +000013245return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013246 ;
13247 return 0;
13248}
13249_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013250rm -f conftest.$ac_objext conftest$ac_exeext
13251if { (ac_try="$ac_link"
13252case "(($ac_try" in
13253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13254 *) ac_try_echo=$ac_try;;
13255esac
13256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13257 (eval "$ac_link") 2>conftest.er1
13258 ac_status=$?
13259 grep -v '^ *+' conftest.er1 >conftest.err
13260 rm -f conftest.er1
13261 cat conftest.err >&5
13262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263 (exit $ac_status); } &&
13264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13265 { (case "(($ac_try" in
13266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13267 *) ac_try_echo=$ac_try;;
13268esac
13269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13270 (eval "$ac_try") 2>&5
13271 ac_status=$?
13272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273 (exit $ac_status); }; } &&
13274 { ac_try='test -s conftest$ac_exeext'
13275 { (case "(($ac_try" in
13276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13277 *) ac_try_echo=$ac_try;;
13278esac
13279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13280 (eval "$ac_try") 2>&5
13281 ac_status=$?
13282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13283 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013284 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013285else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013286 echo "$as_me: failed program was:" >&5
13287sed 's/^/| /' conftest.$ac_ext >&5
13288
13289 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013290fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013291
Bill Wendlingebcceee2009-04-18 11:20:33 +000013292rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013293 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013294LIBS=$ac_check_lib_save_LIBS
13295fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013296{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13297echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13298if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013299 cat >>confdefs.h <<_ACEOF
13300#define HAVE_LIBPSAPI 1
13301_ACEOF
13302
13303 LIBS="-lpsapi $LIBS"
13304
13305fi
13306
13307fi
Reid Spencer22177fe2005-07-12 15:24:20 +000013308
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013309{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13310echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13311if test "${ac_cv_search_dlopen+set}" = set; then
13312 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013313else
13314 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013315cat >conftest.$ac_ext <<_ACEOF
13316/* confdefs.h. */
13317_ACEOF
13318cat confdefs.h >>conftest.$ac_ext
13319cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013320/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013321
Reid Spencera773bd52006-08-04 18:18:08 +000013322/* Override any GCC internal prototype to avoid an error.
13323 Use char because int might match the return type of a GCC
13324 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013325#ifdef __cplusplus
13326extern "C"
13327#endif
John Criswell7a73b802003-06-30 21:59:07 +000013328char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013329int
13330main ()
13331{
Reid Spencera773bd52006-08-04 18:18:08 +000013332return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013333 ;
13334 return 0;
13335}
13336_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013337for ac_lib in '' dl; do
13338 if test -z "$ac_lib"; then
13339 ac_res="none required"
13340 else
13341 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013342 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013343 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013344 rm -f conftest.$ac_objext conftest$ac_exeext
13345if { (ac_try="$ac_link"
13346case "(($ac_try" in
13347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13348 *) ac_try_echo=$ac_try;;
13349esac
13350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13351 (eval "$ac_link") 2>conftest.er1
13352 ac_status=$?
13353 grep -v '^ *+' conftest.er1 >conftest.err
13354 rm -f conftest.er1
13355 cat conftest.err >&5
13356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13357 (exit $ac_status); } &&
13358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13359 { (case "(($ac_try" in
13360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13361 *) ac_try_echo=$ac_try;;
13362esac
13363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13364 (eval "$ac_try") 2>&5
13365 ac_status=$?
13366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367 (exit $ac_status); }; } &&
13368 { ac_try='test -s conftest$ac_exeext'
13369 { (case "(($ac_try" in
13370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13371 *) ac_try_echo=$ac_try;;
13372esac
13373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13374 (eval "$ac_try") 2>&5
13375 ac_status=$?
13376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013378 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013379else
13380 echo "$as_me: failed program was:" >&5
13381sed 's/^/| /' conftest.$ac_ext >&5
13382
13383
John Criswell7a73b802003-06-30 21:59:07 +000013384fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013385
Bill Wendlingebcceee2009-04-18 11:20:33 +000013386rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013387 conftest$ac_exeext
13388 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013389 break
John Criswell7a73b802003-06-30 21:59:07 +000013390fi
Reid Spencera773bd52006-08-04 18:18:08 +000013391done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013392if test "${ac_cv_search_dlopen+set}" = set; then
13393 :
Reid Spencera773bd52006-08-04 18:18:08 +000013394else
13395 ac_cv_search_dlopen=no
13396fi
13397rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013398LIBS=$ac_func_search_save_LIBS
13399fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013400{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13401echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013402ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013403if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013404 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013405
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013406cat >>confdefs.h <<\_ACEOF
13407#define HAVE_DLOPEN 1
13408_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013409
13410else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013411 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13412echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000013413fi
13414
13415
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013416if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013417 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13418echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13419if test "${ac_cv_search_ffi_call+set}" = set; then
13420 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013421else
Nick Lewycky267fddb2009-04-13 04:26:27 +000013422 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013423cat >conftest.$ac_ext <<_ACEOF
13424/* confdefs.h. */
13425_ACEOF
13426cat confdefs.h >>conftest.$ac_ext
13427cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013428/* end confdefs.h. */
13429
13430/* Override any GCC internal prototype to avoid an error.
13431 Use char because int might match the return type of a GCC
13432 builtin and then its argument prototype would still apply. */
13433#ifdef __cplusplus
13434extern "C"
13435#endif
13436char ffi_call ();
13437int
13438main ()
13439{
13440return ffi_call ();
13441 ;
13442 return 0;
13443}
13444_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013445for ac_lib in '' ffi; do
13446 if test -z "$ac_lib"; then
13447 ac_res="none required"
13448 else
13449 ac_res=-l$ac_lib
13450 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13451 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013452 rm -f conftest.$ac_objext conftest$ac_exeext
13453if { (ac_try="$ac_link"
13454case "(($ac_try" in
13455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13456 *) ac_try_echo=$ac_try;;
13457esac
13458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13459 (eval "$ac_link") 2>conftest.er1
13460 ac_status=$?
13461 grep -v '^ *+' conftest.er1 >conftest.err
13462 rm -f conftest.er1
13463 cat conftest.err >&5
13464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465 (exit $ac_status); } &&
13466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13467 { (case "(($ac_try" in
13468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13469 *) ac_try_echo=$ac_try;;
13470esac
13471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13472 (eval "$ac_try") 2>&5
13473 ac_status=$?
13474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475 (exit $ac_status); }; } &&
13476 { ac_try='test -s conftest$ac_exeext'
13477 { (case "(($ac_try" in
13478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13479 *) ac_try_echo=$ac_try;;
13480esac
13481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13482 (eval "$ac_try") 2>&5
13483 ac_status=$?
13484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013486 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013487else
13488 echo "$as_me: failed program was:" >&5
13489sed 's/^/| /' conftest.$ac_ext >&5
13490
13491
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013492fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013493
Bill Wendlingebcceee2009-04-18 11:20:33 +000013494rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013495 conftest$ac_exeext
13496 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013497 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013498fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000013499done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013500if test "${ac_cv_search_ffi_call+set}" = set; then
13501 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000013502else
13503 ac_cv_search_ffi_call=no
13504fi
13505rm conftest.$ac_ext
13506LIBS=$ac_func_search_save_LIBS
13507fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013508{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13509echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000013510ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013511if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013512 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13513
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013514cat >>confdefs.h <<\_ACEOF
13515#define HAVE_FFI_CALL 1
13516_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013517
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013518else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000013519 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13520echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13521 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013522fi
13523
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013524fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013525
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013526{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13527echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13528if test "${ac_cv_search_mallinfo+set}" = set; then
13529 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013530else
13531 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013532cat >conftest.$ac_ext <<_ACEOF
13533/* confdefs.h. */
13534_ACEOF
13535cat confdefs.h >>conftest.$ac_ext
13536cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013537/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013538
Reid Spencera773bd52006-08-04 18:18:08 +000013539/* Override any GCC internal prototype to avoid an error.
13540 Use char because int might match the return type of a GCC
13541 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013542#ifdef __cplusplus
13543extern "C"
13544#endif
John Criswell7a73b802003-06-30 21:59:07 +000013545char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013546int
13547main ()
13548{
Reid Spencera773bd52006-08-04 18:18:08 +000013549return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013550 ;
13551 return 0;
13552}
13553_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013554for ac_lib in '' malloc; do
13555 if test -z "$ac_lib"; then
13556 ac_res="none required"
13557 else
13558 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013559 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013560 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013561 rm -f conftest.$ac_objext conftest$ac_exeext
13562if { (ac_try="$ac_link"
13563case "(($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_link") 2>conftest.er1
13569 ac_status=$?
13570 grep -v '^ *+' conftest.er1 >conftest.err
13571 rm -f conftest.er1
13572 cat conftest.err >&5
13573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574 (exit $ac_status); } &&
13575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13576 { (case "(($ac_try" in
13577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13578 *) ac_try_echo=$ac_try;;
13579esac
13580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13581 (eval "$ac_try") 2>&5
13582 ac_status=$?
13583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584 (exit $ac_status); }; } &&
13585 { ac_try='test -s conftest$ac_exeext'
13586 { (case "(($ac_try" in
13587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13588 *) ac_try_echo=$ac_try;;
13589esac
13590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13591 (eval "$ac_try") 2>&5
13592 ac_status=$?
13593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013595 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013596else
13597 echo "$as_me: failed program was:" >&5
13598sed 's/^/| /' conftest.$ac_ext >&5
13599
13600
John Criswell7a73b802003-06-30 21:59:07 +000013601fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013602
Bill Wendlingebcceee2009-04-18 11:20:33 +000013603rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013604 conftest$ac_exeext
13605 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013606 break
John Criswell7a73b802003-06-30 21:59:07 +000013607fi
Reid Spencera773bd52006-08-04 18:18:08 +000013608done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013609if test "${ac_cv_search_mallinfo+set}" = set; then
13610 :
Reid Spencera773bd52006-08-04 18:18:08 +000013611else
13612 ac_cv_search_mallinfo=no
13613fi
13614rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013615LIBS=$ac_func_search_save_LIBS
13616fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013617{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13618echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013619ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013620if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013621 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013622
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013623cat >>confdefs.h <<\_ACEOF
13624#define HAVE_MALLINFO 1
13625_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013626
13627fi
13628
13629
Reid Spencer0a262ba2005-08-24 10:07:20 +000013630if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013631
13632{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13633echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13634if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13635 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000013636else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013637 ac_check_lib_save_LIBS=$LIBS
13638LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013639cat >conftest.$ac_ext <<_ACEOF
13640/* confdefs.h. */
13641_ACEOF
13642cat confdefs.h >>conftest.$ac_ext
13643cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000013644/* end confdefs.h. */
13645
Reid Spencera773bd52006-08-04 18:18:08 +000013646/* Override any GCC internal prototype to avoid an error.
13647 Use char because int might match the return type of a GCC
13648 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000013649#ifdef __cplusplus
13650extern "C"
13651#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000013652char pthread_mutex_init ();
13653int
13654main ()
13655{
Reid Spencera773bd52006-08-04 18:18:08 +000013656return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000013657 ;
13658 return 0;
13659}
13660_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013661rm -f conftest.$ac_objext conftest$ac_exeext
13662if { (ac_try="$ac_link"
13663case "(($ac_try" in
13664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13665 *) ac_try_echo=$ac_try;;
13666esac
13667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13668 (eval "$ac_link") 2>conftest.er1
13669 ac_status=$?
13670 grep -v '^ *+' conftest.er1 >conftest.err
13671 rm -f conftest.er1
13672 cat conftest.err >&5
13673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); } &&
13675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13676 { (case "(($ac_try" in
13677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13678 *) ac_try_echo=$ac_try;;
13679esac
13680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13681 (eval "$ac_try") 2>&5
13682 ac_status=$?
13683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684 (exit $ac_status); }; } &&
13685 { ac_try='test -s conftest$ac_exeext'
13686 { (case "(($ac_try" in
13687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13688 *) ac_try_echo=$ac_try;;
13689esac
13690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13691 (eval "$ac_try") 2>&5
13692 ac_status=$?
13693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013695 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000013696else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013697 echo "$as_me: failed program was:" >&5
13698sed 's/^/| /' conftest.$ac_ext >&5
13699
13700 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000013701fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013702
Bill Wendlingebcceee2009-04-18 11:20:33 +000013703rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013704 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013705LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000013706fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013707{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13708echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13709if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013710 cat >>confdefs.h <<_ACEOF
13711#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000013712_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000013713
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013714 LIBS="-lpthread $LIBS"
13715
Reid Spencer22177fe2005-07-12 15:24:20 +000013716fi
13717
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013718 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13719echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13720if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13721 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000013722else
13723 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013724cat >conftest.$ac_ext <<_ACEOF
13725/* confdefs.h. */
13726_ACEOF
13727cat confdefs.h >>conftest.$ac_ext
13728cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000013729/* end confdefs.h. */
13730
Reid Spencera773bd52006-08-04 18:18:08 +000013731/* Override any GCC internal prototype to avoid an error.
13732 Use char because int might match the return type of a GCC
13733 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000013734#ifdef __cplusplus
13735extern "C"
13736#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000013737char pthread_mutex_lock ();
13738int
13739main ()
13740{
Reid Spencera773bd52006-08-04 18:18:08 +000013741return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000013742 ;
13743 return 0;
13744}
13745_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013746for ac_lib in '' pthread; do
13747 if test -z "$ac_lib"; then
13748 ac_res="none required"
13749 else
13750 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000013751 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013752 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013753 rm -f conftest.$ac_objext conftest$ac_exeext
13754if { (ac_try="$ac_link"
13755case "(($ac_try" in
13756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13757 *) ac_try_echo=$ac_try;;
13758esac
13759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13760 (eval "$ac_link") 2>conftest.er1
13761 ac_status=$?
13762 grep -v '^ *+' conftest.er1 >conftest.err
13763 rm -f conftest.er1
13764 cat conftest.err >&5
13765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766 (exit $ac_status); } &&
13767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13768 { (case "(($ac_try" in
13769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13770 *) ac_try_echo=$ac_try;;
13771esac
13772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13773 (eval "$ac_try") 2>&5
13774 ac_status=$?
13775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); }; } &&
13777 { ac_try='test -s conftest$ac_exeext'
13778 { (case "(($ac_try" in
13779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13780 *) ac_try_echo=$ac_try;;
13781esac
13782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13783 (eval "$ac_try") 2>&5
13784 ac_status=$?
13785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013787 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013788else
13789 echo "$as_me: failed program was:" >&5
13790sed 's/^/| /' conftest.$ac_ext >&5
13791
13792
Brian Gaeke5f268f72003-12-05 19:29:01 +000013793fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013794
Bill Wendlingebcceee2009-04-18 11:20:33 +000013795rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013796 conftest$ac_exeext
13797 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013798 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000013799fi
Reid Spencera773bd52006-08-04 18:18:08 +000013800done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013801if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13802 :
Reid Spencera773bd52006-08-04 18:18:08 +000013803else
13804 ac_cv_search_pthread_mutex_lock=no
13805fi
13806rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000013807LIBS=$ac_func_search_save_LIBS
13808fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013809{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13810echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013811ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013812if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013813 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000013814
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013815cat >>confdefs.h <<\_ACEOF
13816#define HAVE_PTHREAD_MUTEX_LOCK 1
13817_ACEOF
John Criswell40468462004-09-24 21:19:06 +000013818
13819fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000013820
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013821 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13822echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13823if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13824 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000013825else
13826 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013827cat >conftest.$ac_ext <<_ACEOF
13828/* confdefs.h. */
13829_ACEOF
13830cat confdefs.h >>conftest.$ac_ext
13831cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013832/* end confdefs.h. */
13833
13834/* Override any GCC internal prototype to avoid an error.
13835 Use char because int might match the return type of a GCC
13836 builtin and then its argument prototype would still apply. */
13837#ifdef __cplusplus
13838extern "C"
13839#endif
13840char pthread_rwlock_init ();
13841int
13842main ()
13843{
13844return pthread_rwlock_init ();
13845 ;
13846 return 0;
13847}
13848_ACEOF
13849for ac_lib in '' pthread; do
13850 if test -z "$ac_lib"; then
13851 ac_res="none required"
13852 else
13853 ac_res=-l$ac_lib
13854 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13855 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013856 rm -f conftest.$ac_objext conftest$ac_exeext
13857if { (ac_try="$ac_link"
13858case "(($ac_try" in
13859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13860 *) ac_try_echo=$ac_try;;
13861esac
13862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13863 (eval "$ac_link") 2>conftest.er1
13864 ac_status=$?
13865 grep -v '^ *+' conftest.er1 >conftest.err
13866 rm -f conftest.er1
13867 cat conftest.err >&5
13868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869 (exit $ac_status); } &&
13870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13871 { (case "(($ac_try" in
13872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13873 *) ac_try_echo=$ac_try;;
13874esac
13875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13876 (eval "$ac_try") 2>&5
13877 ac_status=$?
13878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879 (exit $ac_status); }; } &&
13880 { ac_try='test -s conftest$ac_exeext'
13881 { (case "(($ac_try" in
13882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13883 *) ac_try_echo=$ac_try;;
13884esac
13885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13886 (eval "$ac_try") 2>&5
13887 ac_status=$?
13888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13889 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013890 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013891else
13892 echo "$as_me: failed program was:" >&5
13893sed 's/^/| /' conftest.$ac_ext >&5
13894
13895
Owen Andersonde8aed22009-06-16 18:20:20 +000013896fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013897
Owen Andersonde8aed22009-06-16 18:20:20 +000013898rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013899 conftest$ac_exeext
13900 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013901 break
13902fi
13903done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013904if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13905 :
Owen Andersonde8aed22009-06-16 18:20:20 +000013906else
13907 ac_cv_search_pthread_rwlock_init=no
13908fi
13909rm conftest.$ac_ext
13910LIBS=$ac_func_search_save_LIBS
13911fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013912{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13913echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000013914ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013915if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013916 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13917
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013918cat >>confdefs.h <<\_ACEOF
13919#define HAVE_PTHREAD_RWLOCK_INIT 1
13920_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013921
13922fi
13923
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013924 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13925echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13926if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13927 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000013928else
13929 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013930cat >conftest.$ac_ext <<_ACEOF
13931/* confdefs.h. */
13932_ACEOF
13933cat confdefs.h >>conftest.$ac_ext
13934cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013935/* end confdefs.h. */
13936
13937/* Override any GCC internal prototype to avoid an error.
13938 Use char because int might match the return type of a GCC
13939 builtin and then its argument prototype would still apply. */
13940#ifdef __cplusplus
13941extern "C"
13942#endif
13943char pthread_getspecific ();
13944int
13945main ()
13946{
13947return pthread_getspecific ();
13948 ;
13949 return 0;
13950}
13951_ACEOF
13952for ac_lib in '' pthread; do
13953 if test -z "$ac_lib"; then
13954 ac_res="none required"
13955 else
13956 ac_res=-l$ac_lib
13957 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13958 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013959 rm -f conftest.$ac_objext conftest$ac_exeext
13960if { (ac_try="$ac_link"
13961case "(($ac_try" in
13962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13963 *) ac_try_echo=$ac_try;;
13964esac
13965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13966 (eval "$ac_link") 2>conftest.er1
13967 ac_status=$?
13968 grep -v '^ *+' conftest.er1 >conftest.err
13969 rm -f conftest.er1
13970 cat conftest.err >&5
13971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972 (exit $ac_status); } &&
13973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13974 { (case "(($ac_try" in
13975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13976 *) ac_try_echo=$ac_try;;
13977esac
13978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13979 (eval "$ac_try") 2>&5
13980 ac_status=$?
13981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982 (exit $ac_status); }; } &&
13983 { ac_try='test -s conftest$ac_exeext'
13984 { (case "(($ac_try" in
13985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13986 *) ac_try_echo=$ac_try;;
13987esac
13988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13989 (eval "$ac_try") 2>&5
13990 ac_status=$?
13991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013993 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013994else
13995 echo "$as_me: failed program was:" >&5
13996sed 's/^/| /' conftest.$ac_ext >&5
13997
13998
Owen Anderson27fcfe12009-06-25 23:10:26 +000013999fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014000
Owen Anderson27fcfe12009-06-25 23:10:26 +000014001rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014002 conftest$ac_exeext
14003 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014004 break
14005fi
14006done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014007if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14008 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000014009else
14010 ac_cv_search_pthread_getspecific=no
14011fi
14012rm conftest.$ac_ext
14013LIBS=$ac_func_search_save_LIBS
14014fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014015{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14016echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000014017ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014018if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014019 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14020
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014021cat >>confdefs.h <<\_ACEOF
14022#define HAVE_PTHREAD_GETSPECIFIC 1
14023_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014024
14025fi
14026
Reid Spencer0a262ba2005-08-24 10:07:20 +000014027fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000014028
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014029
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014030# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014031if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014032 withval=$with_udis86;
14033 USE_UDIS86=1
14034
14035 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000014036 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014037 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14038 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014039
14040{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14041echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14042if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14043 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014044else
14045 ac_check_lib_save_LIBS=$LIBS
14046LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014047cat >conftest.$ac_ext <<_ACEOF
14048/* confdefs.h. */
14049_ACEOF
14050cat confdefs.h >>conftest.$ac_ext
14051cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014052/* end confdefs.h. */
14053
14054/* Override any GCC internal prototype to avoid an error.
14055 Use char because int might match the return type of a GCC
14056 builtin and then its argument prototype would still apply. */
14057#ifdef __cplusplus
14058extern "C"
14059#endif
14060char ud_init ();
14061int
14062main ()
14063{
14064return ud_init ();
14065 ;
14066 return 0;
14067}
14068_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014069rm -f conftest.$ac_objext conftest$ac_exeext
14070if { (ac_try="$ac_link"
14071case "(($ac_try" in
14072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14073 *) ac_try_echo=$ac_try;;
14074esac
14075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14076 (eval "$ac_link") 2>conftest.er1
14077 ac_status=$?
14078 grep -v '^ *+' conftest.er1 >conftest.err
14079 rm -f conftest.er1
14080 cat conftest.err >&5
14081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082 (exit $ac_status); } &&
14083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14084 { (case "(($ac_try" in
14085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14086 *) ac_try_echo=$ac_try;;
14087esac
14088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14089 (eval "$ac_try") 2>&5
14090 ac_status=$?
14091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092 (exit $ac_status); }; } &&
14093 { ac_try='test -s conftest$ac_exeext'
14094 { (case "(($ac_try" in
14095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14096 *) ac_try_echo=$ac_try;;
14097esac
14098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14099 (eval "$ac_try") 2>&5
14100 ac_status=$?
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014103 ac_cv_lib_udis86_ud_init=yes
14104else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014105 echo "$as_me: failed program was:" >&5
14106sed 's/^/| /' conftest.$ac_ext >&5
14107
14108 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014109fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014110
Bill Wendlingebcceee2009-04-18 11:20:33 +000014111rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014112 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014113LIBS=$ac_check_lib_save_LIBS
14114fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014115{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14116echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14117if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014118 cat >>confdefs.h <<_ACEOF
14119#define HAVE_LIBUDIS86 1
14120_ACEOF
14121
14122 LIBS="-ludis86 $LIBS"
14123
14124else
14125
14126 echo "Error! You need to have libudis86 around."
14127 exit -1
14128
14129fi
14130
14131
14132else
14133 USE_UDIS86=0
14134
14135fi
14136
14137
14138cat >>confdefs.h <<_ACEOF
14139#define USE_UDIS86 $USE_UDIS86
14140_ACEOF
14141
14142
14143
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014144# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014145if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014146 withval=$with_oprofile;
14147 USE_OPROFILE=1
14148
14149 case "$withval" in
14150 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014151 no) llvm_cv_oppath=
14152 USE_OPROFILE=0
14153 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014154 *) llvm_cv_oppath="${withval}/lib/oprofile"
14155 CPPFLAGS="-I${withval}/include";;
14156 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014157 if test -n "$llvm_cv_oppath" ; then
14158 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014159 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14160echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14161if test "${ac_cv_search_bfd_init+set}" = set; then
14162 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014163else
14164 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014165cat >conftest.$ac_ext <<_ACEOF
14166/* confdefs.h. */
14167_ACEOF
14168cat confdefs.h >>conftest.$ac_ext
14169cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014170/* end confdefs.h. */
14171
14172/* Override any GCC internal prototype to avoid an error.
14173 Use char because int might match the return type of a GCC
14174 builtin and then its argument prototype would still apply. */
14175#ifdef __cplusplus
14176extern "C"
14177#endif
14178char bfd_init ();
14179int
14180main ()
14181{
14182return bfd_init ();
14183 ;
14184 return 0;
14185}
14186_ACEOF
14187for ac_lib in '' bfd; do
14188 if test -z "$ac_lib"; then
14189 ac_res="none required"
14190 else
14191 ac_res=-l$ac_lib
14192 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14193 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014194 rm -f conftest.$ac_objext conftest$ac_exeext
14195if { (ac_try="$ac_link"
14196case "(($ac_try" in
14197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14198 *) ac_try_echo=$ac_try;;
14199esac
14200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14201 (eval "$ac_link") 2>conftest.er1
14202 ac_status=$?
14203 grep -v '^ *+' conftest.er1 >conftest.err
14204 rm -f conftest.er1
14205 cat conftest.err >&5
14206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207 (exit $ac_status); } &&
14208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14209 { (case "(($ac_try" in
14210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14211 *) ac_try_echo=$ac_try;;
14212esac
14213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14214 (eval "$ac_try") 2>&5
14215 ac_status=$?
14216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217 (exit $ac_status); }; } &&
14218 { ac_try='test -s conftest$ac_exeext'
14219 { (case "(($ac_try" in
14220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14221 *) ac_try_echo=$ac_try;;
14222esac
14223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14224 (eval "$ac_try") 2>&5
14225 ac_status=$?
14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014228 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014229else
14230 echo "$as_me: failed program was:" >&5
14231sed 's/^/| /' conftest.$ac_ext >&5
14232
14233
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014234fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014235
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014236rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014237 conftest$ac_exeext
14238 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014239 break
14240fi
14241done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014242if test "${ac_cv_search_bfd_init+set}" = set; then
14243 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014244else
14245 ac_cv_search_bfd_init=no
14246fi
14247rm conftest.$ac_ext
14248LIBS=$ac_func_search_save_LIBS
14249fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014250{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14251echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014252ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014253if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014254 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14255
14256fi
14257
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014258 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14259echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14260if test "${ac_cv_search_op_open_agent+set}" = set; then
14261 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014262else
14263 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014264cat >conftest.$ac_ext <<_ACEOF
14265/* confdefs.h. */
14266_ACEOF
14267cat confdefs.h >>conftest.$ac_ext
14268cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014269/* end confdefs.h. */
14270
14271/* Override any GCC internal prototype to avoid an error.
14272 Use char because int might match the return type of a GCC
14273 builtin and then its argument prototype would still apply. */
14274#ifdef __cplusplus
14275extern "C"
14276#endif
14277char op_open_agent ();
14278int
14279main ()
14280{
14281return op_open_agent ();
14282 ;
14283 return 0;
14284}
14285_ACEOF
14286for ac_lib in '' opagent; do
14287 if test -z "$ac_lib"; then
14288 ac_res="none required"
14289 else
14290 ac_res=-l$ac_lib
14291 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14292 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014293 rm -f conftest.$ac_objext conftest$ac_exeext
14294if { (ac_try="$ac_link"
14295case "(($ac_try" in
14296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14297 *) ac_try_echo=$ac_try;;
14298esac
14299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14300 (eval "$ac_link") 2>conftest.er1
14301 ac_status=$?
14302 grep -v '^ *+' conftest.er1 >conftest.err
14303 rm -f conftest.er1
14304 cat conftest.err >&5
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); } &&
14307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14308 { (case "(($ac_try" in
14309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14310 *) ac_try_echo=$ac_try;;
14311esac
14312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14313 (eval "$ac_try") 2>&5
14314 ac_status=$?
14315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316 (exit $ac_status); }; } &&
14317 { ac_try='test -s conftest$ac_exeext'
14318 { (case "(($ac_try" in
14319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14320 *) ac_try_echo=$ac_try;;
14321esac
14322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14323 (eval "$ac_try") 2>&5
14324 ac_status=$?
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014327 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014328else
14329 echo "$as_me: failed program was:" >&5
14330sed 's/^/| /' conftest.$ac_ext >&5
14331
14332
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014333fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014334
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014335rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014336 conftest$ac_exeext
14337 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014338 break
14339fi
14340done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014341if test "${ac_cv_search_op_open_agent+set}" = set; then
14342 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014343else
14344 ac_cv_search_op_open_agent=no
14345fi
14346rm conftest.$ac_ext
14347LIBS=$ac_func_search_save_LIBS
14348fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014349{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14350echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014351ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014352if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014353 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14354
14355else
14356
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014357 echo "Error! You need to have libopagent around."
14358 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014359
14360fi
14361
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014362 if test "${ac_cv_header_opagent_h+set}" = set; then
14363 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14364echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14365if test "${ac_cv_header_opagent_h+set}" = set; then
14366 echo $ECHO_N "(cached) $ECHO_C" >&6
14367fi
14368{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14369echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14370else
14371 # Is the header compilable?
14372{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
14373echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14374cat >conftest.$ac_ext <<_ACEOF
14375/* confdefs.h. */
14376_ACEOF
14377cat confdefs.h >>conftest.$ac_ext
14378cat >>conftest.$ac_ext <<_ACEOF
14379/* end confdefs.h. */
14380$ac_includes_default
14381#include <opagent.h>
14382_ACEOF
14383rm -f conftest.$ac_objext
14384if { (ac_try="$ac_compile"
14385case "(($ac_try" in
14386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14387 *) ac_try_echo=$ac_try;;
14388esac
14389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14390 (eval "$ac_compile") 2>conftest.er1
14391 ac_status=$?
14392 grep -v '^ *+' conftest.er1 >conftest.err
14393 rm -f conftest.er1
14394 cat conftest.err >&5
14395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396 (exit $ac_status); } &&
14397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14398 { (case "(($ac_try" in
14399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14400 *) ac_try_echo=$ac_try;;
14401esac
14402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14403 (eval "$ac_try") 2>&5
14404 ac_status=$?
14405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406 (exit $ac_status); }; } &&
14407 { ac_try='test -s conftest.$ac_objext'
14408 { (case "(($ac_try" in
14409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14410 *) ac_try_echo=$ac_try;;
14411esac
14412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14413 (eval "$ac_try") 2>&5
14414 ac_status=$?
14415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416 (exit $ac_status); }; }; then
14417 ac_header_compiler=yes
14418else
14419 echo "$as_me: failed program was:" >&5
14420sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014421
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014422 ac_header_compiler=no
14423fi
14424
14425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14426{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14427echo "${ECHO_T}$ac_header_compiler" >&6; }
14428
14429# Is the header present?
14430{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
14431echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14432cat >conftest.$ac_ext <<_ACEOF
14433/* confdefs.h. */
14434_ACEOF
14435cat confdefs.h >>conftest.$ac_ext
14436cat >>conftest.$ac_ext <<_ACEOF
14437/* end confdefs.h. */
14438#include <opagent.h>
14439_ACEOF
14440if { (ac_try="$ac_cpp conftest.$ac_ext"
14441case "(($ac_try" in
14442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14443 *) ac_try_echo=$ac_try;;
14444esac
14445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14446 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14447 ac_status=$?
14448 grep -v '^ *+' conftest.er1 >conftest.err
14449 rm -f conftest.er1
14450 cat conftest.err >&5
14451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14452 (exit $ac_status); } >/dev/null; then
14453 if test -s conftest.err; then
14454 ac_cpp_err=$ac_c_preproc_warn_flag
14455 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14456 else
14457 ac_cpp_err=
14458 fi
14459else
14460 ac_cpp_err=yes
14461fi
14462if test -z "$ac_cpp_err"; then
14463 ac_header_preproc=yes
14464else
14465 echo "$as_me: failed program was:" >&5
14466sed 's/^/| /' conftest.$ac_ext >&5
14467
14468 ac_header_preproc=no
14469fi
14470
14471rm -f conftest.err conftest.$ac_ext
14472{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14473echo "${ECHO_T}$ac_header_preproc" >&6; }
14474
14475# So? What about this header?
14476case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14477 yes:no: )
14478 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14479echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14480 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14481echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14482 ac_header_preproc=yes
14483 ;;
14484 no:yes:* )
14485 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14486echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14487 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14488echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14489 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14490echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14491 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14492echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14493 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14494echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14495 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14496echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14497 ( cat <<\_ASBOX
14498## ----------------------------------- ##
14499## Report this to llvmbugs@cs.uiuc.edu ##
14500## ----------------------------------- ##
14501_ASBOX
14502 ) | sed "s/^/$as_me: WARNING: /" >&2
14503 ;;
14504esac
14505{ echo "$as_me:$LINENO: checking for opagent.h" >&5
14506echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14507if test "${ac_cv_header_opagent_h+set}" = set; then
14508 echo $ECHO_N "(cached) $ECHO_C" >&6
14509else
14510 ac_cv_header_opagent_h=$ac_header_preproc
14511fi
14512{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14513echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14514
14515fi
14516if test $ac_cv_header_opagent_h = yes; then
14517 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014518else
14519
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014520 echo "Error! You need to have opagent.h around."
14521 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014522
14523fi
14524
14525
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014526 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014527
14528else
14529
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014530 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014531
14532
14533fi
14534
14535
14536cat >>confdefs.h <<_ACEOF
14537#define USE_OPROFILE $USE_OPROFILE
14538_ACEOF
14539
14540
14541
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014542
14543
14544
14545
14546
Reid Spencer59473af2004-12-25 07:31:29 +000014547ac_header_dirent=no
14548for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014549 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14550{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14551echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14552if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14553 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014554else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014555 cat >conftest.$ac_ext <<_ACEOF
14556/* confdefs.h. */
14557_ACEOF
14558cat confdefs.h >>conftest.$ac_ext
14559cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014560/* end confdefs.h. */
14561#include <sys/types.h>
14562#include <$ac_hdr>
14563
14564int
14565main ()
14566{
14567if ((DIR *) 0)
14568return 0;
14569 ;
14570 return 0;
14571}
14572_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014573rm -f conftest.$ac_objext
14574if { (ac_try="$ac_compile"
14575case "(($ac_try" in
14576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14577 *) ac_try_echo=$ac_try;;
14578esac
14579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14580 (eval "$ac_compile") 2>conftest.er1
14581 ac_status=$?
14582 grep -v '^ *+' conftest.er1 >conftest.err
14583 rm -f conftest.er1
14584 cat conftest.err >&5
14585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586 (exit $ac_status); } &&
14587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14588 { (case "(($ac_try" in
14589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14590 *) ac_try_echo=$ac_try;;
14591esac
14592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14593 (eval "$ac_try") 2>&5
14594 ac_status=$?
14595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596 (exit $ac_status); }; } &&
14597 { ac_try='test -s conftest.$ac_objext'
14598 { (case "(($ac_try" in
14599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14600 *) ac_try_echo=$ac_try;;
14601esac
14602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14603 (eval "$ac_try") 2>&5
14604 ac_status=$?
14605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014607 eval "$as_ac_Header=yes"
14608else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014609 echo "$as_me: failed program was:" >&5
14610sed 's/^/| /' conftest.$ac_ext >&5
14611
14612 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000014613fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014614
Reid Spencera773bd52006-08-04 18:18:08 +000014615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014616fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014617ac_res=`eval echo '${'$as_ac_Header'}'`
14618 { echo "$as_me:$LINENO: result: $ac_res" >&5
14619echo "${ECHO_T}$ac_res" >&6; }
14620if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014621 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014622#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014623_ACEOF
14624
14625ac_header_dirent=$ac_hdr; break
14626fi
14627
14628done
14629# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14630if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014631 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14632echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14633if test "${ac_cv_search_opendir+set}" = set; then
14634 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014635else
14636 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014637cat >conftest.$ac_ext <<_ACEOF
14638/* confdefs.h. */
14639_ACEOF
14640cat confdefs.h >>conftest.$ac_ext
14641cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014642/* end confdefs.h. */
14643
Reid Spencera773bd52006-08-04 18:18:08 +000014644/* Override any GCC internal prototype to avoid an error.
14645 Use char because int might match the return type of a GCC
14646 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014647#ifdef __cplusplus
14648extern "C"
14649#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014650char opendir ();
14651int
14652main ()
14653{
Reid Spencera773bd52006-08-04 18:18:08 +000014654return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014655 ;
14656 return 0;
14657}
14658_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014659for ac_lib in '' dir; do
14660 if test -z "$ac_lib"; then
14661 ac_res="none required"
14662 else
14663 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014664 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014665 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014666 rm -f conftest.$ac_objext conftest$ac_exeext
14667if { (ac_try="$ac_link"
14668case "(($ac_try" in
14669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14670 *) ac_try_echo=$ac_try;;
14671esac
14672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14673 (eval "$ac_link") 2>conftest.er1
14674 ac_status=$?
14675 grep -v '^ *+' conftest.er1 >conftest.err
14676 rm -f conftest.er1
14677 cat conftest.err >&5
14678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679 (exit $ac_status); } &&
14680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14681 { (case "(($ac_try" in
14682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14683 *) ac_try_echo=$ac_try;;
14684esac
14685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14686 (eval "$ac_try") 2>&5
14687 ac_status=$?
14688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14689 (exit $ac_status); }; } &&
14690 { ac_try='test -s conftest$ac_exeext'
14691 { (case "(($ac_try" in
14692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14693 *) ac_try_echo=$ac_try;;
14694esac
14695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14696 (eval "$ac_try") 2>&5
14697 ac_status=$?
14698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014700 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014701else
14702 echo "$as_me: failed program was:" >&5
14703sed 's/^/| /' conftest.$ac_ext >&5
14704
14705
Reid Spencer59473af2004-12-25 07:31:29 +000014706fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014707
Bill Wendlingebcceee2009-04-18 11:20:33 +000014708rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014709 conftest$ac_exeext
14710 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014711 break
Reid Spencer59473af2004-12-25 07:31:29 +000014712fi
Reid Spencera773bd52006-08-04 18:18:08 +000014713done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014714if test "${ac_cv_search_opendir+set}" = set; then
14715 :
Reid Spencera773bd52006-08-04 18:18:08 +000014716else
14717 ac_cv_search_opendir=no
14718fi
14719rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014720LIBS=$ac_func_search_save_LIBS
14721fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014722{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14723echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014724ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014725if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014726 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014727
14728fi
14729
14730else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014731 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14732echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14733if test "${ac_cv_search_opendir+set}" = set; then
14734 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014735else
14736 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014737cat >conftest.$ac_ext <<_ACEOF
14738/* confdefs.h. */
14739_ACEOF
14740cat confdefs.h >>conftest.$ac_ext
14741cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014742/* end confdefs.h. */
14743
Reid Spencera773bd52006-08-04 18:18:08 +000014744/* Override any GCC internal prototype to avoid an error.
14745 Use char because int might match the return type of a GCC
14746 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014747#ifdef __cplusplus
14748extern "C"
14749#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014750char opendir ();
14751int
14752main ()
14753{
Reid Spencera773bd52006-08-04 18:18:08 +000014754return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014755 ;
14756 return 0;
14757}
14758_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014759for ac_lib in '' x; do
14760 if test -z "$ac_lib"; then
14761 ac_res="none required"
14762 else
14763 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014764 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014765 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014766 rm -f conftest.$ac_objext conftest$ac_exeext
14767if { (ac_try="$ac_link"
14768case "(($ac_try" in
14769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14770 *) ac_try_echo=$ac_try;;
14771esac
14772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14773 (eval "$ac_link") 2>conftest.er1
14774 ac_status=$?
14775 grep -v '^ *+' conftest.er1 >conftest.err
14776 rm -f conftest.er1
14777 cat conftest.err >&5
14778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779 (exit $ac_status); } &&
14780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14781 { (case "(($ac_try" in
14782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14783 *) ac_try_echo=$ac_try;;
14784esac
14785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14786 (eval "$ac_try") 2>&5
14787 ac_status=$?
14788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14789 (exit $ac_status); }; } &&
14790 { ac_try='test -s conftest$ac_exeext'
14791 { (case "(($ac_try" in
14792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14793 *) ac_try_echo=$ac_try;;
14794esac
14795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14796 (eval "$ac_try") 2>&5
14797 ac_status=$?
14798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14799 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014800 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014801else
14802 echo "$as_me: failed program was:" >&5
14803sed 's/^/| /' conftest.$ac_ext >&5
14804
14805
Reid Spencer59473af2004-12-25 07:31:29 +000014806fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014807
Bill Wendlingebcceee2009-04-18 11:20:33 +000014808rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014809 conftest$ac_exeext
14810 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014811 break
Reid Spencer59473af2004-12-25 07:31:29 +000014812fi
Reid Spencera773bd52006-08-04 18:18:08 +000014813done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014814if test "${ac_cv_search_opendir+set}" = set; then
14815 :
Reid Spencera773bd52006-08-04 18:18:08 +000014816else
14817 ac_cv_search_opendir=no
14818fi
14819rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014820LIBS=$ac_func_search_save_LIBS
14821fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014822{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14823echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014824ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014825if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014826 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014827
14828fi
14829
14830fi
14831
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014832{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14833echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14834if test "${ac_cv_header_mmap_anon+set}" = set; then
14835 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014836else
14837 ac_ext=c
14838ac_cpp='$CPP $CPPFLAGS'
14839ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14840ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14841ac_compiler_gnu=$ac_cv_c_compiler_gnu
14842
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014843 cat >conftest.$ac_ext <<_ACEOF
14844/* confdefs.h. */
14845_ACEOF
14846cat confdefs.h >>conftest.$ac_ext
14847cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014848/* end confdefs.h. */
14849#include <sys/mman.h>
14850#include <unistd.h>
14851#include <fcntl.h>
14852int
14853main ()
14854{
14855mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14856 ;
14857 return 0;
14858}
14859_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014860rm -f conftest.$ac_objext
14861if { (ac_try="$ac_compile"
14862case "(($ac_try" in
14863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14864 *) ac_try_echo=$ac_try;;
14865esac
14866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14867 (eval "$ac_compile") 2>conftest.er1
14868 ac_status=$?
14869 grep -v '^ *+' conftest.er1 >conftest.err
14870 rm -f conftest.er1
14871 cat conftest.err >&5
14872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873 (exit $ac_status); } &&
14874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14875 { (case "(($ac_try" in
14876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14877 *) ac_try_echo=$ac_try;;
14878esac
14879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14880 (eval "$ac_try") 2>&5
14881 ac_status=$?
14882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883 (exit $ac_status); }; } &&
14884 { ac_try='test -s conftest.$ac_objext'
14885 { (case "(($ac_try" in
14886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14887 *) ac_try_echo=$ac_try;;
14888esac
14889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14890 (eval "$ac_try") 2>&5
14891 ac_status=$?
14892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014894 ac_cv_header_mmap_anon=yes
14895else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014896 echo "$as_me: failed program was:" >&5
14897sed 's/^/| /' conftest.$ac_ext >&5
14898
14899 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000014900fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014901
Reid Spencera773bd52006-08-04 18:18:08 +000014902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014903 ac_ext=c
14904ac_cpp='$CPP $CPPFLAGS'
14905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14907ac_compiler_gnu=$ac_cv_c_compiler_gnu
14908
14909
14910fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014911{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14912echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014913if test "$ac_cv_header_mmap_anon" = yes; then
14914
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014915cat >>confdefs.h <<\_ACEOF
14916#define HAVE_MMAP_ANONYMOUS 1
14917_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014918
14919fi
14920
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014921{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14922echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14923if test "${ac_cv_header_stat_broken+set}" = set; then
14924 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014925else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014926 cat >conftest.$ac_ext <<_ACEOF
14927/* confdefs.h. */
14928_ACEOF
14929cat confdefs.h >>conftest.$ac_ext
14930cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014931/* end confdefs.h. */
14932#include <sys/types.h>
14933#include <sys/stat.h>
14934
Reid Spencera773bd52006-08-04 18:18:08 +000014935#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014936# if S_ISBLK (S_IFDIR)
14937You lose.
14938# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014939#endif
14940
Reid Spencera773bd52006-08-04 18:18:08 +000014941#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014942# if S_ISBLK (S_IFCHR)
14943You lose.
14944# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014945#endif
14946
Reid Spencera773bd52006-08-04 18:18:08 +000014947#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014948# if S_ISLNK (S_IFREG)
14949You lose.
14950# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014951#endif
14952
Reid Spencera773bd52006-08-04 18:18:08 +000014953#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014954# if S_ISSOCK (S_IFREG)
14955You lose.
14956# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014957#endif
14958
14959_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014960if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14961 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000014962 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014963else
14964 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000014965fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014966rm -f conftest*
14967
Reid Spencer59473af2004-12-25 07:31:29 +000014968fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014969{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14970echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014971if test $ac_cv_header_stat_broken = yes; then
14972
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014973cat >>confdefs.h <<\_ACEOF
14974#define STAT_MACROS_BROKEN 1
14975_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014976
14977fi
14978
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014979{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14980echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14981if test "${ac_cv_header_stdc+set}" = set; then
14982 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014983else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014984 cat >conftest.$ac_ext <<_ACEOF
14985/* confdefs.h. */
14986_ACEOF
14987cat confdefs.h >>conftest.$ac_ext
14988cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014989/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014990#include <stdlib.h>
14991#include <stdarg.h>
14992#include <string.h>
14993#include <float.h>
14994
John Criswell0c38eaf2003-09-10 15:17:25 +000014995int
14996main ()
14997{
14998
14999 ;
15000 return 0;
15001}
John Criswell7a73b802003-06-30 21:59:07 +000015002_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015003rm -f conftest.$ac_objext
15004if { (ac_try="$ac_compile"
15005case "(($ac_try" in
15006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15007 *) ac_try_echo=$ac_try;;
15008esac
15009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15010 (eval "$ac_compile") 2>conftest.er1
15011 ac_status=$?
15012 grep -v '^ *+' conftest.er1 >conftest.err
15013 rm -f conftest.er1
15014 cat conftest.err >&5
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); } &&
15017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15018 { (case "(($ac_try" in
15019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15020 *) ac_try_echo=$ac_try;;
15021esac
15022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15023 (eval "$ac_try") 2>&5
15024 ac_status=$?
15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026 (exit $ac_status); }; } &&
15027 { ac_try='test -s conftest.$ac_objext'
15028 { (case "(($ac_try" in
15029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15030 *) ac_try_echo=$ac_try;;
15031esac
15032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15033 (eval "$ac_try") 2>&5
15034 ac_status=$?
15035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015037 ac_cv_header_stdc=yes
15038else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015039 echo "$as_me: failed program was:" >&5
15040sed 's/^/| /' conftest.$ac_ext >&5
15041
15042 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015043fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015044
Reid Spencera773bd52006-08-04 18:18:08 +000015045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015046
15047if test $ac_cv_header_stdc = yes; then
15048 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015049 cat >conftest.$ac_ext <<_ACEOF
15050/* confdefs.h. */
15051_ACEOF
15052cat confdefs.h >>conftest.$ac_ext
15053cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015054/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015055#include <string.h>
15056
15057_ACEOF
15058if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015059 $EGREP "memchr" >/dev/null 2>&1; then
15060 :
John Criswell7a73b802003-06-30 21:59:07 +000015061else
15062 ac_cv_header_stdc=no
15063fi
15064rm -f conftest*
15065
15066fi
15067
15068if test $ac_cv_header_stdc = yes; then
15069 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015070 cat >conftest.$ac_ext <<_ACEOF
15071/* confdefs.h. */
15072_ACEOF
15073cat confdefs.h >>conftest.$ac_ext
15074cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015075/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015076#include <stdlib.h>
15077
15078_ACEOF
15079if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015080 $EGREP "free" >/dev/null 2>&1; then
15081 :
John Criswell7a73b802003-06-30 21:59:07 +000015082else
15083 ac_cv_header_stdc=no
15084fi
15085rm -f conftest*
15086
15087fi
15088
15089if test $ac_cv_header_stdc = yes; then
15090 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015091 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000015092 :
15093else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015094 cat >conftest.$ac_ext <<_ACEOF
15095/* confdefs.h. */
15096_ACEOF
15097cat confdefs.h >>conftest.$ac_ext
15098cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015099/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015100#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000015101#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000015102#if ((' ' & 0x0FF) == 0x020)
15103# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15104# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15105#else
John Criswell0c38eaf2003-09-10 15:17:25 +000015106# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015107 (('a' <= (c) && (c) <= 'i') \
15108 || ('j' <= (c) && (c) <= 'r') \
15109 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000015110# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15111#endif
15112
15113#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15114int
15115main ()
15116{
15117 int i;
15118 for (i = 0; i < 256; i++)
15119 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000015120 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000015121 return 2;
15122 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000015123}
15124_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015125rm -f conftest$ac_exeext
15126if { (ac_try="$ac_link"
15127case "(($ac_try" in
15128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15129 *) ac_try_echo=$ac_try;;
15130esac
15131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15132 (eval "$ac_link") 2>&5
15133 ac_status=$?
15134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15136 { (case "(($ac_try" in
15137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15138 *) ac_try_echo=$ac_try;;
15139esac
15140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15141 (eval "$ac_try") 2>&5
15142 ac_status=$?
15143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144 (exit $ac_status); }; }; then
15145 :
John Criswell7a73b802003-06-30 21:59:07 +000015146else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015147 echo "$as_me: program exited with status $ac_status" >&5
15148echo "$as_me: failed program was:" >&5
15149sed 's/^/| /' conftest.$ac_ext >&5
15150
15151( exit $ac_status )
15152ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015153fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015154rm -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 +000015155fi
15156
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015157
John Criswell7a73b802003-06-30 21:59:07 +000015158fi
15159fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015160{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15161echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015162if test $ac_cv_header_stdc = yes; then
15163
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015164cat >>confdefs.h <<\_ACEOF
15165#define STDC_HEADERS 1
15166_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015167
15168fi
15169
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015170{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15171echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15172if test "${ac_cv_header_sys_wait_h+set}" = set; then
15173 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015174else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015175 cat >conftest.$ac_ext <<_ACEOF
15176/* confdefs.h. */
15177_ACEOF
15178cat confdefs.h >>conftest.$ac_ext
15179cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015180/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015181#include <sys/types.h>
15182#include <sys/wait.h>
15183#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000015184# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000015185#endif
15186#ifndef WIFEXITED
15187# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15188#endif
15189
John Criswell7a73b802003-06-30 21:59:07 +000015190int
15191main ()
15192{
15193 int s;
15194 wait (&s);
15195 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15196 ;
15197 return 0;
15198}
15199_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015200rm -f conftest.$ac_objext
15201if { (ac_try="$ac_compile"
15202case "(($ac_try" in
15203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15204 *) ac_try_echo=$ac_try;;
15205esac
15206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15207 (eval "$ac_compile") 2>conftest.er1
15208 ac_status=$?
15209 grep -v '^ *+' conftest.er1 >conftest.err
15210 rm -f conftest.er1
15211 cat conftest.err >&5
15212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213 (exit $ac_status); } &&
15214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15215 { (case "(($ac_try" in
15216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15217 *) ac_try_echo=$ac_try;;
15218esac
15219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15220 (eval "$ac_try") 2>&5
15221 ac_status=$?
15222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223 (exit $ac_status); }; } &&
15224 { ac_try='test -s conftest.$ac_objext'
15225 { (case "(($ac_try" in
15226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15227 *) ac_try_echo=$ac_try;;
15228esac
15229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15230 (eval "$ac_try") 2>&5
15231 ac_status=$?
15232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015234 ac_cv_header_sys_wait_h=yes
15235else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015236 echo "$as_me: failed program was:" >&5
15237sed 's/^/| /' conftest.$ac_ext >&5
15238
15239 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000015240fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015241
Reid Spencera773bd52006-08-04 18:18:08 +000015242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015243fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015244{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15245echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015246if test $ac_cv_header_sys_wait_h = yes; then
15247
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015248cat >>confdefs.h <<\_ACEOF
15249#define HAVE_SYS_WAIT_H 1
15250_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015251
15252fi
15253
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015254{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15255echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15256if test "${ac_cv_header_time+set}" = set; then
15257 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015258else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015259 cat >conftest.$ac_ext <<_ACEOF
15260/* confdefs.h. */
15261_ACEOF
15262cat confdefs.h >>conftest.$ac_ext
15263cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015264/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015265#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015266#include <sys/time.h>
15267#include <time.h>
15268
15269int
15270main ()
15271{
15272if ((struct tm *) 0)
15273return 0;
15274 ;
15275 return 0;
15276}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015277_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015278rm -f conftest.$ac_objext
15279if { (ac_try="$ac_compile"
15280case "(($ac_try" in
15281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15282 *) ac_try_echo=$ac_try;;
15283esac
15284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15285 (eval "$ac_compile") 2>conftest.er1
15286 ac_status=$?
15287 grep -v '^ *+' conftest.er1 >conftest.err
15288 rm -f conftest.er1
15289 cat conftest.err >&5
15290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15291 (exit $ac_status); } &&
15292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15293 { (case "(($ac_try" in
15294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15295 *) ac_try_echo=$ac_try;;
15296esac
15297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15298 (eval "$ac_try") 2>&5
15299 ac_status=$?
15300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301 (exit $ac_status); }; } &&
15302 { ac_try='test -s conftest.$ac_objext'
15303 { (case "(($ac_try" in
15304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15305 *) ac_try_echo=$ac_try;;
15306esac
15307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15308 (eval "$ac_try") 2>&5
15309 ac_status=$?
15310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015312 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015313else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015314 echo "$as_me: failed program was:" >&5
15315sed 's/^/| /' conftest.$ac_ext >&5
15316
15317 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015318fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015319
Reid Spencera773bd52006-08-04 18:18:08 +000015320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015321fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015322{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15323echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015324if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015325
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015326cat >>confdefs.h <<\_ACEOF
15327#define TIME_WITH_SYS_TIME 1
15328_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015329
15330fi
15331
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015332
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015333
15334
15335
15336
15337
15338
Reid Spencer59473af2004-12-25 07:31:29 +000015339for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015340do
15341as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15342if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15343 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15344echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15345if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15346 echo $ECHO_N "(cached) $ECHO_C" >&6
15347fi
15348ac_res=`eval echo '${'$as_ac_Header'}'`
15349 { echo "$as_me:$LINENO: result: $ac_res" >&5
15350echo "${ECHO_T}$ac_res" >&6; }
15351else
15352 # Is the header compilable?
15353{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15354echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15355cat >conftest.$ac_ext <<_ACEOF
15356/* confdefs.h. */
15357_ACEOF
15358cat confdefs.h >>conftest.$ac_ext
15359cat >>conftest.$ac_ext <<_ACEOF
15360/* end confdefs.h. */
15361$ac_includes_default
15362#include <$ac_header>
15363_ACEOF
15364rm -f conftest.$ac_objext
15365if { (ac_try="$ac_compile"
15366case "(($ac_try" in
15367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15368 *) ac_try_echo=$ac_try;;
15369esac
15370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15371 (eval "$ac_compile") 2>conftest.er1
15372 ac_status=$?
15373 grep -v '^ *+' conftest.er1 >conftest.err
15374 rm -f conftest.er1
15375 cat conftest.err >&5
15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); } &&
15378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15379 { (case "(($ac_try" in
15380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15381 *) ac_try_echo=$ac_try;;
15382esac
15383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15384 (eval "$ac_try") 2>&5
15385 ac_status=$?
15386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387 (exit $ac_status); }; } &&
15388 { ac_try='test -s conftest.$ac_objext'
15389 { (case "(($ac_try" in
15390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15391 *) ac_try_echo=$ac_try;;
15392esac
15393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15394 (eval "$ac_try") 2>&5
15395 ac_status=$?
15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); }; }; then
15398 ac_header_compiler=yes
15399else
15400 echo "$as_me: failed program was:" >&5
15401sed 's/^/| /' conftest.$ac_ext >&5
15402
15403 ac_header_compiler=no
15404fi
15405
15406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15407{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15408echo "${ECHO_T}$ac_header_compiler" >&6; }
15409
15410# Is the header present?
15411{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15412echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15413cat >conftest.$ac_ext <<_ACEOF
15414/* confdefs.h. */
15415_ACEOF
15416cat confdefs.h >>conftest.$ac_ext
15417cat >>conftest.$ac_ext <<_ACEOF
15418/* end confdefs.h. */
15419#include <$ac_header>
15420_ACEOF
15421if { (ac_try="$ac_cpp conftest.$ac_ext"
15422case "(($ac_try" in
15423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15424 *) ac_try_echo=$ac_try;;
15425esac
15426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15427 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15428 ac_status=$?
15429 grep -v '^ *+' conftest.er1 >conftest.err
15430 rm -f conftest.er1
15431 cat conftest.err >&5
15432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433 (exit $ac_status); } >/dev/null; then
15434 if test -s conftest.err; then
15435 ac_cpp_err=$ac_c_preproc_warn_flag
15436 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15437 else
15438 ac_cpp_err=
15439 fi
15440else
15441 ac_cpp_err=yes
15442fi
15443if test -z "$ac_cpp_err"; then
15444 ac_header_preproc=yes
15445else
15446 echo "$as_me: failed program was:" >&5
15447sed 's/^/| /' conftest.$ac_ext >&5
15448
15449 ac_header_preproc=no
15450fi
15451
15452rm -f conftest.err conftest.$ac_ext
15453{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15454echo "${ECHO_T}$ac_header_preproc" >&6; }
15455
15456# So? What about this header?
15457case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15458 yes:no: )
15459 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15460echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15462echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15463 ac_header_preproc=yes
15464 ;;
15465 no:yes:* )
15466 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15467echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15468 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15469echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15470 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15471echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15472 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15473echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15475echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15476 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15477echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15478 ( cat <<\_ASBOX
15479## ----------------------------------- ##
15480## Report this to llvmbugs@cs.uiuc.edu ##
15481## ----------------------------------- ##
15482_ASBOX
15483 ) | sed "s/^/$as_me: WARNING: /" >&2
15484 ;;
15485esac
15486{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15487echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15488if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15489 echo $ECHO_N "(cached) $ECHO_C" >&6
15490else
15491 eval "$as_ac_Header=\$ac_header_preproc"
15492fi
15493ac_res=`eval echo '${'$as_ac_Header'}'`
15494 { echo "$as_me:$LINENO: result: $ac_res" >&5
15495echo "${ECHO_T}$ac_res" >&6; }
15496
15497fi
15498if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015499 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015500#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015501_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015502
15503fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015504
Reid Spencer59473af2004-12-25 07:31:29 +000015505done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015506
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015507
15508
15509
15510
15511
15512
Douglas Gregor071d73d2009-05-18 17:21:34 +000015513for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015514do
15515as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15516if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15517 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15518echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15519if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15520 echo $ECHO_N "(cached) $ECHO_C" >&6
15521fi
15522ac_res=`eval echo '${'$as_ac_Header'}'`
15523 { echo "$as_me:$LINENO: result: $ac_res" >&5
15524echo "${ECHO_T}$ac_res" >&6; }
15525else
15526 # Is the header compilable?
15527{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15528echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15529cat >conftest.$ac_ext <<_ACEOF
15530/* confdefs.h. */
15531_ACEOF
15532cat confdefs.h >>conftest.$ac_ext
15533cat >>conftest.$ac_ext <<_ACEOF
15534/* end confdefs.h. */
15535$ac_includes_default
15536#include <$ac_header>
15537_ACEOF
15538rm -f conftest.$ac_objext
15539if { (ac_try="$ac_compile"
15540case "(($ac_try" in
15541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15542 *) ac_try_echo=$ac_try;;
15543esac
15544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15545 (eval "$ac_compile") 2>conftest.er1
15546 ac_status=$?
15547 grep -v '^ *+' conftest.er1 >conftest.err
15548 rm -f conftest.er1
15549 cat conftest.err >&5
15550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15551 (exit $ac_status); } &&
15552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15553 { (case "(($ac_try" in
15554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15555 *) ac_try_echo=$ac_try;;
15556esac
15557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15558 (eval "$ac_try") 2>&5
15559 ac_status=$?
15560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561 (exit $ac_status); }; } &&
15562 { ac_try='test -s conftest.$ac_objext'
15563 { (case "(($ac_try" in
15564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15565 *) ac_try_echo=$ac_try;;
15566esac
15567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15568 (eval "$ac_try") 2>&5
15569 ac_status=$?
15570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15571 (exit $ac_status); }; }; then
15572 ac_header_compiler=yes
15573else
15574 echo "$as_me: failed program was:" >&5
15575sed 's/^/| /' conftest.$ac_ext >&5
15576
15577 ac_header_compiler=no
15578fi
15579
15580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15581{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15582echo "${ECHO_T}$ac_header_compiler" >&6; }
15583
15584# Is the header present?
15585{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15586echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15587cat >conftest.$ac_ext <<_ACEOF
15588/* confdefs.h. */
15589_ACEOF
15590cat confdefs.h >>conftest.$ac_ext
15591cat >>conftest.$ac_ext <<_ACEOF
15592/* end confdefs.h. */
15593#include <$ac_header>
15594_ACEOF
15595if { (ac_try="$ac_cpp conftest.$ac_ext"
15596case "(($ac_try" in
15597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15598 *) ac_try_echo=$ac_try;;
15599esac
15600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15602 ac_status=$?
15603 grep -v '^ *+' conftest.er1 >conftest.err
15604 rm -f conftest.er1
15605 cat conftest.err >&5
15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); } >/dev/null; then
15608 if test -s conftest.err; then
15609 ac_cpp_err=$ac_c_preproc_warn_flag
15610 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15611 else
15612 ac_cpp_err=
15613 fi
15614else
15615 ac_cpp_err=yes
15616fi
15617if test -z "$ac_cpp_err"; then
15618 ac_header_preproc=yes
15619else
15620 echo "$as_me: failed program was:" >&5
15621sed 's/^/| /' conftest.$ac_ext >&5
15622
15623 ac_header_preproc=no
15624fi
15625
15626rm -f conftest.err conftest.$ac_ext
15627{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15628echo "${ECHO_T}$ac_header_preproc" >&6; }
15629
15630# So? What about this header?
15631case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15632 yes:no: )
15633 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15634echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15636echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15637 ac_header_preproc=yes
15638 ;;
15639 no:yes:* )
15640 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15641echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15642 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15643echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15644 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15645echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15646 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15647echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15649echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15650 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15651echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15652 ( cat <<\_ASBOX
15653## ----------------------------------- ##
15654## Report this to llvmbugs@cs.uiuc.edu ##
15655## ----------------------------------- ##
15656_ASBOX
15657 ) | sed "s/^/$as_me: WARNING: /" >&2
15658 ;;
15659esac
15660{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15661echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15662if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15663 echo $ECHO_N "(cached) $ECHO_C" >&6
15664else
15665 eval "$as_ac_Header=\$ac_header_preproc"
15666fi
15667ac_res=`eval echo '${'$as_ac_Header'}'`
15668 { echo "$as_me:$LINENO: result: $ac_res" >&5
15669echo "${ECHO_T}$ac_res" >&6; }
15670
15671fi
15672if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015673 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015674#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000015675_ACEOF
15676
15677fi
15678
15679done
15680
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015681
15682
Douglas Gregor071d73d2009-05-18 17:21:34 +000015683for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015684do
15685as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15686if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15687 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15688echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15689if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15690 echo $ECHO_N "(cached) $ECHO_C" >&6
15691fi
15692ac_res=`eval echo '${'$as_ac_Header'}'`
15693 { echo "$as_me:$LINENO: result: $ac_res" >&5
15694echo "${ECHO_T}$ac_res" >&6; }
15695else
15696 # Is the header compilable?
15697{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15698echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15699cat >conftest.$ac_ext <<_ACEOF
15700/* confdefs.h. */
15701_ACEOF
15702cat confdefs.h >>conftest.$ac_ext
15703cat >>conftest.$ac_ext <<_ACEOF
15704/* end confdefs.h. */
15705$ac_includes_default
15706#include <$ac_header>
15707_ACEOF
15708rm -f conftest.$ac_objext
15709if { (ac_try="$ac_compile"
15710case "(($ac_try" in
15711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15712 *) ac_try_echo=$ac_try;;
15713esac
15714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15715 (eval "$ac_compile") 2>conftest.er1
15716 ac_status=$?
15717 grep -v '^ *+' conftest.er1 >conftest.err
15718 rm -f conftest.er1
15719 cat conftest.err >&5
15720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721 (exit $ac_status); } &&
15722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15723 { (case "(($ac_try" in
15724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15725 *) ac_try_echo=$ac_try;;
15726esac
15727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15728 (eval "$ac_try") 2>&5
15729 ac_status=$?
15730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731 (exit $ac_status); }; } &&
15732 { ac_try='test -s conftest.$ac_objext'
15733 { (case "(($ac_try" in
15734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15735 *) ac_try_echo=$ac_try;;
15736esac
15737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15738 (eval "$ac_try") 2>&5
15739 ac_status=$?
15740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741 (exit $ac_status); }; }; then
15742 ac_header_compiler=yes
15743else
15744 echo "$as_me: failed program was:" >&5
15745sed 's/^/| /' conftest.$ac_ext >&5
15746
15747 ac_header_compiler=no
15748fi
15749
15750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15751{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15752echo "${ECHO_T}$ac_header_compiler" >&6; }
15753
15754# Is the header present?
15755{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15756echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15757cat >conftest.$ac_ext <<_ACEOF
15758/* confdefs.h. */
15759_ACEOF
15760cat confdefs.h >>conftest.$ac_ext
15761cat >>conftest.$ac_ext <<_ACEOF
15762/* end confdefs.h. */
15763#include <$ac_header>
15764_ACEOF
15765if { (ac_try="$ac_cpp conftest.$ac_ext"
15766case "(($ac_try" in
15767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15768 *) ac_try_echo=$ac_try;;
15769esac
15770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15772 ac_status=$?
15773 grep -v '^ *+' conftest.er1 >conftest.err
15774 rm -f conftest.er1
15775 cat conftest.err >&5
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); } >/dev/null; then
15778 if test -s conftest.err; then
15779 ac_cpp_err=$ac_c_preproc_warn_flag
15780 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15781 else
15782 ac_cpp_err=
15783 fi
15784else
15785 ac_cpp_err=yes
15786fi
15787if test -z "$ac_cpp_err"; then
15788 ac_header_preproc=yes
15789else
15790 echo "$as_me: failed program was:" >&5
15791sed 's/^/| /' conftest.$ac_ext >&5
15792
15793 ac_header_preproc=no
15794fi
15795
15796rm -f conftest.err conftest.$ac_ext
15797{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15798echo "${ECHO_T}$ac_header_preproc" >&6; }
15799
15800# So? What about this header?
15801case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15802 yes:no: )
15803 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15804echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15806echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15807 ac_header_preproc=yes
15808 ;;
15809 no:yes:* )
15810 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15811echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15812 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15813echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15814 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15815echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15816 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15817echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15819echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15820 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15821echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15822 ( cat <<\_ASBOX
15823## ----------------------------------- ##
15824## Report this to llvmbugs@cs.uiuc.edu ##
15825## ----------------------------------- ##
15826_ASBOX
15827 ) | sed "s/^/$as_me: WARNING: /" >&2
15828 ;;
15829esac
15830{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15831echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15832if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15833 echo $ECHO_N "(cached) $ECHO_C" >&6
15834else
15835 eval "$as_ac_Header=\$ac_header_preproc"
15836fi
15837ac_res=`eval echo '${'$as_ac_Header'}'`
15838 { echo "$as_me:$LINENO: result: $ac_res" >&5
15839echo "${ECHO_T}$ac_res" >&6; }
15840
15841fi
15842if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015843 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015844#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015845_ACEOF
15846
15847fi
15848
15849done
Reid Spencer59473af2004-12-25 07:31:29 +000015850
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015851
15852
15853
15854
Reid Spencerbe3e4192007-08-17 05:45:26 +000015855for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015856do
15857as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15858if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15859 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15860echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15861if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15862 echo $ECHO_N "(cached) $ECHO_C" >&6
15863fi
15864ac_res=`eval echo '${'$as_ac_Header'}'`
15865 { echo "$as_me:$LINENO: result: $ac_res" >&5
15866echo "${ECHO_T}$ac_res" >&6; }
15867else
15868 # Is the header compilable?
15869{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15870echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15871cat >conftest.$ac_ext <<_ACEOF
15872/* confdefs.h. */
15873_ACEOF
15874cat confdefs.h >>conftest.$ac_ext
15875cat >>conftest.$ac_ext <<_ACEOF
15876/* end confdefs.h. */
15877$ac_includes_default
15878#include <$ac_header>
15879_ACEOF
15880rm -f conftest.$ac_objext
15881if { (ac_try="$ac_compile"
15882case "(($ac_try" in
15883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15884 *) ac_try_echo=$ac_try;;
15885esac
15886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15887 (eval "$ac_compile") 2>conftest.er1
15888 ac_status=$?
15889 grep -v '^ *+' conftest.er1 >conftest.err
15890 rm -f conftest.er1
15891 cat conftest.err >&5
15892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893 (exit $ac_status); } &&
15894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15895 { (case "(($ac_try" in
15896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15897 *) ac_try_echo=$ac_try;;
15898esac
15899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15900 (eval "$ac_try") 2>&5
15901 ac_status=$?
15902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903 (exit $ac_status); }; } &&
15904 { ac_try='test -s conftest.$ac_objext'
15905 { (case "(($ac_try" in
15906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15907 *) ac_try_echo=$ac_try;;
15908esac
15909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15910 (eval "$ac_try") 2>&5
15911 ac_status=$?
15912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913 (exit $ac_status); }; }; then
15914 ac_header_compiler=yes
15915else
15916 echo "$as_me: failed program was:" >&5
15917sed 's/^/| /' conftest.$ac_ext >&5
15918
15919 ac_header_compiler=no
15920fi
15921
15922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15923{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15924echo "${ECHO_T}$ac_header_compiler" >&6; }
15925
15926# Is the header present?
15927{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15928echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15929cat >conftest.$ac_ext <<_ACEOF
15930/* confdefs.h. */
15931_ACEOF
15932cat confdefs.h >>conftest.$ac_ext
15933cat >>conftest.$ac_ext <<_ACEOF
15934/* end confdefs.h. */
15935#include <$ac_header>
15936_ACEOF
15937if { (ac_try="$ac_cpp conftest.$ac_ext"
15938case "(($ac_try" in
15939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15940 *) ac_try_echo=$ac_try;;
15941esac
15942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15943 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15944 ac_status=$?
15945 grep -v '^ *+' conftest.er1 >conftest.err
15946 rm -f conftest.er1
15947 cat conftest.err >&5
15948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949 (exit $ac_status); } >/dev/null; then
15950 if test -s conftest.err; then
15951 ac_cpp_err=$ac_c_preproc_warn_flag
15952 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15953 else
15954 ac_cpp_err=
15955 fi
15956else
15957 ac_cpp_err=yes
15958fi
15959if test -z "$ac_cpp_err"; then
15960 ac_header_preproc=yes
15961else
15962 echo "$as_me: failed program was:" >&5
15963sed 's/^/| /' conftest.$ac_ext >&5
15964
15965 ac_header_preproc=no
15966fi
15967
15968rm -f conftest.err conftest.$ac_ext
15969{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15970echo "${ECHO_T}$ac_header_preproc" >&6; }
15971
15972# So? What about this header?
15973case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15974 yes:no: )
15975 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15976echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15977 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15978echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15979 ac_header_preproc=yes
15980 ;;
15981 no:yes:* )
15982 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15983echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15984 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15985echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15986 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15987echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15988 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15989echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15990 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15991echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15992 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15993echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15994 ( cat <<\_ASBOX
15995## ----------------------------------- ##
15996## Report this to llvmbugs@cs.uiuc.edu ##
15997## ----------------------------------- ##
15998_ASBOX
15999 ) | sed "s/^/$as_me: WARNING: /" >&2
16000 ;;
16001esac
16002{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16003echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16004if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16005 echo $ECHO_N "(cached) $ECHO_C" >&6
16006else
16007 eval "$as_ac_Header=\$ac_header_preproc"
16008fi
16009ac_res=`eval echo '${'$as_ac_Header'}'`
16010 { echo "$as_me:$LINENO: result: $ac_res" >&5
16011echo "${ECHO_T}$ac_res" >&6; }
16012
16013fi
16014if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016015 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016016#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000016017_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000016018
16019fi
John Criswell7ed43ad2004-07-19 16:12:29 +000016020
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016021done
16022
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016023
16024
16025
16026
Douglas Gregor01746742009-05-11 18:05:52 +000016027for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016028do
16029as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16030if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16031 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16032echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16033if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16034 echo $ECHO_N "(cached) $ECHO_C" >&6
16035fi
16036ac_res=`eval echo '${'$as_ac_Header'}'`
16037 { echo "$as_me:$LINENO: result: $ac_res" >&5
16038echo "${ECHO_T}$ac_res" >&6; }
16039else
16040 # Is the header compilable?
16041{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16042echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16043cat >conftest.$ac_ext <<_ACEOF
16044/* confdefs.h. */
16045_ACEOF
16046cat confdefs.h >>conftest.$ac_ext
16047cat >>conftest.$ac_ext <<_ACEOF
16048/* end confdefs.h. */
16049$ac_includes_default
16050#include <$ac_header>
16051_ACEOF
16052rm -f conftest.$ac_objext
16053if { (ac_try="$ac_compile"
16054case "(($ac_try" in
16055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16056 *) ac_try_echo=$ac_try;;
16057esac
16058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16059 (eval "$ac_compile") 2>conftest.er1
16060 ac_status=$?
16061 grep -v '^ *+' conftest.er1 >conftest.err
16062 rm -f conftest.er1
16063 cat conftest.err >&5
16064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16065 (exit $ac_status); } &&
16066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16067 { (case "(($ac_try" in
16068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16069 *) ac_try_echo=$ac_try;;
16070esac
16071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16072 (eval "$ac_try") 2>&5
16073 ac_status=$?
16074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075 (exit $ac_status); }; } &&
16076 { ac_try='test -s conftest.$ac_objext'
16077 { (case "(($ac_try" in
16078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16079 *) ac_try_echo=$ac_try;;
16080esac
16081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16082 (eval "$ac_try") 2>&5
16083 ac_status=$?
16084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085 (exit $ac_status); }; }; then
16086 ac_header_compiler=yes
16087else
16088 echo "$as_me: failed program was:" >&5
16089sed 's/^/| /' conftest.$ac_ext >&5
16090
16091 ac_header_compiler=no
16092fi
16093
16094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16095{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16096echo "${ECHO_T}$ac_header_compiler" >&6; }
16097
16098# Is the header present?
16099{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16100echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16101cat >conftest.$ac_ext <<_ACEOF
16102/* confdefs.h. */
16103_ACEOF
16104cat confdefs.h >>conftest.$ac_ext
16105cat >>conftest.$ac_ext <<_ACEOF
16106/* end confdefs.h. */
16107#include <$ac_header>
16108_ACEOF
16109if { (ac_try="$ac_cpp conftest.$ac_ext"
16110case "(($ac_try" in
16111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16112 *) ac_try_echo=$ac_try;;
16113esac
16114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16115 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16116 ac_status=$?
16117 grep -v '^ *+' conftest.er1 >conftest.err
16118 rm -f conftest.er1
16119 cat conftest.err >&5
16120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16121 (exit $ac_status); } >/dev/null; then
16122 if test -s conftest.err; then
16123 ac_cpp_err=$ac_c_preproc_warn_flag
16124 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16125 else
16126 ac_cpp_err=
16127 fi
16128else
16129 ac_cpp_err=yes
16130fi
16131if test -z "$ac_cpp_err"; then
16132 ac_header_preproc=yes
16133else
16134 echo "$as_me: failed program was:" >&5
16135sed 's/^/| /' conftest.$ac_ext >&5
16136
16137 ac_header_preproc=no
16138fi
16139
16140rm -f conftest.err conftest.$ac_ext
16141{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16142echo "${ECHO_T}$ac_header_preproc" >&6; }
16143
16144# So? What about this header?
16145case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16146 yes:no: )
16147 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16148echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16150echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16151 ac_header_preproc=yes
16152 ;;
16153 no:yes:* )
16154 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16155echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16156 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16157echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16158 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16159echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16160 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16161echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16162 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16163echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16164 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16165echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16166 ( cat <<\_ASBOX
16167## ----------------------------------- ##
16168## Report this to llvmbugs@cs.uiuc.edu ##
16169## ----------------------------------- ##
16170_ASBOX
16171 ) | sed "s/^/$as_me: WARNING: /" >&2
16172 ;;
16173esac
16174{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16175echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16176if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16177 echo $ECHO_N "(cached) $ECHO_C" >&6
16178else
16179 eval "$as_ac_Header=\$ac_header_preproc"
16180fi
16181ac_res=`eval echo '${'$as_ac_Header'}'`
16182 { echo "$as_me:$LINENO: result: $ac_res" >&5
16183echo "${ECHO_T}$ac_res" >&6; }
16184
16185fi
16186if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000016187 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016188#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000016189_ACEOF
16190
16191fi
16192
16193done
16194
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000016195
16196for ac_header in valgrind/valgrind.h
16197do
16198as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16199if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16200 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16201echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16202if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16203 echo $ECHO_N "(cached) $ECHO_C" >&6
16204fi
16205ac_res=`eval echo '${'$as_ac_Header'}'`
16206 { echo "$as_me:$LINENO: result: $ac_res" >&5
16207echo "${ECHO_T}$ac_res" >&6; }
16208else
16209 # Is the header compilable?
16210{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16211echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16212cat >conftest.$ac_ext <<_ACEOF
16213/* confdefs.h. */
16214_ACEOF
16215cat confdefs.h >>conftest.$ac_ext
16216cat >>conftest.$ac_ext <<_ACEOF
16217/* end confdefs.h. */
16218$ac_includes_default
16219#include <$ac_header>
16220_ACEOF
16221rm -f conftest.$ac_objext
16222if { (ac_try="$ac_compile"
16223case "(($ac_try" in
16224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16225 *) ac_try_echo=$ac_try;;
16226esac
16227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16228 (eval "$ac_compile") 2>conftest.er1
16229 ac_status=$?
16230 grep -v '^ *+' conftest.er1 >conftest.err
16231 rm -f conftest.er1
16232 cat conftest.err >&5
16233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234 (exit $ac_status); } &&
16235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16236 { (case "(($ac_try" in
16237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16238 *) ac_try_echo=$ac_try;;
16239esac
16240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16241 (eval "$ac_try") 2>&5
16242 ac_status=$?
16243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244 (exit $ac_status); }; } &&
16245 { ac_try='test -s conftest.$ac_objext'
16246 { (case "(($ac_try" in
16247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16248 *) ac_try_echo=$ac_try;;
16249esac
16250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16251 (eval "$ac_try") 2>&5
16252 ac_status=$?
16253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254 (exit $ac_status); }; }; then
16255 ac_header_compiler=yes
16256else
16257 echo "$as_me: failed program was:" >&5
16258sed 's/^/| /' conftest.$ac_ext >&5
16259
16260 ac_header_compiler=no
16261fi
16262
16263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16264{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16265echo "${ECHO_T}$ac_header_compiler" >&6; }
16266
16267# Is the header present?
16268{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16269echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16270cat >conftest.$ac_ext <<_ACEOF
16271/* confdefs.h. */
16272_ACEOF
16273cat confdefs.h >>conftest.$ac_ext
16274cat >>conftest.$ac_ext <<_ACEOF
16275/* end confdefs.h. */
16276#include <$ac_header>
16277_ACEOF
16278if { (ac_try="$ac_cpp conftest.$ac_ext"
16279case "(($ac_try" in
16280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16281 *) ac_try_echo=$ac_try;;
16282esac
16283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16284 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16285 ac_status=$?
16286 grep -v '^ *+' conftest.er1 >conftest.err
16287 rm -f conftest.er1
16288 cat conftest.err >&5
16289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290 (exit $ac_status); } >/dev/null; then
16291 if test -s conftest.err; then
16292 ac_cpp_err=$ac_c_preproc_warn_flag
16293 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16294 else
16295 ac_cpp_err=
16296 fi
16297else
16298 ac_cpp_err=yes
16299fi
16300if test -z "$ac_cpp_err"; then
16301 ac_header_preproc=yes
16302else
16303 echo "$as_me: failed program was:" >&5
16304sed 's/^/| /' conftest.$ac_ext >&5
16305
16306 ac_header_preproc=no
16307fi
16308
16309rm -f conftest.err conftest.$ac_ext
16310{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16311echo "${ECHO_T}$ac_header_preproc" >&6; }
16312
16313# So? What about this header?
16314case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16315 yes:no: )
16316 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16317echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16318 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16319echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16320 ac_header_preproc=yes
16321 ;;
16322 no:yes:* )
16323 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16324echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16325 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16326echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16327 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16328echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16329 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16330echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16332echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16333 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16334echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16335 ( cat <<\_ASBOX
16336## ----------------------------------- ##
16337## Report this to llvmbugs@cs.uiuc.edu ##
16338## ----------------------------------- ##
16339_ASBOX
16340 ) | sed "s/^/$as_me: WARNING: /" >&2
16341 ;;
16342esac
16343{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16344echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16345if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16346 echo $ECHO_N "(cached) $ECHO_C" >&6
16347else
16348 eval "$as_ac_Header=\$ac_header_preproc"
16349fi
16350ac_res=`eval echo '${'$as_ac_Header'}'`
16351 { echo "$as_me:$LINENO: result: $ac_res" >&5
16352echo "${ECHO_T}$ac_res" >&6; }
16353
16354fi
16355if test `eval echo '${'$as_ac_Header'}'` = yes; then
16356 cat >>confdefs.h <<_ACEOF
16357#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16358_ACEOF
16359
16360fi
16361
16362done
16363
Reid Spencer0a262ba2005-08-24 10:07:20 +000016364if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016365
16366for ac_header in pthread.h
16367do
16368as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16369if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16370 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16371echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16372if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16373 echo $ECHO_N "(cached) $ECHO_C" >&6
16374fi
16375ac_res=`eval echo '${'$as_ac_Header'}'`
16376 { echo "$as_me:$LINENO: result: $ac_res" >&5
16377echo "${ECHO_T}$ac_res" >&6; }
16378else
16379 # Is the header compilable?
16380{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16381echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16382cat >conftest.$ac_ext <<_ACEOF
16383/* confdefs.h. */
16384_ACEOF
16385cat confdefs.h >>conftest.$ac_ext
16386cat >>conftest.$ac_ext <<_ACEOF
16387/* end confdefs.h. */
16388$ac_includes_default
16389#include <$ac_header>
16390_ACEOF
16391rm -f conftest.$ac_objext
16392if { (ac_try="$ac_compile"
16393case "(($ac_try" in
16394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16395 *) ac_try_echo=$ac_try;;
16396esac
16397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16398 (eval "$ac_compile") 2>conftest.er1
16399 ac_status=$?
16400 grep -v '^ *+' conftest.er1 >conftest.err
16401 rm -f conftest.er1
16402 cat conftest.err >&5
16403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404 (exit $ac_status); } &&
16405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16406 { (case "(($ac_try" in
16407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16408 *) ac_try_echo=$ac_try;;
16409esac
16410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16411 (eval "$ac_try") 2>&5
16412 ac_status=$?
16413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414 (exit $ac_status); }; } &&
16415 { ac_try='test -s conftest.$ac_objext'
16416 { (case "(($ac_try" in
16417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16418 *) ac_try_echo=$ac_try;;
16419esac
16420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16421 (eval "$ac_try") 2>&5
16422 ac_status=$?
16423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424 (exit $ac_status); }; }; then
16425 ac_header_compiler=yes
16426else
16427 echo "$as_me: failed program was:" >&5
16428sed 's/^/| /' conftest.$ac_ext >&5
16429
16430 ac_header_compiler=no
16431fi
16432
16433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16434{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16435echo "${ECHO_T}$ac_header_compiler" >&6; }
16436
16437# Is the header present?
16438{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16439echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16440cat >conftest.$ac_ext <<_ACEOF
16441/* confdefs.h. */
16442_ACEOF
16443cat confdefs.h >>conftest.$ac_ext
16444cat >>conftest.$ac_ext <<_ACEOF
16445/* end confdefs.h. */
16446#include <$ac_header>
16447_ACEOF
16448if { (ac_try="$ac_cpp conftest.$ac_ext"
16449case "(($ac_try" in
16450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16451 *) ac_try_echo=$ac_try;;
16452esac
16453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16455 ac_status=$?
16456 grep -v '^ *+' conftest.er1 >conftest.err
16457 rm -f conftest.er1
16458 cat conftest.err >&5
16459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460 (exit $ac_status); } >/dev/null; then
16461 if test -s conftest.err; then
16462 ac_cpp_err=$ac_c_preproc_warn_flag
16463 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16464 else
16465 ac_cpp_err=
16466 fi
16467else
16468 ac_cpp_err=yes
16469fi
16470if test -z "$ac_cpp_err"; then
16471 ac_header_preproc=yes
16472else
16473 echo "$as_me: failed program was:" >&5
16474sed 's/^/| /' conftest.$ac_ext >&5
16475
16476 ac_header_preproc=no
16477fi
16478
16479rm -f conftest.err conftest.$ac_ext
16480{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16481echo "${ECHO_T}$ac_header_preproc" >&6; }
16482
16483# So? What about this header?
16484case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16485 yes:no: )
16486 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16487echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16488 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16489echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16490 ac_header_preproc=yes
16491 ;;
16492 no:yes:* )
16493 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16494echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16495 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16496echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16497 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16498echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16499 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16500echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16501 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16502echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16503 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16504echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16505 ( cat <<\_ASBOX
16506## ----------------------------------- ##
16507## Report this to llvmbugs@cs.uiuc.edu ##
16508## ----------------------------------- ##
16509_ASBOX
16510 ) | sed "s/^/$as_me: WARNING: /" >&2
16511 ;;
16512esac
16513{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16514echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16515if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16516 echo $ECHO_N "(cached) $ECHO_C" >&6
16517else
16518 eval "$as_ac_Header=\$ac_header_preproc"
16519fi
16520ac_res=`eval echo '${'$as_ac_Header'}'`
16521 { echo "$as_me:$LINENO: result: $ac_res" >&5
16522echo "${ECHO_T}$ac_res" >&6; }
16523
16524fi
16525if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000016526 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016527#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000016528_ACEOF
16529 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000016530
16531else
16532 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000016533
16534fi
16535
Reid Spencerbe3e4192007-08-17 05:45:26 +000016536done
Reid Spencer1000b732006-12-01 00:37:14 +000016537
16538else
16539 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000016540
16541fi
Reid Spencer8085cff2005-01-16 02:58:39 +000016542
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016543if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016544
16545
16546for ac_header in ffi.h ffi/ffi.h
16547do
16548as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16549if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16550 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16551echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16552if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16553 echo $ECHO_N "(cached) $ECHO_C" >&6
16554fi
16555ac_res=`eval echo '${'$as_ac_Header'}'`
16556 { echo "$as_me:$LINENO: result: $ac_res" >&5
16557echo "${ECHO_T}$ac_res" >&6; }
16558else
16559 # Is the header compilable?
16560{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16561echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16562cat >conftest.$ac_ext <<_ACEOF
16563/* confdefs.h. */
16564_ACEOF
16565cat confdefs.h >>conftest.$ac_ext
16566cat >>conftest.$ac_ext <<_ACEOF
16567/* end confdefs.h. */
16568$ac_includes_default
16569#include <$ac_header>
16570_ACEOF
16571rm -f conftest.$ac_objext
16572if { (ac_try="$ac_compile"
16573case "(($ac_try" in
16574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16575 *) ac_try_echo=$ac_try;;
16576esac
16577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16578 (eval "$ac_compile") 2>conftest.er1
16579 ac_status=$?
16580 grep -v '^ *+' conftest.er1 >conftest.err
16581 rm -f conftest.er1
16582 cat conftest.err >&5
16583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584 (exit $ac_status); } &&
16585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16586 { (case "(($ac_try" in
16587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16588 *) ac_try_echo=$ac_try;;
16589esac
16590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16591 (eval "$ac_try") 2>&5
16592 ac_status=$?
16593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594 (exit $ac_status); }; } &&
16595 { ac_try='test -s conftest.$ac_objext'
16596 { (case "(($ac_try" in
16597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16598 *) ac_try_echo=$ac_try;;
16599esac
16600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16601 (eval "$ac_try") 2>&5
16602 ac_status=$?
16603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604 (exit $ac_status); }; }; then
16605 ac_header_compiler=yes
16606else
16607 echo "$as_me: failed program was:" >&5
16608sed 's/^/| /' conftest.$ac_ext >&5
16609
16610 ac_header_compiler=no
16611fi
16612
16613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16614{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16615echo "${ECHO_T}$ac_header_compiler" >&6; }
16616
16617# Is the header present?
16618{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16619echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16620cat >conftest.$ac_ext <<_ACEOF
16621/* confdefs.h. */
16622_ACEOF
16623cat confdefs.h >>conftest.$ac_ext
16624cat >>conftest.$ac_ext <<_ACEOF
16625/* end confdefs.h. */
16626#include <$ac_header>
16627_ACEOF
16628if { (ac_try="$ac_cpp conftest.$ac_ext"
16629case "(($ac_try" in
16630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16631 *) ac_try_echo=$ac_try;;
16632esac
16633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16634 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16635 ac_status=$?
16636 grep -v '^ *+' conftest.er1 >conftest.err
16637 rm -f conftest.er1
16638 cat conftest.err >&5
16639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16640 (exit $ac_status); } >/dev/null; then
16641 if test -s conftest.err; then
16642 ac_cpp_err=$ac_c_preproc_warn_flag
16643 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16644 else
16645 ac_cpp_err=
16646 fi
16647else
16648 ac_cpp_err=yes
16649fi
16650if test -z "$ac_cpp_err"; then
16651 ac_header_preproc=yes
16652else
16653 echo "$as_me: failed program was:" >&5
16654sed 's/^/| /' conftest.$ac_ext >&5
16655
16656 ac_header_preproc=no
16657fi
16658
16659rm -f conftest.err conftest.$ac_ext
16660{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16661echo "${ECHO_T}$ac_header_preproc" >&6; }
16662
16663# So? What about this header?
16664case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16665 yes:no: )
16666 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16667echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16668 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16669echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16670 ac_header_preproc=yes
16671 ;;
16672 no:yes:* )
16673 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16674echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16675 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16676echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16677 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16678echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16679 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16680echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16682echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16683 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16684echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16685 ( cat <<\_ASBOX
16686## ----------------------------------- ##
16687## Report this to llvmbugs@cs.uiuc.edu ##
16688## ----------------------------------- ##
16689_ASBOX
16690 ) | sed "s/^/$as_me: WARNING: /" >&2
16691 ;;
16692esac
16693{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16694echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16695if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16696 echo $ECHO_N "(cached) $ECHO_C" >&6
16697else
16698 eval "$as_ac_Header=\$ac_header_preproc"
16699fi
16700ac_res=`eval echo '${'$as_ac_Header'}'`
16701 { echo "$as_me:$LINENO: result: $ac_res" >&5
16702echo "${ECHO_T}$ac_res" >&6; }
16703
16704fi
16705if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016706 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016707#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016708_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016709
16710fi
16711
16712done
16713
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016714fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016715
Nick Lewycky2ab1d862009-01-20 00:52:24 +000016716
Reid Spencer8085cff2005-01-16 02:58:39 +000016717
Torok Edwin871384f2010-01-26 08:50:50 +000016718
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016719 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16720echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16721if test "${ac_cv_huge_val_sanity+set}" = set; then
16722 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000016723else
16724
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016725 ac_ext=cpp
16726ac_cpp='$CXXCPP $CPPFLAGS'
16727ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16728ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16729ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000016730
Eric Christopherc7718502010-03-02 05:06:54 +000016731 ac_save_CXXFLAGS=$CXXFLAGS
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016732 CXXFLAGS=-pedantic
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016733 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016734 ac_cv_huge_val_sanity=yes
16735else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016736 cat >conftest.$ac_ext <<_ACEOF
16737/* confdefs.h. */
16738_ACEOF
16739cat confdefs.h >>conftest.$ac_ext
16740cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000016741/* end confdefs.h. */
16742#include <math.h>
16743int
16744main ()
16745{
16746double x = HUGE_VAL; return x != x;
16747 ;
16748 return 0;
16749}
16750_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016751rm -f conftest$ac_exeext
16752if { (ac_try="$ac_link"
16753case "(($ac_try" in
16754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16755 *) ac_try_echo=$ac_try;;
16756esac
16757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16758 (eval "$ac_link") 2>&5
16759 ac_status=$?
16760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16762 { (case "(($ac_try" in
16763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16764 *) ac_try_echo=$ac_try;;
16765esac
16766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16767 (eval "$ac_try") 2>&5
16768 ac_status=$?
16769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016771 ac_cv_huge_val_sanity=yes
16772else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016773 echo "$as_me: program exited with status $ac_status" >&5
16774echo "$as_me: failed program was:" >&5
16775sed 's/^/| /' conftest.$ac_ext >&5
16776
16777( exit $ac_status )
16778ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000016779fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016780rm -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 +000016781fi
16782
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016783
Eric Christopherc7718502010-03-02 05:06:54 +000016784 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000016785 ac_ext=c
16786ac_cpp='$CPP $CPPFLAGS'
16787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16789ac_compiler_gnu=$ac_cv_c_compiler_gnu
16790
16791
16792fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016793{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16794echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000016795 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16796
16797
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016798{ echo "$as_me:$LINENO: checking for pid_t" >&5
16799echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16800if test "${ac_cv_type_pid_t+set}" = set; then
16801 echo $ECHO_N "(cached) $ECHO_C" >&6
16802else
16803 cat >conftest.$ac_ext <<_ACEOF
16804/* confdefs.h. */
16805_ACEOF
16806cat confdefs.h >>conftest.$ac_ext
16807cat >>conftest.$ac_ext <<_ACEOF
16808/* end confdefs.h. */
16809$ac_includes_default
16810typedef pid_t ac__type_new_;
16811int
16812main ()
16813{
16814if ((ac__type_new_ *) 0)
16815 return 0;
16816if (sizeof (ac__type_new_))
16817 return 0;
16818 ;
16819 return 0;
16820}
16821_ACEOF
16822rm -f conftest.$ac_objext
16823if { (ac_try="$ac_compile"
16824case "(($ac_try" in
16825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16826 *) ac_try_echo=$ac_try;;
16827esac
16828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16829 (eval "$ac_compile") 2>conftest.er1
16830 ac_status=$?
16831 grep -v '^ *+' conftest.er1 >conftest.err
16832 rm -f conftest.er1
16833 cat conftest.err >&5
16834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16835 (exit $ac_status); } &&
16836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16837 { (case "(($ac_try" in
16838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16839 *) ac_try_echo=$ac_try;;
16840esac
16841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16842 (eval "$ac_try") 2>&5
16843 ac_status=$?
16844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16845 (exit $ac_status); }; } &&
16846 { ac_try='test -s conftest.$ac_objext'
16847 { (case "(($ac_try" in
16848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16849 *) ac_try_echo=$ac_try;;
16850esac
16851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16852 (eval "$ac_try") 2>&5
16853 ac_status=$?
16854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16855 (exit $ac_status); }; }; then
16856 ac_cv_type_pid_t=yes
16857else
16858 echo "$as_me: failed program was:" >&5
16859sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016860
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016861 ac_cv_type_pid_t=no
16862fi
16863
16864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16865fi
16866{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16867echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16868if test $ac_cv_type_pid_t = yes; then
16869 :
John Criswell7a73b802003-06-30 21:59:07 +000016870else
16871
16872cat >>confdefs.h <<_ACEOF
16873#define pid_t int
16874_ACEOF
16875
16876fi
16877
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016878{ echo "$as_me:$LINENO: checking for size_t" >&5
16879echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16880if test "${ac_cv_type_size_t+set}" = set; then
16881 echo $ECHO_N "(cached) $ECHO_C" >&6
16882else
16883 cat >conftest.$ac_ext <<_ACEOF
16884/* confdefs.h. */
16885_ACEOF
16886cat confdefs.h >>conftest.$ac_ext
16887cat >>conftest.$ac_ext <<_ACEOF
16888/* end confdefs.h. */
16889$ac_includes_default
16890typedef size_t ac__type_new_;
16891int
16892main ()
16893{
16894if ((ac__type_new_ *) 0)
16895 return 0;
16896if (sizeof (ac__type_new_))
16897 return 0;
16898 ;
16899 return 0;
16900}
16901_ACEOF
16902rm -f conftest.$ac_objext
16903if { (ac_try="$ac_compile"
16904case "(($ac_try" in
16905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16906 *) ac_try_echo=$ac_try;;
16907esac
16908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16909 (eval "$ac_compile") 2>conftest.er1
16910 ac_status=$?
16911 grep -v '^ *+' conftest.er1 >conftest.err
16912 rm -f conftest.er1
16913 cat conftest.err >&5
16914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915 (exit $ac_status); } &&
16916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16917 { (case "(($ac_try" in
16918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16919 *) ac_try_echo=$ac_try;;
16920esac
16921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16922 (eval "$ac_try") 2>&5
16923 ac_status=$?
16924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925 (exit $ac_status); }; } &&
16926 { ac_try='test -s conftest.$ac_objext'
16927 { (case "(($ac_try" in
16928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16929 *) ac_try_echo=$ac_try;;
16930esac
16931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16932 (eval "$ac_try") 2>&5
16933 ac_status=$?
16934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935 (exit $ac_status); }; }; then
16936 ac_cv_type_size_t=yes
16937else
16938 echo "$as_me: failed program was:" >&5
16939sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016940
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016941 ac_cv_type_size_t=no
16942fi
16943
16944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16945fi
16946{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16947echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16948if test $ac_cv_type_size_t = yes; then
16949 :
John Criswell7a73b802003-06-30 21:59:07 +000016950else
16951
16952cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000016953#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000016954_ACEOF
16955
16956fi
16957
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016958
16959cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000016960#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016961_ACEOF
16962
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016963{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16964echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16965if test "${ac_cv_struct_tm+set}" = set; then
16966 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016967else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016968 cat >conftest.$ac_ext <<_ACEOF
16969/* confdefs.h. */
16970_ACEOF
16971cat confdefs.h >>conftest.$ac_ext
16972cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016973/* end confdefs.h. */
16974#include <sys/types.h>
16975#include <time.h>
16976
16977int
16978main ()
16979{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016980struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016981 ;
16982 return 0;
16983}
16984_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016985rm -f conftest.$ac_objext
16986if { (ac_try="$ac_compile"
16987case "(($ac_try" in
16988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16989 *) ac_try_echo=$ac_try;;
16990esac
16991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16992 (eval "$ac_compile") 2>conftest.er1
16993 ac_status=$?
16994 grep -v '^ *+' conftest.er1 >conftest.err
16995 rm -f conftest.er1
16996 cat conftest.err >&5
16997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998 (exit $ac_status); } &&
16999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17000 { (case "(($ac_try" in
17001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17002 *) ac_try_echo=$ac_try;;
17003esac
17004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17005 (eval "$ac_try") 2>&5
17006 ac_status=$?
17007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17008 (exit $ac_status); }; } &&
17009 { ac_try='test -s conftest.$ac_objext'
17010 { (case "(($ac_try" in
17011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17012 *) ac_try_echo=$ac_try;;
17013esac
17014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17015 (eval "$ac_try") 2>&5
17016 ac_status=$?
17017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17018 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017019 ac_cv_struct_tm=time.h
17020else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017021 echo "$as_me: failed program was:" >&5
17022sed 's/^/| /' conftest.$ac_ext >&5
17023
17024 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017025fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017026
Reid Spencera773bd52006-08-04 18:18:08 +000017027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017028fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017029{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17030echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017031if test $ac_cv_struct_tm = sys/time.h; then
17032
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017033cat >>confdefs.h <<\_ACEOF
17034#define TM_IN_SYS_TIME 1
17035_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017036
17037fi
17038
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017039{ echo "$as_me:$LINENO: checking for int64_t" >&5
17040echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17041if test "${ac_cv_type_int64_t+set}" = set; then
17042 echo $ECHO_N "(cached) $ECHO_C" >&6
17043else
17044 cat >conftest.$ac_ext <<_ACEOF
17045/* confdefs.h. */
17046_ACEOF
17047cat confdefs.h >>conftest.$ac_ext
17048cat >>conftest.$ac_ext <<_ACEOF
17049/* end confdefs.h. */
17050$ac_includes_default
17051typedef int64_t ac__type_new_;
17052int
17053main ()
17054{
17055if ((ac__type_new_ *) 0)
17056 return 0;
17057if (sizeof (ac__type_new_))
17058 return 0;
17059 ;
17060 return 0;
17061}
17062_ACEOF
17063rm -f conftest.$ac_objext
17064if { (ac_try="$ac_compile"
17065case "(($ac_try" in
17066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17067 *) ac_try_echo=$ac_try;;
17068esac
17069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17070 (eval "$ac_compile") 2>conftest.er1
17071 ac_status=$?
17072 grep -v '^ *+' conftest.er1 >conftest.err
17073 rm -f conftest.er1
17074 cat conftest.err >&5
17075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076 (exit $ac_status); } &&
17077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17078 { (case "(($ac_try" in
17079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17080 *) ac_try_echo=$ac_try;;
17081esac
17082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17083 (eval "$ac_try") 2>&5
17084 ac_status=$?
17085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17086 (exit $ac_status); }; } &&
17087 { ac_try='test -s conftest.$ac_objext'
17088 { (case "(($ac_try" in
17089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17090 *) ac_try_echo=$ac_try;;
17091esac
17092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17093 (eval "$ac_try") 2>&5
17094 ac_status=$?
17095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096 (exit $ac_status); }; }; then
17097 ac_cv_type_int64_t=yes
17098else
17099 echo "$as_me: failed program was:" >&5
17100sed 's/^/| /' conftest.$ac_ext >&5
17101
17102 ac_cv_type_int64_t=no
17103fi
17104
17105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17106fi
17107{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17108echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17109if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017110
17111cat >>confdefs.h <<_ACEOF
17112#define HAVE_INT64_T 1
17113_ACEOF
17114
17115
17116else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017117 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17118echo "$as_me: error: Type int64_t required but not found" >&2;}
17119 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000017120fi
17121
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017122{ echo "$as_me:$LINENO: checking for uint64_t" >&5
17123echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17124if test "${ac_cv_type_uint64_t+set}" = set; then
17125 echo $ECHO_N "(cached) $ECHO_C" >&6
17126else
17127 cat >conftest.$ac_ext <<_ACEOF
17128/* confdefs.h. */
17129_ACEOF
17130cat confdefs.h >>conftest.$ac_ext
17131cat >>conftest.$ac_ext <<_ACEOF
17132/* end confdefs.h. */
17133$ac_includes_default
17134typedef uint64_t ac__type_new_;
17135int
17136main ()
17137{
17138if ((ac__type_new_ *) 0)
17139 return 0;
17140if (sizeof (ac__type_new_))
17141 return 0;
17142 ;
17143 return 0;
17144}
17145_ACEOF
17146rm -f conftest.$ac_objext
17147if { (ac_try="$ac_compile"
17148case "(($ac_try" in
17149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17150 *) ac_try_echo=$ac_try;;
17151esac
17152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17153 (eval "$ac_compile") 2>conftest.er1
17154 ac_status=$?
17155 grep -v '^ *+' conftest.er1 >conftest.err
17156 rm -f conftest.er1
17157 cat conftest.err >&5
17158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17159 (exit $ac_status); } &&
17160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17161 { (case "(($ac_try" in
17162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17163 *) ac_try_echo=$ac_try;;
17164esac
17165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17166 (eval "$ac_try") 2>&5
17167 ac_status=$?
17168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169 (exit $ac_status); }; } &&
17170 { ac_try='test -s conftest.$ac_objext'
17171 { (case "(($ac_try" in
17172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17173 *) ac_try_echo=$ac_try;;
17174esac
17175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17176 (eval "$ac_try") 2>&5
17177 ac_status=$?
17178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17179 (exit $ac_status); }; }; then
17180 ac_cv_type_uint64_t=yes
17181else
17182 echo "$as_me: failed program was:" >&5
17183sed 's/^/| /' conftest.$ac_ext >&5
17184
17185 ac_cv_type_uint64_t=no
17186fi
17187
17188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17189fi
17190{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17191echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17192if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017193
17194cat >>confdefs.h <<_ACEOF
17195#define HAVE_UINT64_T 1
17196_ACEOF
17197
17198
17199else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017200 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17201echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17202if test "${ac_cv_type_u_int64_t+set}" = set; then
17203 echo $ECHO_N "(cached) $ECHO_C" >&6
17204else
17205 cat >conftest.$ac_ext <<_ACEOF
17206/* confdefs.h. */
17207_ACEOF
17208cat confdefs.h >>conftest.$ac_ext
17209cat >>conftest.$ac_ext <<_ACEOF
17210/* end confdefs.h. */
17211$ac_includes_default
17212typedef u_int64_t ac__type_new_;
17213int
17214main ()
17215{
17216if ((ac__type_new_ *) 0)
17217 return 0;
17218if (sizeof (ac__type_new_))
17219 return 0;
17220 ;
17221 return 0;
17222}
17223_ACEOF
17224rm -f conftest.$ac_objext
17225if { (ac_try="$ac_compile"
17226case "(($ac_try" in
17227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17228 *) ac_try_echo=$ac_try;;
17229esac
17230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17231 (eval "$ac_compile") 2>conftest.er1
17232 ac_status=$?
17233 grep -v '^ *+' conftest.er1 >conftest.err
17234 rm -f conftest.er1
17235 cat conftest.err >&5
17236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17237 (exit $ac_status); } &&
17238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17239 { (case "(($ac_try" in
17240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17241 *) ac_try_echo=$ac_try;;
17242esac
17243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17244 (eval "$ac_try") 2>&5
17245 ac_status=$?
17246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247 (exit $ac_status); }; } &&
17248 { ac_try='test -s conftest.$ac_objext'
17249 { (case "(($ac_try" in
17250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17251 *) ac_try_echo=$ac_try;;
17252esac
17253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17254 (eval "$ac_try") 2>&5
17255 ac_status=$?
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); }; }; then
17258 ac_cv_type_u_int64_t=yes
17259else
17260 echo "$as_me: failed program was:" >&5
17261sed 's/^/| /' conftest.$ac_ext >&5
17262
17263 ac_cv_type_u_int64_t=no
17264fi
17265
17266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17267fi
17268{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17269echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17270if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000017271
17272cat >>confdefs.h <<_ACEOF
17273#define HAVE_U_INT64_T 1
17274_ACEOF
17275
17276
Misha Brukmanceca9042004-09-02 23:02:30 +000017277else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017278 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17279echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17280 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000017281fi
17282
John Criswell679ff312004-09-02 18:44:44 +000017283fi
17284
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017285
17286
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017287
17288
17289
17290
17291
17292
17293
Reid Spencerdf3be822006-01-23 08:15:53 +000017294for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017295do
17296as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17297{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17298echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17299if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17300 echo $ECHO_N "(cached) $ECHO_C" >&6
17301else
17302 cat >conftest.$ac_ext <<_ACEOF
17303/* confdefs.h. */
17304_ACEOF
17305cat confdefs.h >>conftest.$ac_ext
17306cat >>conftest.$ac_ext <<_ACEOF
17307/* end confdefs.h. */
17308/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17309 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17310#define $ac_func innocuous_$ac_func
17311
17312/* System header to define __stub macros and hopefully few prototypes,
17313 which can conflict with char $ac_func (); below.
17314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17315 <limits.h> exists even on freestanding compilers. */
17316
17317#ifdef __STDC__
17318# include <limits.h>
17319#else
17320# include <assert.h>
17321#endif
17322
17323#undef $ac_func
17324
17325/* Override any GCC internal prototype to avoid an error.
17326 Use char because int might match the return type of a GCC
17327 builtin and then its argument prototype would still apply. */
17328#ifdef __cplusplus
17329extern "C"
17330#endif
17331char $ac_func ();
17332/* The GNU C library defines this for functions which it implements
17333 to always fail with ENOSYS. Some functions are actually named
17334 something starting with __ and the normal name is an alias. */
17335#if defined __stub_$ac_func || defined __stub___$ac_func
17336choke me
17337#endif
17338
17339int
17340main ()
17341{
17342return $ac_func ();
17343 ;
17344 return 0;
17345}
17346_ACEOF
17347rm -f conftest.$ac_objext conftest$ac_exeext
17348if { (ac_try="$ac_link"
17349case "(($ac_try" in
17350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17351 *) ac_try_echo=$ac_try;;
17352esac
17353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17354 (eval "$ac_link") 2>conftest.er1
17355 ac_status=$?
17356 grep -v '^ *+' conftest.er1 >conftest.err
17357 rm -f conftest.er1
17358 cat conftest.err >&5
17359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360 (exit $ac_status); } &&
17361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17362 { (case "(($ac_try" in
17363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17364 *) ac_try_echo=$ac_try;;
17365esac
17366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17367 (eval "$ac_try") 2>&5
17368 ac_status=$?
17369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370 (exit $ac_status); }; } &&
17371 { ac_try='test -s conftest$ac_exeext'
17372 { (case "(($ac_try" in
17373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17374 *) ac_try_echo=$ac_try;;
17375esac
17376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17377 (eval "$ac_try") 2>&5
17378 ac_status=$?
17379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17380 (exit $ac_status); }; }; then
17381 eval "$as_ac_var=yes"
17382else
17383 echo "$as_me: failed program was:" >&5
17384sed 's/^/| /' conftest.$ac_ext >&5
17385
17386 eval "$as_ac_var=no"
17387fi
17388
17389rm -f core conftest.err conftest.$ac_objext \
17390 conftest$ac_exeext conftest.$ac_ext
17391fi
17392ac_res=`eval echo '${'$as_ac_var'}'`
17393 { echo "$as_me:$LINENO: result: $ac_res" >&5
17394echo "${ECHO_T}$ac_res" >&6; }
17395if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017396 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017397#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017398_ACEOF
17399
17400fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017401done
John Criswell7a73b802003-06-30 21:59:07 +000017402
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017403
17404
17405
17406
Reid Spencer96cf5872007-07-13 10:05:30 +000017407for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017408do
17409as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17410{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17411echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17412if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17413 echo $ECHO_N "(cached) $ECHO_C" >&6
17414else
17415 cat >conftest.$ac_ext <<_ACEOF
17416/* confdefs.h. */
17417_ACEOF
17418cat confdefs.h >>conftest.$ac_ext
17419cat >>conftest.$ac_ext <<_ACEOF
17420/* end confdefs.h. */
17421/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17423#define $ac_func innocuous_$ac_func
17424
17425/* System header to define __stub macros and hopefully few prototypes,
17426 which can conflict with char $ac_func (); below.
17427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17428 <limits.h> exists even on freestanding compilers. */
17429
17430#ifdef __STDC__
17431# include <limits.h>
17432#else
17433# include <assert.h>
17434#endif
17435
17436#undef $ac_func
17437
17438/* Override any GCC internal prototype to avoid an error.
17439 Use char because int might match the return type of a GCC
17440 builtin and then its argument prototype would still apply. */
17441#ifdef __cplusplus
17442extern "C"
17443#endif
17444char $ac_func ();
17445/* The GNU C library defines this for functions which it implements
17446 to always fail with ENOSYS. Some functions are actually named
17447 something starting with __ and the normal name is an alias. */
17448#if defined __stub_$ac_func || defined __stub___$ac_func
17449choke me
17450#endif
17451
17452int
17453main ()
17454{
17455return $ac_func ();
17456 ;
17457 return 0;
17458}
17459_ACEOF
17460rm -f conftest.$ac_objext conftest$ac_exeext
17461if { (ac_try="$ac_link"
17462case "(($ac_try" in
17463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17464 *) ac_try_echo=$ac_try;;
17465esac
17466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17467 (eval "$ac_link") 2>conftest.er1
17468 ac_status=$?
17469 grep -v '^ *+' conftest.er1 >conftest.err
17470 rm -f conftest.er1
17471 cat conftest.err >&5
17472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473 (exit $ac_status); } &&
17474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17475 { (case "(($ac_try" in
17476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17477 *) ac_try_echo=$ac_try;;
17478esac
17479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17480 (eval "$ac_try") 2>&5
17481 ac_status=$?
17482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17483 (exit $ac_status); }; } &&
17484 { ac_try='test -s conftest$ac_exeext'
17485 { (case "(($ac_try" in
17486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17487 *) ac_try_echo=$ac_try;;
17488esac
17489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17490 (eval "$ac_try") 2>&5
17491 ac_status=$?
17492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493 (exit $ac_status); }; }; then
17494 eval "$as_ac_var=yes"
17495else
17496 echo "$as_me: failed program was:" >&5
17497sed 's/^/| /' conftest.$ac_ext >&5
17498
17499 eval "$as_ac_var=no"
17500fi
17501
17502rm -f core conftest.err conftest.$ac_objext \
17503 conftest$ac_exeext conftest.$ac_ext
17504fi
17505ac_res=`eval echo '${'$as_ac_var'}'`
17506 { echo "$as_me:$LINENO: result: $ac_res" >&5
17507echo "${ECHO_T}$ac_res" >&6; }
17508if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000017509 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017510#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000017511_ACEOF
17512
17513fi
17514done
17515
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017516
17517
17518
17519
17520
Reid Spencerb90645c2007-02-16 19:17:20 +000017521for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017522do
17523as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17524{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17525echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17526if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17527 echo $ECHO_N "(cached) $ECHO_C" >&6
17528else
17529 cat >conftest.$ac_ext <<_ACEOF
17530/* confdefs.h. */
17531_ACEOF
17532cat confdefs.h >>conftest.$ac_ext
17533cat >>conftest.$ac_ext <<_ACEOF
17534/* end confdefs.h. */
17535/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17536 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17537#define $ac_func innocuous_$ac_func
17538
17539/* System header to define __stub macros and hopefully few prototypes,
17540 which can conflict with char $ac_func (); below.
17541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17542 <limits.h> exists even on freestanding compilers. */
17543
17544#ifdef __STDC__
17545# include <limits.h>
17546#else
17547# include <assert.h>
17548#endif
17549
17550#undef $ac_func
17551
17552/* Override any GCC internal prototype to avoid an error.
17553 Use char because int might match the return type of a GCC
17554 builtin and then its argument prototype would still apply. */
17555#ifdef __cplusplus
17556extern "C"
17557#endif
17558char $ac_func ();
17559/* The GNU C library defines this for functions which it implements
17560 to always fail with ENOSYS. Some functions are actually named
17561 something starting with __ and the normal name is an alias. */
17562#if defined __stub_$ac_func || defined __stub___$ac_func
17563choke me
17564#endif
17565
17566int
17567main ()
17568{
17569return $ac_func ();
17570 ;
17571 return 0;
17572}
17573_ACEOF
17574rm -f conftest.$ac_objext conftest$ac_exeext
17575if { (ac_try="$ac_link"
17576case "(($ac_try" in
17577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17578 *) ac_try_echo=$ac_try;;
17579esac
17580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17581 (eval "$ac_link") 2>conftest.er1
17582 ac_status=$?
17583 grep -v '^ *+' conftest.er1 >conftest.err
17584 rm -f conftest.er1
17585 cat conftest.err >&5
17586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587 (exit $ac_status); } &&
17588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17589 { (case "(($ac_try" in
17590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17591 *) ac_try_echo=$ac_try;;
17592esac
17593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17594 (eval "$ac_try") 2>&5
17595 ac_status=$?
17596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597 (exit $ac_status); }; } &&
17598 { ac_try='test -s conftest$ac_exeext'
17599 { (case "(($ac_try" in
17600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17601 *) ac_try_echo=$ac_try;;
17602esac
17603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17604 (eval "$ac_try") 2>&5
17605 ac_status=$?
17606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607 (exit $ac_status); }; }; then
17608 eval "$as_ac_var=yes"
17609else
17610 echo "$as_me: failed program was:" >&5
17611sed 's/^/| /' conftest.$ac_ext >&5
17612
17613 eval "$as_ac_var=no"
17614fi
17615
17616rm -f core conftest.err conftest.$ac_objext \
17617 conftest$ac_exeext conftest.$ac_ext
17618fi
17619ac_res=`eval echo '${'$as_ac_var'}'`
17620 { echo "$as_me:$LINENO: result: $ac_res" >&5
17621echo "${ECHO_T}$ac_res" >&6; }
17622if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000017623 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017624#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000017625_ACEOF
17626
17627fi
17628done
17629
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017630
17631
17632
Reid Spencerb90645c2007-02-16 19:17:20 +000017633for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017634do
17635as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17636{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17637echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17638if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17639 echo $ECHO_N "(cached) $ECHO_C" >&6
17640else
17641 cat >conftest.$ac_ext <<_ACEOF
17642/* confdefs.h. */
17643_ACEOF
17644cat confdefs.h >>conftest.$ac_ext
17645cat >>conftest.$ac_ext <<_ACEOF
17646/* end confdefs.h. */
17647/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17649#define $ac_func innocuous_$ac_func
17650
17651/* System header to define __stub macros and hopefully few prototypes,
17652 which can conflict with char $ac_func (); below.
17653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17654 <limits.h> exists even on freestanding compilers. */
17655
17656#ifdef __STDC__
17657# include <limits.h>
17658#else
17659# include <assert.h>
17660#endif
17661
17662#undef $ac_func
17663
17664/* Override any GCC internal prototype to avoid an error.
17665 Use char because int might match the return type of a GCC
17666 builtin and then its argument prototype would still apply. */
17667#ifdef __cplusplus
17668extern "C"
17669#endif
17670char $ac_func ();
17671/* The GNU C library defines this for functions which it implements
17672 to always fail with ENOSYS. Some functions are actually named
17673 something starting with __ and the normal name is an alias. */
17674#if defined __stub_$ac_func || defined __stub___$ac_func
17675choke me
17676#endif
17677
17678int
17679main ()
17680{
17681return $ac_func ();
17682 ;
17683 return 0;
17684}
17685_ACEOF
17686rm -f conftest.$ac_objext conftest$ac_exeext
17687if { (ac_try="$ac_link"
17688case "(($ac_try" in
17689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17690 *) ac_try_echo=$ac_try;;
17691esac
17692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17693 (eval "$ac_link") 2>conftest.er1
17694 ac_status=$?
17695 grep -v '^ *+' conftest.er1 >conftest.err
17696 rm -f conftest.er1
17697 cat conftest.err >&5
17698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699 (exit $ac_status); } &&
17700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17701 { (case "(($ac_try" in
17702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17703 *) ac_try_echo=$ac_try;;
17704esac
17705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17706 (eval "$ac_try") 2>&5
17707 ac_status=$?
17708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17709 (exit $ac_status); }; } &&
17710 { ac_try='test -s conftest$ac_exeext'
17711 { (case "(($ac_try" in
17712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17713 *) ac_try_echo=$ac_try;;
17714esac
17715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17716 (eval "$ac_try") 2>&5
17717 ac_status=$?
17718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719 (exit $ac_status); }; }; then
17720 eval "$as_ac_var=yes"
17721else
17722 echo "$as_me: failed program was:" >&5
17723sed 's/^/| /' conftest.$ac_ext >&5
17724
17725 eval "$as_ac_var=no"
17726fi
17727
17728rm -f core conftest.err conftest.$ac_objext \
17729 conftest$ac_exeext conftest.$ac_ext
17730fi
17731ac_res=`eval echo '${'$as_ac_var'}'`
17732 { echo "$as_me:$LINENO: result: $ac_res" >&5
17733echo "${ECHO_T}$ac_res" >&6; }
17734if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000017735 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017736#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000017737_ACEOF
17738
17739fi
17740done
17741
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017742
17743
17744
17745
17746
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017747for ac_func in mktemp realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017748do
17749as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17750{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17751echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17752if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17753 echo $ECHO_N "(cached) $ECHO_C" >&6
17754else
17755 cat >conftest.$ac_ext <<_ACEOF
17756/* confdefs.h. */
17757_ACEOF
17758cat confdefs.h >>conftest.$ac_ext
17759cat >>conftest.$ac_ext <<_ACEOF
17760/* end confdefs.h. */
17761/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17763#define $ac_func innocuous_$ac_func
17764
17765/* System header to define __stub macros and hopefully few prototypes,
17766 which can conflict with char $ac_func (); below.
17767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17768 <limits.h> exists even on freestanding compilers. */
17769
17770#ifdef __STDC__
17771# include <limits.h>
17772#else
17773# include <assert.h>
17774#endif
17775
17776#undef $ac_func
17777
17778/* Override any GCC internal prototype to avoid an error.
17779 Use char because int might match the return type of a GCC
17780 builtin and then its argument prototype would still apply. */
17781#ifdef __cplusplus
17782extern "C"
17783#endif
17784char $ac_func ();
17785/* The GNU C library defines this for functions which it implements
17786 to always fail with ENOSYS. Some functions are actually named
17787 something starting with __ and the normal name is an alias. */
17788#if defined __stub_$ac_func || defined __stub___$ac_func
17789choke me
17790#endif
17791
17792int
17793main ()
17794{
17795return $ac_func ();
17796 ;
17797 return 0;
17798}
17799_ACEOF
17800rm -f conftest.$ac_objext conftest$ac_exeext
17801if { (ac_try="$ac_link"
17802case "(($ac_try" in
17803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17804 *) ac_try_echo=$ac_try;;
17805esac
17806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17807 (eval "$ac_link") 2>conftest.er1
17808 ac_status=$?
17809 grep -v '^ *+' conftest.er1 >conftest.err
17810 rm -f conftest.er1
17811 cat conftest.err >&5
17812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813 (exit $ac_status); } &&
17814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17815 { (case "(($ac_try" in
17816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17817 *) ac_try_echo=$ac_try;;
17818esac
17819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17820 (eval "$ac_try") 2>&5
17821 ac_status=$?
17822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823 (exit $ac_status); }; } &&
17824 { ac_try='test -s conftest$ac_exeext'
17825 { (case "(($ac_try" in
17826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17827 *) ac_try_echo=$ac_try;;
17828esac
17829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17830 (eval "$ac_try") 2>&5
17831 ac_status=$?
17832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833 (exit $ac_status); }; }; then
17834 eval "$as_ac_var=yes"
17835else
17836 echo "$as_me: failed program was:" >&5
17837sed 's/^/| /' conftest.$ac_ext >&5
17838
17839 eval "$as_ac_var=no"
17840fi
17841
17842rm -f core conftest.err conftest.$ac_objext \
17843 conftest$ac_exeext conftest.$ac_ext
17844fi
17845ac_res=`eval echo '${'$as_ac_var'}'`
17846 { echo "$as_me:$LINENO: result: $ac_res" >&5
17847echo "${ECHO_T}$ac_res" >&6; }
17848if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017849 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017850#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017851_ACEOF
17852
17853fi
17854done
Reid Spencerdf3be822006-01-23 08:15:53 +000017855
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017856
17857
17858
17859
Jeffrey Yasskinb7a8d402009-09-25 21:07:20 +000017860for ac_func in strerror strerror_r strerror_s setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017861do
17862as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17863{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17864echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17865if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17866 echo $ECHO_N "(cached) $ECHO_C" >&6
17867else
17868 cat >conftest.$ac_ext <<_ACEOF
17869/* confdefs.h. */
17870_ACEOF
17871cat confdefs.h >>conftest.$ac_ext
17872cat >>conftest.$ac_ext <<_ACEOF
17873/* end confdefs.h. */
17874/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17876#define $ac_func innocuous_$ac_func
17877
17878/* System header to define __stub macros and hopefully few prototypes,
17879 which can conflict with char $ac_func (); below.
17880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17881 <limits.h> exists even on freestanding compilers. */
17882
17883#ifdef __STDC__
17884# include <limits.h>
17885#else
17886# include <assert.h>
17887#endif
17888
17889#undef $ac_func
17890
17891/* Override any GCC internal prototype to avoid an error.
17892 Use char because int might match the return type of a GCC
17893 builtin and then its argument prototype would still apply. */
17894#ifdef __cplusplus
17895extern "C"
17896#endif
17897char $ac_func ();
17898/* The GNU C library defines this for functions which it implements
17899 to always fail with ENOSYS. Some functions are actually named
17900 something starting with __ and the normal name is an alias. */
17901#if defined __stub_$ac_func || defined __stub___$ac_func
17902choke me
17903#endif
17904
17905int
17906main ()
17907{
17908return $ac_func ();
17909 ;
17910 return 0;
17911}
17912_ACEOF
17913rm -f conftest.$ac_objext conftest$ac_exeext
17914if { (ac_try="$ac_link"
17915case "(($ac_try" in
17916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17917 *) ac_try_echo=$ac_try;;
17918esac
17919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17920 (eval "$ac_link") 2>conftest.er1
17921 ac_status=$?
17922 grep -v '^ *+' conftest.er1 >conftest.err
17923 rm -f conftest.er1
17924 cat conftest.err >&5
17925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926 (exit $ac_status); } &&
17927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17928 { (case "(($ac_try" in
17929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17930 *) ac_try_echo=$ac_try;;
17931esac
17932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17933 (eval "$ac_try") 2>&5
17934 ac_status=$?
17935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936 (exit $ac_status); }; } &&
17937 { ac_try='test -s conftest$ac_exeext'
17938 { (case "(($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_try") 2>&5
17944 ac_status=$?
17945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17946 (exit $ac_status); }; }; then
17947 eval "$as_ac_var=yes"
17948else
17949 echo "$as_me: failed program was:" >&5
17950sed 's/^/| /' conftest.$ac_ext >&5
17951
17952 eval "$as_ac_var=no"
17953fi
17954
17955rm -f core conftest.err conftest.$ac_objext \
17956 conftest$ac_exeext conftest.$ac_ext
17957fi
17958ac_res=`eval echo '${'$as_ac_var'}'`
17959 { echo "$as_me:$LINENO: result: $ac_res" >&5
17960echo "${ECHO_T}$ac_res" >&6; }
17961if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000017962 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017963#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000017964_ACEOF
17965
17966fi
17967done
17968
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017969
17970
17971
17972
Chris Lattner511f11d2005-11-14 07:25:50 +000017973for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017974do
17975as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17976{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17977echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17978if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17979 echo $ECHO_N "(cached) $ECHO_C" >&6
17980else
17981 cat >conftest.$ac_ext <<_ACEOF
17982/* confdefs.h. */
17983_ACEOF
17984cat confdefs.h >>conftest.$ac_ext
17985cat >>conftest.$ac_ext <<_ACEOF
17986/* end confdefs.h. */
17987/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17988 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17989#define $ac_func innocuous_$ac_func
17990
17991/* System header to define __stub macros and hopefully few prototypes,
17992 which can conflict with char $ac_func (); below.
17993 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17994 <limits.h> exists even on freestanding compilers. */
17995
17996#ifdef __STDC__
17997# include <limits.h>
17998#else
17999# include <assert.h>
18000#endif
18001
18002#undef $ac_func
18003
18004/* Override any GCC internal prototype to avoid an error.
18005 Use char because int might match the return type of a GCC
18006 builtin and then its argument prototype would still apply. */
18007#ifdef __cplusplus
18008extern "C"
18009#endif
18010char $ac_func ();
18011/* The GNU C library defines this for functions which it implements
18012 to always fail with ENOSYS. Some functions are actually named
18013 something starting with __ and the normal name is an alias. */
18014#if defined __stub_$ac_func || defined __stub___$ac_func
18015choke me
18016#endif
18017
18018int
18019main ()
18020{
18021return $ac_func ();
18022 ;
18023 return 0;
18024}
18025_ACEOF
18026rm -f conftest.$ac_objext conftest$ac_exeext
18027if { (ac_try="$ac_link"
18028case "(($ac_try" in
18029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18030 *) ac_try_echo=$ac_try;;
18031esac
18032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18033 (eval "$ac_link") 2>conftest.er1
18034 ac_status=$?
18035 grep -v '^ *+' conftest.er1 >conftest.err
18036 rm -f conftest.er1
18037 cat conftest.err >&5
18038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039 (exit $ac_status); } &&
18040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18041 { (case "(($ac_try" in
18042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18043 *) ac_try_echo=$ac_try;;
18044esac
18045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18046 (eval "$ac_try") 2>&5
18047 ac_status=$?
18048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049 (exit $ac_status); }; } &&
18050 { ac_try='test -s conftest$ac_exeext'
18051 { (case "(($ac_try" in
18052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18053 *) ac_try_echo=$ac_try;;
18054esac
18055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18056 (eval "$ac_try") 2>&5
18057 ac_status=$?
18058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18059 (exit $ac_status); }; }; then
18060 eval "$as_ac_var=yes"
18061else
18062 echo "$as_me: failed program was:" >&5
18063sed 's/^/| /' conftest.$ac_ext >&5
18064
18065 eval "$as_ac_var=no"
18066fi
18067
18068rm -f core conftest.err conftest.$ac_objext \
18069 conftest$ac_exeext conftest.$ac_ext
18070fi
18071ac_res=`eval echo '${'$as_ac_var'}'`
18072 { echo "$as_me:$LINENO: result: $ac_res" >&5
18073echo "${ECHO_T}$ac_res" >&6; }
18074if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018075 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018076#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018077_ACEOF
18078
18079fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018080done
John Criswell7a73b802003-06-30 21:59:07 +000018081
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018082
18083
18084
18085
Reid Spencerafa22e22006-12-10 23:29:19 +000018086for ac_func in setjmp longjmp sigsetjmp siglongjmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018087do
18088as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18089{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18090echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18091if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18092 echo $ECHO_N "(cached) $ECHO_C" >&6
18093else
18094 cat >conftest.$ac_ext <<_ACEOF
18095/* confdefs.h. */
18096_ACEOF
18097cat confdefs.h >>conftest.$ac_ext
18098cat >>conftest.$ac_ext <<_ACEOF
18099/* end confdefs.h. */
18100/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18102#define $ac_func innocuous_$ac_func
18103
18104/* System header to define __stub macros and hopefully few prototypes,
18105 which can conflict with char $ac_func (); below.
18106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18107 <limits.h> exists even on freestanding compilers. */
18108
18109#ifdef __STDC__
18110# include <limits.h>
18111#else
18112# include <assert.h>
18113#endif
18114
18115#undef $ac_func
18116
18117/* Override any GCC internal prototype to avoid an error.
18118 Use char because int might match the return type of a GCC
18119 builtin and then its argument prototype would still apply. */
18120#ifdef __cplusplus
18121extern "C"
18122#endif
18123char $ac_func ();
18124/* The GNU C library defines this for functions which it implements
18125 to always fail with ENOSYS. Some functions are actually named
18126 something starting with __ and the normal name is an alias. */
18127#if defined __stub_$ac_func || defined __stub___$ac_func
18128choke me
18129#endif
18130
18131int
18132main ()
18133{
18134return $ac_func ();
18135 ;
18136 return 0;
18137}
18138_ACEOF
18139rm -f conftest.$ac_objext conftest$ac_exeext
18140if { (ac_try="$ac_link"
18141case "(($ac_try" in
18142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18143 *) ac_try_echo=$ac_try;;
18144esac
18145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18146 (eval "$ac_link") 2>conftest.er1
18147 ac_status=$?
18148 grep -v '^ *+' conftest.er1 >conftest.err
18149 rm -f conftest.er1
18150 cat conftest.err >&5
18151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18152 (exit $ac_status); } &&
18153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18154 { (case "(($ac_try" in
18155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18156 *) ac_try_echo=$ac_try;;
18157esac
18158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18159 (eval "$ac_try") 2>&5
18160 ac_status=$?
18161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162 (exit $ac_status); }; } &&
18163 { ac_try='test -s conftest$ac_exeext'
18164 { (case "(($ac_try" in
18165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18166 *) ac_try_echo=$ac_try;;
18167esac
18168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18169 (eval "$ac_try") 2>&5
18170 ac_status=$?
18171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18172 (exit $ac_status); }; }; then
18173 eval "$as_ac_var=yes"
18174else
18175 echo "$as_me: failed program was:" >&5
18176sed 's/^/| /' conftest.$ac_ext >&5
18177
18178 eval "$as_ac_var=no"
18179fi
18180
18181rm -f core conftest.err conftest.$ac_objext \
18182 conftest$ac_exeext conftest.$ac_ext
18183fi
18184ac_res=`eval echo '${'$as_ac_var'}'`
18185 { echo "$as_me:$LINENO: result: $ac_res" >&5
18186echo "${ECHO_T}$ac_res" >&6; }
18187if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000018188 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018189#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000018190_ACEOF
18191
18192fi
18193done
18194
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018195{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18196echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18197if test "${llvm_cv_c_printf_a+set}" = set; then
18198 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018199else
Reid Spencer2706f8c2004-09-19 23:53:36 +000018200 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000018201ac_cpp='$CPP $CPPFLAGS'
18202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18204ac_compiler_gnu=$ac_cv_c_compiler_gnu
18205
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018206 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000018207 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000018208else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018209 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000018210
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018211 /* confdefs.h. */
18212_ACEOF
18213cat confdefs.h >>conftest.$ac_ext
18214cat >>conftest.$ac_ext <<_ACEOF
18215/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000018216
John Criswella0137d32003-10-13 16:22:01 +000018217#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000018218#include <stdlib.h>
18219
John Criswella0137d32003-10-13 16:22:01 +000018220int
18221main ()
18222{
18223
Reid Spencer2706f8c2004-09-19 23:53:36 +000018224volatile double A, B;
18225char Buffer[100];
18226A = 1;
18227A /= 10.0;
18228sprintf(Buffer, "%a", A);
18229B = atof(Buffer);
18230if (A != B)
18231 return (1);
18232if (A != 0x1.999999999999ap-4)
18233 return (1);
18234return (0);
John Criswella0137d32003-10-13 16:22:01 +000018235 ;
18236 return 0;
18237}
18238_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018239rm -f conftest$ac_exeext
18240if { (ac_try="$ac_link"
18241case "(($ac_try" in
18242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18243 *) ac_try_echo=$ac_try;;
18244esac
18245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18246 (eval "$ac_link") 2>&5
18247 ac_status=$?
18248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18250 { (case "(($ac_try" in
18251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18252 *) ac_try_echo=$ac_try;;
18253esac
18254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18255 (eval "$ac_try") 2>&5
18256 ac_status=$?
18257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18258 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000018259 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000018260else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018261 echo "$as_me: program exited with status $ac_status" >&5
18262echo "$as_me: failed program was:" >&5
18263sed 's/^/| /' conftest.$ac_ext >&5
18264
18265( exit $ac_status )
18266llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000018267fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018268rm -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 +000018269fi
Reid Spencera773bd52006-08-04 18:18:08 +000018270
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018271
Reid Spencer2706f8c2004-09-19 23:53:36 +000018272 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000018273ac_cpp='$CPP $CPPFLAGS'
18274ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18275ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18276ac_compiler_gnu=$ac_cv_c_compiler_gnu
18277
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018278fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018279{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18280echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000018281 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000018282
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018283cat >>confdefs.h <<\_ACEOF
18284#define HAVE_PRINTF_A 1
18285_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000018286
Reid Spencer2706f8c2004-09-19 23:53:36 +000018287 fi
John Criswella0137d32003-10-13 16:22:01 +000018288
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018289
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018290{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18291echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18292if test "${ac_cv_func_rand48+set}" = set; then
18293 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018294else
Reid Spencera773bd52006-08-04 18:18:08 +000018295 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018296ac_cpp='$CXXCPP $CPPFLAGS'
18297ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18298ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18299ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18300
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018301 cat >conftest.$ac_ext <<_ACEOF
18302/* confdefs.h. */
18303_ACEOF
18304cat confdefs.h >>conftest.$ac_ext
18305cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018306/* end confdefs.h. */
18307#include <stdlib.h>
18308int
18309main ()
18310{
18311srand48(0);lrand48();drand48();
18312 ;
18313 return 0;
18314}
18315_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018316rm -f conftest.$ac_objext
18317if { (ac_try="$ac_compile"
18318case "(($ac_try" in
18319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18320 *) ac_try_echo=$ac_try;;
18321esac
18322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18323 (eval "$ac_compile") 2>conftest.er1
18324 ac_status=$?
18325 grep -v '^ *+' conftest.er1 >conftest.err
18326 rm -f conftest.er1
18327 cat conftest.err >&5
18328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329 (exit $ac_status); } &&
18330 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18331 { (case "(($ac_try" in
18332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18333 *) ac_try_echo=$ac_try;;
18334esac
18335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18336 (eval "$ac_try") 2>&5
18337 ac_status=$?
18338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339 (exit $ac_status); }; } &&
18340 { ac_try='test -s conftest.$ac_objext'
18341 { (case "(($ac_try" in
18342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18343 *) ac_try_echo=$ac_try;;
18344esac
18345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18346 (eval "$ac_try") 2>&5
18347 ac_status=$?
18348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18349 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018350 ac_cv_func_rand48=yes
18351else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018352 echo "$as_me: failed program was:" >&5
18353sed 's/^/| /' conftest.$ac_ext >&5
18354
18355 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018356fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018357
Reid Spencera773bd52006-08-04 18:18:08 +000018358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018359 ac_ext=c
18360ac_cpp='$CPP $CPPFLAGS'
18361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18363ac_compiler_gnu=$ac_cv_c_compiler_gnu
18364
18365fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018366{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18367echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018368
18369if test "$ac_cv_func_rand48" = "yes" ; then
18370
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018371cat >>confdefs.h <<\_ACEOF
18372#define HAVE_RAND48 1
18373_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018374
18375fi
John Criswell0021c312004-02-13 21:57:29 +000018376
18377
Torok Edwin871384f2010-01-26 08:50:50 +000018378
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018379{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18380echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18381if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18382 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000018383else
Reid Spencera773bd52006-08-04 18:18:08 +000018384 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000018385ac_cpp='$CXXCPP $CPPFLAGS'
18386ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18387ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18388ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18389
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018390 cat >conftest.$ac_ext <<_ACEOF
18391/* confdefs.h. */
18392_ACEOF
18393cat confdefs.h >>conftest.$ac_ext
18394cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018395/* end confdefs.h. */
18396#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000018397int
18398main ()
18399{
18400float f; isnan(f);
18401 ;
18402 return 0;
18403}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018404_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018405rm -f conftest.$ac_objext
18406if { (ac_try="$ac_compile"
18407case "(($ac_try" in
18408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18409 *) ac_try_echo=$ac_try;;
18410esac
18411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18412 (eval "$ac_compile") 2>conftest.er1
18413 ac_status=$?
18414 grep -v '^ *+' conftest.er1 >conftest.err
18415 rm -f conftest.er1
18416 cat conftest.err >&5
18417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18418 (exit $ac_status); } &&
18419 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18420 { (case "(($ac_try" in
18421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18422 *) ac_try_echo=$ac_try;;
18423esac
18424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18425 (eval "$ac_try") 2>&5
18426 ac_status=$?
18427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428 (exit $ac_status); }; } &&
18429 { ac_try='test -s conftest.$ac_objext'
18430 { (case "(($ac_try" in
18431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18432 *) ac_try_echo=$ac_try;;
18433esac
18434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18435 (eval "$ac_try") 2>&5
18436 ac_status=$?
18437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018439 ac_cv_func_isnan_in_math_h=yes
18440else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018441 echo "$as_me: failed program was:" >&5
18442sed 's/^/| /' conftest.$ac_ext >&5
18443
18444 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018445fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018446
Reid Spencera773bd52006-08-04 18:18:08 +000018447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018448 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018449ac_cpp='$CPP $CPPFLAGS'
18450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18452ac_compiler_gnu=$ac_cv_c_compiler_gnu
18453
18454fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018455{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
18456echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018457
18458
18459if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018460
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018461cat >>confdefs.h <<\_ACEOF
18462#define HAVE_ISNAN_IN_MATH_H 1
18463_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018464
Reid Spencerabec8f92004-10-27 23:03:44 +000018465fi
18466
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018467{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
18468echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
18469if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
18470 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018471else
Reid Spencera773bd52006-08-04 18:18:08 +000018472 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018473ac_cpp='$CXXCPP $CPPFLAGS'
18474ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18475ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18476ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18477
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018478 cat >conftest.$ac_ext <<_ACEOF
18479/* confdefs.h. */
18480_ACEOF
18481cat confdefs.h >>conftest.$ac_ext
18482cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018483/* end confdefs.h. */
18484#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000018485int
18486main ()
18487{
18488float f; isnan(f);
18489 ;
18490 return 0;
18491}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018492_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018493rm -f conftest.$ac_objext
18494if { (ac_try="$ac_compile"
18495case "(($ac_try" in
18496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18497 *) ac_try_echo=$ac_try;;
18498esac
18499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18500 (eval "$ac_compile") 2>conftest.er1
18501 ac_status=$?
18502 grep -v '^ *+' conftest.er1 >conftest.err
18503 rm -f conftest.er1
18504 cat conftest.err >&5
18505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18506 (exit $ac_status); } &&
18507 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18508 { (case "(($ac_try" in
18509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18510 *) ac_try_echo=$ac_try;;
18511esac
18512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18513 (eval "$ac_try") 2>&5
18514 ac_status=$?
18515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18516 (exit $ac_status); }; } &&
18517 { ac_try='test -s conftest.$ac_objext'
18518 { (case "(($ac_try" in
18519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18520 *) ac_try_echo=$ac_try;;
18521esac
18522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18523 (eval "$ac_try") 2>&5
18524 ac_status=$?
18525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018527 ac_cv_func_isnan_in_cmath=yes
18528else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018529 echo "$as_me: failed program was:" >&5
18530sed 's/^/| /' conftest.$ac_ext >&5
18531
18532 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018533fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018534
Reid Spencera773bd52006-08-04 18:18:08 +000018535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018536 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018537ac_cpp='$CPP $CPPFLAGS'
18538ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18539ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18540ac_compiler_gnu=$ac_cv_c_compiler_gnu
18541
18542fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018543{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
18544echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018545
18546if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018547
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018548cat >>confdefs.h <<\_ACEOF
18549#define HAVE_ISNAN_IN_CMATH 1
18550_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018551
Reid Spencerabec8f92004-10-27 23:03:44 +000018552fi
18553
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018554{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
18555echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
18556if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
18557 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018558else
Reid Spencera773bd52006-08-04 18:18:08 +000018559 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018560ac_cpp='$CXXCPP $CPPFLAGS'
18561ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18562ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18563ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18564
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018565 cat >conftest.$ac_ext <<_ACEOF
18566/* confdefs.h. */
18567_ACEOF
18568cat confdefs.h >>conftest.$ac_ext
18569cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018570/* end confdefs.h. */
18571#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000018572int
18573main ()
18574{
18575float f; std::isnan(f);
18576 ;
18577 return 0;
18578}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018579_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018580rm -f conftest.$ac_objext
18581if { (ac_try="$ac_compile"
18582case "(($ac_try" in
18583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18584 *) ac_try_echo=$ac_try;;
18585esac
18586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18587 (eval "$ac_compile") 2>conftest.er1
18588 ac_status=$?
18589 grep -v '^ *+' conftest.er1 >conftest.err
18590 rm -f conftest.er1
18591 cat conftest.err >&5
18592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18593 (exit $ac_status); } &&
18594 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18595 { (case "(($ac_try" in
18596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18597 *) ac_try_echo=$ac_try;;
18598esac
18599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18600 (eval "$ac_try") 2>&5
18601 ac_status=$?
18602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18603 (exit $ac_status); }; } &&
18604 { ac_try='test -s conftest.$ac_objext'
18605 { (case "(($ac_try" in
18606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18607 *) ac_try_echo=$ac_try;;
18608esac
18609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18610 (eval "$ac_try") 2>&5
18611 ac_status=$?
18612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18613 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018614 ac_cv_func_std_isnan_in_cmath=yes
18615else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018616 echo "$as_me: failed program was:" >&5
18617sed 's/^/| /' conftest.$ac_ext >&5
18618
18619 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018620fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018621
Reid Spencera773bd52006-08-04 18:18:08 +000018622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018623 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018624ac_cpp='$CPP $CPPFLAGS'
18625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18627ac_compiler_gnu=$ac_cv_c_compiler_gnu
18628
18629fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018630{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
18631echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018632
18633if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018634
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018635cat >>confdefs.h <<\_ACEOF
18636#define HAVE_STD_ISNAN_IN_CMATH 1
18637_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018638
Reid Spencerabec8f92004-10-27 23:03:44 +000018639fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018640
18641
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018642{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
18643echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
18644if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
18645 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000018646else
Reid Spencera773bd52006-08-04 18:18:08 +000018647 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000018648ac_cpp='$CXXCPP $CPPFLAGS'
18649ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18650ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18651ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18652
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018653 cat >conftest.$ac_ext <<_ACEOF
18654/* confdefs.h. */
18655_ACEOF
18656cat confdefs.h >>conftest.$ac_ext
18657cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018658/* end confdefs.h. */
18659#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000018660int
18661main ()
18662{
18663float f; isinf(f);
18664 ;
18665 return 0;
18666}
Brian Gaeke52a551d2004-07-21 03:14:12 +000018667_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018668rm -f conftest.$ac_objext
18669if { (ac_try="$ac_compile"
18670case "(($ac_try" in
18671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18672 *) ac_try_echo=$ac_try;;
18673esac
18674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18675 (eval "$ac_compile") 2>conftest.er1
18676 ac_status=$?
18677 grep -v '^ *+' conftest.er1 >conftest.err
18678 rm -f conftest.er1
18679 cat conftest.err >&5
18680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18681 (exit $ac_status); } &&
18682 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18683 { (case "(($ac_try" in
18684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18685 *) ac_try_echo=$ac_try;;
18686esac
18687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18688 (eval "$ac_try") 2>&5
18689 ac_status=$?
18690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18691 (exit $ac_status); }; } &&
18692 { ac_try='test -s conftest.$ac_objext'
18693 { (case "(($ac_try" in
18694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18695 *) ac_try_echo=$ac_try;;
18696esac
18697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18698 (eval "$ac_try") 2>&5
18699 ac_status=$?
18700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018702 ac_cv_func_isinf_in_math_h=yes
18703else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018704 echo "$as_me: failed program was:" >&5
18705sed 's/^/| /' conftest.$ac_ext >&5
18706
18707 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000018708fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018709
Reid Spencera773bd52006-08-04 18:18:08 +000018710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018711 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000018712ac_cpp='$CPP $CPPFLAGS'
18713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18715ac_compiler_gnu=$ac_cv_c_compiler_gnu
18716
18717fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018718{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
18719echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018720
18721if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018722
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018723cat >>confdefs.h <<\_ACEOF
18724#define HAVE_ISINF_IN_MATH_H 1
18725_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018726
Reid Spencerabec8f92004-10-27 23:03:44 +000018727fi
18728
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018729{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
18730echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
18731if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
18732 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000018733else
Reid Spencera773bd52006-08-04 18:18:08 +000018734 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000018735ac_cpp='$CXXCPP $CPPFLAGS'
18736ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18737ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18738ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18739
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018740 cat >conftest.$ac_ext <<_ACEOF
18741/* confdefs.h. */
18742_ACEOF
18743cat confdefs.h >>conftest.$ac_ext
18744cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018745/* end confdefs.h. */
18746#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000018747int
18748main ()
18749{
18750float f; isinf(f);
18751 ;
18752 return 0;
18753}
Brian Gaeke52a551d2004-07-21 03:14:12 +000018754_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018755rm -f conftest.$ac_objext
18756if { (ac_try="$ac_compile"
18757case "(($ac_try" in
18758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18759 *) ac_try_echo=$ac_try;;
18760esac
18761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18762 (eval "$ac_compile") 2>conftest.er1
18763 ac_status=$?
18764 grep -v '^ *+' conftest.er1 >conftest.err
18765 rm -f conftest.er1
18766 cat conftest.err >&5
18767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18768 (exit $ac_status); } &&
18769 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18770 { (case "(($ac_try" in
18771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18772 *) ac_try_echo=$ac_try;;
18773esac
18774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18775 (eval "$ac_try") 2>&5
18776 ac_status=$?
18777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18778 (exit $ac_status); }; } &&
18779 { ac_try='test -s conftest.$ac_objext'
18780 { (case "(($ac_try" in
18781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18782 *) ac_try_echo=$ac_try;;
18783esac
18784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18785 (eval "$ac_try") 2>&5
18786 ac_status=$?
18787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18788 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018789 ac_cv_func_isinf_in_cmath=yes
18790else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018791 echo "$as_me: failed program was:" >&5
18792sed 's/^/| /' conftest.$ac_ext >&5
18793
18794 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000018795fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018796
Reid Spencera773bd52006-08-04 18:18:08 +000018797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018798 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000018799ac_cpp='$CPP $CPPFLAGS'
18800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18802ac_compiler_gnu=$ac_cv_c_compiler_gnu
18803
18804fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018805{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
18806echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018807
18808if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018809
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018810cat >>confdefs.h <<\_ACEOF
18811#define HAVE_ISINF_IN_CMATH 1
18812_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018813
Reid Spencerabec8f92004-10-27 23:03:44 +000018814fi
18815
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018816{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
18817echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
18818if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
18819 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000018820else
Reid Spencera773bd52006-08-04 18:18:08 +000018821 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000018822ac_cpp='$CXXCPP $CPPFLAGS'
18823ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18824ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18825ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18826
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018827 cat >conftest.$ac_ext <<_ACEOF
18828/* confdefs.h. */
18829_ACEOF
18830cat confdefs.h >>conftest.$ac_ext
18831cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018832/* end confdefs.h. */
18833#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000018834int
18835main ()
18836{
18837float f; std::isinf(f)}
18838 ;
18839 return 0;
18840}
Brian Gaeke52a551d2004-07-21 03:14:12 +000018841_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018842rm -f conftest.$ac_objext
18843if { (ac_try="$ac_compile"
18844case "(($ac_try" in
18845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18846 *) ac_try_echo=$ac_try;;
18847esac
18848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18849 (eval "$ac_compile") 2>conftest.er1
18850 ac_status=$?
18851 grep -v '^ *+' conftest.er1 >conftest.err
18852 rm -f conftest.er1
18853 cat conftest.err >&5
18854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); } &&
18856 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18857 { (case "(($ac_try" in
18858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18859 *) ac_try_echo=$ac_try;;
18860esac
18861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18862 (eval "$ac_try") 2>&5
18863 ac_status=$?
18864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18865 (exit $ac_status); }; } &&
18866 { ac_try='test -s conftest.$ac_objext'
18867 { (case "(($ac_try" in
18868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18869 *) ac_try_echo=$ac_try;;
18870esac
18871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18872 (eval "$ac_try") 2>&5
18873 ac_status=$?
18874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018876 ac_cv_func_std_isinf_in_cmath=yes
18877else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018878 echo "$as_me: failed program was:" >&5
18879sed 's/^/| /' conftest.$ac_ext >&5
18880
18881 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000018882fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018883
Reid Spencera773bd52006-08-04 18:18:08 +000018884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018885 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000018886ac_cpp='$CPP $CPPFLAGS'
18887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18889ac_compiler_gnu=$ac_cv_c_compiler_gnu
18890
18891fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018892{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
18893echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018894
18895if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018896
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018897cat >>confdefs.h <<\_ACEOF
18898#define HAVE_STD_ISINF_IN_CMATH 1
18899_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018900
Reid Spencerabec8f92004-10-27 23:03:44 +000018901fi
18902
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018903{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
18904echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
18905if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
18906 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000018907else
Reid Spencera773bd52006-08-04 18:18:08 +000018908 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000018909ac_cpp='$CXXCPP $CPPFLAGS'
18910ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18911ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18912ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18913
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018914 cat >conftest.$ac_ext <<_ACEOF
18915/* confdefs.h. */
18916_ACEOF
18917cat confdefs.h >>conftest.$ac_ext
18918cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000018919/* end confdefs.h. */
18920#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000018921int
18922main ()
18923{
18924float f; finite(f);
18925 ;
18926 return 0;
18927}
Brian Gaeked59a6472004-07-21 03:33:58 +000018928_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018929rm -f conftest.$ac_objext
18930if { (ac_try="$ac_compile"
18931case "(($ac_try" in
18932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18933 *) ac_try_echo=$ac_try;;
18934esac
18935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18936 (eval "$ac_compile") 2>conftest.er1
18937 ac_status=$?
18938 grep -v '^ *+' conftest.er1 >conftest.err
18939 rm -f conftest.er1
18940 cat conftest.err >&5
18941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18942 (exit $ac_status); } &&
18943 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18944 { (case "(($ac_try" in
18945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18946 *) ac_try_echo=$ac_try;;
18947esac
18948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18949 (eval "$ac_try") 2>&5
18950 ac_status=$?
18951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18952 (exit $ac_status); }; } &&
18953 { ac_try='test -s conftest.$ac_objext'
18954 { (case "(($ac_try" in
18955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18956 *) ac_try_echo=$ac_try;;
18957esac
18958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18959 (eval "$ac_try") 2>&5
18960 ac_status=$?
18961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000018963 ac_cv_func_finite_in_ieeefp_h=yes
18964else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018965 echo "$as_me: failed program was:" >&5
18966sed 's/^/| /' conftest.$ac_ext >&5
18967
18968 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000018969fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018970
Reid Spencera773bd52006-08-04 18:18:08 +000018971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018972 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000018973ac_cpp='$CPP $CPPFLAGS'
18974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18976ac_compiler_gnu=$ac_cv_c_compiler_gnu
18977
18978fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018979{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
18980echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018981
Brian Gaeke6802b552004-10-28 05:06:45 +000018982if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000018983
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018984cat >>confdefs.h <<\_ACEOF
18985#define HAVE_FINITE_IN_IEEEFP_H 1
18986_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000018987
Reid Spencerabec8f92004-10-27 23:03:44 +000018988fi
18989
18990
18991
Reid Spencer30fe5262007-01-20 07:48:49 +000018992if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000018993
18994
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018995for ac_header in stdlib.h unistd.h
18996do
18997as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18998if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18999 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19000echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19001if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19002 echo $ECHO_N "(cached) $ECHO_C" >&6
19003fi
19004ac_res=`eval echo '${'$as_ac_Header'}'`
19005 { echo "$as_me:$LINENO: result: $ac_res" >&5
19006echo "${ECHO_T}$ac_res" >&6; }
19007else
19008 # Is the header compilable?
19009{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19010echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19011cat >conftest.$ac_ext <<_ACEOF
19012/* confdefs.h. */
19013_ACEOF
19014cat confdefs.h >>conftest.$ac_ext
19015cat >>conftest.$ac_ext <<_ACEOF
19016/* end confdefs.h. */
19017$ac_includes_default
19018#include <$ac_header>
19019_ACEOF
19020rm -f conftest.$ac_objext
19021if { (ac_try="$ac_compile"
19022case "(($ac_try" in
19023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19024 *) ac_try_echo=$ac_try;;
19025esac
19026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19027 (eval "$ac_compile") 2>conftest.er1
19028 ac_status=$?
19029 grep -v '^ *+' conftest.er1 >conftest.err
19030 rm -f conftest.er1
19031 cat conftest.err >&5
19032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19033 (exit $ac_status); } &&
19034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19035 { (case "(($ac_try" in
19036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19037 *) ac_try_echo=$ac_try;;
19038esac
19039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19040 (eval "$ac_try") 2>&5
19041 ac_status=$?
19042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19043 (exit $ac_status); }; } &&
19044 { ac_try='test -s conftest.$ac_objext'
19045 { (case "(($ac_try" in
19046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19047 *) ac_try_echo=$ac_try;;
19048esac
19049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19050 (eval "$ac_try") 2>&5
19051 ac_status=$?
19052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053 (exit $ac_status); }; }; then
19054 ac_header_compiler=yes
19055else
19056 echo "$as_me: failed program was:" >&5
19057sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019058
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019059 ac_header_compiler=no
19060fi
19061
19062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19063{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19064echo "${ECHO_T}$ac_header_compiler" >&6; }
19065
19066# Is the header present?
19067{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19068echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19069cat >conftest.$ac_ext <<_ACEOF
19070/* confdefs.h. */
19071_ACEOF
19072cat confdefs.h >>conftest.$ac_ext
19073cat >>conftest.$ac_ext <<_ACEOF
19074/* end confdefs.h. */
19075#include <$ac_header>
19076_ACEOF
19077if { (ac_try="$ac_cpp conftest.$ac_ext"
19078case "(($ac_try" in
19079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19080 *) ac_try_echo=$ac_try;;
19081esac
19082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19083 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19084 ac_status=$?
19085 grep -v '^ *+' conftest.er1 >conftest.err
19086 rm -f conftest.er1
19087 cat conftest.err >&5
19088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089 (exit $ac_status); } >/dev/null; then
19090 if test -s conftest.err; then
19091 ac_cpp_err=$ac_c_preproc_warn_flag
19092 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19093 else
19094 ac_cpp_err=
19095 fi
19096else
19097 ac_cpp_err=yes
19098fi
19099if test -z "$ac_cpp_err"; then
19100 ac_header_preproc=yes
19101else
19102 echo "$as_me: failed program was:" >&5
19103sed 's/^/| /' conftest.$ac_ext >&5
19104
19105 ac_header_preproc=no
19106fi
19107
19108rm -f conftest.err conftest.$ac_ext
19109{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19110echo "${ECHO_T}$ac_header_preproc" >&6; }
19111
19112# So? What about this header?
19113case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19114 yes:no: )
19115 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19116echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19118echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19119 ac_header_preproc=yes
19120 ;;
19121 no:yes:* )
19122 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19123echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19124 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19125echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19126 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19127echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19128 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19129echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19131echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19132 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19133echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19134 ( cat <<\_ASBOX
19135## ----------------------------------- ##
19136## Report this to llvmbugs@cs.uiuc.edu ##
19137## ----------------------------------- ##
19138_ASBOX
19139 ) | sed "s/^/$as_me: WARNING: /" >&2
19140 ;;
19141esac
19142{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19143echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19144if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19145 echo $ECHO_N "(cached) $ECHO_C" >&6
19146else
19147 eval "$as_ac_Header=\$ac_header_preproc"
19148fi
19149ac_res=`eval echo '${'$as_ac_Header'}'`
19150 { echo "$as_me:$LINENO: result: $ac_res" >&5
19151echo "${ECHO_T}$ac_res" >&6; }
19152
19153fi
19154if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019155 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019156#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000019157_ACEOF
19158
19159fi
19160
19161done
19162
19163
19164for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019165do
19166as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19167{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19168echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19169if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19170 echo $ECHO_N "(cached) $ECHO_C" >&6
19171else
19172 cat >conftest.$ac_ext <<_ACEOF
19173/* confdefs.h. */
19174_ACEOF
19175cat confdefs.h >>conftest.$ac_ext
19176cat >>conftest.$ac_ext <<_ACEOF
19177/* end confdefs.h. */
19178/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19179 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19180#define $ac_func innocuous_$ac_func
19181
19182/* System header to define __stub macros and hopefully few prototypes,
19183 which can conflict with char $ac_func (); below.
19184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19185 <limits.h> exists even on freestanding compilers. */
19186
19187#ifdef __STDC__
19188# include <limits.h>
19189#else
19190# include <assert.h>
19191#endif
19192
19193#undef $ac_func
19194
19195/* Override any GCC internal prototype to avoid an error.
19196 Use char because int might match the return type of a GCC
19197 builtin and then its argument prototype would still apply. */
19198#ifdef __cplusplus
19199extern "C"
19200#endif
19201char $ac_func ();
19202/* The GNU C library defines this for functions which it implements
19203 to always fail with ENOSYS. Some functions are actually named
19204 something starting with __ and the normal name is an alias. */
19205#if defined __stub_$ac_func || defined __stub___$ac_func
19206choke me
19207#endif
19208
19209int
19210main ()
19211{
19212return $ac_func ();
19213 ;
19214 return 0;
19215}
19216_ACEOF
19217rm -f conftest.$ac_objext conftest$ac_exeext
19218if { (ac_try="$ac_link"
19219case "(($ac_try" in
19220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19221 *) ac_try_echo=$ac_try;;
19222esac
19223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19224 (eval "$ac_link") 2>conftest.er1
19225 ac_status=$?
19226 grep -v '^ *+' conftest.er1 >conftest.err
19227 rm -f conftest.er1
19228 cat conftest.err >&5
19229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19230 (exit $ac_status); } &&
19231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19232 { (case "(($ac_try" in
19233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19234 *) ac_try_echo=$ac_try;;
19235esac
19236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19237 (eval "$ac_try") 2>&5
19238 ac_status=$?
19239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19240 (exit $ac_status); }; } &&
19241 { ac_try='test -s conftest$ac_exeext'
19242 { (case "(($ac_try" in
19243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19244 *) ac_try_echo=$ac_try;;
19245esac
19246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19247 (eval "$ac_try") 2>&5
19248 ac_status=$?
19249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250 (exit $ac_status); }; }; then
19251 eval "$as_ac_var=yes"
19252else
19253 echo "$as_me: failed program was:" >&5
19254sed 's/^/| /' conftest.$ac_ext >&5
19255
19256 eval "$as_ac_var=no"
19257fi
19258
19259rm -f core conftest.err conftest.$ac_objext \
19260 conftest$ac_exeext conftest.$ac_ext
19261fi
19262ac_res=`eval echo '${'$as_ac_var'}'`
19263 { echo "$as_me:$LINENO: result: $ac_res" >&5
19264echo "${ECHO_T}$ac_res" >&6; }
19265if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019266 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019267#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000019268_ACEOF
19269
19270fi
19271done
19272
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019273{ echo "$as_me:$LINENO: checking for working mmap" >&5
19274echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19275if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19276 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019277else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019278 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019279 ac_cv_func_mmap_fixed_mapped=no
19280else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019281 cat >conftest.$ac_ext <<_ACEOF
19282/* confdefs.h. */
19283_ACEOF
19284cat confdefs.h >>conftest.$ac_ext
19285cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019286/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019287$ac_includes_default
19288/* malloc might have been renamed as rpl_malloc. */
19289#undef malloc
19290
19291/* Thanks to Mike Haertel and Jim Avera for this test.
19292 Here is a matrix of mmap possibilities:
19293 mmap private not fixed
19294 mmap private fixed at somewhere currently unmapped
19295 mmap private fixed at somewhere already mapped
19296 mmap shared not fixed
19297 mmap shared fixed at somewhere currently unmapped
19298 mmap shared fixed at somewhere already mapped
19299 For private mappings, we should verify that changes cannot be read()
19300 back from the file, nor mmap's back from the file at a different
19301 address. (There have been systems where private was not correctly
19302 implemented like the infamous i386 svr4.0, and systems where the
19303 VM page cache was not coherent with the file system buffer cache
19304 like early versions of FreeBSD and possibly contemporary NetBSD.)
19305 For shared mappings, we should conversely verify that changes get
19306 propagated back to all the places they're supposed to be.
19307
19308 Grep wants private fixed already mapped.
19309 The main things grep needs to know about mmap are:
19310 * does it exist and is it safe to write into the mmap'd area
19311 * how to use it (BSD variants) */
19312
19313#include <fcntl.h>
19314#include <sys/mman.h>
19315
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019316#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000019317char *malloc ();
19318#endif
19319
19320/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019321#if !HAVE_GETPAGESIZE
19322/* Assume that all systems that can run configure have sys/param.h. */
19323# if !HAVE_SYS_PARAM_H
19324# define HAVE_SYS_PARAM_H 1
19325# endif
19326
John Criswell7a73b802003-06-30 21:59:07 +000019327# ifdef _SC_PAGESIZE
19328# define getpagesize() sysconf(_SC_PAGESIZE)
19329# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019330# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000019331# include <sys/param.h>
19332# ifdef EXEC_PAGESIZE
19333# define getpagesize() EXEC_PAGESIZE
19334# else /* no EXEC_PAGESIZE */
19335# ifdef NBPG
19336# define getpagesize() NBPG * CLSIZE
19337# ifndef CLSIZE
19338# define CLSIZE 1
19339# endif /* no CLSIZE */
19340# else /* no NBPG */
19341# ifdef NBPC
19342# define getpagesize() NBPC
19343# else /* no NBPC */
19344# ifdef PAGESIZE
19345# define getpagesize() PAGESIZE
19346# endif /* PAGESIZE */
19347# endif /* no NBPC */
19348# endif /* no NBPG */
19349# endif /* no EXEC_PAGESIZE */
19350# else /* no HAVE_SYS_PARAM_H */
19351# define getpagesize() 8192 /* punt totally */
19352# endif /* no HAVE_SYS_PARAM_H */
19353# endif /* no _SC_PAGESIZE */
19354
19355#endif /* no HAVE_GETPAGESIZE */
19356
19357int
19358main ()
19359{
19360 char *data, *data2, *data3;
19361 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019362 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000019363
19364 pagesize = getpagesize ();
19365
19366 /* First, make a file with some known garbage in it. */
19367 data = (char *) malloc (pagesize);
19368 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000019369 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019370 for (i = 0; i < pagesize; ++i)
19371 *(data + i) = rand ();
19372 umask (0);
19373 fd = creat ("conftest.mmap", 0600);
19374 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019375 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019376 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019377 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019378 close (fd);
19379
19380 /* Next, try to mmap the file at a fixed address which already has
19381 something else allocated at it. If we can, also make sure that
19382 we see the same garbage. */
19383 fd = open ("conftest.mmap", O_RDWR);
19384 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019385 return 1;
19386 data2 = (char *) malloc (2 * pagesize);
19387 if (!data2)
19388 return 1;
19389 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000019390 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000019391 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019392 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019393 for (i = 0; i < pagesize; ++i)
19394 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019395 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019396
19397 /* Finally, make sure that changes to the mapped area do not
19398 percolate back to the file as seen by read(). (This is a bug on
19399 some variants of i386 svr4.0.) */
19400 for (i = 0; i < pagesize; ++i)
19401 *(data2 + i) = *(data2 + i) + 1;
19402 data3 = (char *) malloc (pagesize);
19403 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019404 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019405 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019406 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019407 for (i = 0; i < pagesize; ++i)
19408 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019409 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019410 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000019411 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000019412}
19413_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019414rm -f conftest$ac_exeext
19415if { (ac_try="$ac_link"
19416case "(($ac_try" in
19417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19418 *) ac_try_echo=$ac_try;;
19419esac
19420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19421 (eval "$ac_link") 2>&5
19422 ac_status=$?
19423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19425 { (case "(($ac_try" in
19426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19427 *) ac_try_echo=$ac_try;;
19428esac
19429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19430 (eval "$ac_try") 2>&5
19431 ac_status=$?
19432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019434 ac_cv_func_mmap_fixed_mapped=yes
19435else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019436 echo "$as_me: program exited with status $ac_status" >&5
19437echo "$as_me: failed program was:" >&5
19438sed 's/^/| /' conftest.$ac_ext >&5
19439
19440( exit $ac_status )
19441ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000019442fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019443rm -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 +000019444fi
Reid Spencera773bd52006-08-04 18:18:08 +000019445
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019446
John Criswell7a73b802003-06-30 21:59:07 +000019447fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019448{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19449echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000019450if test $ac_cv_func_mmap_fixed_mapped = yes; then
19451
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019452cat >>confdefs.h <<\_ACEOF
19453#define HAVE_MMAP 1
19454_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019455
19456fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019457rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000019458
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019459 { echo "$as_me:$LINENO: checking for mmap of files" >&5
19460echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
19461if test "${ac_cv_func_mmap_file+set}" = set; then
19462 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019463else
Reid Spencer2706f8c2004-09-19 23:53:36 +000019464 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000019465ac_cpp='$CPP $CPPFLAGS'
19466ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19467ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19468ac_compiler_gnu=$ac_cv_c_compiler_gnu
19469
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019470 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000019471 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000019472else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019473 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000019474
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019475 /* confdefs.h. */
19476_ACEOF
19477cat confdefs.h >>conftest.$ac_ext
19478cat >>conftest.$ac_ext <<_ACEOF
19479/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000019480
John Criswell7a73b802003-06-30 21:59:07 +000019481#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000019482#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000019483#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000019484
19485int
19486main ()
19487{
John Criswell7a73b802003-06-30 21:59:07 +000019488
19489 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000019490 fd = creat ("foo",0777);
19491 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
19492 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000019493 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000019494 ;
19495 return 0;
19496}
John Criswell7a73b802003-06-30 21:59:07 +000019497_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019498rm -f conftest$ac_exeext
19499if { (ac_try="$ac_link"
19500case "(($ac_try" in
19501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19502 *) ac_try_echo=$ac_try;;
19503esac
19504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19505 (eval "$ac_link") 2>&5
19506 ac_status=$?
19507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19508 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19509 { (case "(($ac_try" in
19510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19511 *) ac_try_echo=$ac_try;;
19512esac
19513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19514 (eval "$ac_try") 2>&5
19515 ac_status=$?
19516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019518 ac_cv_func_mmap_file=yes
19519else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019520 echo "$as_me: program exited with status $ac_status" >&5
19521echo "$as_me: failed program was:" >&5
19522sed 's/^/| /' conftest.$ac_ext >&5
19523
19524( exit $ac_status )
19525ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000019526fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019527rm -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 +000019528fi
Reid Spencera773bd52006-08-04 18:18:08 +000019529
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019530
John Criswell7a73b802003-06-30 21:59:07 +000019531 ac_ext=c
19532ac_cpp='$CPP $CPPFLAGS'
19533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19535ac_compiler_gnu=$ac_cv_c_compiler_gnu
19536
19537
19538fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019539{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
19540echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000019541if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000019542
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019543cat >>confdefs.h <<\_ACEOF
19544#define HAVE_MMAP_FILE
19545_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019546
19547 MMAP_FILE=yes
19548
19549fi
19550
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019551 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
19552echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
19553if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
19554 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000019555else
Reid Spencer582a23c2004-12-29 07:07:57 +000019556 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000019557 ac_cv_need_dev_zero_for_mmap=yes
19558 else
19559 ac_cv_need_dev_zero_for_mmap=no
19560 fi
19561
19562fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019563{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
19564echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000019565if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
19566
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019567cat >>confdefs.h <<\_ACEOF
19568#define NEED_DEV_ZERO_FOR_MMAP 1
19569_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000019570
19571fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019572
Reid Spencer30fe5262007-01-20 07:48:49 +000019573 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
19574 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019575 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
19576echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000019577 fi
19578 if test "$ac_cv_func_mmap_file" = "no"
19579 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019580 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
19581echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000019582 fi
John Criswellb13092b2003-07-22 21:00:24 +000019583fi
John Criswell7a73b802003-06-30 21:59:07 +000019584
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019585{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
19586echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
19587cat >conftest.$ac_ext <<_ACEOF
19588/* confdefs.h. */
19589_ACEOF
19590cat confdefs.h >>conftest.$ac_ext
19591cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000019592/* end confdefs.h. */
19593int main() {
Owen Andersona8603702009-05-19 22:18:56 +000019594 volatile unsigned long val = 1;
19595 __sync_synchronize();
19596 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000019597 __sync_add_and_fetch(&val, 1);
19598 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000019599 return 0;
19600 }
Owen Andersond4b272b2009-05-18 23:58:51 +000019601
19602_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019603rm -f conftest.$ac_objext conftest$ac_exeext
19604if { (ac_try="$ac_link"
19605case "(($ac_try" in
19606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19607 *) ac_try_echo=$ac_try;;
19608esac
19609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19610 (eval "$ac_link") 2>conftest.er1
19611 ac_status=$?
19612 grep -v '^ *+' conftest.er1 >conftest.err
19613 rm -f conftest.er1
19614 cat conftest.err >&5
19615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616 (exit $ac_status); } &&
19617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19618 { (case "(($ac_try" in
19619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19620 *) ac_try_echo=$ac_try;;
19621esac
19622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19623 (eval "$ac_try") 2>&5
19624 ac_status=$?
19625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626 (exit $ac_status); }; } &&
19627 { ac_try='test -s conftest$ac_exeext'
19628 { (case "(($ac_try" in
19629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19630 *) ac_try_echo=$ac_try;;
19631esac
19632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19633 (eval "$ac_try") 2>&5
19634 ac_status=$?
19635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636 (exit $ac_status); }; }; then
19637 { echo "$as_me:$LINENO: result: yes" >&5
19638echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000019639
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019640cat >>confdefs.h <<\_ACEOF
19641#define LLVM_MULTITHREADED 1
19642_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000019643
Owen Andersond4b272b2009-05-18 23:58:51 +000019644else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019645 echo "$as_me: failed program was:" >&5
19646sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000019647
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019648 { echo "$as_me:$LINENO: result: no" >&5
19649echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000019650
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019651cat >>confdefs.h <<\_ACEOF
19652#define LLVM_MULTITHREADED 0
19653_ACEOF
19654
19655 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
19656echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000019657fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019658
Owen Andersond4b272b2009-05-18 23:58:51 +000019659rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019660 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000019661
19662
John Criswell7a73b802003-06-30 21:59:07 +000019663
Nick Lewycky4372e692009-09-29 06:18:23 +000019664if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019665 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
19666echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
19667if test "${llvm_cv_linux_mixed+set}" = set; then
19668 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000019669else
19670 ac_ext=c
19671ac_cpp='$CPP $CPPFLAGS'
19672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19674ac_compiler_gnu=$ac_cv_c_compiler_gnu
19675
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019676 cat >conftest.$ac_ext <<_ACEOF
19677/* confdefs.h. */
19678_ACEOF
19679cat confdefs.h >>conftest.$ac_ext
19680cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000019681/* end confdefs.h. */
19682#ifndef __x86_64__
19683 error: Not x86-64 even if uname says so!
19684 #endif
19685
19686int
19687main ()
19688{
19689
19690 ;
19691 return 0;
19692}
19693_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019694rm -f conftest.$ac_objext
19695if { (ac_try="$ac_compile"
19696case "(($ac_try" in
19697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19698 *) ac_try_echo=$ac_try;;
19699esac
19700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19701 (eval "$ac_compile") 2>conftest.er1
19702 ac_status=$?
19703 grep -v '^ *+' conftest.er1 >conftest.err
19704 rm -f conftest.er1
19705 cat conftest.err >&5
19706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19707 (exit $ac_status); } &&
19708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19709 { (case "(($ac_try" in
19710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19711 *) ac_try_echo=$ac_try;;
19712esac
19713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19714 (eval "$ac_try") 2>&5
19715 ac_status=$?
19716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19717 (exit $ac_status); }; } &&
19718 { ac_try='test -s conftest.$ac_objext'
19719 { (case "(($ac_try" in
19720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19721 *) ac_try_echo=$ac_try;;
19722esac
19723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19724 (eval "$ac_try") 2>&5
19725 ac_status=$?
19726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19727 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000019728 llvm_cv_linux_mixed=no
19729else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019730 echo "$as_me: failed program was:" >&5
19731sed 's/^/| /' conftest.$ac_ext >&5
19732
19733 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000019734fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019735
Nick Lewycky4372e692009-09-29 06:18:23 +000019736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19737 ac_ext=c
19738ac_cpp='$CPP $CPPFLAGS'
19739ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19740ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19741ac_compiler_gnu=$ac_cv_c_compiler_gnu
19742
19743
19744fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019745{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
19746echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000019747
19748 if test "$llvm_cv_linux_mixed" = "yes"; then
19749 llvm_cv_target_arch="x86"
19750 ARCH="x86"
19751 fi
19752fi
19753
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019754
Reid Spencer9372f152007-07-30 20:13:24 +000019755for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019756do
19757as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19758{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19759echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19760if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19761 echo $ECHO_N "(cached) $ECHO_C" >&6
19762else
19763 cat >conftest.$ac_ext <<_ACEOF
19764/* confdefs.h. */
19765_ACEOF
19766cat confdefs.h >>conftest.$ac_ext
19767cat >>conftest.$ac_ext <<_ACEOF
19768/* end confdefs.h. */
19769/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19771#define $ac_func innocuous_$ac_func
19772
19773/* System header to define __stub macros and hopefully few prototypes,
19774 which can conflict with char $ac_func (); below.
19775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19776 <limits.h> exists even on freestanding compilers. */
19777
19778#ifdef __STDC__
19779# include <limits.h>
19780#else
19781# include <assert.h>
19782#endif
19783
19784#undef $ac_func
19785
19786/* Override any GCC internal prototype to avoid an error.
19787 Use char because int might match the return type of a GCC
19788 builtin and then its argument prototype would still apply. */
19789#ifdef __cplusplus
19790extern "C"
19791#endif
19792char $ac_func ();
19793/* The GNU C library defines this for functions which it implements
19794 to always fail with ENOSYS. Some functions are actually named
19795 something starting with __ and the normal name is an alias. */
19796#if defined __stub_$ac_func || defined __stub___$ac_func
19797choke me
19798#endif
19799
19800int
19801main ()
19802{
19803return $ac_func ();
19804 ;
19805 return 0;
19806}
19807_ACEOF
19808rm -f conftest.$ac_objext conftest$ac_exeext
19809if { (ac_try="$ac_link"
19810case "(($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_link") 2>conftest.er1
19816 ac_status=$?
19817 grep -v '^ *+' conftest.er1 >conftest.err
19818 rm -f conftest.er1
19819 cat conftest.err >&5
19820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821 (exit $ac_status); } &&
19822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19823 { (case "(($ac_try" in
19824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19825 *) ac_try_echo=$ac_try;;
19826esac
19827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19828 (eval "$ac_try") 2>&5
19829 ac_status=$?
19830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831 (exit $ac_status); }; } &&
19832 { ac_try='test -s conftest$ac_exeext'
19833 { (case "(($ac_try" in
19834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19835 *) ac_try_echo=$ac_try;;
19836esac
19837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19838 (eval "$ac_try") 2>&5
19839 ac_status=$?
19840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841 (exit $ac_status); }; }; then
19842 eval "$as_ac_var=yes"
19843else
19844 echo "$as_me: failed program was:" >&5
19845sed 's/^/| /' conftest.$ac_ext >&5
19846
19847 eval "$as_ac_var=no"
19848fi
19849
19850rm -f core conftest.err conftest.$ac_objext \
19851 conftest$ac_exeext conftest.$ac_ext
19852fi
19853ac_res=`eval echo '${'$as_ac_var'}'`
19854 { echo "$as_me:$LINENO: result: $ac_res" >&5
19855echo "${ECHO_T}$ac_res" >&6; }
19856if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000019857 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019858#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000019859_ACEOF
19860
19861fi
19862done
19863
19864
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019865{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
19866echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
19867if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
19868 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019869else
19870 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000019871if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019872 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000019873 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
19874 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019875 if test $? -eq 0 ; then
19876 llvm_cv_llvmgcc_sanity="yes"
19877 fi
19878 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000019879fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019880fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019881{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
19882echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019883
19884if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019885 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
19886echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000019887 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019888 LLVMCC1=$llvmcc1path
19889
Reid Spencer502935f2004-12-22 05:56:56 +000019890 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019891 LLVMCC1PLUS=$llvmcc1pluspath
19892
Reid Spencer502935f2004-12-22 05:56:56 +000019893 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
19894 LLVMGCCDIR=$llvmgccdir
19895
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000019896 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000019897 LLVMGCC_LANGS=$llvmgcclangs
19898
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019899 { echo "$as_me:$LINENO: result: ok" >&5
19900echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000019901fi
19902
Reid Spencer2bc7bd52004-11-29 12:29:58 +000019903SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000019904
19905
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000019906SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
19907
19908
Reid Spencere9de0912004-08-20 09:03:57 +000019909# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019910# information into substitutions that will end up in Makefile.config.in
19911# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000019912if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000019913 prefix="/usr/local"
19914fi
Reid Spencere9de0912004-08-20 09:03:57 +000019915eval LLVM_PREFIX="${prefix}";
19916eval LLVM_BINDIR="${prefix}/bin";
19917eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000019918eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000019919eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000019920eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000019921eval LLVM_INCLUDEDIR="${prefix}/include";
19922eval LLVM_INFODIR="${prefix}/info";
19923eval LLVM_MANDIR="${prefix}/man";
19924LLVM_CONFIGTIME=`date`
19925
19926
19927
19928
19929
19930
19931
19932
19933
19934
19935
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019936# Place the various directores into the config.h file as #defines so that we
19937# can know about the installation paths within LLVM.
19938
Reid Spencere9de0912004-08-20 09:03:57 +000019939cat >>confdefs.h <<_ACEOF
19940#define LLVM_PREFIX "$LLVM_PREFIX"
19941_ACEOF
19942
19943
19944cat >>confdefs.h <<_ACEOF
19945#define LLVM_BINDIR "$LLVM_BINDIR"
19946_ACEOF
19947
19948
19949cat >>confdefs.h <<_ACEOF
19950#define LLVM_LIBDIR "$LLVM_LIBDIR"
19951_ACEOF
19952
19953
19954cat >>confdefs.h <<_ACEOF
19955#define LLVM_DATADIR "$LLVM_DATADIR"
19956_ACEOF
19957
19958
19959cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000019960#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000019961_ACEOF
19962
19963
19964cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000019965#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000019966_ACEOF
19967
19968
19969cat >>confdefs.h <<_ACEOF
19970#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
19971_ACEOF
19972
19973
19974cat >>confdefs.h <<_ACEOF
19975#define LLVM_INFODIR "$LLVM_INFODIR"
19976_ACEOF
19977
19978
19979cat >>confdefs.h <<_ACEOF
19980#define LLVM_MANDIR "$LLVM_MANDIR"
19981_ACEOF
19982
19983
19984cat >>confdefs.h <<_ACEOF
19985#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
19986_ACEOF
19987
19988
Eric Christopher790e11c2007-12-01 00:34:39 +000019989cat >>confdefs.h <<_ACEOF
19990#define LLVM_HOSTTRIPLE "$host"
19991_ACEOF
19992
19993
Gordon Henriksenc0efff82007-10-02 09:50:32 +000019994# Determine which bindings to build.
19995if test "$BINDINGS_TO_BUILD" = auto ; then
19996 BINDINGS_TO_BUILD=""
19997 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
19998 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
19999 fi
20000fi
20001BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20002
20003
20004# This isn't really configurey, but it avoids having to repeat the list in
20005# other files.
20006ALL_BINDINGS=ocaml
20007
20008
Gordon Henriksenf0915682007-10-02 16:42:22 +000020009# Do any work necessary to ensure that bindings have what they need.
20010binding_prereqs_failed=0
20011for a_binding in $BINDINGS_TO_BUILD ; do
20012 case "$a_binding" in
20013 ocaml)
20014 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020015 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20016echo "$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 +000020017 binding_prereqs_failed=1
20018 fi
20019 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020020 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20021echo "$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 +000020022 binding_prereqs_failed=1
20023 fi
20024 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020025 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20026echo "$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 +000020027 fi
20028 if test "x$with_ocaml_libdir" != xauto ; then
20029 OCAML_LIBDIR=$with_ocaml_libdir
20030
20031 else
20032 ocaml_stdlib="`"$OCAMLC" -where`"
20033 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20034 then
20035 # ocaml stdlib is beneath our prefix; use stdlib
20036 OCAML_LIBDIR=$ocaml_stdlib
20037
20038 else
20039 # ocaml stdlib is outside our prefix; use libdir/ocaml
20040 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20041
20042 fi
20043 fi
20044 ;;
20045 esac
20046done
20047if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020048 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20049echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20050 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000020051fi
20052
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020053{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20054echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20055if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20056 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020057else
20058 ac_ext=cpp
20059ac_cpp='$CXXCPP $CPPFLAGS'
20060ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20061ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20062ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20063
20064 oldcxxflags="$CXXFLAGS"
20065 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020066 cat >conftest.$ac_ext <<_ACEOF
20067/* confdefs.h. */
20068_ACEOF
20069cat confdefs.h >>conftest.$ac_ext
20070cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020071/* end confdefs.h. */
20072
20073int
20074main ()
20075{
20076
20077 ;
20078 return 0;
20079}
20080_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020081rm -f conftest.$ac_objext
20082if { (ac_try="$ac_compile"
20083case "(($ac_try" in
20084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20085 *) ac_try_echo=$ac_try;;
20086esac
20087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20088 (eval "$ac_compile") 2>conftest.er1
20089 ac_status=$?
20090 grep -v '^ *+' conftest.er1 >conftest.err
20091 rm -f conftest.er1
20092 cat conftest.err >&5
20093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20094 (exit $ac_status); } &&
20095 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20096 { (case "(($ac_try" in
20097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20098 *) ac_try_echo=$ac_try;;
20099esac
20100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20101 (eval "$ac_try") 2>&5
20102 ac_status=$?
20103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20104 (exit $ac_status); }; } &&
20105 { ac_try='test -s conftest.$ac_objext'
20106 { (case "(($ac_try" in
20107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20108 *) ac_try_echo=$ac_try;;
20109esac
20110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20111 (eval "$ac_try") 2>&5
20112 ac_status=$?
20113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020115 llvm_cv_cxx_visibility_inlines_hidden=yes
20116else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020117 echo "$as_me: failed program was:" >&5
20118sed 's/^/| /' conftest.$ac_ext >&5
20119
20120 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020121fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020122
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20124 CXXFLAGS="$oldcxxflags"
20125 ac_ext=c
20126ac_cpp='$CPP $CPPFLAGS'
20127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20129ac_compiler_gnu=$ac_cv_c_compiler_gnu
20130
20131
20132fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020133{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20134echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020135if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20136 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20137
20138else
20139 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20140
20141fi
20142
Gordon Henriksenf0915682007-10-02 16:42:22 +000020143
Nick Lewycky731c6ab2009-03-05 08:20:44 +000020144if test "$llvm_cv_link_use_r" = "yes" ; then
20145 RPATH="-Wl,-R"
20146else
20147 RPATH="-Wl,-rpath"
20148fi
20149
20150
20151if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20152 RDYNAMIC="-Wl,-export-dynamic"
20153else
20154 RDYNAMIC=""
20155fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000020156
20157
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020158
Reid Spencera773bd52006-08-04 18:18:08 +000020159ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020160
Douglas Gregor1555a232009-06-16 20:12:29 +000020161ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20162
20163ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20164
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000020165ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20166
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000020167ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20168
Chandler Carruth8b67f772009-10-26 01:35:46 +000020169ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020170
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020171
Reid Spencera773bd52006-08-04 18:18:08 +000020172ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020173
20174
Reid Spencerea949cf2006-08-16 00:45:38 +000020175ac_config_files="$ac_config_files llvm.spec"
20176
20177
Reid Spencera773bd52006-08-04 18:18:08 +000020178ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000020179
20180
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000020181ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
20182
20183
Reid Spencera773bd52006-08-04 18:18:08 +000020184ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000020185
20186
Reid Spencera773bd52006-08-04 18:18:08 +000020187ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000020188
Reid Spencera773bd52006-08-04 18:18:08 +000020189ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020190
20191
Reid Spencera773bd52006-08-04 18:18:08 +000020192ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020193
20194
Reid Spencera773bd52006-08-04 18:18:08 +000020195ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020196
20197
Reid Spencera773bd52006-08-04 18:18:08 +000020198ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020199
20200
Reid Spencer8b2e1412006-11-17 03:32:33 +000020201ac_config_commands="$ac_config_commands runtime/Makefile"
20202
20203
Reid Spencera773bd52006-08-04 18:18:08 +000020204ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020205
20206
Reid Spencera773bd52006-08-04 18:18:08 +000020207ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020208
20209
Bill Wendlingf24eb392009-01-04 23:12:30 +000020210ac_config_commands="$ac_config_commands unittests/Makefile"
20211
20212
Reid Spencera773bd52006-08-04 18:18:08 +000020213ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020214
20215
Reid Spencera773bd52006-08-04 18:18:08 +000020216ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020217
20218
Reid Spencera773bd52006-08-04 18:18:08 +000020219ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020220
20221
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000020222ac_config_commands="$ac_config_commands bindings/Makefile"
20223
20224
20225ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20226
20227
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020228
John Criswell7a73b802003-06-30 21:59:07 +000020229cat >confcache <<\_ACEOF
20230# This file is a shell script that caches the results of configure
20231# tests run on this system so they can be shared between configure
20232# scripts and configure runs, see configure's option --config-cache.
20233# It is not useful on other systems. If it contains results you don't
20234# want to keep, you may remove or edit it.
20235#
20236# config.status only pays attention to the cache file if you give it
20237# the --recheck option to rerun configure.
20238#
John Criswell0c38eaf2003-09-10 15:17:25 +000020239# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000020240# loading this file, other *unset* `ac_cv_foo' will be assigned the
20241# following values.
20242
20243_ACEOF
20244
20245# The following way of writing the cache mishandles newlines in values,
20246# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000020247# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000020248# Ultrix sh set writes to stderr and can't be redirected directly,
20249# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000020250(
20251 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20252 eval ac_val=\$$ac_var
20253 case $ac_val in #(
20254 *${as_nl}*)
20255 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020256 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20257echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020258 esac
20259 case $ac_var in #(
20260 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020261 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020262 esac ;;
20263 esac
20264 done
20265
John Criswell7a73b802003-06-30 21:59:07 +000020266 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000020267 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20268 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020269 # `set' does not quote correctly, so add quotes (double-quote
20270 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000020271 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000020272 "s/'/'\\\\''/g;
20273 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000020274 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000020275 *)
20276 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000020277 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000020278 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020279 esac |
20280 sort
20281) |
John Criswell7a73b802003-06-30 21:59:07 +000020282 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000020283 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000020284 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000020285 :clear
John Criswell7a73b802003-06-30 21:59:07 +000020286 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20287 t end
Reid Spencera773bd52006-08-04 18:18:08 +000020288 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20289 :end' >>confcache
20290if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20291 if test -w "$cache_file"; then
20292 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020293 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20294echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000020295 cat confcache >$cache_file
20296 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020297 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20298echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000020299 fi
20300fi
20301rm -f confcache
20302
20303test "x$prefix" = xNONE && prefix=$ac_default_prefix
20304# Let make expand exec_prefix.
20305test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20306
John Criswell7a73b802003-06-30 21:59:07 +000020307DEFS=-DHAVE_CONFIG_H
20308
John Criswell0c38eaf2003-09-10 15:17:25 +000020309ac_libobjs=
20310ac_ltlibobjs=
20311for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20312 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000020313 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020314 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000020315 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20316 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020317 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20318 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000020319done
20320LIBOBJS=$ac_libobjs
20321
20322LTLIBOBJS=$ac_ltlibobjs
20323
20324
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020325if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020326 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20327Usually this means the macro was only invoked conditionally." >&5
20328echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20329Usually this means the macro was only invoked conditionally." >&2;}
20330 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020331fi
20332if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020333 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20334Usually this means the macro was only invoked conditionally." >&5
20335echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20336Usually this means the macro was only invoked conditionally." >&2;}
20337 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020338fi
John Criswell7a73b802003-06-30 21:59:07 +000020339
20340: ${CONFIG_STATUS=./config.status}
20341ac_clean_files_save=$ac_clean_files
20342ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020343{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20344echo "$as_me: creating $CONFIG_STATUS" >&6;}
20345cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020346#! $SHELL
20347# Generated by $as_me.
20348# Run this file to recreate the current configuration.
20349# Compiler output produced by configure, useful for debugging
20350# configure, is in config.log if it exists.
20351
20352debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000020353ac_cs_recheck=false
20354ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000020355SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020356_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020357
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020358cat >>$CONFIG_STATUS <<\_ACEOF
20359## --------------------- ##
20360## M4sh Initialization. ##
20361## --------------------- ##
20362
20363# Be Bourne compatible
20364if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000020365 emulate sh
20366 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020367 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000020368 # is contrary to our usage. Disable this feature.
20369 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000020370 setopt NO_GLOB_SUBST
20371else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020372 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000020373fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020374BIN_SH=xpg4; export BIN_SH # for Tru64
20375DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000020376
John Criswell7a73b802003-06-30 21:59:07 +000020377
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020378# PATH needs CR
20379# Avoid depending upon Character Ranges.
20380as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20381as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20382as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20383as_cr_digits='0123456789'
20384as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000020385
20386# The user is always right.
20387if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020388 echo "#! /bin/sh" >conf$$.sh
20389 echo "exit 0" >>conf$$.sh
20390 chmod +x conf$$.sh
20391 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20392 PATH_SEPARATOR=';'
20393 else
20394 PATH_SEPARATOR=:
20395 fi
20396 rm -f conf$$.sh
20397fi
20398
20399# Support unset when possible.
20400if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20401 as_unset=unset
20402else
20403 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000020404fi
John Criswell7a73b802003-06-30 21:59:07 +000020405
Reid Spencera773bd52006-08-04 18:18:08 +000020406
20407# IFS
20408# We need space, tab and new line, in precisely that order. Quoting is
20409# there to prevent editors from complaining about space-tab.
20410# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20411# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020412as_nl='
20413'
Reid Spencera773bd52006-08-04 18:18:08 +000020414IFS=" "" $as_nl"
20415
20416# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020417case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000020418 *[\\/]* ) as_myself=$0 ;;
20419 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000020420for as_dir in $PATH
20421do
20422 IFS=$as_save_IFS
20423 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020424 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20425done
Reid Spencera773bd52006-08-04 18:18:08 +000020426IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000020427
Reid Spencera773bd52006-08-04 18:18:08 +000020428 ;;
20429esac
20430# We did not find ourselves, most probably we were run as `sh COMMAND'
20431# in which case we are not to be found in the path.
20432if test "x$as_myself" = x; then
20433 as_myself=$0
20434fi
20435if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020436 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20437 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000020438fi
20439
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020440# Work around bugs in pre-3.0 UWIN ksh.
20441for as_var in ENV MAIL MAILPATH
20442do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000020443done
20444PS1='$ '
20445PS2='> '
20446PS4='+ '
20447
20448# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020449for as_var in \
20450 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20451 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20452 LC_TELEPHONE LC_TIME
20453do
20454 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20455 eval $as_var=C; export $as_var
20456 else
20457 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000020458 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020459done
Torok Edwin871384f2010-01-26 08:50:50 +000020460
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020461# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000020462if expr a : '\(a\)' >/dev/null 2>&1 &&
20463 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20464 as_expr=expr
20465else
20466 as_expr=false
20467fi
20468
20469if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20470 as_basename=basename
20471else
20472 as_basename=false
20473fi
20474
20475
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020476# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000020477as_me=`$as_basename -- "$0" ||
20478$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20479 X"$0" : 'X\(//\)$' \| \
20480 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020481echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000020482 sed '/^.*\/\([^/][^/]*\)\/*$/{
20483 s//\1/
20484 q
20485 }
20486 /^X\/\(\/\/\)$/{
20487 s//\1/
20488 q
20489 }
20490 /^X\/\(\/\).*/{
20491 s//\1/
20492 q
20493 }
20494 s/.*/./; q'`
20495
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020496# CDPATH.
20497$as_unset CDPATH
20498
20499
20500
20501 as_lineno_1=$LINENO
20502 as_lineno_2=$LINENO
20503 test "x$as_lineno_1" != "x$as_lineno_2" &&
20504 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20505
20506 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20507 # uniformly replaced by the line number. The first 'sed' inserts a
20508 # line-number line after each line using $LINENO; the second 'sed'
20509 # does the real work. The second script uses 'N' to pair each
20510 # line-number line with the line containing $LINENO, and appends
20511 # trailing '-' during substitution so that $LINENO is not a special
20512 # case at line end.
20513 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20514 # scripts with optimization help from Paolo Bonzini. Blame Lee
20515 # E. McMahon (1931-1989) for sed's syntax. :-)
20516 sed -n '
20517 p
20518 /[$]LINENO/=
20519 ' <$as_myself |
20520 sed '
20521 s/[$]LINENO.*/&-/
20522 t lineno
20523 b
20524 :lineno
20525 N
20526 :loop
20527 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20528 t loop
20529 s/-\n.*//
20530 ' >$as_me.lineno &&
20531 chmod +x "$as_me.lineno" ||
20532 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20533 { (exit 1); exit 1; }; }
20534
20535 # Don't try to exec as it changes $[0], causing all sort of problems
20536 # (the dirname of $[0] is not the place where we might find the
20537 # original and so on. Autoconf is especially sensitive to this).
20538 . "./$as_me.lineno"
20539 # Exit status is that of the last command.
20540 exit
20541}
20542
20543
20544if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20545 as_dirname=dirname
20546else
20547 as_dirname=false
20548fi
Reid Spencera773bd52006-08-04 18:18:08 +000020549
20550ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020551case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000020552-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020553 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000020554 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020555 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000020556 esac;;
20557*)
20558 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000020559esac
20560
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020561if expr a : '\(a\)' >/dev/null 2>&1 &&
20562 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20563 as_expr=expr
20564else
20565 as_expr=false
20566fi
20567
John Criswell7a73b802003-06-30 21:59:07 +000020568rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000020569if test -d conf$$.dir; then
20570 rm -f conf$$.dir/conf$$.file
20571else
20572 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020573 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000020574fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020575echo >conf$$.file
20576if ln -s conf$$.file conf$$ 2>/dev/null; then
20577 as_ln_s='ln -s'
20578 # ... but there are two gotchas:
20579 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20580 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20581 # In both cases, we have to default to `cp -p'.
20582 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000020583 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020584elif ln conf$$.file conf$$ 2>/dev/null; then
20585 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000020586else
20587 as_ln_s='cp -p'
20588fi
Reid Spencera773bd52006-08-04 18:18:08 +000020589rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20590rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000020591
John Criswell0c38eaf2003-09-10 15:17:25 +000020592if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020593 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000020594else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020595 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000020596 as_mkdir_p=false
20597fi
20598
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020599# Find out whether ``test -x'' works. Don't use a zero-byte file, as
20600# systems may use methods other than mode bits to determine executability.
20601cat >conf$$.file <<_ASEOF
20602#! /bin/sh
20603exit 0
20604_ASEOF
20605chmod +x conf$$.file
20606if test -x conf$$.file >/dev/null 2>&1; then
20607 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000020608else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020609 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000020610fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020611rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000020612
20613# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020614as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000020615
20616# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020617as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000020618
20619
John Criswell7a73b802003-06-30 21:59:07 +000020620exec 6>&1
20621
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020622# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000020623# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000020624# values after options handling.
20625ac_log="
Tanya Lattnerdc29dff2010-03-19 21:22:13 +000020626This file was extended by llvm $as_me 2.8svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020627generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000020628
20629 CONFIG_FILES = $CONFIG_FILES
20630 CONFIG_HEADERS = $CONFIG_HEADERS
20631 CONFIG_LINKS = $CONFIG_LINKS
20632 CONFIG_COMMANDS = $CONFIG_COMMANDS
20633 $ $0 $@
20634
Reid Spencera773bd52006-08-04 18:18:08 +000020635on `(hostname || uname -n) 2>/dev/null | sed 1q`
20636"
20637
John Criswell7a73b802003-06-30 21:59:07 +000020638_ACEOF
20639
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020640cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020641# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000020642config_files="$ac_config_files"
20643config_headers="$ac_config_headers"
20644config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000020645
Reid Spencera773bd52006-08-04 18:18:08 +000020646_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020647
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020648cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020649ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020650\`$as_me' instantiates files from templates according to the
20651current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000020652
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020653Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000020654
20655 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020656 -V, --version print version number, then exit
20657 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000020658 -d, --debug don't remove temporary files
20659 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020660 --file=FILE[:TEMPLATE]
20661 instantiate the configuration file FILE
20662 --header=FILE[:TEMPLATE]
20663 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000020664
20665Configuration files:
20666$config_files
20667
20668Configuration headers:
20669$config_headers
20670
John Criswellc764fbc2003-09-06 15:17:13 +000020671Configuration commands:
20672$config_commands
20673
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020674Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000020675
Reid Spencera773bd52006-08-04 18:18:08 +000020676_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020677cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020678ac_cs_version="\\
Tanya Lattnerdc29dff2010-03-19 21:22:13 +000020679llvm config.status 2.8svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020680configured by $0, generated by GNU Autoconf 2.60,
20681 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000020682
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020683Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000020684This config.status script is free software; the Free Software Foundation
20685gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000020686
20687ac_pwd='$ac_pwd'
20688srcdir='$srcdir'
20689INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000020690_ACEOF
20691
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020692cat >>$CONFIG_STATUS <<\_ACEOF
20693# If no file are specified by the user, then we need to provide default
20694# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000020695ac_need_defaults=:
20696while test $# != 0
20697do
20698 case $1 in
20699 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000020700 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20701 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000020702 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000020703 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020704 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000020705 ac_option=$1
20706 ac_optarg=$2
20707 ac_shift=shift
20708 ;;
John Criswell7a73b802003-06-30 21:59:07 +000020709 esac
20710
John Criswell0c38eaf2003-09-10 15:17:25 +000020711 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000020712 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000020713 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20714 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020715 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020716 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020717 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000020718 debug=: ;;
20719 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000020720 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020721 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000020722 ac_need_defaults=false;;
20723 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000020724 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020725 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000020726 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000020727 --he | --h)
20728 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020729 { echo "$as_me: error: ambiguous option: $1
20730Try \`$0 --help' for more information." >&2
20731 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000020732 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020733 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000020734 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20735 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20736 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000020737
20738 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020739 -*) { echo "$as_me: error: unrecognized option: $1
20740Try \`$0 --help' for more information." >&2
20741 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000020742
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020743 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000020744 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000020745
20746 esac
20747 shift
20748done
20749
John Criswell0c38eaf2003-09-10 15:17:25 +000020750ac_configure_extra_args=
20751
20752if $ac_cs_silent; then
20753 exec 6>/dev/null
20754 ac_configure_extra_args="$ac_configure_extra_args --silent"
20755fi
20756
20757_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020758cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020759if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020760 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20761 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000020762 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020763 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000020764fi
20765
John Criswell7a73b802003-06-30 21:59:07 +000020766_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020767cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000020768exec 5>>config.log
20769{
20770 echo
20771 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20772## Running $as_me. ##
20773_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020774 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000020775} >&5
John Criswell7a73b802003-06-30 21:59:07 +000020776
Reid Spencera773bd52006-08-04 18:18:08 +000020777_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020778cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000020779#
Reid Spencera773bd52006-08-04 18:18:08 +000020780# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000020781#
Reid Spencerc0682832005-02-24 19:05:19 +000020782llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000020783
20784_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020785
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020786cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000020787
20788# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000020789for ac_config_target in $ac_config_targets
20790do
Reid Spencera773bd52006-08-04 18:18:08 +000020791 case $ac_config_target in
20792 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000020793 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
20794 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000020795 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000020796 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Chandler Carruth8b67f772009-10-26 01:35:46 +000020797 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020798 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000020799 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020800 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000020801 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020802 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
20803 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
20804 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
20805 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
20806 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
20807 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000020808 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020809 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
20810 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000020811 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020812 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
20813 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
20814 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000020815 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
20816 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020817
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020818 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20819echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20820 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000020821 esac
20822done
20823
Reid Spencera773bd52006-08-04 18:18:08 +000020824
John Criswell7a73b802003-06-30 21:59:07 +000020825# If the user did not use the arguments to specify the items to instantiate,
20826# then the envvar interface is used. Set only those that are not.
20827# We use the long form for the default assignment because of an extremely
20828# bizarre bug on SunOS 4.1.3.
20829if $ac_need_defaults; then
20830 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20831 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000020832 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000020833fi
20834
John Criswell0c38eaf2003-09-10 15:17:25 +000020835# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000020836# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000020837# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000020838# Hook for its removal unless debugging.
20839# Note that there is a small window in which the directory will not be cleaned:
20840# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000020841$debug ||
20842{
Reid Spencera773bd52006-08-04 18:18:08 +000020843 tmp=
20844 trap 'exit_status=$?
20845 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20846' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020847 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000020848}
John Criswell7a73b802003-06-30 21:59:07 +000020849# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000020850
John Criswell7a73b802003-06-30 21:59:07 +000020851{
Reid Spencera773bd52006-08-04 18:18:08 +000020852 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000020853 test -n "$tmp" && test -d "$tmp"
20854} ||
20855{
Reid Spencera773bd52006-08-04 18:18:08 +000020856 tmp=./conf$$-$RANDOM
20857 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020858} ||
20859{
20860 echo "$me: cannot create a temporary directory in ." >&2
20861 { (exit 1); exit 1; }
20862}
John Criswell7a73b802003-06-30 21:59:07 +000020863
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020864#
20865# Set up the sed scripts for CONFIG_FILES section.
20866#
20867
20868# No need to generate the scripts if there are no CONFIG_FILES.
20869# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000020870if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000020871
20872_ACEOF
20873
Reid Spencera773bd52006-08-04 18:18:08 +000020874
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020875
Reid Spencera773bd52006-08-04 18:18:08 +000020876ac_delim='%!_!# '
20877for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020878 cat >conf$$subs.sed <<_ACEOF
20879SHELL!$SHELL$ac_delim
20880PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20881PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20882PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20883PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20884PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20885PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20886exec_prefix!$exec_prefix$ac_delim
20887prefix!$prefix$ac_delim
20888program_transform_name!$program_transform_name$ac_delim
20889bindir!$bindir$ac_delim
20890sbindir!$sbindir$ac_delim
20891libexecdir!$libexecdir$ac_delim
20892datarootdir!$datarootdir$ac_delim
20893datadir!$datadir$ac_delim
20894sysconfdir!$sysconfdir$ac_delim
20895sharedstatedir!$sharedstatedir$ac_delim
20896localstatedir!$localstatedir$ac_delim
20897includedir!$includedir$ac_delim
20898oldincludedir!$oldincludedir$ac_delim
20899docdir!$docdir$ac_delim
20900infodir!$infodir$ac_delim
20901htmldir!$htmldir$ac_delim
20902dvidir!$dvidir$ac_delim
20903pdfdir!$pdfdir$ac_delim
20904psdir!$psdir$ac_delim
20905libdir!$libdir$ac_delim
20906localedir!$localedir$ac_delim
20907mandir!$mandir$ac_delim
20908DEFS!$DEFS$ac_delim
20909ECHO_C!$ECHO_C$ac_delim
20910ECHO_N!$ECHO_N$ac_delim
20911ECHO_T!$ECHO_T$ac_delim
20912LIBS!$LIBS$ac_delim
20913build_alias!$build_alias$ac_delim
20914host_alias!$host_alias$ac_delim
20915target_alias!$target_alias$ac_delim
20916LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
20917subdirs!$subdirs$ac_delim
20918build!$build$ac_delim
20919build_cpu!$build_cpu$ac_delim
20920build_vendor!$build_vendor$ac_delim
20921build_os!$build_os$ac_delim
20922host!$host$ac_delim
20923host_cpu!$host_cpu$ac_delim
20924host_vendor!$host_vendor$ac_delim
20925host_os!$host_os$ac_delim
20926target!$target$ac_delim
20927target_cpu!$target_cpu$ac_delim
20928target_vendor!$target_vendor$ac_delim
20929target_os!$target_os$ac_delim
20930OS!$OS$ac_delim
20931HOST_OS!$HOST_OS$ac_delim
20932TARGET_OS!$TARGET_OS$ac_delim
20933LINKALL!$LINKALL$ac_delim
20934NOLINKALL!$NOLINKALL$ac_delim
20935LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
20936LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
20937ARCH!$ARCH$ac_delim
20938ENDIAN!$ENDIAN$ac_delim
20939CC!$CC$ac_delim
20940CFLAGS!$CFLAGS$ac_delim
20941LDFLAGS!$LDFLAGS$ac_delim
20942CPPFLAGS!$CPPFLAGS$ac_delim
20943ac_ct_CC!$ac_ct_CC$ac_delim
20944EXEEXT!$EXEEXT$ac_delim
20945OBJEXT!$OBJEXT$ac_delim
20946CPP!$CPP$ac_delim
20947GREP!$GREP$ac_delim
20948EGREP!$EGREP$ac_delim
20949LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
20950BUILD_CC!$BUILD_CC$ac_delim
20951BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
20952BUILD_CXX!$BUILD_CXX$ac_delim
20953CVSBUILD!$CVSBUILD$ac_delim
20954ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
20955ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
20956DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
20957ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
20958EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
20959DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
20960DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
20961JIT!$JIT$ac_delim
20962TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
20963ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
20964ENABLE_THREADS!$ENABLE_THREADS$ac_delim
20965ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000020966ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020967TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
20968LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
20969LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
20970LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
20971LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
20972ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000020973CLANGPATH!$CLANGPATH$ac_delim
20974CLANGXXPATH!$CLANGXXPATH$ac_delim
20975ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020976_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000020977
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020978 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000020979 break
20980 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020981 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20982echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20983 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000020984 else
20985 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000020986 fi
Reid Spencera773bd52006-08-04 18:18:08 +000020987done
20988
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020989ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20990if test -n "$ac_eof"; then
20991 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20992 ac_eof=`expr $ac_eof + 1`
20993fi
20994
20995cat >>$CONFIG_STATUS <<_ACEOF
20996cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20997/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000020998_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020999sed '
21000s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21001s/^/s,@/; s/!/@,|#_!!_#|/
21002:n
21003t n
21004s/'"$ac_delim"'$/,g/; t
21005s/$/\\/; p
21006N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21007' >>$CONFIG_STATUS <conf$$subs.sed
21008rm -f conf$$subs.sed
21009cat >>$CONFIG_STATUS <<_ACEOF
21010CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000021011_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021012
21013
21014ac_delim='%!_!# '
21015for ac_last_try in false false false false false :; do
21016 cat >conf$$subs.sed <<_ACEOF
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021017OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021018EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21019BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21020ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021021ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
21022CXX!$CXX$ac_delim
21023CXXFLAGS!$CXXFLAGS$ac_delim
21024ac_ct_CXX!$ac_ct_CXX$ac_delim
21025NM!$NM$ac_delim
21026ifGNUmake!$ifGNUmake$ac_delim
21027LN_S!$LN_S$ac_delim
21028CMP!$CMP$ac_delim
21029CP!$CP$ac_delim
21030DATE!$DATE$ac_delim
21031FIND!$FIND$ac_delim
21032MKDIR!$MKDIR$ac_delim
21033MV!$MV$ac_delim
21034RANLIB!$RANLIB$ac_delim
21035AR!$AR$ac_delim
21036RM!$RM$ac_delim
21037SED!$SED$ac_delim
21038TAR!$TAR$ac_delim
21039BINPWD!$BINPWD$ac_delim
21040GRAPHVIZ!$GRAPHVIZ$ac_delim
21041DOT!$DOT$ac_delim
21042FDP!$FDP$ac_delim
21043NEATO!$NEATO$ac_delim
21044TWOPI!$TWOPI$ac_delim
21045CIRCO!$CIRCO$ac_delim
21046GV!$GV$ac_delim
21047DOTTY!$DOTTY$ac_delim
21048PERL!$PERL$ac_delim
21049HAVE_PERL!$HAVE_PERL$ac_delim
21050INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21051INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21052INSTALL_DATA!$INSTALL_DATA$ac_delim
21053BZIP2!$BZIP2$ac_delim
21054DOXYGEN!$DOXYGEN$ac_delim
21055GROFF!$GROFF$ac_delim
21056GZIP!$GZIP$ac_delim
21057POD2HTML!$POD2HTML$ac_delim
21058POD2MAN!$POD2MAN$ac_delim
21059RUNTEST!$RUNTEST$ac_delim
21060TCLSH!$TCLSH$ac_delim
21061ZIP!$ZIP$ac_delim
21062OCAMLC!$OCAMLC$ac_delim
21063OCAMLOPT!$OCAMLOPT$ac_delim
21064OCAMLDEP!$OCAMLDEP$ac_delim
21065OCAMLDOC!$OCAMLDOC$ac_delim
21066GAS!$GAS$ac_delim
21067INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21068INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21069CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21070CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21071LIBADD_DL!$LIBADD_DL$ac_delim
21072LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21073LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21074LLVMGCC!$LLVMGCC$ac_delim
21075LLVMGXX!$LLVMGXX$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021076LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021077NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21078NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21079USE_UDIS86!$USE_UDIS86$ac_delim
21080USE_OPROFILE!$USE_OPROFILE$ac_delim
21081HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21082HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21083MMAP_FILE!$MMAP_FILE$ac_delim
21084LLVMCC1!$LLVMCC1$ac_delim
21085LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21086LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021087LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21088SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021089SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021090LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21091LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21092LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21093LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21094LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21095LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21096LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21097LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21098LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21099LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21100BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21101ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21102OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21103ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21104RPATH!$RPATH$ac_delim
21105RDYNAMIC!$RDYNAMIC$ac_delim
21106LIBOBJS!$LIBOBJS$ac_delim
21107LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000021108_ACEOF
21109
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021110 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021111 break
21112 elif $ac_last_try; then
21113 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21114echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21115 { (exit 1); exit 1; }; }
21116 else
21117 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21118 fi
21119done
21120
21121ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21122if test -n "$ac_eof"; then
21123 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21124 ac_eof=`expr $ac_eof + 1`
21125fi
21126
21127cat >>$CONFIG_STATUS <<_ACEOF
21128cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21129/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21130_ACEOF
21131sed '
21132s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21133s/^/s,@/; s/!/@,|#_!!_#|/
21134:n
21135t n
21136s/'"$ac_delim"'$/,g/; t
21137s/$/\\/; p
21138N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21139' >>$CONFIG_STATUS <conf$$subs.sed
21140rm -f conf$$subs.sed
21141cat >>$CONFIG_STATUS <<_ACEOF
21142:end
21143s/|#_!!_#|//g
21144CEOF$ac_eof
21145_ACEOF
21146
21147
Reid Spencera773bd52006-08-04 18:18:08 +000021148# VPATH may cause trouble with some makes, so we remove $(srcdir),
21149# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21150# trailing colons and then remove the whole line if VPATH becomes empty
21151# (actually we leave an empty line to preserve line numbers).
21152if test "x$srcdir" = x.; then
21153 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21154s/:*\$(srcdir):*/:/
21155s/:*\${srcdir}:*/:/
21156s/:*@srcdir@:*/:/
21157s/^\([^=]*=[ ]*\):*/\1/
21158s/:*$//
21159s/^[^=]*=[ ]*$//
21160}'
21161fi
21162
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021163cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021164fi # test -n "$CONFIG_FILES"
21165
Reid Spencera773bd52006-08-04 18:18:08 +000021166
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021167for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000021168do
21169 case $ac_tag in
21170 :[FHLC]) ac_mode=$ac_tag; continue;;
21171 esac
21172 case $ac_mode$ac_tag in
21173 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021174 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21175echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21176 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021177 :[FH]-) ac_tag=-:-;;
21178 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21179 esac
21180 ac_save_IFS=$IFS
21181 IFS=:
21182 set x $ac_tag
21183 IFS=$ac_save_IFS
21184 shift
21185 ac_file=$1
21186 shift
21187
21188 case $ac_mode in
21189 :L) ac_source=$1;;
21190 :[FH])
21191 ac_file_inputs=
21192 for ac_f
21193 do
21194 case $ac_f in
21195 -) ac_f="$tmp/stdin";;
21196 *) # Look for the file first in the build tree, then in the source tree
21197 # (if the path is not absolute). The absolute path cannot be DOS-style,
21198 # because $ac_f cannot contain `:'.
21199 test -f "$ac_f" ||
21200 case $ac_f in
21201 [\\/$]*) false;;
21202 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21203 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021204 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21205echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21206 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021207 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021208 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000021209 done
21210
21211 # Let's still pretend it is `configure' which instantiates (i.e., don't
21212 # use $as_me), people would be surprised to read:
21213 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021214 configure_input="Generated from "`IFS=:
21215 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000021216 if test x"$ac_file" != x-; then
21217 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021218 { echo "$as_me:$LINENO: creating $ac_file" >&5
21219echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000021220 fi
21221
21222 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021223 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000021224 esac
21225 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021226 esac
21227
Reid Spencera773bd52006-08-04 18:18:08 +000021228 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000021229$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021230 X"$ac_file" : 'X\(//\)[^/]' \| \
21231 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000021232 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021233echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000021234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21235 s//\1/
21236 q
21237 }
21238 /^X\(\/\/\)[^/].*/{
21239 s//\1/
21240 q
21241 }
21242 /^X\(\/\/\)$/{
21243 s//\1/
21244 q
21245 }
21246 /^X\(\/\).*/{
21247 s//\1/
21248 q
21249 }
21250 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021251 { as_dir="$ac_dir"
21252 case $as_dir in #(
21253 -*) as_dir=./$as_dir;;
21254 esac
21255 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21256 as_dirs=
21257 while :; do
21258 case $as_dir in #(
21259 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21260 *) as_qdir=$as_dir;;
21261 esac
21262 as_dirs="'$as_qdir' $as_dirs"
21263 as_dir=`$as_dirname -- "$as_dir" ||
21264$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21265 X"$as_dir" : 'X\(//\)[^/]' \| \
21266 X"$as_dir" : 'X\(//\)$' \| \
21267 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21268echo X"$as_dir" |
21269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21270 s//\1/
21271 q
21272 }
21273 /^X\(\/\/\)[^/].*/{
21274 s//\1/
21275 q
21276 }
21277 /^X\(\/\/\)$/{
21278 s//\1/
21279 q
21280 }
21281 /^X\(\/\).*/{
21282 s//\1/
21283 q
21284 }
21285 s/.*/./; q'`
21286 test -d "$as_dir" && break
21287 done
21288 test -z "$as_dirs" || eval "mkdir $as_dirs"
21289 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21290echo "$as_me: error: cannot create directory $as_dir" >&2;}
21291 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000021292 ac_builddir=.
21293
Reid Spencera773bd52006-08-04 18:18:08 +000021294case "$ac_dir" in
21295.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21296*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021297 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021298 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021299 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021300 case $ac_top_builddir_sub in
21301 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21302 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21303 esac ;;
21304esac
21305ac_abs_top_builddir=$ac_pwd
21306ac_abs_builddir=$ac_pwd$ac_dir_suffix
21307# for backward compatibility:
21308ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000021309
21310case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000021311 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000021312 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000021313 ac_top_srcdir=$ac_top_builddir_sub
21314 ac_abs_top_srcdir=$ac_pwd ;;
21315 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000021316 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000021317 ac_top_srcdir=$srcdir
21318 ac_abs_top_srcdir=$srcdir ;;
21319 *) # Relative name.
21320 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21321 ac_top_srcdir=$ac_top_build_prefix$srcdir
21322 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000021323esac
Reid Spencera773bd52006-08-04 18:18:08 +000021324ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000021325
John Criswell7a73b802003-06-30 21:59:07 +000021326
Reid Spencera773bd52006-08-04 18:18:08 +000021327 case $ac_mode in
21328 :F)
21329 #
21330 # CONFIG_FILE
21331 #
John Criswell7a73b802003-06-30 21:59:07 +000021332
21333 case $INSTALL in
21334 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021335 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000021336 esac
John Criswell7a73b802003-06-30 21:59:07 +000021337_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021338
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021339cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021340# If the template does not know about datarootdir, expand it.
21341# FIXME: This hack should be removed a few years after 2.60.
21342ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021343
21344case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000021345 p
21346 q
21347}
21348/@datadir@/p
21349/@docdir@/p
21350/@infodir@/p
21351/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021352/@mandir@/p
21353' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000021354*datarootdir*) ac_datarootdir_seen=yes;;
21355*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021356 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21357echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000021358_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021359cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021360 ac_datarootdir_hack='
21361 s&@datadir@&$datadir&g
21362 s&@docdir@&$docdir&g
21363 s&@infodir@&$infodir&g
21364 s&@localedir@&$localedir&g
21365 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021366 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021367esac
21368_ACEOF
21369
21370# Neutralize VPATH when `$srcdir' = `.'.
21371# Shell code in configure.ac might set extrasub.
21372# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021373cat >>$CONFIG_STATUS <<_ACEOF
21374 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000021375$extrasub
21376_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021377cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021378:t
21379/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021380s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000021381s&@top_builddir@&$ac_top_builddir_sub&;t t
21382s&@srcdir@&$ac_srcdir&;t t
21383s&@abs_srcdir@&$ac_abs_srcdir&;t t
21384s&@top_srcdir@&$ac_top_srcdir&;t t
21385s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21386s&@builddir@&$ac_builddir&;t t
21387s&@abs_builddir@&$ac_abs_builddir&;t t
21388s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21389s&@INSTALL@&$ac_INSTALL&;t t
21390$ac_datarootdir_hack
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021391" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000021392
Reid Spencera773bd52006-08-04 18:18:08 +000021393test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21394 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21395 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021396 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000021397which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021398echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000021399which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000021400
Reid Spencera773bd52006-08-04 18:18:08 +000021401 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000021402 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021403 -) cat "$tmp/out"; rm -f "$tmp/out";;
21404 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21405 esac
Reid Spencera773bd52006-08-04 18:18:08 +000021406 ;;
21407 :H)
21408 #
21409 # CONFIG_HEADER
21410 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021411_ACEOF
21412
21413# Transform confdefs.h into a sed script `conftest.defines', that
21414# substitutes the proper values into config.h.in to produce config.h.
21415rm -f conftest.defines conftest.tail
21416# First, append a space to every undef/define line, to ease matching.
21417echo 's/$/ /' >conftest.defines
21418# Then, protect against being on the right side of a sed subst, or in
21419# an unquoted here document, in config.status. If some macros were
21420# called several times there might be several #defines for the same
21421# symbol, which is useless. But do not sort them, since the last
21422# AC_DEFINE must be honored.
21423ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21424# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21425# NAME is the cpp macro being defined, VALUE is the value it is being given.
21426# PARAMS is the parameter list in the macro definition--in most cases, it's
21427# just an empty string.
21428ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21429ac_dB='\\)[ (].*,\\1define\\2'
21430ac_dC=' '
21431ac_dD=' ,'
21432
21433uniq confdefs.h |
21434 sed -n '
21435 t rset
21436 :rset
21437 s/^[ ]*#[ ]*define[ ][ ]*//
21438 t ok
21439 d
21440 :ok
21441 s/[\\&,]/\\&/g
21442 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21443 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21444 ' >>conftest.defines
21445
21446# Remove the space that was appended to ease matching.
21447# Then replace #undef with comments. This is necessary, for
21448# example, in the case of _POSIX_SOURCE, which is predefined and required
21449# on some systems where configure will not decide to define it.
21450# (The regexp can be short, since the line contains either #define or #undef.)
21451echo 's/ $//
21452s,^[ #]*u.*,/* & */,' >>conftest.defines
21453
21454# Break up conftest.defines:
21455ac_max_sed_lines=50
21456
21457# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21458# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21459# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21460# et cetera.
21461ac_in='$ac_file_inputs'
21462ac_out='"$tmp/out1"'
21463ac_nxt='"$tmp/out2"'
21464
21465while :
21466do
21467 # Write a here document:
21468 cat >>$CONFIG_STATUS <<_ACEOF
21469 # First, check the format of the line:
21470 cat >"\$tmp/defines.sed" <<\\CEOF
21471/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21472/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21473b
21474:def
21475_ACEOF
21476 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21477 echo 'CEOF
21478 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21479 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21480 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21481 grep . conftest.tail >/dev/null || break
21482 rm -f conftest.defines
21483 mv conftest.tail conftest.defines
21484done
21485rm -f conftest.defines conftest.tail
21486
21487echo "ac_result=$ac_in" >>$CONFIG_STATUS
21488cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021489 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021490 echo "/* $configure_input */" >"$tmp/config.h"
21491 cat "$ac_result" >>"$tmp/config.h"
21492 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21493 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21494echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021495 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021496 rm -f $ac_file
21497 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000021498 fi
21499 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021500 echo "/* $configure_input */"
21501 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000021502 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021503 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000021504 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000021505
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021506 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21507echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000021508 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000021509 esac
John Criswell7a73b802003-06-30 21:59:07 +000021510
Reid Spencera773bd52006-08-04 18:18:08 +000021511
21512 case $ac_file$ac_mode in
21513 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021514 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021515 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000021516 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021517 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021518 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021519 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021520 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021521 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021522 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021523 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021524 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021525 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000021526 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021527 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021528 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021529 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021530 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021531 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021532 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021533 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021534 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021535 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021536 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021537 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000021538 ${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 +000021539
21540 esac
21541done # for ac_tag
21542
John Criswell7a73b802003-06-30 21:59:07 +000021543
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021544{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000021545_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021546chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000021547ac_clean_files=$ac_clean_files_save
21548
21549
21550# configure is writing to config.log, and then calls config.status.
21551# config.status does its own redirection, appending to config.log.
21552# Unfortunately, on DOS this fails, as config.log is still kept open
21553# by configure, so config.status won't be able to write to it; its
21554# output is simply discarded. So we exec the FD to /dev/null,
21555# effectively closing config.log, so it can be properly (re)opened and
21556# appended to by config.status. When coming back to configure, we
21557# need to make the FD available again.
21558if test "$no_create" != yes; then
21559 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021560 ac_config_status_args=
21561 test "$silent" = yes &&
21562 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000021563 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000021564 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000021565 exec 5>>config.log
21566 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21567 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021568 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000021569fi
21570
John Criswell12399a12003-09-30 15:55:44 +000021571#
21572# CONFIG_SUBDIRS section.
21573#
21574if test "$no_recursion" != yes; then
21575
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021576 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000021577 ac_sub_configure_args=
21578 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000021579 eval "set x $ac_configure_args"
21580 shift
21581 for ac_arg
21582 do
John Criswell12399a12003-09-30 15:55:44 +000021583 if test -n "$ac_prev"; then
21584 ac_prev=
21585 continue
21586 fi
21587 case $ac_arg in
21588 -cache-file | --cache-file | --cache-fil | --cache-fi \
21589 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21590 ac_prev=cache_file ;;
21591 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21592 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21593 | --c=*)
21594 ;;
21595 --config-cache | -C)
21596 ;;
21597 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21598 ac_prev=srcdir ;;
21599 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21600 ;;
21601 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21602 ac_prev=prefix ;;
21603 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21604 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021605 *)
21606 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021607 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021608 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021609 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000021610 esac
21611 done
21612
21613 # Always prepend --prefix to ensure using the same prefix
21614 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000021615 ac_arg="--prefix=$prefix"
21616 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021617 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021618 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021619 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000021620
21621 ac_popdir=`pwd`
21622 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21623
21624 # Do not complain, so a configure script can configure whichever
21625 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000021626 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000021627
Reid Spencera773bd52006-08-04 18:18:08 +000021628 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021629 echo "$as_me:$LINENO: $ac_msg" >&5
21630 echo "$ac_msg" >&6
21631 { as_dir="$ac_dir"
21632 case $as_dir in #(
21633 -*) as_dir=./$as_dir;;
21634 esac
21635 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21636 as_dirs=
21637 while :; do
21638 case $as_dir in #(
21639 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21640 *) as_qdir=$as_dir;;
21641 esac
21642 as_dirs="'$as_qdir' $as_dirs"
21643 as_dir=`$as_dirname -- "$as_dir" ||
21644$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21645 X"$as_dir" : 'X\(//\)[^/]' \| \
21646 X"$as_dir" : 'X\(//\)$' \| \
21647 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21648echo X"$as_dir" |
21649 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21650 s//\1/
21651 q
21652 }
21653 /^X\(\/\/\)[^/].*/{
21654 s//\1/
21655 q
21656 }
21657 /^X\(\/\/\)$/{
21658 s//\1/
21659 q
21660 }
21661 /^X\(\/\).*/{
21662 s//\1/
21663 q
21664 }
21665 s/.*/./; q'`
21666 test -d "$as_dir" && break
21667 done
21668 test -z "$as_dirs" || eval "mkdir $as_dirs"
21669 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21670echo "$as_me: error: cannot create directory $as_dir" >&2;}
21671 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000021672 ac_builddir=.
21673
Reid Spencera773bd52006-08-04 18:18:08 +000021674case "$ac_dir" in
21675.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21676*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021677 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021678 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021679 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021680 case $ac_top_builddir_sub in
21681 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21682 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21683 esac ;;
21684esac
21685ac_abs_top_builddir=$ac_pwd
21686ac_abs_builddir=$ac_pwd$ac_dir_suffix
21687# for backward compatibility:
21688ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000021689
21690case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000021691 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000021692 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000021693 ac_top_srcdir=$ac_top_builddir_sub
21694 ac_abs_top_srcdir=$ac_pwd ;;
21695 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000021696 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000021697 ac_top_srcdir=$srcdir
21698 ac_abs_top_srcdir=$srcdir ;;
21699 *) # Relative name.
21700 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21701 ac_top_srcdir=$ac_top_build_prefix$srcdir
21702 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000021703esac
Reid Spencera773bd52006-08-04 18:18:08 +000021704ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000021705
21706
Reid Spencera773bd52006-08-04 18:18:08 +000021707 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000021708
21709 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000021710 if test -f "$ac_srcdir/configure.gnu"; then
21711 ac_sub_configure=$ac_srcdir/configure.gnu
21712 elif test -f "$ac_srcdir/configure"; then
21713 ac_sub_configure=$ac_srcdir/configure
21714 elif test -f "$ac_srcdir/configure.in"; then
21715 # This should be Cygnus configure.
21716 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000021717 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021718 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
21719echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000021720 ac_sub_configure=
21721 fi
21722
21723 # The recursion is here.
21724 if test -n "$ac_sub_configure"; then
21725 # Make the cache file name correct relative to the subdirectory.
21726 case $cache_file in
21727 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021728 *) # Relative name.
21729 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000021730 esac
21731
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021732 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21733echo "$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 +000021734 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000021735 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21736 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021737 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21738echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21739 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000021740 fi
21741
Reid Spencera773bd52006-08-04 18:18:08 +000021742 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000021743 done
21744fi
21745