blob: cb8b274c15763d245b947d7abf57822ded89e98c [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 Yasskinea221222010-04-08 17:19:20 +000017# Be Bourne compatible.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell0c38eaf2003-09-10 15:17:25 +000019 emulate sh
20 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000022 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000024 setopt NO_GLOB_SUBST
25else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell0c38eaf2003-09-10 15:17:25 +000027fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000030
John Criswell0c38eaf2003-09-10 15:17:25 +000031
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000032# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell0c38eaf2003-09-10 15:17:25 +000039
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000042 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000058fi
John Criswell0c38eaf2003-09-10 15:17:25 +000059
Reid Spencera773bd52006-08-04 18:18:08 +000060
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000066as_nl='
67'
Reid Spencera773bd52006-08-04 18:18:08 +000068IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000071case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000072 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell0c38eaf2003-09-10 15:17:25 +000074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000078 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Reid Spencera773bd52006-08-04 18:18:08 +000080IFS=$as_save_IFS
John Criswell0c38eaf2003-09-10 15:17:25 +000081
Reid Spencera773bd52006-08-04 18:18:08 +000082 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000090 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000092fi
93
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000094# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000097done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
Torok Edwin871384f2010-01-26 08:50:50 +0000107do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
Torok Edwin871384f2010-01-26 08:50:50 +0000110 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +0000112 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000113done
Torok Edwin871384f2010-01-26 08:50:50 +0000114
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000115# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +0000116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000130# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +0000131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000135echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +0000136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000150# CDPATH.
151$as_unset CDPATH
Reid Spencera773bd52006-08-04 18:18:08 +0000152
153
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240# Be Bourne compatible
241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248else
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250fi
251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
253
254:
255_ASEOF
256}; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260# Be Bourne compatible
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270fi
271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
273
274:
275(as_func_return () {
276 (exit $1)
277}
278as_func_success () {
279 as_func_return 0
280}
281as_func_failure () {
282 as_func_return 1
283}
284as_func_ret_success () {
285 return 0
286}
287as_func_ret_failure () {
288 return 1
289}
290
291exitcode=0
292if as_func_success; then
293 :
294else
295 exitcode=1
296 echo as_func_success failed.
297fi
298
299if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
302fi
303
304if as_func_ret_success; then
305 :
306else
307 exitcode=1
308 echo as_func_ret_success failed.
309fi
310
311if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
314fi
315
316if ( set x; as_func_ret_success y && test x = "$1" ); then
317 :
318else
319 exitcode=1
320 echo positional parameters were not saved.
321fi
322
323test $exitcode = 0) || { (exit 1); exit 1; }
324
325(
326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331_ASEOF
332}; then
333 break
334fi
335
336fi
337
338 done
339
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 done
344 export CONFIG_SHELL
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346fi
347
348
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
355fi
356
357
358fi
359
360fi
361
362
363
364(eval "as_func_return () {
365 (exit \$1)
366}
367as_func_success () {
368 as_func_return 0
369}
370as_func_failure () {
371 as_func_return 1
372}
373as_func_ret_success () {
374 return 0
375}
376as_func_ret_failure () {
377 return 1
378}
379
380exitcode=0
381if as_func_success; then
382 :
383else
384 exitcode=1
385 echo as_func_success failed.
386fi
387
388if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
391fi
392
393if as_func_ret_success; then
394 :
395else
396 exitcode=1
397 echo as_func_ret_success failed.
398fi
399
400if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
403fi
404
405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406 :
407else
408 exitcode=1
409 echo positional parameters were not saved.
410fi
411
412test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
416 echo message
417}
418
419
420
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
432 # case at line end.
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
Reid Spencera773bd52006-08-04 18:18:08 +0000436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
John Criswell0c38eaf2003-09-10 15:17:25 +0000440 sed '
Reid Spencera773bd52006-08-04 18:18:08 +0000441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
John Criswell0c38eaf2003-09-10 15:17:25 +0000445 N
Reid Spencera773bd52006-08-04 18:18:08 +0000446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell0c38eaf2003-09-10 15:17:25 +0000448 t loop
Reid Spencera773bd52006-08-04 18:18:08 +0000449 s/-\n.*//
John Criswell0c38eaf2003-09-10 15:17:25 +0000450 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +0000451 chmod +x "$as_me.lineno" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
John Criswell0c38eaf2003-09-10 15:17:25 +0000454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +0000457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
John Criswell0c38eaf2003-09-10 15:17:25 +0000459 # Exit status is that of the last command.
460 exit
461}
462
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000463
464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466else
467 as_dirname=false
468fi
469
Reid Spencera773bd52006-08-04 18:18:08 +0000470ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000471case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +0000472-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000473 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +0000474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000475 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +0000476 esac;;
477*)
478 ECHO_N='-n';;
John Criswell0c38eaf2003-09-10 15:17:25 +0000479esac
480
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000481if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
483 as_expr=expr
484else
485 as_expr=false
486fi
487
John Criswell0c38eaf2003-09-10 15:17:25 +0000488rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +0000489if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491else
492 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000493 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +0000494fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000495echo >conf$$.file
496if ln -s conf$$.file conf$$ 2>/dev/null; then
497 as_ln_s='ln -s'
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000503 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000504elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
John Criswell0c38eaf2003-09-10 15:17:25 +0000506else
507 as_ln_s='cp -p'
508fi
Reid Spencera773bd52006-08-04 18:18:08 +0000509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +0000511
512if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000513 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +0000514else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000515 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000516 as_mkdir_p=false
517fi
518
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000519# Find out whether ``test -x'' works. Don't use a zero-byte file, as
520# systems may use methods other than mode bits to determine executability.
521cat >conf$$.file <<_ASEOF
522#! /bin/sh
523exit 0
524_ASEOF
525chmod +x conf$$.file
526if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +0000528else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000529 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +0000530fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000531rm -f conf$$.file
John Criswell0c38eaf2003-09-10 15:17:25 +0000532
533# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000535
536# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000538
539
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000540
541exec 7<&0 </dev/null 6>&1
Reid Spencera773bd52006-08-04 18:18:08 +0000542
John Criswell7a73b802003-06-30 21:59:07 +0000543# Name of the host.
544# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545# so uname gets run too.
546ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
John Criswell7a73b802003-06-30 21:59:07 +0000548#
549# Initializations.
550#
551ac_default_prefix=/usr/local
Reid Spencera773bd52006-08-04 18:18:08 +0000552ac_clean_files=
John Criswell0c38eaf2003-09-10 15:17:25 +0000553ac_config_libobj_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000554LIBOBJS=
John Criswell7a73b802003-06-30 21:59:07 +0000555cross_compiling=no
556subdirs=
557MFLAGS=
558MAKEFLAGS=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000559SHELL=${CONFIG_SHELL-/bin/sh}
John Criswell7a73b802003-06-30 21:59:07 +0000560
John Criswell7a73b802003-06-30 21:59:07 +0000561# Identity of this package.
Reid Spencerabec8f92004-10-27 23:03:44 +0000562PACKAGE_NAME='llvm'
Reid Spencer2b51a082004-08-04 00:34:49 +0000563PACKAGE_TARNAME='-llvm-'
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 ;;
John Criswell52c02862010-03-25 13:59:09 +00002002 llvm-gcc) ;;
2003 test-suite) ;;
2004 llvm-test) ;;
2005 poolalloc) ;;
2006 llvm-poolalloc) ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002007 *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002008 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2009echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002010 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002011 esac
John Criswell33a911a2003-11-25 20:36:46 +00002012 fi
2013done
John Criswell559a6c12003-09-30 16:31:48 +00002014
John Criswell7a73b802003-06-30 21:59:07 +00002015
2016# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002017$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002018 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2019echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2020 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002021
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002022{ echo "$as_me:$LINENO: checking build system type" >&5
2023echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2024if test "${ac_cv_build+set}" = set; then
2025 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002026else
Reid Spencera773bd52006-08-04 18:18:08 +00002027 ac_build_alias=$build_alias
2028test "x$ac_build_alias" = x &&
2029 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2030test "x$ac_build_alias" = x &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002031 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2032echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2033 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002034ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002035 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2036echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2037 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002038
2039fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002040{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2041echo "${ECHO_T}$ac_cv_build" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002042case $ac_cv_build in
2043*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002044*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2045echo "$as_me: error: invalid value of canonical build" >&2;}
2046 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002047esac
John Criswell7a73b802003-06-30 21:59:07 +00002048build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002049ac_save_IFS=$IFS; IFS='-'
2050set x $ac_cv_build
2051shift
2052build_cpu=$1
2053build_vendor=$2
2054shift; shift
2055# Remember, the first character of IFS is used to create $*,
2056# except with old shells:
2057build_os=$*
2058IFS=$ac_save_IFS
2059case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002060
2061
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002062{ echo "$as_me:$LINENO: checking host system type" >&5
2063echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2064if test "${ac_cv_host+set}" = set; then
2065 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002066else
Reid Spencera773bd52006-08-04 18:18:08 +00002067 if test "x$host_alias" = x; then
2068 ac_cv_host=$ac_cv_build
2069else
2070 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002071 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2072echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2073 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002074fi
John Criswell7a73b802003-06-30 21:59:07 +00002075
2076fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002077{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2078echo "${ECHO_T}$ac_cv_host" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002079case $ac_cv_host in
2080*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002081*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2082echo "$as_me: error: invalid value of canonical host" >&2;}
2083 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002084esac
John Criswell7a73b802003-06-30 21:59:07 +00002085host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002086ac_save_IFS=$IFS; IFS='-'
2087set x $ac_cv_host
2088shift
2089host_cpu=$1
2090host_vendor=$2
2091shift; shift
2092# Remember, the first character of IFS is used to create $*,
2093# except with old shells:
2094host_os=$*
2095IFS=$ac_save_IFS
2096case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002097
2098
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002099{ echo "$as_me:$LINENO: checking target system type" >&5
2100echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2101if test "${ac_cv_target+set}" = set; then
2102 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002103else
Reid Spencera773bd52006-08-04 18:18:08 +00002104 if test "x$target_alias" = x; then
2105 ac_cv_target=$ac_cv_host
2106else
2107 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002108 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2109echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2110 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002111fi
John Criswell7a73b802003-06-30 21:59:07 +00002112
2113fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002114{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2115echo "${ECHO_T}$ac_cv_target" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002116case $ac_cv_target in
2117*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002118*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2119echo "$as_me: error: invalid value of canonical target" >&2;}
2120 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002121esac
John Criswell7a73b802003-06-30 21:59:07 +00002122target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002123ac_save_IFS=$IFS; IFS='-'
2124set x $ac_cv_target
2125shift
2126target_cpu=$1
2127target_vendor=$2
2128shift; shift
2129# Remember, the first character of IFS is used to create $*,
2130# except with old shells:
2131target_os=$*
2132IFS=$ac_save_IFS
2133case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002134
2135
2136# The aliases save the names the user supplied, while $host etc.
2137# will get canonicalized.
2138test -n "$target_alias" &&
2139 test "$program_prefix$program_suffix$program_transform_name" = \
2140 NONENONEs,x,x, &&
2141 program_prefix=${target_alias}-
2142
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002143{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2144echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2145if test "${llvm_cv_os_type+set}" = set; then
2146 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002147else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002148 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002149 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002150 llvm_cv_link_all_option="-Wl,--whole-archive"
2151 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002152 llvm_cv_os_type="AIX"
2153 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002154 *-*-irix*)
2155 llvm_cv_link_all_option="-Wl,--whole-archive"
2156 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2157 llvm_cv_os_type="IRIX"
2158 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002159 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002160 llvm_cv_link_all_option="-Wl,--whole-archive"
2161 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002162 llvm_cv_os_type="Cygwin"
2163 llvm_cv_platform_type="Unix" ;;
2164 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002165 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002166 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002167 llvm_cv_os_type="Darwin"
2168 llvm_cv_platform_type="Unix" ;;
2169 *-*-freebsd*)
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 Spencer7b3e8512004-12-24 06:29:05 +00002172 llvm_cv_os_type="FreeBSD"
2173 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002174 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002175 llvm_cv_link_all_option="-Wl,--whole-archive"
2176 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002177 llvm_cv_os_type="OpenBSD"
2178 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002179 *-*-netbsd*)
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="NetBSD"
2183 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002184 *-*-dragonfly*)
2185 llvm_cv_link_all_option="-Wl,--whole-archive"
2186 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2187 llvm_cv_os_type="DragonFly"
2188 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002189 *-*-hpux*)
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"
Duraid Madina775afa52005-05-16 16:33:34 +00002192 llvm_cv_os_type="HP-UX"
2193 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002194 *-*-interix*)
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="Interix"
2198 llvm_cv_platform_type="Unix" ;;
2199 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002200 llvm_cv_link_all_option="-Wl,--whole-archive"
2201 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002202 llvm_cv_os_type="Linux"
2203 llvm_cv_platform_type="Unix" ;;
2204 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002205 llvm_cv_link_all_option="-Wl,-z,allextract"
2206 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002207 llvm_cv_os_type="SunOS"
2208 llvm_cv_platform_type="Unix" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002209 *-*-auroraux*)
2210 llvm_cv_link_all_option="-Wl,-z,allextract"
2211 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2212 llvm_cv_os_type="AuroraUX"
2213 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002214 *-*-win32*)
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="Win32"
2218 llvm_cv_platform_type="Win32" ;;
2219 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002220 llvm_cv_link_all_option="-Wl,--whole-archive"
2221 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002222 llvm_cv_os_type="MingW"
2223 llvm_cv_platform_type="Win32" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002224 *-*-haiku*)
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="Haiku"
2228 llvm_cv_platform_type="Unix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002229 *-unknown-eabi*)
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" ;;
2234 *-unknown-elf*)
2235 llvm_cv_link_all_option="-Wl,--whole-archive"
2236 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2237 llvm_cv_os_type="Freestanding"
2238 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002239 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002240 llvm_cv_link_all_option=""
2241 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002242 llvm_cv_os_type="Unknown"
2243 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002244esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002245fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002246{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2247echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002248
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002249{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2250echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2251if test "${llvm_cv_target_os_type+set}" = set; then
2252 echo $ECHO_N "(cached) $ECHO_C" >&6
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002253else
2254 case $target in
2255 *-*-aix*)
2256 llvm_cv_target_os_type="AIX" ;;
2257 *-*-irix*)
2258 llvm_cv_target_os_type="IRIX" ;;
2259 *-*-cygwin*)
2260 llvm_cv_target_os_type="Cygwin" ;;
2261 *-*-darwin*)
2262 llvm_cv_target_os_type="Darwin" ;;
2263 *-*-freebsd*)
2264 llvm_cv_target_os_type="FreeBSD" ;;
2265 *-*-openbsd*)
2266 llvm_cv_target_os_type="OpenBSD" ;;
2267 *-*-netbsd*)
2268 llvm_cv_target_os_type="NetBSD" ;;
2269 *-*-dragonfly*)
2270 llvm_cv_target_os_type="DragonFly" ;;
2271 *-*-hpux*)
2272 llvm_cv_target_os_type="HP-UX" ;;
2273 *-*-interix*)
2274 llvm_cv_target_os_type="Interix" ;;
2275 *-*-linux*)
2276 llvm_cv_target_os_type="Linux" ;;
2277 *-*-solaris*)
2278 llvm_cv_target_os_type="SunOS" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002279 *-*-auroraux*)
2280 llvm_cv_target_os_type="AuroraUX" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002281 *-*-win32*)
2282 llvm_cv_target_os_type="Win32" ;;
2283 *-*-mingw*)
2284 llvm_cv_target_os_type="MingW" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002285 *-*-haiku*)
2286 llvm_cv_target_os_type="Haiku" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002287 *-unknown-eabi*)
2288 llvm_cv_target_os_type="Freestanding" ;;
2289 *)
2290 llvm_cv_target_os_type="Unknown" ;;
2291esac
2292fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002293{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2294echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002295
Reid Spencer7b3e8512004-12-24 06:29:05 +00002296if test "$llvm_cv_os_type" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002297 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2298echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2299 { (exit 1); exit 1; }; }
Reid Spencer886e9512004-08-31 01:34:10 +00002300fi
2301
Reid Spencer7b3e8512004-12-24 06:29:05 +00002302OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002303
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002304HOST_OS=$llvm_cv_os_type
2305
2306TARGET_OS=$llvm_cv_target_os_type
2307
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002308
Reid Spencera773bd52006-08-04 18:18:08 +00002309LINKALL=$llvm_cv_link_all_option
2310
2311NOLINKALL=$llvm_cv_no_link_all_option
2312
2313
Reid Spencer7b3e8512004-12-24 06:29:05 +00002314case $llvm_cv_platform_type in
2315 Unix)
2316
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002317cat >>confdefs.h <<\_ACEOF
2318#define LLVM_ON_UNIX 1
2319_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002320
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002321 LLVM_ON_UNIX=1
2322
2323 LLVM_ON_WIN32=0
2324
Reid Spencer7b3e8512004-12-24 06:29:05 +00002325 ;;
2326 Win32)
2327
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002328cat >>confdefs.h <<\_ACEOF
2329#define LLVM_ON_WIN32 1
2330_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002331
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002332 LLVM_ON_UNIX=0
2333
2334 LLVM_ON_WIN32=1
2335
Reid Spencer7b3e8512004-12-24 06:29:05 +00002336 ;;
2337esac
2338
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002339{ echo "$as_me:$LINENO: checking target architecture" >&5
2340echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2341if test "${llvm_cv_target_arch+set}" = set; then
2342 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002343else
2344 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002345 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002346 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002347 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2348 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002349 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Nick Lewyckyfa8ffc12009-04-18 18:11:26 +00002350 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002351 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00002352 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002353 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00002354 msp430-*) llvm_cv_target_arch="MSP430" ;;
Anton Korobeynikov4403b932009-07-16 13:27:25 +00002355 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00002356 bfin-*) llvm_cv_target_arch="Blackfin" ;;
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00002357 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002358 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002359esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002360fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002361{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2362echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002363
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002364if test "$llvm_cv_target_arch" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002365 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2366echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002367fi
John Criswell76595452003-07-01 22:07:39 +00002368
Nick Lewycky83fc4472009-09-29 05:48:51 +00002369# Determine the LLVM native architecture for the target
2370case "$llvm_cv_target_arch" in
2371 x86) LLVM_NATIVE_ARCH="X86" ;;
2372 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2373 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2374esac
2375
2376ARCH=$llvm_cv_target_arch
2377
2378
2379ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002380ac_cpp='$CPP $CPPFLAGS'
2381ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2382ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2383ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002384if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002385 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2386set dummy ${ac_tool_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002387{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2388echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2389if test "${ac_cv_prog_CC+set}" = set; then
2390 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002391else
2392 if test -n "$CC"; then
2393 ac_cv_prog_CC="$CC" # Let the user override the test.
2394else
2395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2396for as_dir in $PATH
2397do
2398 IFS=$as_save_IFS
2399 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002400 for ac_exec_ext in '' $ac_executable_extensions; do
2401 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 +00002402 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002404 break 2
2405 fi
2406done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002407done
Reid Spencera773bd52006-08-04 18:18:08 +00002408IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002409
2410fi
2411fi
2412CC=$ac_cv_prog_CC
2413if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002414 { echo "$as_me:$LINENO: result: $CC" >&5
2415echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002416else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002417 { echo "$as_me:$LINENO: result: no" >&5
2418echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002419fi
2420
Reid Spencera773bd52006-08-04 18:18:08 +00002421
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002422fi
2423if test -z "$ac_cv_prog_CC"; then
2424 ac_ct_CC=$CC
2425 # Extract the first word of "gcc", so it can be a program name with args.
2426set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002427{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2428echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2429if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2430 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002431else
2432 if test -n "$ac_ct_CC"; then
2433 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2434else
2435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436for as_dir in $PATH
2437do
2438 IFS=$as_save_IFS
2439 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002440 for ac_exec_ext in '' $ac_executable_extensions; do
2441 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 +00002442 ac_cv_prog_ac_ct_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002444 break 2
2445 fi
2446done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002447done
Reid Spencera773bd52006-08-04 18:18:08 +00002448IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002449
2450fi
2451fi
2452ac_ct_CC=$ac_cv_prog_ac_ct_CC
2453if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002454 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2455echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002456else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002457 { echo "$as_me:$LINENO: result: no" >&5
2458echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002459fi
2460
Reid Spencera773bd52006-08-04 18:18:08 +00002461 if test "x$ac_ct_CC" = x; then
2462 CC=""
2463 else
2464 case $cross_compiling:$ac_tool_warned in
2465yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002466{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2467whose name does not start with the host triplet. If you think this
2468configuration is useful to you, please write to autoconf@gnu.org." >&5
2469echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2470whose name does not start with the host triplet. If you think this
2471configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002472ac_tool_warned=yes ;;
2473esac
2474 CC=$ac_ct_CC
2475 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002476else
2477 CC="$ac_cv_prog_CC"
2478fi
2479
2480if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002481 if test -n "$ac_tool_prefix"; then
2482 # 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 +00002483set dummy ${ac_tool_prefix}cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002484{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2485echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2486if test "${ac_cv_prog_CC+set}" = set; then
2487 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002488else
2489 if test -n "$CC"; then
2490 ac_cv_prog_CC="$CC" # Let the user override the test.
2491else
2492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493for as_dir in $PATH
2494do
2495 IFS=$as_save_IFS
2496 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002497 for ac_exec_ext in '' $ac_executable_extensions; do
2498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002499 ac_cv_prog_CC="${ac_tool_prefix}cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002501 break 2
2502 fi
2503done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002504done
Reid Spencera773bd52006-08-04 18:18:08 +00002505IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002506
2507fi
2508fi
2509CC=$ac_cv_prog_CC
2510if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002511 { echo "$as_me:$LINENO: result: $CC" >&5
2512echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002513else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002514 { echo "$as_me:$LINENO: result: no" >&5
2515echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002516fi
2517
Reid Spencera773bd52006-08-04 18:18:08 +00002518
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002519 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002520fi
2521if test -z "$CC"; then
2522 # Extract the first word of "cc", so it can be a program name with args.
2523set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002524{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2526if test "${ac_cv_prog_CC+set}" = set; then
2527 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002528else
2529 if test -n "$CC"; then
2530 ac_cv_prog_CC="$CC" # Let the user override the test.
2531else
2532 ac_prog_rejected=no
2533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534for as_dir in $PATH
2535do
2536 IFS=$as_save_IFS
2537 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002538 for ac_exec_ext in '' $ac_executable_extensions; do
2539 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 +00002540 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2541 ac_prog_rejected=yes
2542 continue
2543 fi
2544 ac_cv_prog_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002546 break 2
2547 fi
2548done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002549done
Reid Spencera773bd52006-08-04 18:18:08 +00002550IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002551
2552if test $ac_prog_rejected = yes; then
2553 # We found a bogon in the path, so make sure we never use it.
2554 set dummy $ac_cv_prog_CC
2555 shift
2556 if test $# != 0; then
2557 # We chose a different compiler from the bogus one.
2558 # However, it has the same basename, so the bogon will be chosen
2559 # first if we set CC to just the basename; use the full file name.
2560 shift
2561 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2562 fi
2563fi
2564fi
2565fi
2566CC=$ac_cv_prog_CC
2567if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002568 { echo "$as_me:$LINENO: result: $CC" >&5
2569echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002570else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002571 { echo "$as_me:$LINENO: result: no" >&5
2572echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002573fi
2574
Reid Spencera773bd52006-08-04 18:18:08 +00002575
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002576fi
2577if test -z "$CC"; then
2578 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002579 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002580 do
2581 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2582set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002583{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2585if test "${ac_cv_prog_CC+set}" = set; then
2586 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002587else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002588 if test -n "$CC"; then
2589 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002590else
2591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2592for as_dir in $PATH
2593do
2594 IFS=$as_save_IFS
2595 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002596 for ac_exec_ext in '' $ac_executable_extensions; do
2597 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 +00002598 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002600 break 2
2601 fi
2602done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002603done
Reid Spencera773bd52006-08-04 18:18:08 +00002604IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002605
2606fi
2607fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002608CC=$ac_cv_prog_CC
2609if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002610 { echo "$as_me:$LINENO: result: $CC" >&5
2611echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002612else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002613 { echo "$as_me:$LINENO: result: no" >&5
2614echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002615fi
2616
Reid Spencera773bd52006-08-04 18:18:08 +00002617
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002618 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002619 done
2620fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002621if test -z "$CC"; then
2622 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002623 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002624do
2625 # Extract the first word of "$ac_prog", so it can be a program name with args.
2626set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002627{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2629if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2630 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002631else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002632 if test -n "$ac_ct_CC"; then
2633 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002634else
2635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2636for as_dir in $PATH
2637do
2638 IFS=$as_save_IFS
2639 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002640 for ac_exec_ext in '' $ac_executable_extensions; do
2641 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 +00002642 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002644 break 2
2645 fi
2646done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002647done
Reid Spencera773bd52006-08-04 18:18:08 +00002648IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002649
2650fi
2651fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002652ac_ct_CC=$ac_cv_prog_ac_ct_CC
2653if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002654 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2655echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002656else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002657 { echo "$as_me:$LINENO: result: no" >&5
2658echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002659fi
2660
Reid Spencera773bd52006-08-04 18:18:08 +00002661
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002662 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002663done
John Criswell7a73b802003-06-30 21:59:07 +00002664
Reid Spencera773bd52006-08-04 18:18:08 +00002665 if test "x$ac_ct_CC" = x; then
2666 CC=""
2667 else
2668 case $cross_compiling:$ac_tool_warned in
2669yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002670{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2671whose name does not start with the host triplet. If you think this
2672configuration is useful to you, please write to autoconf@gnu.org." >&5
2673echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2674whose name does not start with the host triplet. If you think this
2675configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002676ac_tool_warned=yes ;;
2677esac
2678 CC=$ac_ct_CC
2679 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002680fi
2681
John Criswell7a73b802003-06-30 21:59:07 +00002682fi
2683
2684
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002685test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2686See \`config.log' for more details." >&5
2687echo "$as_me: error: no acceptable C compiler found in \$PATH
2688See \`config.log' for more details." >&2;}
2689 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002690
John Criswell7a73b802003-06-30 21:59:07 +00002691# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002692echo "$as_me:$LINENO: checking for C compiler version" >&5
2693ac_compiler=`set X $ac_compile; echo $2`
2694{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002695case "(($ac_try" in
2696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2697 *) ac_try_echo=$ac_try;;
2698esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2700 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002701 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); }
2704{ (ac_try="$ac_compiler -v >&5"
2705case "(($ac_try" in
2706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2707 *) ac_try_echo=$ac_try;;
2708esac
2709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2710 (eval "$ac_compiler -v >&5") 2>&5
2711 ac_status=$?
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); }
2714{ (ac_try="$ac_compiler -V >&5"
2715case "(($ac_try" in
2716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2717 *) ac_try_echo=$ac_try;;
2718esac
2719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2720 (eval "$ac_compiler -V >&5") 2>&5
2721 ac_status=$?
2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002724
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002725cat >conftest.$ac_ext <<_ACEOF
2726/* confdefs.h. */
2727_ACEOF
2728cat confdefs.h >>conftest.$ac_ext
2729cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002730/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002731
John Criswell7a73b802003-06-30 21:59:07 +00002732int
2733main ()
2734{
2735
2736 ;
2737 return 0;
2738}
2739_ACEOF
2740ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002741ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002742# Try to create an executable without -o first, disregard a.out.
2743# It will help us diagnose broken compilers, and finding out an intuition
2744# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002745{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2746echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2747ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2748#
2749# List of possible output files, starting from the most likely.
2750# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2751# only as a last resort. b.out is created by i960 compilers.
2752ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2753#
2754# The IRIX 6 linker writes into existing files which may not be
2755# executable, retaining their permissions. Remove them first so a
2756# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002757ac_rmfiles=
2758for ac_file in $ac_files
2759do
2760 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002761 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002762 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2763 esac
2764done
2765rm -f $ac_rmfiles
2766
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002767if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002768case "(($ac_try" in
2769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2770 *) ac_try_echo=$ac_try;;
2771esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002773 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002774 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002777 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2778# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2779# in a Makefile. We should not override ac_cv_exeext if it was cached,
2780# so that the user can short-circuit this test for compilers unknown to
2781# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002782for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002783do
2784 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002785 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002786 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002787 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002788 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002789 # We found the default executable, but exeext='' is most
2790 # certainly right.
2791 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002792 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002793 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002794 then :; else
2795 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2796 fi
2797 # We set ac_cv_exeext here because the later test for it is not
2798 # safe: cross compilers may not add the suffix if given an `-o'
2799 # argument, so we may need to know it at that point already.
2800 # Even if this section looks crufty: it has the advantage of
2801 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002802 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002803 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002804 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002805 esac
2806done
Reid Spencera773bd52006-08-04 18:18:08 +00002807test "$ac_cv_exeext" = no && ac_cv_exeext=
2808
John Criswell7a73b802003-06-30 21:59:07 +00002809else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002810 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002811sed 's/^/| /' conftest.$ac_ext >&5
2812
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002813{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2814See \`config.log' for more details." >&5
2815echo "$as_me: error: C compiler cannot create executables
2816See \`config.log' for more details." >&2;}
2817 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002818fi
John Criswell7a73b802003-06-30 21:59:07 +00002819
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002820ac_exeext=$ac_cv_exeext
2821{ echo "$as_me:$LINENO: result: $ac_file" >&5
2822echo "${ECHO_T}$ac_file" >&6; }
2823
2824# Check that the compiler produces executables we can run. If not, either
2825# the compiler is broken, or we cross compile.
2826{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2827echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2828# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2829# If not cross compiling, check that we can run a simple program.
2830if test "$cross_compiling" != yes; then
2831 if { ac_try='./$ac_file'
2832 { (case "(($ac_try" in
2833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2834 *) ac_try_echo=$ac_try;;
2835esac
2836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2837 (eval "$ac_try") 2>&5
2838 ac_status=$?
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); }; }; then
2841 cross_compiling=no
2842 else
2843 if test "$cross_compiling" = maybe; then
2844 cross_compiling=yes
2845 else
2846 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2847If you meant to cross compile, use \`--host'.
2848See \`config.log' for more details." >&5
2849echo "$as_me: error: cannot run C compiled programs.
2850If you meant to cross compile, use \`--host'.
2851See \`config.log' for more details." >&2;}
2852 { (exit 1); exit 1; }; }
2853 fi
2854 fi
2855fi
2856{ echo "$as_me:$LINENO: result: yes" >&5
2857echo "${ECHO_T}yes" >&6; }
2858
2859rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002860ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002861# Check that the compiler produces executables we can run. If not, either
2862# the compiler is broken, or we cross compile.
2863{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2864echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2865{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2866echo "${ECHO_T}$cross_compiling" >&6; }
2867
2868{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2869echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2870if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002871case "(($ac_try" in
2872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2873 *) ac_try_echo=$ac_try;;
2874esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002876 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002877 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002880 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2881# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2882# work properly (i.e., refer to `conftest.exe'), while it won't with
2883# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002884for ac_file in conftest.exe conftest conftest.*; do
2885 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002886 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002887 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002888 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002889 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002890 * ) break;;
2891 esac
2892done
2893else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002894 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2895See \`config.log' for more details." >&5
2896echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2897See \`config.log' for more details." >&2;}
2898 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002899fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002900
2901rm -f conftest$ac_cv_exeext
2902{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2903echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002904
2905rm -f conftest.$ac_ext
2906EXEEXT=$ac_cv_exeext
2907ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002908{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2909echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2910if test "${ac_cv_objext+set}" = set; then
2911 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002912else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002913 cat >conftest.$ac_ext <<_ACEOF
2914/* confdefs.h. */
2915_ACEOF
2916cat confdefs.h >>conftest.$ac_ext
2917cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002918/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002919
John Criswell7a73b802003-06-30 21:59:07 +00002920int
2921main ()
2922{
2923
2924 ;
2925 return 0;
2926}
2927_ACEOF
2928rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002929if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002930case "(($ac_try" in
2931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2932 *) ac_try_echo=$ac_try;;
2933esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002935 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002936 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002939 for ac_file in conftest.o conftest.obj conftest.*; do
2940 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002941 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002942 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002943 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2944 break;;
2945 esac
2946done
2947else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002948 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002949sed 's/^/| /' conftest.$ac_ext >&5
2950
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002951{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2952See \`config.log' for more details." >&5
2953echo "$as_me: error: cannot compute suffix of object files: cannot compile
2954See \`config.log' for more details." >&2;}
2955 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002956fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002957
John Criswell7a73b802003-06-30 21:59:07 +00002958rm -f conftest.$ac_cv_objext conftest.$ac_ext
2959fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002960{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2961echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002962OBJEXT=$ac_cv_objext
2963ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002964{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2965echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2966if test "${ac_cv_c_compiler_gnu+set}" = set; then
2967 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002968else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002969 cat >conftest.$ac_ext <<_ACEOF
2970/* confdefs.h. */
2971_ACEOF
2972cat confdefs.h >>conftest.$ac_ext
2973cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002974/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002975
John Criswell7a73b802003-06-30 21:59:07 +00002976int
2977main ()
2978{
2979#ifndef __GNUC__
2980 choke me
2981#endif
2982
2983 ;
2984 return 0;
2985}
2986_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002987rm -f conftest.$ac_objext
2988if { (ac_try="$ac_compile"
2989case "(($ac_try" in
2990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2991 *) ac_try_echo=$ac_try;;
2992esac
2993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2994 (eval "$ac_compile") 2>conftest.er1
2995 ac_status=$?
2996 grep -v '^ *+' conftest.er1 >conftest.err
2997 rm -f conftest.er1
2998 cat conftest.err >&5
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); } &&
3001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3002 { (case "(($ac_try" in
3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004 *) ac_try_echo=$ac_try;;
3005esac
3006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3007 (eval "$ac_try") 2>&5
3008 ac_status=$?
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); }; } &&
3011 { ac_try='test -s conftest.$ac_objext'
3012 { (case "(($ac_try" in
3013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3014 *) ac_try_echo=$ac_try;;
3015esac
3016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3017 (eval "$ac_try") 2>&5
3018 ac_status=$?
3019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003021 ac_compiler_gnu=yes
3022else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003023 echo "$as_me: failed program was:" >&5
3024sed 's/^/| /' conftest.$ac_ext >&5
3025
3026 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003027fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003028
Reid Spencera773bd52006-08-04 18:18:08 +00003029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003030ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003031
3032fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003033{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3034echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3035GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003036ac_test_CFLAGS=${CFLAGS+set}
3037ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003038{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3039echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3040if test "${ac_cv_prog_cc_g+set}" = set; then
3041 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003042else
Reid Spencera773bd52006-08-04 18:18:08 +00003043 ac_save_c_werror_flag=$ac_c_werror_flag
3044 ac_c_werror_flag=yes
3045 ac_cv_prog_cc_g=no
3046 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003047 cat >conftest.$ac_ext <<_ACEOF
3048/* confdefs.h. */
3049_ACEOF
3050cat confdefs.h >>conftest.$ac_ext
3051cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003052/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003053
John Criswell7a73b802003-06-30 21:59:07 +00003054int
3055main ()
3056{
3057
3058 ;
3059 return 0;
3060}
3061_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003062rm -f conftest.$ac_objext
3063if { (ac_try="$ac_compile"
3064case "(($ac_try" in
3065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3066 *) ac_try_echo=$ac_try;;
3067esac
3068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3069 (eval "$ac_compile") 2>conftest.er1
3070 ac_status=$?
3071 grep -v '^ *+' conftest.er1 >conftest.err
3072 rm -f conftest.er1
3073 cat conftest.err >&5
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); } &&
3076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3077 { (case "(($ac_try" in
3078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079 *) ac_try_echo=$ac_try;;
3080esac
3081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3082 (eval "$ac_try") 2>&5
3083 ac_status=$?
3084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085 (exit $ac_status); }; } &&
3086 { ac_try='test -s conftest.$ac_objext'
3087 { (case "(($ac_try" in
3088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089 *) ac_try_echo=$ac_try;;
3090esac
3091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3092 (eval "$ac_try") 2>&5
3093 ac_status=$?
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003096 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003097else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003098 echo "$as_me: failed program was:" >&5
3099sed 's/^/| /' conftest.$ac_ext >&5
3100
3101 CFLAGS=""
3102 cat >conftest.$ac_ext <<_ACEOF
3103/* confdefs.h. */
3104_ACEOF
3105cat confdefs.h >>conftest.$ac_ext
3106cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003107/* end confdefs.h. */
3108
3109int
3110main ()
3111{
3112
3113 ;
3114 return 0;
3115}
3116_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003117rm -f conftest.$ac_objext
3118if { (ac_try="$ac_compile"
3119case "(($ac_try" in
3120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121 *) ac_try_echo=$ac_try;;
3122esac
3123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3124 (eval "$ac_compile") 2>conftest.er1
3125 ac_status=$?
3126 grep -v '^ *+' conftest.er1 >conftest.err
3127 rm -f conftest.er1
3128 cat conftest.err >&5
3129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130 (exit $ac_status); } &&
3131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3132 { (case "(($ac_try" in
3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134 *) ac_try_echo=$ac_try;;
3135esac
3136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137 (eval "$ac_try") 2>&5
3138 ac_status=$?
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); }; } &&
3141 { ac_try='test -s conftest.$ac_objext'
3142 { (case "(($ac_try" in
3143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144 *) ac_try_echo=$ac_try;;
3145esac
3146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3147 (eval "$ac_try") 2>&5
3148 ac_status=$?
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); }; }; then
3151 :
Torok Edwin871384f2010-01-26 08:50:50 +00003152else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003153 echo "$as_me: failed program was:" >&5
3154sed 's/^/| /' conftest.$ac_ext >&5
3155
3156 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00003157 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003158 cat >conftest.$ac_ext <<_ACEOF
3159/* confdefs.h. */
3160_ACEOF
3161cat confdefs.h >>conftest.$ac_ext
3162cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003163/* end confdefs.h. */
3164
3165int
3166main ()
3167{
3168
3169 ;
3170 return 0;
3171}
3172_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003173rm -f conftest.$ac_objext
3174if { (ac_try="$ac_compile"
3175case "(($ac_try" in
3176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177 *) ac_try_echo=$ac_try;;
3178esac
3179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3180 (eval "$ac_compile") 2>conftest.er1
3181 ac_status=$?
3182 grep -v '^ *+' conftest.er1 >conftest.err
3183 rm -f conftest.er1
3184 cat conftest.err >&5
3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); } &&
3187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3188 { (case "(($ac_try" in
3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190 *) ac_try_echo=$ac_try;;
3191esac
3192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3193 (eval "$ac_try") 2>&5
3194 ac_status=$?
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); }; } &&
3197 { ac_try='test -s conftest.$ac_objext'
3198 { (case "(($ac_try" in
3199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200 *) ac_try_echo=$ac_try;;
3201esac
3202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3203 (eval "$ac_try") 2>&5
3204 ac_status=$?
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003207 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003208else
3209 echo "$as_me: failed program was:" >&5
3210sed 's/^/| /' conftest.$ac_ext >&5
3211
3212
John Criswell7a73b802003-06-30 21:59:07 +00003213fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003214
Reid Spencera773bd52006-08-04 18:18:08 +00003215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003216fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003217
Reid Spencera773bd52006-08-04 18:18:08 +00003218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3219fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003220
Reid Spencera773bd52006-08-04 18:18:08 +00003221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3222 ac_c_werror_flag=$ac_save_c_werror_flag
3223fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003224{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3225echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003226if test "$ac_test_CFLAGS" = set; then
3227 CFLAGS=$ac_save_CFLAGS
3228elif test $ac_cv_prog_cc_g = yes; then
3229 if test "$GCC" = yes; then
3230 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003231 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003232 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003233 fi
3234else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003235 if test "$GCC" = yes; then
3236 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003237 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003238 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003239 fi
3240fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003241{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3242echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3243if test "${ac_cv_prog_cc_c89+set}" = set; then
3244 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003245else
Reid Spencera773bd52006-08-04 18:18:08 +00003246 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003247ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003248cat >conftest.$ac_ext <<_ACEOF
3249/* confdefs.h. */
3250_ACEOF
3251cat confdefs.h >>conftest.$ac_ext
3252cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003253/* end confdefs.h. */
3254#include <stdarg.h>
3255#include <stdio.h>
3256#include <sys/types.h>
3257#include <sys/stat.h>
3258/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3259struct buf { int x; };
3260FILE * (*rcsopen) (struct buf *, struct stat *, int);
3261static char *e (p, i)
3262 char **p;
3263 int i;
3264{
3265 return p[i];
3266}
3267static char *f (char * (*g) (char **, int), char **p, ...)
3268{
3269 char *s;
3270 va_list v;
3271 va_start (v,p);
3272 s = g (p, va_arg (v,int));
3273 va_end (v);
3274 return s;
3275}
3276
3277/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3278 function prototypes and stuff, but not '\xHH' hex character constants.
3279 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003280 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003281 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3282 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003283 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003284int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3285
Reid Spencera773bd52006-08-04 18:18:08 +00003286/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3287 inside strings and character constants. */
3288#define FOO(x) 'x'
3289int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3290
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003291int test (int i, double x);
3292struct s1 {int (*f) (int a);};
3293struct s2 {int (*f) (double a);};
3294int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3295int argc;
3296char **argv;
3297int
3298main ()
3299{
3300return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3301 ;
3302 return 0;
3303}
3304_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003305for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3306 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003307do
3308 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003309 rm -f conftest.$ac_objext
3310if { (ac_try="$ac_compile"
3311case "(($ac_try" in
3312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313 *) ac_try_echo=$ac_try;;
3314esac
3315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3316 (eval "$ac_compile") 2>conftest.er1
3317 ac_status=$?
3318 grep -v '^ *+' conftest.er1 >conftest.err
3319 rm -f conftest.er1
3320 cat conftest.err >&5
3321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); } &&
3323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3324 { (case "(($ac_try" in
3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326 *) ac_try_echo=$ac_try;;
3327esac
3328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3329 (eval "$ac_try") 2>&5
3330 ac_status=$?
3331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332 (exit $ac_status); }; } &&
3333 { ac_try='test -s conftest.$ac_objext'
3334 { (case "(($ac_try" in
3335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3336 *) ac_try_echo=$ac_try;;
3337esac
3338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3339 (eval "$ac_try") 2>&5
3340 ac_status=$?
3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003343 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003344else
3345 echo "$as_me: failed program was:" >&5
3346sed 's/^/| /' conftest.$ac_ext >&5
3347
3348
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003349fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003350
Reid Spencera773bd52006-08-04 18:18:08 +00003351rm -f core conftest.err conftest.$ac_objext
3352 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003353done
Reid Spencera773bd52006-08-04 18:18:08 +00003354rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003355CC=$ac_save_CC
3356
3357fi
Reid Spencera773bd52006-08-04 18:18:08 +00003358# AC_CACHE_VAL
3359case "x$ac_cv_prog_cc_c89" in
3360 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003361 { echo "$as_me:$LINENO: result: none needed" >&5
3362echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00003363 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003364 { echo "$as_me:$LINENO: result: unsupported" >&5
3365echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003366 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003367 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003368 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3369echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003370esac
3371
John Criswell0c38eaf2003-09-10 15:17:25 +00003372
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003373ac_ext=c
3374ac_cpp='$CPP $CPPFLAGS'
3375ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3376ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3377ac_compiler_gnu=$ac_cv_c_compiler_gnu
3378
3379
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003380ac_ext=c
3381ac_cpp='$CPP $CPPFLAGS'
3382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3384ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003385{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3386echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003387# On Suns, sometimes $CPP names a directory.
3388if test -n "$CPP" && test -d "$CPP"; then
3389 CPP=
3390fi
3391if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003392 if test "${ac_cv_prog_CPP+set}" = set; then
3393 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003394else
3395 # Double quotes because CPP needs to be expanded
3396 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3397 do
3398 ac_preproc_ok=false
3399for ac_c_preproc_warn_flag in '' yes
3400do
3401 # Use a header file that comes with gcc, so configuring glibc
3402 # with a fresh cross-compiler works.
3403 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3404 # <limits.h> exists even on freestanding compilers.
3405 # On the NeXT, cc -E runs the code through the compiler's parser,
3406 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003407 cat >conftest.$ac_ext <<_ACEOF
3408/* confdefs.h. */
3409_ACEOF
3410cat confdefs.h >>conftest.$ac_ext
3411cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003412/* end confdefs.h. */
3413#ifdef __STDC__
3414# include <limits.h>
3415#else
3416# include <assert.h>
3417#endif
3418 Syntax error
3419_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003420if { (ac_try="$ac_cpp conftest.$ac_ext"
3421case "(($ac_try" in
3422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3423 *) ac_try_echo=$ac_try;;
3424esac
3425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3426 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3427 ac_status=$?
3428 grep -v '^ *+' conftest.er1 >conftest.err
3429 rm -f conftest.er1
3430 cat conftest.err >&5
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); } >/dev/null; then
3433 if test -s conftest.err; then
3434 ac_cpp_err=$ac_c_preproc_warn_flag
3435 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3436 else
3437 ac_cpp_err=
3438 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003439else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003440 ac_cpp_err=yes
3441fi
3442if test -z "$ac_cpp_err"; then
3443 :
3444else
3445 echo "$as_me: failed program was:" >&5
3446sed 's/^/| /' conftest.$ac_ext >&5
3447
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003448 # Broken: fails on valid input.
3449continue
3450fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003451
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003452rm -f conftest.err conftest.$ac_ext
3453
Reid Spencera773bd52006-08-04 18:18:08 +00003454 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003455 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003456 cat >conftest.$ac_ext <<_ACEOF
3457/* confdefs.h. */
3458_ACEOF
3459cat confdefs.h >>conftest.$ac_ext
3460cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003461/* end confdefs.h. */
3462#include <ac_nonexistent.h>
3463_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003464if { (ac_try="$ac_cpp conftest.$ac_ext"
3465case "(($ac_try" in
3466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3467 *) ac_try_echo=$ac_try;;
3468esac
3469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3470 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3471 ac_status=$?
3472 grep -v '^ *+' conftest.er1 >conftest.err
3473 rm -f conftest.er1
3474 cat conftest.err >&5
3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); } >/dev/null; then
3477 if test -s conftest.err; then
3478 ac_cpp_err=$ac_c_preproc_warn_flag
3479 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3480 else
3481 ac_cpp_err=
3482 fi
3483else
3484 ac_cpp_err=yes
3485fi
3486if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003487 # Broken: success on invalid input.
3488continue
3489else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003490 echo "$as_me: failed program was:" >&5
3491sed 's/^/| /' conftest.$ac_ext >&5
3492
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003493 # Passes both tests.
3494ac_preproc_ok=:
3495break
3496fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003497
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003498rm -f conftest.err conftest.$ac_ext
3499
3500done
3501# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3502rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003503if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003504 break
3505fi
3506
3507 done
3508 ac_cv_prog_CPP=$CPP
3509
3510fi
3511 CPP=$ac_cv_prog_CPP
3512else
3513 ac_cv_prog_CPP=$CPP
3514fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003515{ echo "$as_me:$LINENO: result: $CPP" >&5
3516echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003517ac_preproc_ok=false
3518for ac_c_preproc_warn_flag in '' yes
3519do
3520 # Use a header file that comes with gcc, so configuring glibc
3521 # with a fresh cross-compiler works.
3522 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3523 # <limits.h> exists even on freestanding compilers.
3524 # On the NeXT, cc -E runs the code through the compiler's parser,
3525 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003526 cat >conftest.$ac_ext <<_ACEOF
3527/* confdefs.h. */
3528_ACEOF
3529cat confdefs.h >>conftest.$ac_ext
3530cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003531/* end confdefs.h. */
3532#ifdef __STDC__
3533# include <limits.h>
3534#else
3535# include <assert.h>
3536#endif
3537 Syntax error
3538_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003539if { (ac_try="$ac_cpp conftest.$ac_ext"
3540case "(($ac_try" in
3541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3542 *) ac_try_echo=$ac_try;;
3543esac
3544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3545 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3546 ac_status=$?
3547 grep -v '^ *+' conftest.er1 >conftest.err
3548 rm -f conftest.er1
3549 cat conftest.err >&5
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); } >/dev/null; then
3552 if test -s conftest.err; then
3553 ac_cpp_err=$ac_c_preproc_warn_flag
3554 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3555 else
3556 ac_cpp_err=
3557 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003558else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003559 ac_cpp_err=yes
3560fi
3561if test -z "$ac_cpp_err"; then
3562 :
3563else
3564 echo "$as_me: failed program was:" >&5
3565sed 's/^/| /' conftest.$ac_ext >&5
3566
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003567 # Broken: fails on valid input.
3568continue
3569fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003570
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003571rm -f conftest.err conftest.$ac_ext
3572
Reid Spencera773bd52006-08-04 18:18:08 +00003573 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003574 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003575 cat >conftest.$ac_ext <<_ACEOF
3576/* confdefs.h. */
3577_ACEOF
3578cat confdefs.h >>conftest.$ac_ext
3579cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003580/* end confdefs.h. */
3581#include <ac_nonexistent.h>
3582_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003583if { (ac_try="$ac_cpp conftest.$ac_ext"
3584case "(($ac_try" in
3585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3586 *) ac_try_echo=$ac_try;;
3587esac
3588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3589 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3590 ac_status=$?
3591 grep -v '^ *+' conftest.er1 >conftest.err
3592 rm -f conftest.er1
3593 cat conftest.err >&5
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); } >/dev/null; then
3596 if test -s conftest.err; then
3597 ac_cpp_err=$ac_c_preproc_warn_flag
3598 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3599 else
3600 ac_cpp_err=
3601 fi
3602else
3603 ac_cpp_err=yes
3604fi
3605if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003606 # Broken: success on invalid input.
3607continue
3608else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003609 echo "$as_me: failed program was:" >&5
3610sed 's/^/| /' conftest.$ac_ext >&5
3611
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003612 # Passes both tests.
3613ac_preproc_ok=:
3614break
3615fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003616
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003617rm -f conftest.err conftest.$ac_ext
3618
3619done
3620# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3621rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003622if $ac_preproc_ok; then
3623 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003624else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003625 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3626See \`config.log' for more details." >&5
3627echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3628See \`config.log' for more details." >&2;}
3629 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003630fi
3631
John Criswell7a73b802003-06-30 21:59:07 +00003632ac_ext=c
3633ac_cpp='$CPP $CPPFLAGS'
3634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3636ac_compiler_gnu=$ac_cv_c_compiler_gnu
3637
John Criswell7a73b802003-06-30 21:59:07 +00003638
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003639{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3640echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3641if test "${ac_cv_path_GREP+set}" = set; then
3642 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003643else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003644 # Extract the first word of "grep ggrep" to use in msg output
3645if test -z "$GREP"; then
3646set dummy grep ggrep; ac_prog_name=$2
3647if test "${ac_cv_path_GREP+set}" = set; then
3648 echo $ECHO_N "(cached) $ECHO_C" >&6
3649else
Reid Spencera773bd52006-08-04 18:18:08 +00003650 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003651# Loop through the user's path and test for each of PROGNAME-LIST
3652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003653for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003654do
3655 IFS=$as_save_IFS
3656 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003657 for ac_prog in grep ggrep; do
3658 for ac_exec_ext in '' $ac_executable_extensions; do
3659 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3660 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3661 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003662 # Check for GNU $ac_path_GREP
3663case `"$ac_path_GREP" --version 2>&1` in
3664*GNU*)
3665 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3666*)
3667 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003668 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003669 while :
3670 do
3671 cat "conftest.in" "conftest.in" >"conftest.tmp"
3672 mv "conftest.tmp" "conftest.in"
3673 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003674 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003675 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3676 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003677 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003678 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3679 # Best one so far, save it but keep looking for a better one
3680 ac_cv_path_GREP="$ac_path_GREP"
3681 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003682 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003683 # 10*(2^10) chars as input seems more than enough
3684 test $ac_count -gt 10 && break
3685 done
3686 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3687esac
3688
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003689
3690 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003691 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003692done
3693
3694done
Reid Spencera773bd52006-08-04 18:18:08 +00003695IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003696
3697
3698fi
3699
3700GREP="$ac_cv_path_GREP"
3701if test -z "$GREP"; then
3702 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3703echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3704 { (exit 1); exit 1; }; }
3705fi
3706
Reid Spencera773bd52006-08-04 18:18:08 +00003707else
3708 ac_cv_path_GREP=$GREP
3709fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003710
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003711
Reid Spencera773bd52006-08-04 18:18:08 +00003712fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003713{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3714echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003715 GREP="$ac_cv_path_GREP"
3716
3717
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003718{ echo "$as_me:$LINENO: checking for egrep" >&5
3719echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3720if test "${ac_cv_path_EGREP+set}" = set; then
3721 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00003722else
3723 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3724 then ac_cv_path_EGREP="$GREP -E"
3725 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003726 # Extract the first word of "egrep" to use in msg output
3727if test -z "$EGREP"; then
3728set dummy egrep; ac_prog_name=$2
3729if test "${ac_cv_path_EGREP+set}" = set; then
3730 echo $ECHO_N "(cached) $ECHO_C" >&6
3731else
Reid Spencera773bd52006-08-04 18:18:08 +00003732 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003733# Loop through the user's path and test for each of PROGNAME-LIST
3734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003735for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3736do
3737 IFS=$as_save_IFS
3738 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003739 for ac_prog in egrep; do
3740 for ac_exec_ext in '' $ac_executable_extensions; do
3741 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3742 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3743 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003744 # Check for GNU $ac_path_EGREP
3745case `"$ac_path_EGREP" --version 2>&1` in
3746*GNU*)
3747 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3748*)
3749 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003750 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003751 while :
3752 do
3753 cat "conftest.in" "conftest.in" >"conftest.tmp"
3754 mv "conftest.tmp" "conftest.in"
3755 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003756 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003757 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3758 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003759 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003760 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3761 # Best one so far, save it but keep looking for a better one
3762 ac_cv_path_EGREP="$ac_path_EGREP"
3763 ac_path_EGREP_max=$ac_count
3764 fi
3765 # 10*(2^10) chars as input seems more than enough
3766 test $ac_count -gt 10 && break
3767 done
3768 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3769esac
3770
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003771
3772 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003773 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003774done
3775
3776done
Reid Spencera773bd52006-08-04 18:18:08 +00003777IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003778
3779
3780fi
3781
3782EGREP="$ac_cv_path_EGREP"
3783if test -z "$EGREP"; then
3784 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3785echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3786 { (exit 1); exit 1; }; }
3787fi
3788
Reid Spencera773bd52006-08-04 18:18:08 +00003789else
3790 ac_cv_path_EGREP=$EGREP
3791fi
3792
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003793
Reid Spencera773bd52006-08-04 18:18:08 +00003794 fi
3795fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003796{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3797echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003798 EGREP="$ac_cv_path_EGREP"
3799
3800
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003801{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3802echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3803if test "${ac_cv_header_stdc+set}" = set; then
3804 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003805else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003806 cat >conftest.$ac_ext <<_ACEOF
3807/* confdefs.h. */
3808_ACEOF
3809cat confdefs.h >>conftest.$ac_ext
3810cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003811/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003812#include <stdlib.h>
3813#include <stdarg.h>
3814#include <string.h>
3815#include <float.h>
3816
John Criswell0c38eaf2003-09-10 15:17:25 +00003817int
3818main ()
3819{
3820
3821 ;
3822 return 0;
3823}
John Criswell7a73b802003-06-30 21:59:07 +00003824_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003825rm -f conftest.$ac_objext
3826if { (ac_try="$ac_compile"
3827case "(($ac_try" in
3828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3829 *) ac_try_echo=$ac_try;;
3830esac
3831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3832 (eval "$ac_compile") 2>conftest.er1
3833 ac_status=$?
3834 grep -v '^ *+' conftest.er1 >conftest.err
3835 rm -f conftest.er1
3836 cat conftest.err >&5
3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 (exit $ac_status); } &&
3839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3840 { (case "(($ac_try" in
3841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3842 *) ac_try_echo=$ac_try;;
3843esac
3844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3845 (eval "$ac_try") 2>&5
3846 ac_status=$?
3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); }; } &&
3849 { ac_try='test -s conftest.$ac_objext'
3850 { (case "(($ac_try" in
3851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3852 *) ac_try_echo=$ac_try;;
3853esac
3854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3855 (eval "$ac_try") 2>&5
3856 ac_status=$?
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003859 ac_cv_header_stdc=yes
3860else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003861 echo "$as_me: failed program was:" >&5
3862sed 's/^/| /' conftest.$ac_ext >&5
3863
3864 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003865fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003866
Reid Spencera773bd52006-08-04 18:18:08 +00003867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003868
3869if test $ac_cv_header_stdc = yes; then
3870 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003871 cat >conftest.$ac_ext <<_ACEOF
3872/* confdefs.h. */
3873_ACEOF
3874cat confdefs.h >>conftest.$ac_ext
3875cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003876/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003877#include <string.h>
3878
3879_ACEOF
3880if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003881 $EGREP "memchr" >/dev/null 2>&1; then
3882 :
John Criswell7a73b802003-06-30 21:59:07 +00003883else
3884 ac_cv_header_stdc=no
3885fi
3886rm -f conftest*
3887
3888fi
3889
3890if test $ac_cv_header_stdc = yes; then
3891 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003892 cat >conftest.$ac_ext <<_ACEOF
3893/* confdefs.h. */
3894_ACEOF
3895cat confdefs.h >>conftest.$ac_ext
3896cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003897/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003898#include <stdlib.h>
3899
3900_ACEOF
3901if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003902 $EGREP "free" >/dev/null 2>&1; then
3903 :
John Criswell7a73b802003-06-30 21:59:07 +00003904else
3905 ac_cv_header_stdc=no
3906fi
3907rm -f conftest*
3908
3909fi
3910
3911if test $ac_cv_header_stdc = yes; then
3912 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003913 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00003914 :
3915else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003916 cat >conftest.$ac_ext <<_ACEOF
3917/* confdefs.h. */
3918_ACEOF
3919cat confdefs.h >>conftest.$ac_ext
3920cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003921/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003922#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003923#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003924#if ((' ' & 0x0FF) == 0x020)
3925# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3926# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3927#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003928# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003929 (('a' <= (c) && (c) <= 'i') \
3930 || ('j' <= (c) && (c) <= 'r') \
3931 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003932# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3933#endif
3934
3935#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3936int
3937main ()
3938{
3939 int i;
3940 for (i = 0; i < 256; i++)
3941 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003942 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003943 return 2;
3944 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003945}
3946_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003947rm -f conftest$ac_exeext
3948if { (ac_try="$ac_link"
3949case "(($ac_try" in
3950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3951 *) ac_try_echo=$ac_try;;
3952esac
3953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3954 (eval "$ac_link") 2>&5
3955 ac_status=$?
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3958 { (case "(($ac_try" in
3959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3960 *) ac_try_echo=$ac_try;;
3961esac
3962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3963 (eval "$ac_try") 2>&5
3964 ac_status=$?
3965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966 (exit $ac_status); }; }; then
3967 :
John Criswell7a73b802003-06-30 21:59:07 +00003968else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003969 echo "$as_me: program exited with status $ac_status" >&5
3970echo "$as_me: failed program was:" >&5
3971sed 's/^/| /' conftest.$ac_ext >&5
3972
3973( exit $ac_status )
3974ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003975fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003976rm -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 +00003977fi
3978
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003979
John Criswell7a73b802003-06-30 21:59:07 +00003980fi
3981fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003982{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3983echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003984if test $ac_cv_header_stdc = yes; then
3985
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003986cat >>confdefs.h <<\_ACEOF
3987#define STDC_HEADERS 1
3988_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00003989
3990fi
3991
Reid Spencera773bd52006-08-04 18:18:08 +00003992# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003993
3994
3995
3996
3997
3998
3999
4000
4001
Reid Spencera773bd52006-08-04 18:18:08 +00004002for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4003 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004004do
4005as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4006{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4007echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4008if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4009 echo $ECHO_N "(cached) $ECHO_C" >&6
4010else
4011 cat >conftest.$ac_ext <<_ACEOF
4012/* confdefs.h. */
4013_ACEOF
4014cat confdefs.h >>conftest.$ac_ext
4015cat >>conftest.$ac_ext <<_ACEOF
4016/* end confdefs.h. */
4017$ac_includes_default
4018
4019#include <$ac_header>
4020_ACEOF
4021rm -f conftest.$ac_objext
4022if { (ac_try="$ac_compile"
4023case "(($ac_try" in
4024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4025 *) ac_try_echo=$ac_try;;
4026esac
4027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4028 (eval "$ac_compile") 2>conftest.er1
4029 ac_status=$?
4030 grep -v '^ *+' conftest.er1 >conftest.err
4031 rm -f conftest.er1
4032 cat conftest.err >&5
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); } &&
4035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4036 { (case "(($ac_try" in
4037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4038 *) ac_try_echo=$ac_try;;
4039esac
4040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4041 (eval "$ac_try") 2>&5
4042 ac_status=$?
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); }; } &&
4045 { ac_try='test -s conftest.$ac_objext'
4046 { (case "(($ac_try" in
4047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4048 *) ac_try_echo=$ac_try;;
4049esac
4050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4051 (eval "$ac_try") 2>&5
4052 ac_status=$?
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); }; }; then
4055 eval "$as_ac_Header=yes"
4056else
4057 echo "$as_me: failed program was:" >&5
4058sed 's/^/| /' conftest.$ac_ext >&5
4059
4060 eval "$as_ac_Header=no"
4061fi
4062
4063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4064fi
4065ac_res=`eval echo '${'$as_ac_Header'}'`
4066 { echo "$as_me:$LINENO: result: $ac_res" >&5
4067echo "${ECHO_T}$ac_res" >&6; }
4068if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004069 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004070#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004071_ACEOF
4072
4073fi
4074
4075done
4076
4077
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004078{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4079echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4080if test "${ac_cv_c_bigendian+set}" = set; then
4081 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004082else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004083 # See if sys/param.h defines the BYTE_ORDER macro.
4084cat >conftest.$ac_ext <<_ACEOF
4085/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004086_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004087cat confdefs.h >>conftest.$ac_ext
4088cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004089/* end confdefs.h. */
4090#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004091#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004092
4093int
4094main ()
4095{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004096#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4097 bogus endian macros
4098#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004099
4100 ;
4101 return 0;
4102}
4103_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004104rm -f conftest.$ac_objext
4105if { (ac_try="$ac_compile"
4106case "(($ac_try" in
4107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4108 *) ac_try_echo=$ac_try;;
4109esac
4110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4111 (eval "$ac_compile") 2>conftest.er1
4112 ac_status=$?
4113 grep -v '^ *+' conftest.er1 >conftest.err
4114 rm -f conftest.er1
4115 cat conftest.err >&5
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); } &&
4118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4119 { (case "(($ac_try" in
4120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4121 *) ac_try_echo=$ac_try;;
4122esac
4123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4124 (eval "$ac_try") 2>&5
4125 ac_status=$?
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); }; } &&
4128 { ac_try='test -s conftest.$ac_objext'
4129 { (case "(($ac_try" in
4130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4131 *) ac_try_echo=$ac_try;;
4132esac
4133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4134 (eval "$ac_try") 2>&5
4135 ac_status=$?
4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004138 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004139cat >conftest.$ac_ext <<_ACEOF
4140/* confdefs.h. */
4141_ACEOF
4142cat confdefs.h >>conftest.$ac_ext
4143cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004144/* end confdefs.h. */
4145#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004146#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004147
4148int
4149main ()
4150{
4151#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004152 not big endian
4153#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004154
4155 ;
4156 return 0;
4157}
4158_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004159rm -f conftest.$ac_objext
4160if { (ac_try="$ac_compile"
4161case "(($ac_try" in
4162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4163 *) ac_try_echo=$ac_try;;
4164esac
4165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4166 (eval "$ac_compile") 2>conftest.er1
4167 ac_status=$?
4168 grep -v '^ *+' conftest.er1 >conftest.err
4169 rm -f conftest.er1
4170 cat conftest.err >&5
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); } &&
4173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4174 { (case "(($ac_try" in
4175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4176 *) ac_try_echo=$ac_try;;
4177esac
4178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4179 (eval "$ac_try") 2>&5
4180 ac_status=$?
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); }; } &&
4183 { ac_try='test -s conftest.$ac_objext'
4184 { (case "(($ac_try" in
4185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4186 *) ac_try_echo=$ac_try;;
4187esac
4188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4189 (eval "$ac_try") 2>&5
4190 ac_status=$?
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004193 ac_cv_c_bigendian=yes
4194else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004195 echo "$as_me: failed program was:" >&5
4196sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004197
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004198 ac_cv_c_bigendian=no
4199fi
4200
4201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4202else
4203 echo "$as_me: failed program was:" >&5
4204sed 's/^/| /' conftest.$ac_ext >&5
4205
4206 # It does not; compile a test program.
4207if test "$cross_compiling" = yes; then
4208 # try to guess the endianness by grepping values into an object file
4209 ac_cv_c_bigendian=unknown
4210 cat >conftest.$ac_ext <<_ACEOF
4211/* confdefs.h. */
4212_ACEOF
4213cat confdefs.h >>conftest.$ac_ext
4214cat >>conftest.$ac_ext <<_ACEOF
4215/* end confdefs.h. */
4216short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4217short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4218void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4219short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4220short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4221void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004222int
4223main ()
4224{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004225 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004226 ;
4227 return 0;
4228}
4229_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004230rm -f conftest.$ac_objext
4231if { (ac_try="$ac_compile"
4232case "(($ac_try" in
4233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4234 *) ac_try_echo=$ac_try;;
4235esac
4236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4237 (eval "$ac_compile") 2>conftest.er1
4238 ac_status=$?
4239 grep -v '^ *+' conftest.er1 >conftest.err
4240 rm -f conftest.er1
4241 cat conftest.err >&5
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); } &&
4244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4245 { (case "(($ac_try" in
4246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4247 *) ac_try_echo=$ac_try;;
4248esac
4249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4250 (eval "$ac_try") 2>&5
4251 ac_status=$?
4252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253 (exit $ac_status); }; } &&
4254 { ac_try='test -s conftest.$ac_objext'
4255 { (case "(($ac_try" in
4256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4257 *) ac_try_echo=$ac_try;;
4258esac
4259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4260 (eval "$ac_try") 2>&5
4261 ac_status=$?
4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); }; }; then
4264 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004265 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004266fi
4267if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4268 if test "$ac_cv_c_bigendian" = unknown; then
4269 ac_cv_c_bigendian=no
4270 else
4271 # finding both strings is unlikely to happen, but who knows?
4272 ac_cv_c_bigendian=unknown
4273 fi
4274fi
Reid Spencera773bd52006-08-04 18:18:08 +00004275else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004276 echo "$as_me: failed program was:" >&5
4277sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004278
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004279
Torok Edwin871384f2010-01-26 08:50:50 +00004280fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004281
Reid Spencera773bd52006-08-04 18:18:08 +00004282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4283else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004284 cat >conftest.$ac_ext <<_ACEOF
4285/* confdefs.h. */
4286_ACEOF
4287cat confdefs.h >>conftest.$ac_ext
4288cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004289/* end confdefs.h. */
4290$ac_includes_default
4291int
4292main ()
4293{
4294
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004295 /* Are we little or big endian? From Harbison&Steele. */
4296 union
4297 {
4298 long int l;
4299 char c[sizeof (long int)];
4300 } u;
4301 u.l = 1;
4302 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004303
4304 ;
4305 return 0;
4306}
4307_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004308rm -f conftest$ac_exeext
4309if { (ac_try="$ac_link"
4310case "(($ac_try" in
4311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4312 *) ac_try_echo=$ac_try;;
4313esac
4314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4315 (eval "$ac_link") 2>&5
4316 ac_status=$?
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4319 { (case "(($ac_try" in
4320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4321 *) ac_try_echo=$ac_try;;
4322esac
4323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4324 (eval "$ac_try") 2>&5
4325 ac_status=$?
4326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004328 ac_cv_c_bigendian=no
4329else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004330 echo "$as_me: program exited with status $ac_status" >&5
4331echo "$as_me: failed program was:" >&5
4332sed 's/^/| /' conftest.$ac_ext >&5
4333
4334( exit $ac_status )
4335ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004336fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004337rm -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 +00004338fi
4339
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004340
Reid Spencera773bd52006-08-04 18:18:08 +00004341fi
4342
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4344fi
4345{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4346echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4347case $ac_cv_c_bigendian in
4348 yes)
4349 ENDIAN=big
4350 ;;
4351 no)
4352 ENDIAN=little
4353 ;;
4354 *)
4355 { { echo "$as_me:$LINENO: error: unknown endianness
4356presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4357echo "$as_me: error: unknown endianness
4358presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4359 { (exit 1); exit 1; }; } ;;
4360esac
Reid Spencera773bd52006-08-04 18:18:08 +00004361
4362
4363if test "$cross_compiling" = yes; then
4364 LLVM_CROSS_COMPILING=1
4365
4366
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004367{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4368echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4369if test "${ac_cv_build_exeext+set}" = set; then
4370 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004371else
4372 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4373 ac_cv_build_exeext=.exe
4374else
4375 ac_build_prefix=${build_alias}-
4376
4377 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4378set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004379{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4380echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4381if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4382 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004383else
4384 if test -n "$BUILD_CC"; then
4385 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4386else
4387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4388for as_dir in $PATH
4389do
4390 IFS=$as_save_IFS
4391 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004392 for ac_exec_ext in '' $ac_executable_extensions; do
4393 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 +00004394 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004396 break 2
4397 fi
4398done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004399done
Reid Spencera773bd52006-08-04 18:18:08 +00004400IFS=$as_save_IFS
4401
4402fi
4403fi
4404BUILD_CC=$ac_cv_prog_BUILD_CC
4405if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004406 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4407echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004408else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004409 { echo "$as_me:$LINENO: result: no" >&5
4410echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004411fi
4412
4413
4414 if test -z "$BUILD_CC"; then
4415 # Extract the first word of "gcc", so it can be a program name with args.
4416set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004417{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4418echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4419if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4420 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004421else
4422 if test -n "$BUILD_CC"; then
4423 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4424else
4425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4426for as_dir in $PATH
4427do
4428 IFS=$as_save_IFS
4429 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004430 for ac_exec_ext in '' $ac_executable_extensions; do
4431 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 +00004432 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004434 break 2
4435 fi
4436done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004437done
Reid Spencera773bd52006-08-04 18:18:08 +00004438IFS=$as_save_IFS
4439
4440fi
4441fi
4442BUILD_CC=$ac_cv_prog_BUILD_CC
4443if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004444 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4445echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004446else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004447 { echo "$as_me:$LINENO: result: no" >&5
4448echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004449fi
4450
4451
4452 if test -z "$BUILD_CC"; then
4453 # Extract the first word of "cc", so it can be a program name with args.
4454set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004455{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4456echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4457if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4458 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004459else
4460 if test -n "$BUILD_CC"; then
4461 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4462else
4463 ac_prog_rejected=no
4464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4465for as_dir in $PATH
4466do
4467 IFS=$as_save_IFS
4468 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004469 for ac_exec_ext in '' $ac_executable_extensions; do
4470 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 +00004471 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4472 ac_prog_rejected=yes
4473 continue
4474 fi
4475 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004477 break 2
4478 fi
4479done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004480done
Reid Spencera773bd52006-08-04 18:18:08 +00004481IFS=$as_save_IFS
4482
4483if test $ac_prog_rejected = yes; then
4484 # We found a bogon in the path, so make sure we never use it.
4485 set dummy $ac_cv_prog_BUILD_CC
4486 shift
4487 if test $# != 0; then
4488 # We chose a different compiler from the bogus one.
4489 # However, it has the same basename, so the bogon will be chosen
4490 # first if we set BUILD_CC to just the basename; use the full file name.
4491 shift
4492 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4493 fi
4494fi
4495fi
4496fi
4497BUILD_CC=$ac_cv_prog_BUILD_CC
4498if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004499 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4500echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004501else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004502 { echo "$as_me:$LINENO: result: no" >&5
4503echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004504fi
4505
4506
4507 fi
4508 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004509 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4510echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4511 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004512 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4513 rm -f conftest*
4514 echo 'int main () { return 0; }' > conftest.$ac_ext
4515 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004516 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004517 (eval $ac_build_link) 2>&5
4518 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004521 for file in conftest.*; do
4522 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004523 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004524 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4525 esac
4526 done
4527 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004528 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4529echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4530 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004531 fi
4532 rm -f conftest*
4533 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4534fi
4535fi
4536
4537BUILD_EXEEXT=""
4538test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004539{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4540echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004541ac_build_exeext=$BUILD_EXEEXT
4542
Jim Grosbach673612e2008-10-02 22:56:44 +00004543 ac_build_prefix=${build_alias}-
4544 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4545set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004546{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4548if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4549 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004550else
4551 if test -n "$BUILD_CXX"; then
4552 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4553else
4554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555for as_dir in $PATH
4556do
4557 IFS=$as_save_IFS
4558 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004559 for ac_exec_ext in '' $ac_executable_extensions; do
4560 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 +00004561 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004563 break 2
4564 fi
4565done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004566done
Jim Grosbach673612e2008-10-02 22:56:44 +00004567IFS=$as_save_IFS
4568
4569fi
4570fi
4571BUILD_CXX=$ac_cv_prog_BUILD_CXX
4572if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004573 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4574echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004575else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004576 { echo "$as_me:$LINENO: result: no" >&5
4577echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004578fi
4579
4580
4581 if test -z "$BUILD_CXX"; then
4582 # Extract the first word of "g++", so it can be a program name with args.
4583set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004584{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4585echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4586if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4587 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004588else
4589 if test -n "$BUILD_CXX"; then
4590 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4591else
4592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4593for as_dir in $PATH
4594do
4595 IFS=$as_save_IFS
4596 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004597 for ac_exec_ext in '' $ac_executable_extensions; do
4598 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 +00004599 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004601 break 2
4602 fi
4603done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004604done
Jim Grosbach673612e2008-10-02 22:56:44 +00004605IFS=$as_save_IFS
4606
4607fi
4608fi
4609BUILD_CXX=$ac_cv_prog_BUILD_CXX
4610if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004611 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4612echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004613else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004614 { echo "$as_me:$LINENO: result: no" >&5
4615echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004616fi
4617
4618
4619 if test -z "$BUILD_CXX"; then
4620 # Extract the first word of "c++", so it can be a program name with args.
4621set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004622{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4624if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4625 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004626else
4627 if test -n "$BUILD_CXX"; then
4628 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4629else
4630 ac_prog_rejected=no
4631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4632for as_dir in $PATH
4633do
4634 IFS=$as_save_IFS
4635 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004636 for ac_exec_ext in '' $ac_executable_extensions; do
4637 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 +00004638 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4639 ac_prog_rejected=yes
4640 continue
4641 fi
4642 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004644 break 2
4645 fi
4646done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004647done
Jim Grosbach673612e2008-10-02 22:56:44 +00004648IFS=$as_save_IFS
4649
4650if test $ac_prog_rejected = yes; then
4651 # We found a bogon in the path, so make sure we never use it.
4652 set dummy $ac_cv_prog_BUILD_CXX
4653 shift
4654 if test $# != 0; then
4655 # We chose a different compiler from the bogus one.
4656 # However, it has the same basename, so the bogon will be chosen
4657 # first if we set BUILD_CXX to just the basename; use the full file name.
4658 shift
4659 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4660 fi
4661fi
4662fi
4663fi
4664BUILD_CXX=$ac_cv_prog_BUILD_CXX
4665if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004666 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4667echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004668else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004669 { echo "$as_me:$LINENO: result: no" >&5
4670echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004671fi
4672
4673
4674 fi
4675 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004676else
4677 LLVM_CROSS_COMPILING=0
4678
4679fi
4680
Nick Lewycky5b28f862009-04-10 05:18:27 +00004681if 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 +00004682 cvsbuild="yes"
4683 optimize="no"
4684 CVSBUILD=CVSBUILD=1
4685
4686else
4687 cvsbuild="no"
4688 optimize="yes"
4689fi
4690
4691
4692# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004693if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004694 enableval=$enable_optimized;
4695else
4696 enableval=$optimize
4697fi
4698
4699if test ${enableval} = "no" ; then
4700 ENABLE_OPTIMIZED=
4701
4702else
4703 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4704
4705fi
4706
David Greene2a5a12c2009-04-17 14:50:39 +00004707# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004708if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00004709 enableval=$enable_profiling;
4710else
4711 enableval="no"
4712fi
4713
4714if test ${enableval} = "no" ; then
4715 ENABLE_PROFILING=
4716
4717else
4718 ENABLE_PROFILING=ENABLE_PROFILING=1
4719
4720fi
4721
Reid Spencera773bd52006-08-04 18:18:08 +00004722# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004723if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004724 enableval=$enable_assertions;
4725else
4726 enableval="yes"
4727fi
4728
4729if test ${enableval} = "yes" ; then
4730 DISABLE_ASSERTIONS=
4731
4732else
4733 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4734
4735fi
4736
David Greenea696d242007-06-28 19:36:08 +00004737# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004738if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00004739 enableval=$enable_expensive_checks;
4740else
4741 enableval="no"
4742fi
4743
4744if test ${enableval} = "yes" ; then
4745 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4746
4747 EXPENSIVE_CHECKS=yes
4748
4749else
4750 ENABLE_EXPENSIVE_CHECKS=
4751
4752 EXPENSIVE_CHECKS=no
4753
4754fi
4755
Reid Spencer8b2e1412006-11-17 03:32:33 +00004756# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004757if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00004758 enableval=$enable_debug_runtime;
4759else
4760 enableval=no
4761fi
4762
4763if test ${enableval} = "no" ; then
4764 DEBUG_RUNTIME=
4765
4766else
4767 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4768
4769fi
4770
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004771# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004772if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004773 enableval=$enable_debug_symbols;
4774else
4775 enableval=no
4776fi
4777
4778if test ${enableval} = "no" ; then
4779 DEBUG_SYMBOLS=
4780
4781else
4782 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4783
4784fi
4785
Reid Spencera773bd52006-08-04 18:18:08 +00004786# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004787if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004788 enableval=$enable_jit;
4789else
4790 enableval=default
4791fi
4792
4793if test ${enableval} = "no"
4794then
4795 JIT=
4796
4797else
4798 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004799 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004800 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004801 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004802 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004803 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004804 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004805 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004806 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004807 Alpha) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004808 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00004809 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00004810 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004811 Mips) TARGET_HAS_JIT=0
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004812 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004813 PIC16) TARGET_HAS_JIT=0
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004814 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004815 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00004816 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004817 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004818 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004819 SystemZ) TARGET_HAS_JIT=0
Anton Korobeynikov4403b932009-07-16 13:27:25 +00004820 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004821 Blackfin) TARGET_HAS_JIT=0
4822 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004823 MBlaze) TARGET_HAS_JIT=0
4824 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004825 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004826 ;;
4827 esac
4828fi
4829
4830# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004831if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004832 enableval=$enable_doxygen;
4833else
4834 enableval=default
4835fi
4836
4837case "$enableval" in
4838 yes) ENABLE_DOXYGEN=1
4839 ;;
4840 no) ENABLE_DOXYGEN=0
4841 ;;
4842 default) ENABLE_DOXYGEN=0
4843 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004844 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4845echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4846 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004847esac
4848
4849# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004850if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004851 enableval=$enable_threads;
4852else
Reid Spencer65c5d752006-11-05 17:08:18 +00004853 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004854fi
4855
4856case "$enableval" in
4857 yes) ENABLE_THREADS=1
4858 ;;
4859 no) ENABLE_THREADS=0
4860 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004861 default) ENABLE_THREADS=1
4862 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004863 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4864echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4865 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004866esac
4867
Owen Andersona8603702009-05-19 22:18:56 +00004868cat >>confdefs.h <<_ACEOF
4869#define ENABLE_THREADS $ENABLE_THREADS
4870_ACEOF
4871
4872
Reid Spencer89b0d992006-12-16 22:07:52 +00004873# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004874if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00004875 enableval=$enable_pic;
4876else
4877 enableval=default
4878fi
4879
4880case "$enableval" in
4881 yes) ENABLE_PIC=1
4882 ;;
4883 no) ENABLE_PIC=0
4884 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00004885 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00004886 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004887 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4888echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4889 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00004890esac
4891
4892cat >>confdefs.h <<_ACEOF
4893#define ENABLE_PIC $ENABLE_PIC
4894_ACEOF
4895
4896
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00004897# Check whether --enable-shared was given.
4898if test "${enable_shared+set}" = set; then
4899 enableval=$enable_shared;
4900else
4901 enableval=default
4902fi
4903
4904case "$enableval" in
4905 yes) ENABLE_SHARED=1
4906 ;;
4907 no) ENABLE_SHARED=0
4908 ;;
4909 default) ENABLE_SHARED=0
4910 ;;
4911 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4912echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4913 { (exit 1); exit 1; }; } ;;
4914esac
4915
Reid Spencera773bd52006-08-04 18:18:08 +00004916TARGETS_TO_BUILD=""
4917# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004918if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004919 enableval=$enable_targets;
4920else
4921 enableval=all
4922fi
4923
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004924if test "$enableval" = host-only ; then
4925 enableval=host
4926fi
Reid Spencera773bd52006-08-04 18:18:08 +00004927case "$enableval" in
Wesley Pecka70f28c2010-02-23 19:15:24 +00004928 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 +00004929 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4930 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004931 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4932 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4933 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4934 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4935 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4936 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4937 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4938 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4939 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4940 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4941 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4942 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4943 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4944 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4945 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4946 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004947 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004948 host) case "$llvm_cv_target_arch" in
4949 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4950 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4951 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4952 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4953 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4954 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4955 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004956 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004957 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4958 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4959 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4960 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Anton Korobeynikov6ca835d2010-01-05 20:45:43 +00004961 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004962 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004963 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4964echo "$as_me: error: Can not set target to build" >&2;}
4965 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004966 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004967 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4968echo "$as_me: error: Unrecognized target $a_target" >&2;}
4969 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004970 esac
4971 done
4972 ;;
4973esac
Reid Spencera773bd52006-08-04 18:18:08 +00004974TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4975
4976
Douglas Gregor0711c302009-06-17 00:43:20 +00004977# Determine whether we are building LLVM support for the native architecture.
4978# If so, define LLVM_NATIVE_ARCH to that LLVM target.
4979for a_target in $TARGETS_TO_BUILD; do
4980 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
Douglas Gregora0162ff2009-06-23 17:22:05 +00004981 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
Douglas Gregor0711c302009-06-17 00:43:20 +00004982
4983cat >>confdefs.h <<_ACEOF
Douglas Gregora0162ff2009-06-23 17:22:05 +00004984#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
Douglas Gregor0711c302009-06-17 00:43:20 +00004985_ACEOF
4986
4987 fi
4988done
4989
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00004990# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
4991# target feature def files.
Douglas Gregor1555a232009-06-16 20:12:29 +00004992LLVM_ENUM_TARGETS=""
4993LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00004994LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00004995LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00004996for target_to_build in $TARGETS_TO_BUILD; do
4997 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
4998 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
4999 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5000 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005001 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5002 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5003 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005004 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5005 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5006 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005007done
5008
5009
5010
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005011
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005012
Reid Spencer65c5d752006-11-05 17:08:18 +00005013# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005014if test "${enable_cbe_printf_a+set}" = set; then
Reid Spencer65c5d752006-11-05 17:08:18 +00005015 enableval=$enable_cbe_printf_a;
5016else
5017 enableval=default
5018fi
5019
5020case "$enableval" in
5021 yes) ENABLE_CBE_PRINTF_A=1
5022 ;;
5023 no) ENABLE_CBE_PRINTF_A=0
5024 ;;
5025 default) ENABLE_CBE_PRINTF_A=1
5026 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005027 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5028echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5029 { (exit 1); exit 1; }; } ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005030esac
5031
5032cat >>confdefs.h <<_ACEOF
5033#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5034_ACEOF
5035
5036
Reid Spencera773bd52006-08-04 18:18:08 +00005037
5038# Check whether --with-llvmgccdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005039if test "${with_llvmgccdir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005040 withval=$with_llvmgccdir;
5041else
5042 withval=default
5043fi
5044
5045case "$withval" in
5046 default) WITH_LLVMGCCDIR=default ;;
5047 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005048 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5049echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5050 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005051esac
5052
5053
Devang Patel5d28b882007-12-04 22:54:47 +00005054# Check whether --with-llvmgcc was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005055if test "${with_llvmgcc+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005056 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5057 WITH_LLVMGCCDIR=""
5058fi
5059
5060
5061
5062# Check whether --with-llvmgxx was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005063if test "${with_llvmgxx+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005064 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5065 WITH_LLVMGCCDIR=""
5066fi
5067
Douglas Gregor01746742009-05-11 18:05:52 +00005068
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00005069if test -n "$LLVMGCC"; then
5070 LLVMGCCCOMMAND="$LLVMGCC"
5071fi
5072
5073if test -n "$LLVMGXX"; then
5074 LLVMGXXCOMMAND="$LLVMGXX"
5075fi
Devang Patel5d28b882007-12-04 22:54:47 +00005076
5077if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005078 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5079echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5080 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005081fi
5082
5083if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005084 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5085echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5086 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005087fi
5088
5089
Daniel Dunbar98515672010-02-23 10:00:49 +00005090# Check whether --with-clang was given.
5091if test "${with_clang+set}" = set; then
5092 withval=$with_clang;
5093else
5094 with_clang=default
5095fi
5096
5097
5098
5099# Check whether --with-built-clang was given.
5100if test "${with_built_clang+set}" = set; then
5101 withval=$with_built_clang;
5102else
5103 with_built_clang=check
5104fi
5105
5106
5107{ echo "$as_me:$LINENO: checking clang compiler" >&5
5108echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5109WITH_CLANGPATH=""
5110WITH_BUILT_CLANG=0
5111if test "$with_clang" != "default"; then
5112 WITH_CLANGPATH="$with_clang"
5113 if ! test -x "$WITH_CLANGPATH"; then
5114 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5115echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5116 { (exit 1); exit 1; }; }
5117 fi
5118elif test "$with_built_clang" = "yes"; then
5119 WITH_BUILT_CLANG=1
5120elif test "$with_built_clang" = "no"; then
5121 WITH_BUILT_CLANG=0
5122else
5123 if test "$with_built_clang" != "check"; then
5124 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5125echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5126 { (exit 1); exit 1; }; }
5127 fi
5128
5129 if test -f ${srcdir}/tools/clang/README.txt; then
5130 WITH_BUILT_CLANG=1
5131 fi
5132fi
5133
5134if ! test -z "$WITH_CLANGPATH"; then
5135 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5136echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5137 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5138elif test "$WITH_BUILT_CLANG" = "1"; then
5139 { echo "$as_me:$LINENO: result: built" >&5
5140echo "${ECHO_T}built" >&6; }
5141else
5142 { echo "$as_me:$LINENO: result: none" >&5
5143echo "${ECHO_T}none" >&6; }
5144fi
5145CLANGPATH=$WITH_CLANGPATH
5146
5147CLANGXXPATH=$WITH_CLANGXXPATH
5148
5149ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5150
5151
5152
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005153# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005154if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005155 withval=$with_optimize_option;
5156else
5157 withval=default
5158fi
5159
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005160{ echo "$as_me:$LINENO: checking optimization flags" >&5
5161echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005162case "$withval" in
5163 default)
5164 case "$llvm_cv_os_type" in
5165 MingW) optimize_option=-O3 ;;
5166 *) optimize_option=-O2 ;;
5167 esac ;;
5168 *) optimize_option="$withval" ;;
5169esac
5170OPTIMIZE_OPTION=$optimize_option
5171
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005172{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5173echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005174
5175
Reid Spencera773bd52006-08-04 18:18:08 +00005176# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005177if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005178 withval=$with_extra_options;
5179else
5180 withval=default
5181fi
5182
5183case "$withval" in
5184 default) EXTRA_OPTIONS= ;;
5185 *) EXTRA_OPTIONS=$withval ;;
5186esac
5187EXTRA_OPTIONS=$EXTRA_OPTIONS
5188
5189
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005190# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005191if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005192 enableval=$enable_bindings;
5193else
5194 enableval=default
5195fi
5196
5197BINDINGS_TO_BUILD=""
5198case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005199 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005200 all ) BINDINGS_TO_BUILD="ocaml" ;;
5201 none | no) BINDINGS_TO_BUILD="" ;;
5202 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5203 case "$a_binding" in
5204 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005205 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5206echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5207 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005208 esac
5209 done
5210 ;;
5211esac
5212
Reid Spencera773bd52006-08-04 18:18:08 +00005213
Gordon Henriksenf0915682007-10-02 16:42:22 +00005214# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005215if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005216 withval=$with_ocaml_libdir;
5217else
5218 withval=auto
5219fi
5220
5221case "$withval" in
5222 auto) with_ocaml_libdir="$withval" ;;
5223 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005224 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5225echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5226 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005227esac
5228
5229
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005230# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005231if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005232 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005233else
5234 withval=""
5235fi
5236
5237
5238cat >>confdefs.h <<_ACEOF
5239#define C_INCLUDE_DIRS "$withval"
5240_ACEOF
5241
5242
5243
Rafael Espindola420d23c2009-11-16 19:46:55 +00005244# Check whether --with-cxx-include-root was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005245if test "${with_cxx_include_root+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005246 withval=$with_cxx_include_root;
5247else
5248 withval=""
5249fi
5250
5251
5252cat >>confdefs.h <<_ACEOF
5253#define CXX_INCLUDE_ROOT "$withval"
5254_ACEOF
5255
5256
5257
5258# Check whether --with-cxx-include-arch was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005259if test "${with_cxx_include_arch+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005260 withval=$with_cxx_include_arch;
5261else
5262 withval=""
5263fi
5264
5265
5266cat >>confdefs.h <<_ACEOF
5267#define CXX_INCLUDE_ARCH "$withval"
5268_ACEOF
5269
5270
5271
5272# Check whether --with-cxx-include-32bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005273if test "${with_cxx_include_32bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005274 withval=$with_cxx_include_32bit_dir;
5275else
5276 withval=""
5277fi
5278
5279
5280cat >>confdefs.h <<_ACEOF
5281#define CXX_INCLUDE_32BIT_DIR "$withval"
5282_ACEOF
5283
5284
5285
5286# Check whether --with-cxx-include-64bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005287if test "${with_cxx_include_64bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005288 withval=$with_cxx_include_64bit_dir;
5289else
5290 withval=""
5291fi
5292
5293
5294cat >>confdefs.h <<_ACEOF
5295#define CXX_INCLUDE_64BIT_DIR "$withval"
5296_ACEOF
5297
5298
5299
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005300# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005301if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005302 withval=$with_binutils_include;
5303else
5304 withval=default
5305fi
5306
5307case "$withval" in
5308 default) WITH_BINUTILS_INCDIR=default ;;
5309 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005310 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5311echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5312 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005313esac
5314if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5315 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5316
5317 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5318 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005319 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5320echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5321 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005322 fi
5323fi
5324
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005325# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005326if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005327 enableval=$enable_libffi; case "$enableval" in
5328 yes) llvm_cv_enable_libffi="yes" ;;
5329 no) llvm_cv_enable_libffi="no" ;;
5330 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005331echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5332 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005333 esac
5334else
5335 llvm_cv_enable_libffi=no
5336fi
5337
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005338
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005339if test "$llvm_cv_os_type" = "Win32" ; then
5340 llvmc_dynamic="yes"
5341else
5342 llvmc_dynamic="no"
5343fi
5344
5345# Check whether --enable-llvmc-dynamic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005346if test "${enable_llvmc_dynamic+set}" = set; then
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005347 enableval=$enable_llvmc_dynamic;
5348else
5349 enableval=$llvmc_dynamic
5350fi
5351
5352if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5353 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5354
5355else
5356 ENABLE_LLVMC_DYNAMIC=
5357
5358fi
5359
5360# Check whether --enable-llvmc-dynamic-plugins was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005361if test "${enable_llvmc_dynamic_plugins+set}" = set; then
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005362 enableval=$enable_llvmc_dynamic_plugins;
5363else
5364 enableval=yes
5365fi
5366
5367if test ${enableval} = "yes" ; then
5368 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5369
5370else
5371 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5372
5373fi
5374
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005375
Reid Spencera773bd52006-08-04 18:18:08 +00005376ac_ext=c
5377ac_cpp='$CPP $CPPFLAGS'
5378ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5379ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5380ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005381{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5382echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005383# On Suns, sometimes $CPP names a directory.
5384if test -n "$CPP" && test -d "$CPP"; then
5385 CPP=
5386fi
5387if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005388 if test "${ac_cv_prog_CPP+set}" = set; then
5389 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005390else
5391 # Double quotes because CPP needs to be expanded
5392 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5393 do
5394 ac_preproc_ok=false
5395for ac_c_preproc_warn_flag in '' yes
5396do
5397 # Use a header file that comes with gcc, so configuring glibc
5398 # with a fresh cross-compiler works.
5399 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5400 # <limits.h> exists even on freestanding compilers.
5401 # On the NeXT, cc -E runs the code through the compiler's parser,
5402 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005403 cat >conftest.$ac_ext <<_ACEOF
5404/* confdefs.h. */
5405_ACEOF
5406cat confdefs.h >>conftest.$ac_ext
5407cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005408/* end confdefs.h. */
5409#ifdef __STDC__
5410# include <limits.h>
5411#else
5412# include <assert.h>
5413#endif
5414 Syntax error
5415_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005416if { (ac_try="$ac_cpp conftest.$ac_ext"
5417case "(($ac_try" in
5418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5419 *) ac_try_echo=$ac_try;;
5420esac
5421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5422 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5423 ac_status=$?
5424 grep -v '^ *+' conftest.er1 >conftest.err
5425 rm -f conftest.er1
5426 cat conftest.err >&5
5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428 (exit $ac_status); } >/dev/null; then
5429 if test -s conftest.err; then
5430 ac_cpp_err=$ac_c_preproc_warn_flag
5431 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5432 else
5433 ac_cpp_err=
5434 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005435else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005436 ac_cpp_err=yes
5437fi
5438if test -z "$ac_cpp_err"; then
5439 :
5440else
5441 echo "$as_me: failed program was:" >&5
5442sed 's/^/| /' conftest.$ac_ext >&5
5443
Reid Spencera773bd52006-08-04 18:18:08 +00005444 # Broken: fails on valid input.
5445continue
5446fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005447
Reid Spencera773bd52006-08-04 18:18:08 +00005448rm -f conftest.err conftest.$ac_ext
5449
5450 # OK, works on sane cases. Now check whether nonexistent headers
5451 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005452 cat >conftest.$ac_ext <<_ACEOF
5453/* confdefs.h. */
5454_ACEOF
5455cat confdefs.h >>conftest.$ac_ext
5456cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005457/* end confdefs.h. */
5458#include <ac_nonexistent.h>
5459_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005460if { (ac_try="$ac_cpp conftest.$ac_ext"
5461case "(($ac_try" in
5462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5463 *) ac_try_echo=$ac_try;;
5464esac
5465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5466 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5467 ac_status=$?
5468 grep -v '^ *+' conftest.er1 >conftest.err
5469 rm -f conftest.er1
5470 cat conftest.err >&5
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); } >/dev/null; then
5473 if test -s conftest.err; then
5474 ac_cpp_err=$ac_c_preproc_warn_flag
5475 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5476 else
5477 ac_cpp_err=
5478 fi
5479else
5480 ac_cpp_err=yes
5481fi
5482if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005483 # Broken: success on invalid input.
5484continue
5485else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005486 echo "$as_me: failed program was:" >&5
5487sed 's/^/| /' conftest.$ac_ext >&5
5488
Reid Spencera773bd52006-08-04 18:18:08 +00005489 # Passes both tests.
5490ac_preproc_ok=:
5491break
5492fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005493
Reid Spencera773bd52006-08-04 18:18:08 +00005494rm -f conftest.err conftest.$ac_ext
5495
5496done
5497# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5498rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005499if $ac_preproc_ok; then
Reid Spencera773bd52006-08-04 18:18:08 +00005500 break
5501fi
5502
5503 done
5504 ac_cv_prog_CPP=$CPP
5505
5506fi
5507 CPP=$ac_cv_prog_CPP
5508else
5509 ac_cv_prog_CPP=$CPP
5510fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005511{ echo "$as_me:$LINENO: result: $CPP" >&5
5512echo "${ECHO_T}$CPP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005513ac_preproc_ok=false
5514for ac_c_preproc_warn_flag in '' yes
5515do
5516 # Use a header file that comes with gcc, so configuring glibc
5517 # with a fresh cross-compiler works.
5518 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5519 # <limits.h> exists even on freestanding compilers.
5520 # On the NeXT, cc -E runs the code through the compiler's parser,
5521 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005522 cat >conftest.$ac_ext <<_ACEOF
5523/* confdefs.h. */
5524_ACEOF
5525cat confdefs.h >>conftest.$ac_ext
5526cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005527/* end confdefs.h. */
5528#ifdef __STDC__
5529# include <limits.h>
5530#else
5531# include <assert.h>
5532#endif
5533 Syntax error
5534_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005535if { (ac_try="$ac_cpp conftest.$ac_ext"
5536case "(($ac_try" in
5537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5538 *) ac_try_echo=$ac_try;;
5539esac
5540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5541 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5542 ac_status=$?
5543 grep -v '^ *+' conftest.er1 >conftest.err
5544 rm -f conftest.er1
5545 cat conftest.err >&5
5546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547 (exit $ac_status); } >/dev/null; then
5548 if test -s conftest.err; then
5549 ac_cpp_err=$ac_c_preproc_warn_flag
5550 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5551 else
5552 ac_cpp_err=
5553 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005554else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005555 ac_cpp_err=yes
5556fi
5557if test -z "$ac_cpp_err"; then
5558 :
5559else
5560 echo "$as_me: failed program was:" >&5
5561sed 's/^/| /' conftest.$ac_ext >&5
5562
Reid Spencera773bd52006-08-04 18:18:08 +00005563 # Broken: fails on valid input.
5564continue
5565fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005566
Reid Spencera773bd52006-08-04 18:18:08 +00005567rm -f conftest.err conftest.$ac_ext
5568
5569 # OK, works on sane cases. Now check whether nonexistent headers
5570 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005571 cat >conftest.$ac_ext <<_ACEOF
5572/* confdefs.h. */
5573_ACEOF
5574cat confdefs.h >>conftest.$ac_ext
5575cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005576/* end confdefs.h. */
5577#include <ac_nonexistent.h>
5578_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005579if { (ac_try="$ac_cpp conftest.$ac_ext"
5580case "(($ac_try" in
5581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5582 *) ac_try_echo=$ac_try;;
5583esac
5584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5585 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5586 ac_status=$?
5587 grep -v '^ *+' conftest.er1 >conftest.err
5588 rm -f conftest.er1
5589 cat conftest.err >&5
5590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591 (exit $ac_status); } >/dev/null; then
5592 if test -s conftest.err; then
5593 ac_cpp_err=$ac_c_preproc_warn_flag
5594 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5595 else
5596 ac_cpp_err=
5597 fi
5598else
5599 ac_cpp_err=yes
5600fi
5601if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005602 # Broken: success on invalid input.
5603continue
5604else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005605 echo "$as_me: failed program was:" >&5
5606sed 's/^/| /' conftest.$ac_ext >&5
5607
Reid Spencera773bd52006-08-04 18:18:08 +00005608 # Passes both tests.
5609ac_preproc_ok=:
5610break
5611fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005612
Reid Spencera773bd52006-08-04 18:18:08 +00005613rm -f conftest.err conftest.$ac_ext
5614
5615done
5616# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5617rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005618if $ac_preproc_ok; then
5619 :
Reid Spencera773bd52006-08-04 18:18:08 +00005620else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005621 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5622See \`config.log' for more details." >&5
5623echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5624See \`config.log' for more details." >&2;}
5625 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005626fi
5627
5628ac_ext=c
5629ac_cpp='$CPP $CPPFLAGS'
5630ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5631ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5632ac_compiler_gnu=$ac_cv_c_compiler_gnu
5633
5634ac_ext=c
5635ac_cpp='$CPP $CPPFLAGS'
5636ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5637ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5638ac_compiler_gnu=$ac_cv_c_compiler_gnu
5639if test -n "$ac_tool_prefix"; then
5640 for ac_prog in gcc
5641 do
5642 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5643set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005644{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5645echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5646if test "${ac_cv_prog_CC+set}" = set; then
5647 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005648else
5649 if test -n "$CC"; then
5650 ac_cv_prog_CC="$CC" # Let the user override the test.
5651else
5652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5653for as_dir in $PATH
5654do
5655 IFS=$as_save_IFS
5656 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005657 for ac_exec_ext in '' $ac_executable_extensions; do
5658 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 +00005659 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005661 break 2
5662 fi
5663done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005664done
Reid Spencera773bd52006-08-04 18:18:08 +00005665IFS=$as_save_IFS
5666
5667fi
5668fi
5669CC=$ac_cv_prog_CC
5670if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005671 { echo "$as_me:$LINENO: result: $CC" >&5
5672echo "${ECHO_T}$CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005673else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005674 { echo "$as_me:$LINENO: result: no" >&5
5675echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005676fi
5677
5678
5679 test -n "$CC" && break
5680 done
5681fi
5682if test -z "$CC"; then
5683 ac_ct_CC=$CC
5684 for ac_prog in gcc
5685do
5686 # Extract the first word of "$ac_prog", so it can be a program name with args.
5687set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005688{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5690if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5691 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005692else
5693 if test -n "$ac_ct_CC"; then
5694 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5695else
5696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5697for as_dir in $PATH
5698do
5699 IFS=$as_save_IFS
5700 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005701 for ac_exec_ext in '' $ac_executable_extensions; do
5702 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 +00005703 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005705 break 2
5706 fi
5707done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005708done
Reid Spencera773bd52006-08-04 18:18:08 +00005709IFS=$as_save_IFS
5710
5711fi
5712fi
5713ac_ct_CC=$ac_cv_prog_ac_ct_CC
5714if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005715 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5716echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005717else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005718 { echo "$as_me:$LINENO: result: no" >&5
5719echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005720fi
5721
5722
5723 test -n "$ac_ct_CC" && break
5724done
5725
5726 if test "x$ac_ct_CC" = x; then
5727 CC=""
5728 else
5729 case $cross_compiling:$ac_tool_warned in
5730yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005731{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5732whose name does not start with the host triplet. If you think this
5733configuration is useful to you, please write to autoconf@gnu.org." >&5
5734echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5735whose name does not start with the host triplet. If you think this
5736configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00005737ac_tool_warned=yes ;;
5738esac
5739 CC=$ac_ct_CC
5740 fi
5741fi
5742
5743
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005744test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5745See \`config.log' for more details." >&5
5746echo "$as_me: error: no acceptable C compiler found in \$PATH
5747See \`config.log' for more details." >&2;}
5748 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005749
5750# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005751echo "$as_me:$LINENO: checking for C compiler version" >&5
5752ac_compiler=`set X $ac_compile; echo $2`
5753{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00005754case "(($ac_try" in
5755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5756 *) ac_try_echo=$ac_try;;
5757esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5759 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00005760 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762 (exit $ac_status); }
5763{ (ac_try="$ac_compiler -v >&5"
5764case "(($ac_try" in
5765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5766 *) ac_try_echo=$ac_try;;
5767esac
5768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5769 (eval "$ac_compiler -v >&5") 2>&5
5770 ac_status=$?
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); }
5773{ (ac_try="$ac_compiler -V >&5"
5774case "(($ac_try" in
5775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5776 *) ac_try_echo=$ac_try;;
5777esac
5778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5779 (eval "$ac_compiler -V >&5") 2>&5
5780 ac_status=$?
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00005783
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005784{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5785echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5786if test "${ac_cv_c_compiler_gnu+set}" = set; then
5787 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005788else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005789 cat >conftest.$ac_ext <<_ACEOF
5790/* confdefs.h. */
5791_ACEOF
5792cat confdefs.h >>conftest.$ac_ext
5793cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005794/* end confdefs.h. */
5795
5796int
5797main ()
5798{
5799#ifndef __GNUC__
5800 choke me
5801#endif
5802
5803 ;
5804 return 0;
5805}
5806_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005807rm -f conftest.$ac_objext
5808if { (ac_try="$ac_compile"
5809case "(($ac_try" in
5810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5811 *) ac_try_echo=$ac_try;;
5812esac
5813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5814 (eval "$ac_compile") 2>conftest.er1
5815 ac_status=$?
5816 grep -v '^ *+' conftest.er1 >conftest.err
5817 rm -f conftest.er1
5818 cat conftest.err >&5
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); } &&
5821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5822 { (case "(($ac_try" in
5823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5824 *) ac_try_echo=$ac_try;;
5825esac
5826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5827 (eval "$ac_try") 2>&5
5828 ac_status=$?
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); }; } &&
5831 { ac_try='test -s conftest.$ac_objext'
5832 { (case "(($ac_try" in
5833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5834 *) ac_try_echo=$ac_try;;
5835esac
5836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5837 (eval "$ac_try") 2>&5
5838 ac_status=$?
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005841 ac_compiler_gnu=yes
5842else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005843 echo "$as_me: failed program was:" >&5
5844sed 's/^/| /' conftest.$ac_ext >&5
5845
5846 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00005847fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005848
Reid Spencera773bd52006-08-04 18:18:08 +00005849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5850ac_cv_c_compiler_gnu=$ac_compiler_gnu
5851
5852fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005853{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5854echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5855GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00005856ac_test_CFLAGS=${CFLAGS+set}
5857ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005858{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5859echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5860if test "${ac_cv_prog_cc_g+set}" = set; then
5861 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005862else
5863 ac_save_c_werror_flag=$ac_c_werror_flag
5864 ac_c_werror_flag=yes
5865 ac_cv_prog_cc_g=no
5866 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005867 cat >conftest.$ac_ext <<_ACEOF
5868/* confdefs.h. */
5869_ACEOF
5870cat confdefs.h >>conftest.$ac_ext
5871cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005872/* end confdefs.h. */
5873
5874int
5875main ()
5876{
5877
5878 ;
5879 return 0;
5880}
5881_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005882rm -f conftest.$ac_objext
5883if { (ac_try="$ac_compile"
5884case "(($ac_try" in
5885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5886 *) ac_try_echo=$ac_try;;
5887esac
5888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5889 (eval "$ac_compile") 2>conftest.er1
5890 ac_status=$?
5891 grep -v '^ *+' conftest.er1 >conftest.err
5892 rm -f conftest.er1
5893 cat conftest.err >&5
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); } &&
5896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5897 { (case "(($ac_try" in
5898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5899 *) ac_try_echo=$ac_try;;
5900esac
5901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5902 (eval "$ac_try") 2>&5
5903 ac_status=$?
5904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905 (exit $ac_status); }; } &&
5906 { ac_try='test -s conftest.$ac_objext'
5907 { (case "(($ac_try" in
5908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5909 *) ac_try_echo=$ac_try;;
5910esac
5911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5912 (eval "$ac_try") 2>&5
5913 ac_status=$?
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005916 ac_cv_prog_cc_g=yes
5917else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005918 echo "$as_me: failed program was:" >&5
5919sed 's/^/| /' conftest.$ac_ext >&5
5920
5921 CFLAGS=""
5922 cat >conftest.$ac_ext <<_ACEOF
5923/* confdefs.h. */
5924_ACEOF
5925cat confdefs.h >>conftest.$ac_ext
5926cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005927/* end confdefs.h. */
5928
5929int
5930main ()
5931{
5932
5933 ;
5934 return 0;
5935}
5936_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005937rm -f conftest.$ac_objext
5938if { (ac_try="$ac_compile"
5939case "(($ac_try" in
5940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5941 *) ac_try_echo=$ac_try;;
5942esac
5943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5944 (eval "$ac_compile") 2>conftest.er1
5945 ac_status=$?
5946 grep -v '^ *+' conftest.er1 >conftest.err
5947 rm -f conftest.er1
5948 cat conftest.err >&5
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); } &&
5951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5952 { (case "(($ac_try" in
5953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5954 *) ac_try_echo=$ac_try;;
5955esac
5956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5957 (eval "$ac_try") 2>&5
5958 ac_status=$?
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); }; } &&
5961 { ac_try='test -s conftest.$ac_objext'
5962 { (case "(($ac_try" in
5963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5964 *) ac_try_echo=$ac_try;;
5965esac
5966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5967 (eval "$ac_try") 2>&5
5968 ac_status=$?
5969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970 (exit $ac_status); }; }; then
5971 :
Torok Edwin871384f2010-01-26 08:50:50 +00005972else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005973 echo "$as_me: failed program was:" >&5
5974sed 's/^/| /' conftest.$ac_ext >&5
5975
5976 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00005977 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005978 cat >conftest.$ac_ext <<_ACEOF
5979/* confdefs.h. */
5980_ACEOF
5981cat confdefs.h >>conftest.$ac_ext
5982cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005983/* end confdefs.h. */
5984
5985int
5986main ()
5987{
5988
5989 ;
5990 return 0;
5991}
5992_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005993rm -f conftest.$ac_objext
5994if { (ac_try="$ac_compile"
5995case "(($ac_try" in
5996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5997 *) ac_try_echo=$ac_try;;
5998esac
5999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6000 (eval "$ac_compile") 2>conftest.er1
6001 ac_status=$?
6002 grep -v '^ *+' conftest.er1 >conftest.err
6003 rm -f conftest.er1
6004 cat conftest.err >&5
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); } &&
6007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6008 { (case "(($ac_try" in
6009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6010 *) ac_try_echo=$ac_try;;
6011esac
6012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6013 (eval "$ac_try") 2>&5
6014 ac_status=$?
6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016 (exit $ac_status); }; } &&
6017 { ac_try='test -s conftest.$ac_objext'
6018 { (case "(($ac_try" in
6019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6020 *) ac_try_echo=$ac_try;;
6021esac
6022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6023 (eval "$ac_try") 2>&5
6024 ac_status=$?
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006027 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006028else
6029 echo "$as_me: failed program was:" >&5
6030sed 's/^/| /' conftest.$ac_ext >&5
6031
6032
Reid Spencera773bd52006-08-04 18:18:08 +00006033fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006034
Reid Spencera773bd52006-08-04 18:18:08 +00006035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6036fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006037
Reid Spencera773bd52006-08-04 18:18:08 +00006038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6039fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006040
Reid Spencera773bd52006-08-04 18:18:08 +00006041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6042 ac_c_werror_flag=$ac_save_c_werror_flag
6043fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006044{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6045echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006046if test "$ac_test_CFLAGS" = set; then
6047 CFLAGS=$ac_save_CFLAGS
6048elif test $ac_cv_prog_cc_g = yes; then
6049 if test "$GCC" = yes; then
6050 CFLAGS="-g -O2"
6051 else
6052 CFLAGS="-g"
6053 fi
6054else
6055 if test "$GCC" = yes; then
6056 CFLAGS="-O2"
6057 else
6058 CFLAGS=
6059 fi
6060fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006061{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6062echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6063if test "${ac_cv_prog_cc_c89+set}" = set; then
6064 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006065else
6066 ac_cv_prog_cc_c89=no
6067ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006068cat >conftest.$ac_ext <<_ACEOF
6069/* confdefs.h. */
6070_ACEOF
6071cat confdefs.h >>conftest.$ac_ext
6072cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006073/* end confdefs.h. */
6074#include <stdarg.h>
6075#include <stdio.h>
6076#include <sys/types.h>
6077#include <sys/stat.h>
6078/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6079struct buf { int x; };
6080FILE * (*rcsopen) (struct buf *, struct stat *, int);
6081static char *e (p, i)
6082 char **p;
6083 int i;
6084{
6085 return p[i];
6086}
6087static char *f (char * (*g) (char **, int), char **p, ...)
6088{
6089 char *s;
6090 va_list v;
6091 va_start (v,p);
6092 s = g (p, va_arg (v,int));
6093 va_end (v);
6094 return s;
6095}
6096
6097/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6098 function prototypes and stuff, but not '\xHH' hex character constants.
6099 These don't provoke an error unfortunately, instead are silently treated
6100 as 'x'. The following induces an error, until -std is added to get
6101 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6102 array size at least. It's necessary to write '\x00'==0 to get something
6103 that's true only with -std. */
6104int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6105
6106/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6107 inside strings and character constants. */
6108#define FOO(x) 'x'
6109int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6110
6111int test (int i, double x);
6112struct s1 {int (*f) (int a);};
6113struct s2 {int (*f) (double a);};
6114int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6115int argc;
6116char **argv;
6117int
6118main ()
6119{
6120return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6121 ;
6122 return 0;
6123}
6124_ACEOF
6125for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6126 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6127do
6128 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006129 rm -f conftest.$ac_objext
6130if { (ac_try="$ac_compile"
6131case "(($ac_try" in
6132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6133 *) ac_try_echo=$ac_try;;
6134esac
6135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6136 (eval "$ac_compile") 2>conftest.er1
6137 ac_status=$?
6138 grep -v '^ *+' conftest.er1 >conftest.err
6139 rm -f conftest.er1
6140 cat conftest.err >&5
6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142 (exit $ac_status); } &&
6143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6144 { (case "(($ac_try" in
6145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6146 *) ac_try_echo=$ac_try;;
6147esac
6148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6149 (eval "$ac_try") 2>&5
6150 ac_status=$?
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); }; } &&
6153 { ac_try='test -s conftest.$ac_objext'
6154 { (case "(($ac_try" in
6155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6156 *) ac_try_echo=$ac_try;;
6157esac
6158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6159 (eval "$ac_try") 2>&5
6160 ac_status=$?
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006163 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006164else
6165 echo "$as_me: failed program was:" >&5
6166sed 's/^/| /' conftest.$ac_ext >&5
6167
6168
Reid Spencera773bd52006-08-04 18:18:08 +00006169fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006170
Reid Spencera773bd52006-08-04 18:18:08 +00006171rm -f core conftest.err conftest.$ac_objext
6172 test "x$ac_cv_prog_cc_c89" != "xno" && break
6173done
6174rm -f conftest.$ac_ext
6175CC=$ac_save_CC
6176
6177fi
6178# AC_CACHE_VAL
6179case "x$ac_cv_prog_cc_c89" in
6180 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006181 { echo "$as_me:$LINENO: result: none needed" >&5
6182echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006183 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006184 { echo "$as_me:$LINENO: result: unsupported" >&5
6185echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006186 *)
6187 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006188 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6189echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006190esac
6191
6192
6193ac_ext=c
6194ac_cpp='$CPP $CPPFLAGS'
6195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6197ac_compiler_gnu=$ac_cv_c_compiler_gnu
6198
6199ac_ext=cpp
6200ac_cpp='$CXXCPP $CPPFLAGS'
6201ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6202ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6203ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6204if test -z "$CXX"; then
6205 if test -n "$CCC"; then
6206 CXX=$CCC
6207 else
6208 if test -n "$ac_tool_prefix"; then
6209 for ac_prog in g++
6210 do
6211 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6212set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006213{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6214echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6215if test "${ac_cv_prog_CXX+set}" = set; then
6216 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006217else
6218 if test -n "$CXX"; then
6219 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6220else
6221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6222for as_dir in $PATH
6223do
6224 IFS=$as_save_IFS
6225 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006226 for ac_exec_ext in '' $ac_executable_extensions; do
6227 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 +00006228 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006230 break 2
6231 fi
6232done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006233done
Reid Spencera773bd52006-08-04 18:18:08 +00006234IFS=$as_save_IFS
6235
6236fi
6237fi
6238CXX=$ac_cv_prog_CXX
6239if test -n "$CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006240 { echo "$as_me:$LINENO: result: $CXX" >&5
6241echo "${ECHO_T}$CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006242else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006243 { echo "$as_me:$LINENO: result: no" >&5
6244echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006245fi
6246
6247
6248 test -n "$CXX" && break
6249 done
6250fi
6251if test -z "$CXX"; then
6252 ac_ct_CXX=$CXX
6253 for ac_prog in g++
6254do
6255 # Extract the first word of "$ac_prog", so it can be a program name with args.
6256set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006257{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6258echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6259if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6260 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006261else
6262 if test -n "$ac_ct_CXX"; then
6263 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6264else
6265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6266for as_dir in $PATH
6267do
6268 IFS=$as_save_IFS
6269 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006270 for ac_exec_ext in '' $ac_executable_extensions; do
6271 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 +00006272 ac_cv_prog_ac_ct_CXX="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006274 break 2
6275 fi
6276done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006277done
Reid Spencera773bd52006-08-04 18:18:08 +00006278IFS=$as_save_IFS
6279
6280fi
6281fi
6282ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6283if test -n "$ac_ct_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006284 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6285echo "${ECHO_T}$ac_ct_CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006286else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006287 { echo "$as_me:$LINENO: result: no" >&5
6288echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006289fi
6290
6291
6292 test -n "$ac_ct_CXX" && break
6293done
6294
6295 if test "x$ac_ct_CXX" = x; then
6296 CXX="g++"
6297 else
6298 case $cross_compiling:$ac_tool_warned in
6299yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006300{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6301whose name does not start with the host triplet. If you think this
6302configuration is useful to you, please write to autoconf@gnu.org." >&5
6303echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6304whose name does not start with the host triplet. If you think this
6305configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006306ac_tool_warned=yes ;;
6307esac
6308 CXX=$ac_ct_CXX
6309 fi
6310fi
6311
6312 fi
6313fi
6314# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006315echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6316ac_compiler=`set X $ac_compile; echo $2`
6317{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00006318case "(($ac_try" in
6319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6320 *) ac_try_echo=$ac_try;;
6321esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6323 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00006324 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); }
6327{ (ac_try="$ac_compiler -v >&5"
6328case "(($ac_try" in
6329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6330 *) ac_try_echo=$ac_try;;
6331esac
6332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6333 (eval "$ac_compiler -v >&5") 2>&5
6334 ac_status=$?
6335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336 (exit $ac_status); }
6337{ (ac_try="$ac_compiler -V >&5"
6338case "(($ac_try" in
6339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6340 *) ac_try_echo=$ac_try;;
6341esac
6342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6343 (eval "$ac_compiler -V >&5") 2>&5
6344 ac_status=$?
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00006347
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006348{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6349echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6350if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6351 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006352else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006353 cat >conftest.$ac_ext <<_ACEOF
6354/* confdefs.h. */
6355_ACEOF
6356cat confdefs.h >>conftest.$ac_ext
6357cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006358/* end confdefs.h. */
6359
6360int
6361main ()
6362{
6363#ifndef __GNUC__
6364 choke me
6365#endif
6366
6367 ;
6368 return 0;
6369}
6370_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006371rm -f conftest.$ac_objext
6372if { (ac_try="$ac_compile"
6373case "(($ac_try" in
6374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6375 *) ac_try_echo=$ac_try;;
6376esac
6377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6378 (eval "$ac_compile") 2>conftest.er1
6379 ac_status=$?
6380 grep -v '^ *+' conftest.er1 >conftest.err
6381 rm -f conftest.er1
6382 cat conftest.err >&5
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); } &&
6385 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6386 { (case "(($ac_try" in
6387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6388 *) ac_try_echo=$ac_try;;
6389esac
6390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6391 (eval "$ac_try") 2>&5
6392 ac_status=$?
6393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394 (exit $ac_status); }; } &&
6395 { ac_try='test -s conftest.$ac_objext'
6396 { (case "(($ac_try" in
6397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6398 *) ac_try_echo=$ac_try;;
6399esac
6400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6401 (eval "$ac_try") 2>&5
6402 ac_status=$?
6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006405 ac_compiler_gnu=yes
6406else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006407 echo "$as_me: failed program was:" >&5
6408sed 's/^/| /' conftest.$ac_ext >&5
6409
6410 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00006411fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006412
Reid Spencera773bd52006-08-04 18:18:08 +00006413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6414ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6415
6416fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006417{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6418echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6419GXX=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00006420ac_test_CXXFLAGS=${CXXFLAGS+set}
6421ac_save_CXXFLAGS=$CXXFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006422{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6423echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6424if test "${ac_cv_prog_cxx_g+set}" = set; then
6425 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006426else
6427 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6428 ac_cxx_werror_flag=yes
6429 ac_cv_prog_cxx_g=no
6430 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006431 cat >conftest.$ac_ext <<_ACEOF
6432/* confdefs.h. */
6433_ACEOF
6434cat confdefs.h >>conftest.$ac_ext
6435cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006436/* end confdefs.h. */
6437
6438int
6439main ()
6440{
6441
6442 ;
6443 return 0;
6444}
6445_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006446rm -f conftest.$ac_objext
6447if { (ac_try="$ac_compile"
6448case "(($ac_try" in
6449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6450 *) ac_try_echo=$ac_try;;
6451esac
6452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6453 (eval "$ac_compile") 2>conftest.er1
6454 ac_status=$?
6455 grep -v '^ *+' conftest.er1 >conftest.err
6456 rm -f conftest.er1
6457 cat conftest.err >&5
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); } &&
6460 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6461 { (case "(($ac_try" in
6462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6463 *) ac_try_echo=$ac_try;;
6464esac
6465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6466 (eval "$ac_try") 2>&5
6467 ac_status=$?
6468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469 (exit $ac_status); }; } &&
6470 { ac_try='test -s conftest.$ac_objext'
6471 { (case "(($ac_try" in
6472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6473 *) ac_try_echo=$ac_try;;
6474esac
6475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6476 (eval "$ac_try") 2>&5
6477 ac_status=$?
6478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006480 ac_cv_prog_cxx_g=yes
6481else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006482 echo "$as_me: failed program was:" >&5
6483sed 's/^/| /' conftest.$ac_ext >&5
6484
6485 CXXFLAGS=""
6486 cat >conftest.$ac_ext <<_ACEOF
6487/* confdefs.h. */
6488_ACEOF
6489cat confdefs.h >>conftest.$ac_ext
6490cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006491/* end confdefs.h. */
6492
6493int
6494main ()
6495{
6496
6497 ;
6498 return 0;
6499}
6500_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006501rm -f conftest.$ac_objext
6502if { (ac_try="$ac_compile"
6503case "(($ac_try" in
6504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6505 *) ac_try_echo=$ac_try;;
6506esac
6507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6508 (eval "$ac_compile") 2>conftest.er1
6509 ac_status=$?
6510 grep -v '^ *+' conftest.er1 >conftest.err
6511 rm -f conftest.er1
6512 cat conftest.err >&5
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); } &&
6515 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6516 { (case "(($ac_try" in
6517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6518 *) ac_try_echo=$ac_try;;
6519esac
6520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6521 (eval "$ac_try") 2>&5
6522 ac_status=$?
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); }; } &&
6525 { ac_try='test -s conftest.$ac_objext'
6526 { (case "(($ac_try" in
6527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6528 *) ac_try_echo=$ac_try;;
6529esac
6530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6531 (eval "$ac_try") 2>&5
6532 ac_status=$?
6533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534 (exit $ac_status); }; }; then
6535 :
Torok Edwin871384f2010-01-26 08:50:50 +00006536else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006537 echo "$as_me: failed program was:" >&5
6538sed 's/^/| /' conftest.$ac_ext >&5
6539
6540 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00006541 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006542 cat >conftest.$ac_ext <<_ACEOF
6543/* confdefs.h. */
6544_ACEOF
6545cat confdefs.h >>conftest.$ac_ext
6546cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006547/* end confdefs.h. */
6548
6549int
6550main ()
6551{
6552
6553 ;
6554 return 0;
6555}
6556_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006557rm -f conftest.$ac_objext
6558if { (ac_try="$ac_compile"
6559case "(($ac_try" in
6560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6561 *) ac_try_echo=$ac_try;;
6562esac
6563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6564 (eval "$ac_compile") 2>conftest.er1
6565 ac_status=$?
6566 grep -v '^ *+' conftest.er1 >conftest.err
6567 rm -f conftest.er1
6568 cat conftest.err >&5
6569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570 (exit $ac_status); } &&
6571 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6572 { (case "(($ac_try" in
6573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6574 *) ac_try_echo=$ac_try;;
6575esac
6576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6577 (eval "$ac_try") 2>&5
6578 ac_status=$?
6579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580 (exit $ac_status); }; } &&
6581 { ac_try='test -s conftest.$ac_objext'
6582 { (case "(($ac_try" in
6583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6584 *) ac_try_echo=$ac_try;;
6585esac
6586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6587 (eval "$ac_try") 2>&5
6588 ac_status=$?
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006591 ac_cv_prog_cxx_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006592else
6593 echo "$as_me: failed program was:" >&5
6594sed 's/^/| /' conftest.$ac_ext >&5
6595
6596
Reid Spencera773bd52006-08-04 18:18:08 +00006597fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006598
Reid Spencera773bd52006-08-04 18:18:08 +00006599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6600fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006601
Reid Spencera773bd52006-08-04 18:18:08 +00006602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6603fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006604
Reid Spencera773bd52006-08-04 18:18:08 +00006605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6606 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6607fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006608{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6609echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006610if test "$ac_test_CXXFLAGS" = set; then
6611 CXXFLAGS=$ac_save_CXXFLAGS
6612elif test $ac_cv_prog_cxx_g = yes; then
6613 if test "$GXX" = yes; then
6614 CXXFLAGS="-g -O2"
6615 else
6616 CXXFLAGS="-g"
6617 fi
6618else
6619 if test "$GXX" = yes; then
6620 CXXFLAGS="-O2"
6621 else
6622 CXXFLAGS=
6623 fi
6624fi
6625ac_ext=c
6626ac_cpp='$CPP $CPPFLAGS'
6627ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6628ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6629ac_compiler_gnu=$ac_cv_c_compiler_gnu
6630
Reid Spencera773bd52006-08-04 18:18:08 +00006631
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006632{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6633echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6634if test "${lt_cv_path_NM+set}" = set; then
6635 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006636else
6637 if test -n "$NM"; then
6638 # Let the user override the test.
6639 lt_cv_path_NM="$NM"
6640else
6641 lt_nm_to_check="${ac_tool_prefix}nm"
6642 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6643 lt_nm_to_check="$lt_nm_to_check nm"
6644 fi
6645 for lt_tmp_nm in $lt_nm_to_check; do
6646 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6647 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6648 IFS="$lt_save_ifs"
6649 test -z "$ac_dir" && ac_dir=.
6650 tmp_nm="$ac_dir/$lt_tmp_nm"
6651 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6652 # Check to see if the nm accepts a BSD-compat flag.
6653 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6654 # nm: unknown option "B" ignored
6655 # Tru64's nm complains that /dev/null is an invalid object file
6656 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6657 */dev/null* | *'Invalid file or object type'*)
6658 lt_cv_path_NM="$tmp_nm -B"
6659 break
6660 ;;
6661 *)
6662 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6663 */dev/null*)
6664 lt_cv_path_NM="$tmp_nm -p"
6665 break
6666 ;;
6667 *)
6668 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6669 continue # so that we can try to find one that supports BSD flags
6670 ;;
6671 esac
6672 ;;
6673 esac
6674 fi
6675 done
6676 IFS="$lt_save_ifs"
6677 done
6678 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6679fi
6680fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006681{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6682echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006683NM="$lt_cv_path_NM"
6684
6685
6686
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006687{ echo "$as_me:$LINENO: checking for GNU make" >&5
6688echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6689if test "${llvm_cv_gnu_make_command+set}" = set; then
6690 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006691else
6692 llvm_cv_gnu_make_command=''
6693 for a in "$MAKE" make gmake gnumake ; do
6694 if test -z "$a" ; then continue ; fi ;
6695 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6696 then
6697 llvm_cv_gnu_make_command=$a ;
6698 break;
6699 fi
6700 done
6701fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006702{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6703echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006704 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6705 ifGNUmake='' ;
6706 else
6707 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006708 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6709echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00006710 fi
6711
6712
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006713{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6714echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006715LN_S=$as_ln_s
6716if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006717 { echo "$as_me:$LINENO: result: yes" >&5
6718echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006719else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006720 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6721echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006722fi
6723
6724# Extract the first word of "cmp", so it can be a program name with args.
6725set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006726{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6728if test "${ac_cv_path_CMP+set}" = set; then
6729 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006730else
6731 case $CMP in
6732 [\\/]* | ?:[\\/]*)
6733 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6734 ;;
6735 *)
6736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6737for as_dir in $PATH
6738do
6739 IFS=$as_save_IFS
6740 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006741 for ac_exec_ext in '' $ac_executable_extensions; do
6742 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 +00006743 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006745 break 2
6746 fi
6747done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006748done
Reid Spencera773bd52006-08-04 18:18:08 +00006749IFS=$as_save_IFS
6750
6751 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6752 ;;
6753esac
6754fi
6755CMP=$ac_cv_path_CMP
6756if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006757 { echo "$as_me:$LINENO: result: $CMP" >&5
6758echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006759else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006760 { echo "$as_me:$LINENO: result: no" >&5
6761echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006762fi
6763
6764
6765# Extract the first word of "cp", so it can be a program name with args.
6766set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006767{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6769if test "${ac_cv_path_CP+set}" = set; then
6770 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006771else
6772 case $CP in
6773 [\\/]* | ?:[\\/]*)
6774 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6775 ;;
6776 *)
6777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778for as_dir in $PATH
6779do
6780 IFS=$as_save_IFS
6781 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006782 for ac_exec_ext in '' $ac_executable_extensions; do
6783 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 +00006784 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006786 break 2
6787 fi
6788done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006789done
Reid Spencera773bd52006-08-04 18:18:08 +00006790IFS=$as_save_IFS
6791
6792 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6793 ;;
6794esac
6795fi
6796CP=$ac_cv_path_CP
6797if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006798 { echo "$as_me:$LINENO: result: $CP" >&5
6799echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006800else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006801 { echo "$as_me:$LINENO: result: no" >&5
6802echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006803fi
6804
6805
6806# Extract the first word of "date", so it can be a program name with args.
6807set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006808{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6810if test "${ac_cv_path_DATE+set}" = set; then
6811 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006812else
6813 case $DATE in
6814 [\\/]* | ?:[\\/]*)
6815 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6816 ;;
6817 *)
6818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819for as_dir in $PATH
6820do
6821 IFS=$as_save_IFS
6822 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006823 for ac_exec_ext in '' $ac_executable_extensions; do
6824 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 +00006825 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006827 break 2
6828 fi
6829done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006830done
Reid Spencera773bd52006-08-04 18:18:08 +00006831IFS=$as_save_IFS
6832
6833 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6834 ;;
6835esac
6836fi
6837DATE=$ac_cv_path_DATE
6838if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006839 { echo "$as_me:$LINENO: result: $DATE" >&5
6840echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006841else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006842 { echo "$as_me:$LINENO: result: no" >&5
6843echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006844fi
6845
6846
6847# Extract the first word of "find", so it can be a program name with args.
6848set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006849{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6851if test "${ac_cv_path_FIND+set}" = set; then
6852 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006853else
6854 case $FIND in
6855 [\\/]* | ?:[\\/]*)
6856 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6857 ;;
6858 *)
6859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860for as_dir in $PATH
6861do
6862 IFS=$as_save_IFS
6863 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006864 for ac_exec_ext in '' $ac_executable_extensions; do
6865 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 +00006866 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006868 break 2
6869 fi
6870done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006871done
Reid Spencera773bd52006-08-04 18:18:08 +00006872IFS=$as_save_IFS
6873
6874 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6875 ;;
6876esac
6877fi
6878FIND=$ac_cv_path_FIND
6879if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006880 { echo "$as_me:$LINENO: result: $FIND" >&5
6881echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006882else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006883 { echo "$as_me:$LINENO: result: no" >&5
6884echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006885fi
6886
6887
6888# Extract the first word of "grep", so it can be a program name with args.
6889set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006890{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6891echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6892if test "${ac_cv_path_GREP+set}" = set; then
6893 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006894else
6895 case $GREP in
6896 [\\/]* | ?:[\\/]*)
6897 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6898 ;;
6899 *)
6900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6901for as_dir in $PATH
6902do
6903 IFS=$as_save_IFS
6904 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006905 for ac_exec_ext in '' $ac_executable_extensions; do
6906 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 +00006907 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006909 break 2
6910 fi
6911done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006912done
Reid Spencera773bd52006-08-04 18:18:08 +00006913IFS=$as_save_IFS
6914
6915 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6916 ;;
6917esac
6918fi
6919GREP=$ac_cv_path_GREP
6920if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006921 { echo "$as_me:$LINENO: result: $GREP" >&5
6922echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006923else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006924 { echo "$as_me:$LINENO: result: no" >&5
6925echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006926fi
6927
6928
6929# Extract the first word of "mkdir", so it can be a program name with args.
6930set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006931{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6932echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6933if test "${ac_cv_path_MKDIR+set}" = set; then
6934 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006935else
6936 case $MKDIR in
6937 [\\/]* | ?:[\\/]*)
6938 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6939 ;;
6940 *)
6941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942for as_dir in $PATH
6943do
6944 IFS=$as_save_IFS
6945 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006946 for ac_exec_ext in '' $ac_executable_extensions; do
6947 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 +00006948 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006950 break 2
6951 fi
6952done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006953done
Reid Spencera773bd52006-08-04 18:18:08 +00006954IFS=$as_save_IFS
6955
6956 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6957 ;;
6958esac
6959fi
6960MKDIR=$ac_cv_path_MKDIR
6961if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006962 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6963echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006964else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006965 { echo "$as_me:$LINENO: result: no" >&5
6966echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006967fi
6968
6969
6970# Extract the first word of "mv", so it can be a program name with args.
6971set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006972{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6973echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6974if test "${ac_cv_path_MV+set}" = set; then
6975 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006976else
6977 case $MV in
6978 [\\/]* | ?:[\\/]*)
6979 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6980 ;;
6981 *)
6982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6983for as_dir in $PATH
6984do
6985 IFS=$as_save_IFS
6986 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006987 for ac_exec_ext in '' $ac_executable_extensions; do
6988 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 +00006989 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006991 break 2
6992 fi
6993done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006994done
Reid Spencera773bd52006-08-04 18:18:08 +00006995IFS=$as_save_IFS
6996
6997 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6998 ;;
6999esac
7000fi
7001MV=$ac_cv_path_MV
7002if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007003 { echo "$as_me:$LINENO: result: $MV" >&5
7004echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007005else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007006 { echo "$as_me:$LINENO: result: no" >&5
7007echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007008fi
7009
7010
7011if test -n "$ac_tool_prefix"; then
7012 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7013set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007014{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7015echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7016if test "${ac_cv_prog_RANLIB+set}" = set; then
7017 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007018else
7019 if test -n "$RANLIB"; then
7020 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7021else
7022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7023for as_dir in $PATH
7024do
7025 IFS=$as_save_IFS
7026 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007027 for ac_exec_ext in '' $ac_executable_extensions; do
7028 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 +00007029 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007031 break 2
7032 fi
7033done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007034done
Reid Spencera773bd52006-08-04 18:18:08 +00007035IFS=$as_save_IFS
7036
7037fi
7038fi
7039RANLIB=$ac_cv_prog_RANLIB
7040if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007041 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7042echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007043else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007044 { echo "$as_me:$LINENO: result: no" >&5
7045echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007046fi
7047
7048
7049fi
7050if test -z "$ac_cv_prog_RANLIB"; then
7051 ac_ct_RANLIB=$RANLIB
7052 # Extract the first word of "ranlib", so it can be a program name with args.
7053set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007054{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7055echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7056if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7057 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007058else
7059 if test -n "$ac_ct_RANLIB"; then
7060 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7061else
7062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7063for as_dir in $PATH
7064do
7065 IFS=$as_save_IFS
7066 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007067 for ac_exec_ext in '' $ac_executable_extensions; do
7068 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 +00007069 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007071 break 2
7072 fi
7073done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007074done
Reid Spencera773bd52006-08-04 18:18:08 +00007075IFS=$as_save_IFS
7076
7077fi
7078fi
7079ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7080if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007081 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7082echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007083else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007084 { echo "$as_me:$LINENO: result: no" >&5
7085echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007086fi
7087
7088 if test "x$ac_ct_RANLIB" = x; then
7089 RANLIB=":"
7090 else
7091 case $cross_compiling:$ac_tool_warned in
7092yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007093{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7094whose name does not start with the host triplet. If you think this
7095configuration is useful to you, please write to autoconf@gnu.org." >&5
7096echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7097whose name does not start with the host triplet. If you think this
7098configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00007099ac_tool_warned=yes ;;
7100esac
7101 RANLIB=$ac_ct_RANLIB
7102 fi
7103else
7104 RANLIB="$ac_cv_prog_RANLIB"
7105fi
7106
Torok Edwin871384f2010-01-26 08:50:50 +00007107if test -n "$ac_tool_prefix"; then
7108 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7109set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007110{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7111echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7112if test "${ac_cv_prog_AR+set}" = set; then
7113 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007114else
7115 if test -n "$AR"; then
7116 ac_cv_prog_AR="$AR" # Let the user override the test.
7117else
7118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7119for as_dir in $PATH
7120do
7121 IFS=$as_save_IFS
7122 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007123 for ac_exec_ext in '' $ac_executable_extensions; do
7124 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 +00007125 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007127 break 2
7128 fi
7129done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007130done
Torok Edwin871384f2010-01-26 08:50:50 +00007131IFS=$as_save_IFS
7132
7133fi
7134fi
7135AR=$ac_cv_prog_AR
7136if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007137 { echo "$as_me:$LINENO: result: $AR" >&5
7138echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007139else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007140 { echo "$as_me:$LINENO: result: no" >&5
7141echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007142fi
7143
7144
7145fi
7146if test -z "$ac_cv_prog_AR"; then
7147 ac_ct_AR=$AR
7148 # Extract the first word of "ar", so it can be a program name with args.
7149set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007150{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7151echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7152if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7153 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007154else
7155 if test -n "$ac_ct_AR"; then
7156 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7157else
7158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7159for as_dir in $PATH
7160do
7161 IFS=$as_save_IFS
7162 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007163 for ac_exec_ext in '' $ac_executable_extensions; do
7164 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 +00007165 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007167 break 2
7168 fi
7169done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007170done
Torok Edwin871384f2010-01-26 08:50:50 +00007171IFS=$as_save_IFS
7172
7173fi
7174fi
7175ac_ct_AR=$ac_cv_prog_ac_ct_AR
7176if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007177 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7178echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007179else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007180 { echo "$as_me:$LINENO: result: no" >&5
7181echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007182fi
7183
7184 if test "x$ac_ct_AR" = x; then
7185 AR="false"
7186 else
7187 case $cross_compiling:$ac_tool_warned in
7188yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007189{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7190whose name does not start with the host triplet. If you think this
7191configuration is useful to you, please write to autoconf@gnu.org." >&5
7192echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7193whose name does not start with the host triplet. If you think this
7194configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00007195ac_tool_warned=yes ;;
7196esac
7197 AR=$ac_ct_AR
7198 fi
7199else
7200 AR="$ac_cv_prog_AR"
7201fi
7202
Reid Spencera773bd52006-08-04 18:18:08 +00007203# Extract the first word of "rm", so it can be a program name with args.
7204set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007205{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7206echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7207if test "${ac_cv_path_RM+set}" = set; then
7208 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007209else
7210 case $RM in
7211 [\\/]* | ?:[\\/]*)
7212 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7213 ;;
7214 *)
7215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7216for as_dir in $PATH
7217do
7218 IFS=$as_save_IFS
7219 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007220 for ac_exec_ext in '' $ac_executable_extensions; do
7221 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 +00007222 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007224 break 2
7225 fi
7226done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007227done
Reid Spencera773bd52006-08-04 18:18:08 +00007228IFS=$as_save_IFS
7229
7230 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7231 ;;
7232esac
7233fi
7234RM=$ac_cv_path_RM
7235if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007236 { echo "$as_me:$LINENO: result: $RM" >&5
7237echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007238else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007239 { echo "$as_me:$LINENO: result: no" >&5
7240echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007241fi
7242
7243
7244# Extract the first word of "sed", so it can be a program name with args.
7245set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007246{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7247echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7248if test "${ac_cv_path_SED+set}" = set; then
7249 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007250else
7251 case $SED in
7252 [\\/]* | ?:[\\/]*)
7253 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7254 ;;
7255 *)
7256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257for as_dir in $PATH
7258do
7259 IFS=$as_save_IFS
7260 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007261 for ac_exec_ext in '' $ac_executable_extensions; do
7262 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 +00007263 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007265 break 2
7266 fi
7267done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007268done
Reid Spencera773bd52006-08-04 18:18:08 +00007269IFS=$as_save_IFS
7270
7271 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7272 ;;
7273esac
7274fi
7275SED=$ac_cv_path_SED
7276if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007277 { echo "$as_me:$LINENO: result: $SED" >&5
7278echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007279else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007280 { echo "$as_me:$LINENO: result: no" >&5
7281echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007282fi
7283
7284
7285# Extract the first word of "tar", so it can be a program name with args.
7286set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007287{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7288echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7289if test "${ac_cv_path_TAR+set}" = set; then
7290 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007291else
7292 case $TAR in
7293 [\\/]* | ?:[\\/]*)
7294 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7295 ;;
7296 *)
7297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7298for as_dir in $PATH
7299do
7300 IFS=$as_save_IFS
7301 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007302 for ac_exec_ext in '' $ac_executable_extensions; do
7303 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 +00007304 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007306 break 2
7307 fi
7308done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007309done
Reid Spencera773bd52006-08-04 18:18:08 +00007310IFS=$as_save_IFS
7311
7312 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7313 ;;
7314esac
7315fi
7316TAR=$ac_cv_path_TAR
7317if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007318 { echo "$as_me:$LINENO: result: $TAR" >&5
7319echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007320else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007321 { echo "$as_me:$LINENO: result: no" >&5
7322echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007323fi
7324
7325
7326# Extract the first word of "pwd", so it can be a program name with args.
7327set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007328{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7329echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7330if test "${ac_cv_path_BINPWD+set}" = set; then
7331 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007332else
7333 case $BINPWD in
7334 [\\/]* | ?:[\\/]*)
7335 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7336 ;;
7337 *)
7338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7339for as_dir in $PATH
7340do
7341 IFS=$as_save_IFS
7342 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007343 for ac_exec_ext in '' $ac_executable_extensions; do
7344 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 +00007345 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007347 break 2
7348 fi
7349done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007350done
Reid Spencera773bd52006-08-04 18:18:08 +00007351IFS=$as_save_IFS
7352
7353 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7354 ;;
7355esac
7356fi
7357BINPWD=$ac_cv_path_BINPWD
7358if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007359 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7360echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007361else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007362 { echo "$as_me:$LINENO: result: no" >&5
7363echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007364fi
7365
7366
7367
7368# Extract the first word of "Graphviz", so it can be a program name with args.
7369set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007370{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7371echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7372if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7373 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007374else
7375 case $GRAPHVIZ in
7376 [\\/]* | ?:[\\/]*)
7377 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7378 ;;
7379 *)
7380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381for as_dir in $PATH
7382do
7383 IFS=$as_save_IFS
7384 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007385 for ac_exec_ext in '' $ac_executable_extensions; do
7386 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 +00007387 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007389 break 2
7390 fi
7391done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007392done
Reid Spencera773bd52006-08-04 18:18:08 +00007393IFS=$as_save_IFS
7394
7395 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7396 ;;
7397esac
7398fi
7399GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7400if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007401 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7402echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007403else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007404 { echo "$as_me:$LINENO: result: no" >&5
7405echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007406fi
7407
7408
7409if test "$GRAPHVIZ" != "echo Graphviz" ; then
7410
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007411cat >>confdefs.h <<\_ACEOF
7412#define HAVE_GRAPHVIZ 1
7413_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007414
Jeff Cohen28783c32007-01-12 18:22:38 +00007415 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007416 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7417 fi
7418
7419cat >>confdefs.h <<_ACEOF
7420#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7421_ACEOF
7422
7423fi
7424# Extract the first word of "dot", so it can be a program name with args.
7425set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007426{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7428if test "${ac_cv_path_DOT+set}" = set; then
7429 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007430else
7431 case $DOT in
7432 [\\/]* | ?:[\\/]*)
7433 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7434 ;;
7435 *)
7436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7437for as_dir in $PATH
7438do
7439 IFS=$as_save_IFS
7440 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007441 for ac_exec_ext in '' $ac_executable_extensions; do
7442 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 +00007443 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007445 break 2
7446 fi
7447done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007448done
Reid Spencera773bd52006-08-04 18:18:08 +00007449IFS=$as_save_IFS
7450
7451 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7452 ;;
7453esac
7454fi
7455DOT=$ac_cv_path_DOT
7456if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007457 { echo "$as_me:$LINENO: result: $DOT" >&5
7458echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007459else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007460 { echo "$as_me:$LINENO: result: no" >&5
7461echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007462fi
7463
7464
7465if test "$DOT" != "echo dot" ; then
7466
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007467cat >>confdefs.h <<\_ACEOF
7468#define HAVE_DOT 1
7469_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007470
Jeff Cohen28783c32007-01-12 18:22:38 +00007471 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007472 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7473 fi
7474
7475cat >>confdefs.h <<_ACEOF
7476#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7477_ACEOF
7478
7479fi
David Greenef0b9eff2009-07-09 17:16:26 +00007480# Extract the first word of "fdp", so it can be a program name with args.
7481set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007482{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7484if test "${ac_cv_path_FDP+set}" = set; then
7485 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007486else
7487 case $FDP in
7488 [\\/]* | ?:[\\/]*)
7489 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7490 ;;
7491 *)
7492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7493for as_dir in $PATH
7494do
7495 IFS=$as_save_IFS
7496 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007497 for ac_exec_ext in '' $ac_executable_extensions; do
7498 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 +00007499 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007501 break 2
7502 fi
7503done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007504done
David Greenef0b9eff2009-07-09 17:16:26 +00007505IFS=$as_save_IFS
7506
7507 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7508 ;;
7509esac
7510fi
7511FDP=$ac_cv_path_FDP
7512if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007513 { echo "$as_me:$LINENO: result: $FDP" >&5
7514echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007515else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007516 { echo "$as_me:$LINENO: result: no" >&5
7517echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007518fi
7519
7520
7521if test "$FDP" != "echo fdp" ; then
7522
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007523cat >>confdefs.h <<\_ACEOF
7524#define HAVE_FDP 1
7525_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007526
7527 if test "$llvm_cv_os_type" = "MingW" ; then
7528 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7529 fi
7530
7531cat >>confdefs.h <<_ACEOF
7532#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7533_ACEOF
7534
7535fi
7536# Extract the first word of "neato", so it can be a program name with args.
7537set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007538{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7539echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7540if test "${ac_cv_path_NEATO+set}" = set; then
7541 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007542else
7543 case $NEATO in
7544 [\\/]* | ?:[\\/]*)
7545 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7546 ;;
7547 *)
7548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7549for as_dir in $PATH
7550do
7551 IFS=$as_save_IFS
7552 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007553 for ac_exec_ext in '' $ac_executable_extensions; do
7554 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 +00007555 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007557 break 2
7558 fi
7559done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007560done
David Greenef0b9eff2009-07-09 17:16:26 +00007561IFS=$as_save_IFS
7562
7563 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7564 ;;
7565esac
7566fi
7567NEATO=$ac_cv_path_NEATO
7568if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007569 { echo "$as_me:$LINENO: result: $NEATO" >&5
7570echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007571else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007572 { echo "$as_me:$LINENO: result: no" >&5
7573echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007574fi
7575
7576
7577if test "$NEATO" != "echo neato" ; then
7578
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007579cat >>confdefs.h <<\_ACEOF
7580#define HAVE_NEATO 1
7581_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007582
7583 if test "$llvm_cv_os_type" = "MingW" ; then
7584 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7585 fi
7586
7587cat >>confdefs.h <<_ACEOF
7588#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7589_ACEOF
7590
7591fi
7592# Extract the first word of "twopi", so it can be a program name with args.
7593set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007594{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7595echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7596if test "${ac_cv_path_TWOPI+set}" = set; then
7597 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007598else
7599 case $TWOPI in
7600 [\\/]* | ?:[\\/]*)
7601 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7602 ;;
7603 *)
7604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7605for as_dir in $PATH
7606do
7607 IFS=$as_save_IFS
7608 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007609 for ac_exec_ext in '' $ac_executable_extensions; do
7610 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 +00007611 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007613 break 2
7614 fi
7615done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007616done
David Greenef0b9eff2009-07-09 17:16:26 +00007617IFS=$as_save_IFS
7618
7619 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7620 ;;
7621esac
7622fi
7623TWOPI=$ac_cv_path_TWOPI
7624if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007625 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7626echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007627else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007628 { echo "$as_me:$LINENO: result: no" >&5
7629echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007630fi
7631
7632
7633if test "$TWOPI" != "echo twopi" ; then
7634
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007635cat >>confdefs.h <<\_ACEOF
7636#define HAVE_TWOPI 1
7637_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007638
7639 if test "$llvm_cv_os_type" = "MingW" ; then
7640 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7641 fi
7642
7643cat >>confdefs.h <<_ACEOF
7644#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7645_ACEOF
7646
7647fi
7648# Extract the first word of "circo", so it can be a program name with args.
7649set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007650{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7651echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7652if test "${ac_cv_path_CIRCO+set}" = set; then
7653 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007654else
7655 case $CIRCO in
7656 [\\/]* | ?:[\\/]*)
7657 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7658 ;;
7659 *)
7660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7661for as_dir in $PATH
7662do
7663 IFS=$as_save_IFS
7664 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007665 for ac_exec_ext in '' $ac_executable_extensions; do
7666 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 +00007667 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007669 break 2
7670 fi
7671done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007672done
David Greenef0b9eff2009-07-09 17:16:26 +00007673IFS=$as_save_IFS
7674
7675 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7676 ;;
7677esac
7678fi
7679CIRCO=$ac_cv_path_CIRCO
7680if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007681 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7682echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007683else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007684 { echo "$as_me:$LINENO: result: no" >&5
7685echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007686fi
7687
7688
7689if test "$CIRCO" != "echo circo" ; then
7690
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007691cat >>confdefs.h <<\_ACEOF
7692#define HAVE_CIRCO 1
7693_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007694
7695 if test "$llvm_cv_os_type" = "MingW" ; then
7696 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7697 fi
7698
7699cat >>confdefs.h <<_ACEOF
7700#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7701_ACEOF
7702
7703fi
Reid Spencera773bd52006-08-04 18:18:08 +00007704for ac_prog in gv gsview32
7705do
7706 # Extract the first word of "$ac_prog", so it can be a program name with args.
7707set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007708{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7710if test "${ac_cv_path_GV+set}" = set; then
7711 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007712else
7713 case $GV in
7714 [\\/]* | ?:[\\/]*)
7715 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7716 ;;
7717 *)
7718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7719for as_dir in $PATH
7720do
7721 IFS=$as_save_IFS
7722 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007723 for ac_exec_ext in '' $ac_executable_extensions; do
7724 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 +00007725 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007727 break 2
7728 fi
7729done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007730done
Reid Spencera773bd52006-08-04 18:18:08 +00007731IFS=$as_save_IFS
7732
7733 ;;
7734esac
7735fi
7736GV=$ac_cv_path_GV
7737if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007738 { echo "$as_me:$LINENO: result: $GV" >&5
7739echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007740else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007741 { echo "$as_me:$LINENO: result: no" >&5
7742echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007743fi
7744
7745
7746 test -n "$GV" && break
7747done
7748test -n "$GV" || GV="echo gv"
7749
7750if test "$GV" != "echo gv" ; then
7751
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007752cat >>confdefs.h <<\_ACEOF
7753#define HAVE_GV 1
7754_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007755
Jeff Cohen28783c32007-01-12 18:22:38 +00007756 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007757 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7758 fi
7759
7760cat >>confdefs.h <<_ACEOF
7761#define LLVM_PATH_GV "$GV${EXEEXT}"
7762_ACEOF
7763
7764fi
7765# Extract the first word of "dotty", so it can be a program name with args.
7766set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007767{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7769if test "${ac_cv_path_DOTTY+set}" = set; then
7770 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007771else
7772 case $DOTTY in
7773 [\\/]* | ?:[\\/]*)
7774 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7775 ;;
7776 *)
7777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7778for as_dir in $PATH
7779do
7780 IFS=$as_save_IFS
7781 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007782 for ac_exec_ext in '' $ac_executable_extensions; do
7783 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 +00007784 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007786 break 2
7787 fi
7788done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007789done
Reid Spencera773bd52006-08-04 18:18:08 +00007790IFS=$as_save_IFS
7791
7792 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7793 ;;
7794esac
7795fi
7796DOTTY=$ac_cv_path_DOTTY
7797if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007798 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7799echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007800else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007801 { echo "$as_me:$LINENO: result: no" >&5
7802echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007803fi
7804
7805
7806if test "$DOTTY" != "echo dotty" ; then
7807
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007808cat >>confdefs.h <<\_ACEOF
7809#define HAVE_DOTTY 1
7810_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007811
Jeff Cohen28783c32007-01-12 18:22:38 +00007812 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007813 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7814 fi
7815
7816cat >>confdefs.h <<_ACEOF
7817#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7818_ACEOF
7819
7820fi
7821
7822
7823# Extract the first word of "perl", so it can be a program name with args.
7824set dummy perl; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007825{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7827if test "${ac_cv_path_PERL+set}" = set; then
7828 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007829else
7830 case $PERL in
7831 [\\/]* | ?:[\\/]*)
7832 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7833 ;;
7834 *)
7835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7836for as_dir in $PATH
7837do
7838 IFS=$as_save_IFS
7839 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007840 for ac_exec_ext in '' $ac_executable_extensions; do
7841 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 +00007842 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007844 break 2
7845 fi
7846done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007847done
Reid Spencera773bd52006-08-04 18:18:08 +00007848IFS=$as_save_IFS
7849
7850 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7851 ;;
7852esac
7853fi
7854PERL=$ac_cv_path_PERL
7855if test -n "$PERL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007856 { echo "$as_me:$LINENO: result: $PERL" >&5
7857echo "${ECHO_T}$PERL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007858else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007859 { echo "$as_me:$LINENO: result: no" >&5
7860echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007861fi
7862
7863
7864if test "$PERL" != "none"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007865 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7866echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007867 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007868 { echo "$as_me:$LINENO: result: yes" >&5
7869echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007870 else
7871 PERL=none
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007872 { echo "$as_me:$LINENO: result: not found" >&5
7873echo "${ECHO_T}not found" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007874 fi
7875fi
7876
7877
7878if test x"$PERL" = xnone; then
7879 HAVE_PERL=0
7880
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007881 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7882echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7883 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007884else
7885 HAVE_PERL=1
7886
7887fi
7888
7889# Find a good install program. We prefer a C program (faster),
7890# so one script is as good as another. But avoid the broken or
7891# incompatible versions:
7892# SysV /etc/install, /usr/sbin/install
7893# SunOS /usr/etc/install
7894# IRIX /sbin/install
7895# AIX /bin/install
7896# AmigaOS /C/install, which installs bootblocks on floppy discs
7897# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7898# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7899# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7900# OS/2's system install, which has a completely different semantic
7901# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007902{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7903echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007904if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007905if test "${ac_cv_path_install+set}" = set; then
7906 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007907else
7908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7909for as_dir in $PATH
7910do
7911 IFS=$as_save_IFS
7912 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007913 # Account for people who put trailing slashes in PATH elements.
7914case $as_dir/ in
7915 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007916 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007917 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007918 /usr/ucb/* ) ;;
7919 *)
7920 # OSF1 and SCO ODT 3.0 have their own names for install.
7921 # Don't use installbsd from OSF since it installs stuff as root
7922 # by default.
7923 for ac_prog in ginstall scoinst install; do
7924 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007925 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 +00007926 if test $ac_prog = install &&
7927 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7928 # AIX install. It has an incompatible calling convention.
7929 :
7930 elif test $ac_prog = install &&
7931 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7932 # program-specific install script used by HP pwplus--don't use.
7933 :
7934 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007935 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7936 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00007937 fi
7938 fi
7939 done
7940 done
7941 ;;
7942esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007943done
Reid Spencera773bd52006-08-04 18:18:08 +00007944IFS=$as_save_IFS
7945
7946
7947fi
7948 if test "${ac_cv_path_install+set}" = set; then
7949 INSTALL=$ac_cv_path_install
7950 else
7951 # As a last resort, use the slow shell script. Don't cache a
7952 # value for INSTALL within a source directory, because that will
7953 # break other packages using the cache if that directory is
7954 # removed, or if the value is a relative name.
7955 INSTALL=$ac_install_sh
7956 fi
7957fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007958{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7959echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007960
7961# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7962# It thinks the first close brace ends the variable substitution.
7963test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7964
7965test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7966
7967test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7968
7969
7970# Extract the first word of "bzip2", so it can be a program name with args.
7971set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007972{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7973echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7974if test "${ac_cv_path_BZIP2+set}" = set; then
7975 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007976else
7977 case $BZIP2 in
7978 [\\/]* | ?:[\\/]*)
7979 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7980 ;;
7981 *)
7982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7983for as_dir in $PATH
7984do
7985 IFS=$as_save_IFS
7986 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007987 for ac_exec_ext in '' $ac_executable_extensions; do
7988 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 +00007989 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007991 break 2
7992 fi
7993done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007994done
Reid Spencera773bd52006-08-04 18:18:08 +00007995IFS=$as_save_IFS
7996
Reid Spencera773bd52006-08-04 18:18:08 +00007997 ;;
7998esac
7999fi
8000BZIP2=$ac_cv_path_BZIP2
8001if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008002 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8003echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008004else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008005 { echo "$as_me:$LINENO: result: no" >&5
8006echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008007fi
8008
8009
8010# Extract the first word of "doxygen", so it can be a program name with args.
8011set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008012{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8013echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8014if test "${ac_cv_path_DOXYGEN+set}" = set; then
8015 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008016else
8017 case $DOXYGEN in
8018 [\\/]* | ?:[\\/]*)
8019 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8020 ;;
8021 *)
8022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8023for as_dir in $PATH
8024do
8025 IFS=$as_save_IFS
8026 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008027 for ac_exec_ext in '' $ac_executable_extensions; do
8028 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 +00008029 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008031 break 2
8032 fi
8033done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008034done
Reid Spencera773bd52006-08-04 18:18:08 +00008035IFS=$as_save_IFS
8036
Reid Spencera773bd52006-08-04 18:18:08 +00008037 ;;
8038esac
8039fi
8040DOXYGEN=$ac_cv_path_DOXYGEN
8041if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008042 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8043echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008044else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008045 { echo "$as_me:$LINENO: result: no" >&5
8046echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008047fi
8048
8049
Reid Spencera773bd52006-08-04 18:18:08 +00008050# Extract the first word of "groff", so it can be a program name with args.
8051set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008052{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8053echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8054if test "${ac_cv_path_GROFF+set}" = set; then
8055 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008056else
8057 case $GROFF in
8058 [\\/]* | ?:[\\/]*)
8059 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8060 ;;
8061 *)
8062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8063for as_dir in $PATH
8064do
8065 IFS=$as_save_IFS
8066 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008067 for ac_exec_ext in '' $ac_executable_extensions; do
8068 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 +00008069 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008071 break 2
8072 fi
8073done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008074done
Reid Spencera773bd52006-08-04 18:18:08 +00008075IFS=$as_save_IFS
8076
Reid Spencera773bd52006-08-04 18:18:08 +00008077 ;;
8078esac
8079fi
8080GROFF=$ac_cv_path_GROFF
8081if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008082 { echo "$as_me:$LINENO: result: $GROFF" >&5
8083echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008084else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008085 { echo "$as_me:$LINENO: result: no" >&5
8086echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008087fi
8088
8089
8090# Extract the first word of "gzip", so it can be a program name with args.
8091set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008092{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8093echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8094if test "${ac_cv_path_GZIP+set}" = set; then
8095 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008096else
8097 case $GZIP in
8098 [\\/]* | ?:[\\/]*)
8099 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8100 ;;
8101 *)
8102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8103for as_dir in $PATH
8104do
8105 IFS=$as_save_IFS
8106 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008107 for ac_exec_ext in '' $ac_executable_extensions; do
8108 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 +00008109 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008111 break 2
8112 fi
8113done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008114done
Reid Spencera773bd52006-08-04 18:18:08 +00008115IFS=$as_save_IFS
8116
Reid Spencera773bd52006-08-04 18:18:08 +00008117 ;;
8118esac
8119fi
8120GZIP=$ac_cv_path_GZIP
8121if test -n "$GZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008122 { echo "$as_me:$LINENO: result: $GZIP" >&5
8123echo "${ECHO_T}$GZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008124else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008125 { echo "$as_me:$LINENO: result: no" >&5
8126echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008127fi
8128
8129
8130# Extract the first word of "pod2html", so it can be a program name with args.
8131set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008132{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8133echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8134if test "${ac_cv_path_POD2HTML+set}" = set; then
8135 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008136else
8137 case $POD2HTML in
8138 [\\/]* | ?:[\\/]*)
8139 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8140 ;;
8141 *)
8142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8143for as_dir in $PATH
8144do
8145 IFS=$as_save_IFS
8146 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008147 for ac_exec_ext in '' $ac_executable_extensions; do
8148 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 +00008149 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008151 break 2
8152 fi
8153done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008154done
Reid Spencera773bd52006-08-04 18:18:08 +00008155IFS=$as_save_IFS
8156
Reid Spencera773bd52006-08-04 18:18:08 +00008157 ;;
8158esac
8159fi
8160POD2HTML=$ac_cv_path_POD2HTML
8161if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008162 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8163echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008164else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008165 { echo "$as_me:$LINENO: result: no" >&5
8166echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008167fi
8168
8169
8170# Extract the first word of "pod2man", so it can be a program name with args.
8171set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008172{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8174if test "${ac_cv_path_POD2MAN+set}" = set; then
8175 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008176else
8177 case $POD2MAN in
8178 [\\/]* | ?:[\\/]*)
8179 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8180 ;;
8181 *)
8182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8183for as_dir in $PATH
8184do
8185 IFS=$as_save_IFS
8186 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008187 for ac_exec_ext in '' $ac_executable_extensions; do
8188 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 +00008189 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008191 break 2
8192 fi
8193done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008194done
Reid Spencera773bd52006-08-04 18:18:08 +00008195IFS=$as_save_IFS
8196
Reid Spencera773bd52006-08-04 18:18:08 +00008197 ;;
8198esac
8199fi
8200POD2MAN=$ac_cv_path_POD2MAN
8201if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008202 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8203echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008204else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008205 { echo "$as_me:$LINENO: result: no" >&5
8206echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008207fi
8208
8209
8210# Extract the first word of "runtest", so it can be a program name with args.
8211set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008212{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8213echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8214if test "${ac_cv_path_RUNTEST+set}" = set; then
8215 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008216else
8217 case $RUNTEST in
8218 [\\/]* | ?:[\\/]*)
8219 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8220 ;;
8221 *)
8222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8223for as_dir in $PATH
8224do
8225 IFS=$as_save_IFS
8226 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008227 for ac_exec_ext in '' $ac_executable_extensions; do
8228 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 +00008229 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008231 break 2
8232 fi
8233done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008234done
Reid Spencera773bd52006-08-04 18:18:08 +00008235IFS=$as_save_IFS
8236
Reid Spencera773bd52006-08-04 18:18:08 +00008237 ;;
8238esac
8239fi
8240RUNTEST=$ac_cv_path_RUNTEST
8241if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008242 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8243echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008244else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008245 { echo "$as_me:$LINENO: result: no" >&5
8246echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008247fi
8248
8249
8250
8251no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008252{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8253echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008254
8255# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008256if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008257 withval=$with_tclinclude; with_tclinclude=${withval}
8258else
8259 with_tclinclude=''
8260fi
8261
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008262if test "${ac_cv_path_tclsh+set}" = set; then
8263 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008264else
8265
8266if test x"${with_tclinclude}" != x ; then
8267 if test -f ${with_tclinclude}/tclsh ; then
8268 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8269 elif test -f ${with_tclinclude}/src/tclsh ; then
8270 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8271 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008272 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8273echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8274 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00008275 fi
8276fi
Torok Edwin871384f2010-01-26 08:50:50 +00008277fi
8278
Reid Spencera773bd52006-08-04 18:18:08 +00008279
8280if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008281 { echo "$as_me:$LINENO: result: none" >&5
8282echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008283 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
8284do
8285 # Extract the first word of "$ac_prog", so it can be a program name with args.
8286set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008287{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8288echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8289if test "${ac_cv_path_TCLSH+set}" = set; then
8290 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008291else
8292 case $TCLSH in
8293 [\\/]* | ?:[\\/]*)
8294 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8295 ;;
8296 *)
8297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8298for as_dir in $PATH
8299do
8300 IFS=$as_save_IFS
8301 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008302 for ac_exec_ext in '' $ac_executable_extensions; do
8303 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 +00008304 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008306 break 2
8307 fi
8308done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008309done
Reid Spencera773bd52006-08-04 18:18:08 +00008310IFS=$as_save_IFS
8311
8312 ;;
8313esac
8314fi
8315TCLSH=$ac_cv_path_TCLSH
8316if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008317 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8318echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008319else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008320 { echo "$as_me:$LINENO: result: no" >&5
8321echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008322fi
8323
8324
8325 test -n "$TCLSH" && break
8326done
8327
8328 if test x"${TCLSH}" = x ; then
8329 ac_cv_path_tclsh='';
8330 else
8331 ac_cv_path_tclsh="${TCLSH}";
8332 fi
8333else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008334 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8335echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008336 TCLSH="${ac_cv_path_tclsh}"
8337
8338fi
8339
Reid Spencera773bd52006-08-04 18:18:08 +00008340# Extract the first word of "zip", so it can be a program name with args.
8341set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008342{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8343echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8344if test "${ac_cv_path_ZIP+set}" = set; then
8345 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008346else
8347 case $ZIP in
8348 [\\/]* | ?:[\\/]*)
8349 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8350 ;;
8351 *)
8352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8353for as_dir in $PATH
8354do
8355 IFS=$as_save_IFS
8356 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008357 for ac_exec_ext in '' $ac_executable_extensions; do
8358 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 +00008359 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008361 break 2
8362 fi
8363done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008364done
Reid Spencera773bd52006-08-04 18:18:08 +00008365IFS=$as_save_IFS
8366
Reid Spencera773bd52006-08-04 18:18:08 +00008367 ;;
8368esac
8369fi
8370ZIP=$ac_cv_path_ZIP
8371if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008372 { echo "$as_me:$LINENO: result: $ZIP" >&5
8373echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008374else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008375 { echo "$as_me:$LINENO: result: no" >&5
8376echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008377fi
8378
8379
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008380for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00008381do
8382 # Extract the first word of "$ac_prog", so it can be a program name with args.
8383set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008384{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8385echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8386if test "${ac_cv_path_OCAMLC+set}" = set; then
8387 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008388else
8389 case $OCAMLC in
8390 [\\/]* | ?:[\\/]*)
8391 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8392 ;;
8393 *)
8394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8395for as_dir in $PATH
8396do
8397 IFS=$as_save_IFS
8398 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008399 for ac_exec_ext in '' $ac_executable_extensions; do
8400 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 +00008401 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008403 break 2
8404 fi
8405done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008406done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008407IFS=$as_save_IFS
8408
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008409 ;;
8410esac
8411fi
8412OCAMLC=$ac_cv_path_OCAMLC
8413if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008414 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8415echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008416else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008417 { echo "$as_me:$LINENO: result: no" >&5
8418echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008419fi
8420
8421
Gordon Henriksene7072162008-03-07 18:20:01 +00008422 test -n "$OCAMLC" && break
8423done
8424
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008425for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00008426do
8427 # Extract the first word of "$ac_prog", so it can be a program name with args.
8428set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008429{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8430echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8431if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8432 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008433else
8434 case $OCAMLOPT in
8435 [\\/]* | ?:[\\/]*)
8436 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8437 ;;
8438 *)
8439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8440for as_dir in $PATH
8441do
8442 IFS=$as_save_IFS
8443 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008444 for ac_exec_ext in '' $ac_executable_extensions; do
8445 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 +00008446 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008448 break 2
8449 fi
8450done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008451done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008452IFS=$as_save_IFS
8453
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008454 ;;
8455esac
8456fi
8457OCAMLOPT=$ac_cv_path_OCAMLOPT
8458if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008459 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8460echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008461else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008462 { echo "$as_me:$LINENO: result: no" >&5
8463echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008464fi
8465
8466
Gordon Henriksene7072162008-03-07 18:20:01 +00008467 test -n "$OCAMLOPT" && break
8468done
8469
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008470for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00008471do
8472 # Extract the first word of "$ac_prog", so it can be a program name with args.
8473set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008474{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8476if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8477 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008478else
8479 case $OCAMLDEP in
8480 [\\/]* | ?:[\\/]*)
8481 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8482 ;;
8483 *)
8484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8485for as_dir in $PATH
8486do
8487 IFS=$as_save_IFS
8488 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008489 for ac_exec_ext in '' $ac_executable_extensions; do
8490 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 +00008491 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008493 break 2
8494 fi
8495done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008496done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008497IFS=$as_save_IFS
8498
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008499 ;;
8500esac
8501fi
8502OCAMLDEP=$ac_cv_path_OCAMLDEP
8503if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008504 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8505echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008506else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008507 { echo "$as_me:$LINENO: result: no" >&5
8508echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008509fi
8510
8511
Gordon Henriksene7072162008-03-07 18:20:01 +00008512 test -n "$OCAMLDEP" && break
8513done
8514
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008515for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008516do
8517 # Extract the first word of "$ac_prog", so it can be a program name with args.
8518set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008519{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8521if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8522 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008523else
8524 case $OCAMLDOC in
8525 [\\/]* | ?:[\\/]*)
8526 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8527 ;;
8528 *)
8529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8530for as_dir in $PATH
8531do
8532 IFS=$as_save_IFS
8533 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008534 for ac_exec_ext in '' $ac_executable_extensions; do
8535 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 +00008536 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008538 break 2
8539 fi
8540done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008541done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008542IFS=$as_save_IFS
8543
8544 ;;
8545esac
8546fi
8547OCAMLDOC=$ac_cv_path_OCAMLDOC
8548if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008549 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8550echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008551else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008552 { echo "$as_me:$LINENO: result: no" >&5
8553echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008554fi
8555
8556
8557 test -n "$OCAMLDOC" && break
8558done
8559
Torok Edwincc499a42008-10-22 09:56:27 +00008560for ac_prog in gas as
8561do
8562 # Extract the first word of "$ac_prog", so it can be a program name with args.
8563set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008564{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8565echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8566if test "${ac_cv_path_GAS+set}" = set; then
8567 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00008568else
8569 case $GAS in
8570 [\\/]* | ?:[\\/]*)
8571 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8572 ;;
8573 *)
8574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8575for as_dir in $PATH
8576do
8577 IFS=$as_save_IFS
8578 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008579 for ac_exec_ext in '' $ac_executable_extensions; do
8580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Torok Edwincc499a42008-10-22 09:56:27 +00008581 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00008583 break 2
8584 fi
8585done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008586done
Torok Edwincc499a42008-10-22 09:56:27 +00008587IFS=$as_save_IFS
8588
8589 ;;
8590esac
8591fi
8592GAS=$ac_cv_path_GAS
8593if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008594 { echo "$as_me:$LINENO: result: $GAS" >&5
8595echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008596else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008597 { echo "$as_me:$LINENO: result: no" >&5
8598echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008599fi
8600
8601
8602 test -n "$GAS" && break
8603done
8604
Reid Spencera773bd52006-08-04 18:18:08 +00008605
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008606{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8607echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8608if test "${llvm_cv_link_use_r+set}" = set; then
8609 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008610else
8611 ac_ext=c
8612ac_cpp='$CPP $CPPFLAGS'
8613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8615ac_compiler_gnu=$ac_cv_c_compiler_gnu
8616
8617 oldcflags="$CFLAGS"
8618 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008619 cat >conftest.$ac_ext <<_ACEOF
8620/* confdefs.h. */
8621_ACEOF
8622cat confdefs.h >>conftest.$ac_ext
8623cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008624/* end confdefs.h. */
8625
8626int
8627main ()
8628{
8629int main() { return 0; }
8630 ;
8631 return 0;
8632}
8633_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008634rm -f conftest.$ac_objext conftest$ac_exeext
8635if { (ac_try="$ac_link"
8636case "(($ac_try" in
8637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8638 *) ac_try_echo=$ac_try;;
8639esac
8640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8641 (eval "$ac_link") 2>conftest.er1
8642 ac_status=$?
8643 grep -v '^ *+' conftest.er1 >conftest.err
8644 rm -f conftest.er1
8645 cat conftest.err >&5
8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 (exit $ac_status); } &&
8648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8649 { (case "(($ac_try" in
8650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8651 *) ac_try_echo=$ac_try;;
8652esac
8653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8654 (eval "$ac_try") 2>&5
8655 ac_status=$?
8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); }; } &&
8658 { ac_try='test -s conftest$ac_exeext'
8659 { (case "(($ac_try" in
8660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8661 *) ac_try_echo=$ac_try;;
8662esac
8663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8664 (eval "$ac_try") 2>&5
8665 ac_status=$?
8666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008668 llvm_cv_link_use_r=yes
8669else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008670 echo "$as_me: failed program was:" >&5
8671sed 's/^/| /' conftest.$ac_ext >&5
8672
8673 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00008674fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008675
Bill Wendlingebcceee2009-04-18 11:20:33 +00008676rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008677 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008678 CFLAGS="$oldcflags"
8679 ac_ext=c
8680ac_cpp='$CPP $CPPFLAGS'
8681ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8682ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8683ac_compiler_gnu=$ac_cv_c_compiler_gnu
8684
8685
8686fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008687{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8688echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008689if test "$llvm_cv_link_use_r" = yes ; then
8690
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008691cat >>confdefs.h <<\_ACEOF
8692#define HAVE_LINK_R 1
8693_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008694
8695 fi
8696
8697
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008698{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8699echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8700if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8701 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008702else
8703 ac_ext=c
8704ac_cpp='$CPP $CPPFLAGS'
8705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8707ac_compiler_gnu=$ac_cv_c_compiler_gnu
8708
8709 oldcflags="$CFLAGS"
8710 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008711 cat >conftest.$ac_ext <<_ACEOF
8712/* confdefs.h. */
8713_ACEOF
8714cat confdefs.h >>conftest.$ac_ext
8715cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008716/* end confdefs.h. */
8717
8718int
8719main ()
8720{
8721int main() { return 0; }
8722 ;
8723 return 0;
8724}
8725_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008726rm -f conftest.$ac_objext conftest$ac_exeext
8727if { (ac_try="$ac_link"
8728case "(($ac_try" in
8729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8730 *) ac_try_echo=$ac_try;;
8731esac
8732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8733 (eval "$ac_link") 2>conftest.er1
8734 ac_status=$?
8735 grep -v '^ *+' conftest.er1 >conftest.err
8736 rm -f conftest.er1
8737 cat conftest.err >&5
8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739 (exit $ac_status); } &&
8740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8741 { (case "(($ac_try" in
8742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8743 *) ac_try_echo=$ac_try;;
8744esac
8745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8746 (eval "$ac_try") 2>&5
8747 ac_status=$?
8748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749 (exit $ac_status); }; } &&
8750 { ac_try='test -s conftest$ac_exeext'
8751 { (case "(($ac_try" in
8752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8753 *) ac_try_echo=$ac_try;;
8754esac
8755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8756 (eval "$ac_try") 2>&5
8757 ac_status=$?
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008760 llvm_cv_link_use_export_dynamic=yes
8761else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008762 echo "$as_me: failed program was:" >&5
8763sed 's/^/| /' conftest.$ac_ext >&5
8764
8765 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008766fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008767
Bill Wendlingebcceee2009-04-18 11:20:33 +00008768rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008769 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008770 CFLAGS="$oldcflags"
8771 ac_ext=c
8772ac_cpp='$CPP $CPPFLAGS'
8773ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8774ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8775ac_compiler_gnu=$ac_cv_c_compiler_gnu
8776
8777
8778fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008779{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8780echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008781if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8782
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008783cat >>confdefs.h <<\_ACEOF
8784#define HAVE_LINK_EXPORT_DYNAMIC 1
8785_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008786
8787 fi
8788
8789
Reid Spencera773bd52006-08-04 18:18:08 +00008790
8791
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008792{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8793echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8794if test "${ac_cv_c_const+set}" = set; then
8795 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008796else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008797 cat >conftest.$ac_ext <<_ACEOF
8798/* confdefs.h. */
8799_ACEOF
8800cat confdefs.h >>conftest.$ac_ext
8801cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008802/* end confdefs.h. */
8803
8804int
8805main ()
8806{
8807/* FIXME: Include the comments suggested by Paul. */
8808#ifndef __cplusplus
8809 /* Ultrix mips cc rejects this. */
8810 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008811 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008812 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008813 char const *const *ccp;
8814 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008815 /* NEC SVR4.0.2 mips cc rejects this. */
8816 struct point {int x, y;};
8817 static struct point const zero = {0,0};
8818 /* AIX XL C 1.02.0.0 rejects this.
8819 It does not let you subtract one const X* pointer from another in
8820 an arm of an if-expression whose if-part is not a constant
8821 expression */
8822 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008823 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008824 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008825 ++ccp;
8826 p = (char**) ccp;
8827 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008828 { /* SCO 3.2v4 cc rejects this. */
8829 char *t;
8830 char const *s = 0 ? (char *) 0 : (char const *) 0;
8831
8832 *t++ = 0;
8833 if (s) return 0;
8834 }
8835 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8836 int x[] = {25, 17};
8837 const int *foo = &x[0];
8838 ++foo;
8839 }
8840 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8841 typedef const int *iptr;
8842 iptr p = 0;
8843 ++p;
8844 }
8845 { /* AIX XL C 1.02.0.0 rejects this saying
8846 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8847 struct s { int j; const int *ap[3]; };
8848 struct s *b; b->j = 5;
8849 }
8850 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8851 const int foo = 10;
8852 if (!foo) return 0;
8853 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008854 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008855#endif
8856
8857 ;
8858 return 0;
8859}
8860_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008861rm -f conftest.$ac_objext
8862if { (ac_try="$ac_compile"
8863case "(($ac_try" in
8864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8865 *) ac_try_echo=$ac_try;;
8866esac
8867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8868 (eval "$ac_compile") 2>conftest.er1
8869 ac_status=$?
8870 grep -v '^ *+' conftest.er1 >conftest.err
8871 rm -f conftest.er1
8872 cat conftest.err >&5
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); } &&
8875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8876 { (case "(($ac_try" in
8877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8878 *) ac_try_echo=$ac_try;;
8879esac
8880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8881 (eval "$ac_try") 2>&5
8882 ac_status=$?
8883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884 (exit $ac_status); }; } &&
8885 { ac_try='test -s conftest.$ac_objext'
8886 { (case "(($ac_try" in
8887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8888 *) ac_try_echo=$ac_try;;
8889esac
8890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8891 (eval "$ac_try") 2>&5
8892 ac_status=$?
8893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008895 ac_cv_c_const=yes
8896else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008897 echo "$as_me: failed program was:" >&5
8898sed 's/^/| /' conftest.$ac_ext >&5
8899
8900 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00008901fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008902
Reid Spencera773bd52006-08-04 18:18:08 +00008903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8904fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008905{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8906echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008907if test $ac_cv_c_const = no; then
8908
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008909cat >>confdefs.h <<\_ACEOF
8910#define const
8911_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008912
8913fi
8914
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008915
8916
8917
8918
8919
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008920ac_header_dirent=no
8921for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008922 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8923{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8924echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8925if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8926 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008927else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008928 cat >conftest.$ac_ext <<_ACEOF
8929/* confdefs.h. */
8930_ACEOF
8931cat confdefs.h >>conftest.$ac_ext
8932cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008933/* end confdefs.h. */
8934#include <sys/types.h>
8935#include <$ac_hdr>
8936
8937int
8938main ()
8939{
8940if ((DIR *) 0)
8941return 0;
8942 ;
8943 return 0;
8944}
8945_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008946rm -f conftest.$ac_objext
8947if { (ac_try="$ac_compile"
8948case "(($ac_try" in
8949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8950 *) ac_try_echo=$ac_try;;
8951esac
8952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8953 (eval "$ac_compile") 2>conftest.er1
8954 ac_status=$?
8955 grep -v '^ *+' conftest.er1 >conftest.err
8956 rm -f conftest.er1
8957 cat conftest.err >&5
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 (exit $ac_status); } &&
8960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8961 { (case "(($ac_try" in
8962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8963 *) ac_try_echo=$ac_try;;
8964esac
8965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8966 (eval "$ac_try") 2>&5
8967 ac_status=$?
8968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969 (exit $ac_status); }; } &&
8970 { ac_try='test -s conftest.$ac_objext'
8971 { (case "(($ac_try" in
8972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8973 *) ac_try_echo=$ac_try;;
8974esac
8975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8976 (eval "$ac_try") 2>&5
8977 ac_status=$?
8978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008980 eval "$as_ac_Header=yes"
8981else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008982 echo "$as_me: failed program was:" >&5
8983sed 's/^/| /' conftest.$ac_ext >&5
8984
8985 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008986fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008987
Reid Spencera773bd52006-08-04 18:18:08 +00008988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008989fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008990ac_res=`eval echo '${'$as_ac_Header'}'`
8991 { echo "$as_me:$LINENO: result: $ac_res" >&5
8992echo "${ECHO_T}$ac_res" >&6; }
8993if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008994 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008995#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008996_ACEOF
8997
8998ac_header_dirent=$ac_hdr; break
8999fi
9000
9001done
9002# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9003if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009004 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9005echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9006if test "${ac_cv_search_opendir+set}" = set; then
9007 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009008else
9009 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009010cat >conftest.$ac_ext <<_ACEOF
9011/* confdefs.h. */
9012_ACEOF
9013cat confdefs.h >>conftest.$ac_ext
9014cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009015/* end confdefs.h. */
9016
Reid Spencera773bd52006-08-04 18:18:08 +00009017/* Override any GCC internal prototype to avoid an error.
9018 Use char because int might match the return type of a GCC
9019 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009020#ifdef __cplusplus
9021extern "C"
9022#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009023char opendir ();
9024int
9025main ()
9026{
Reid Spencera773bd52006-08-04 18:18:08 +00009027return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009028 ;
9029 return 0;
9030}
9031_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009032for ac_lib in '' dir; do
9033 if test -z "$ac_lib"; then
9034 ac_res="none required"
9035 else
9036 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009037 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00009038 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009039 rm -f conftest.$ac_objext conftest$ac_exeext
9040if { (ac_try="$ac_link"
9041case "(($ac_try" in
9042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9043 *) ac_try_echo=$ac_try;;
9044esac
9045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9046 (eval "$ac_link") 2>conftest.er1
9047 ac_status=$?
9048 grep -v '^ *+' conftest.er1 >conftest.err
9049 rm -f conftest.er1
9050 cat conftest.err >&5
9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052 (exit $ac_status); } &&
9053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9054 { (case "(($ac_try" in
9055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9056 *) ac_try_echo=$ac_try;;
9057esac
9058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9059 (eval "$ac_try") 2>&5
9060 ac_status=$?
9061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062 (exit $ac_status); }; } &&
9063 { ac_try='test -s conftest$ac_exeext'
9064 { (case "(($ac_try" in
9065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9066 *) ac_try_echo=$ac_try;;
9067esac
9068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9069 (eval "$ac_try") 2>&5
9070 ac_status=$?
9071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009073 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009074else
9075 echo "$as_me: failed program was:" >&5
9076sed 's/^/| /' conftest.$ac_ext >&5
9077
9078
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009079fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009080
Bill Wendlingebcceee2009-04-18 11:20:33 +00009081rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009082 conftest$ac_exeext
9083 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009084 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009085fi
John Criswell7a73b802003-06-30 21:59:07 +00009086done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009087if test "${ac_cv_search_opendir+set}" = set; then
9088 :
Reid Spencera773bd52006-08-04 18:18:08 +00009089else
9090 ac_cv_search_opendir=no
9091fi
9092rm conftest.$ac_ext
9093LIBS=$ac_func_search_save_LIBS
9094fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009095{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9096echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009097ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009098if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009099 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00009100
Reid Spencera773bd52006-08-04 18:18:08 +00009101fi
9102
9103else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009104 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9105echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9106if test "${ac_cv_search_opendir+set}" = set; then
9107 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009108else
9109 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009110cat >conftest.$ac_ext <<_ACEOF
9111/* confdefs.h. */
9112_ACEOF
9113cat confdefs.h >>conftest.$ac_ext
9114cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009115/* end confdefs.h. */
9116
9117/* Override any GCC internal prototype to avoid an error.
9118 Use char because int might match the return type of a GCC
9119 builtin and then its argument prototype would still apply. */
9120#ifdef __cplusplus
9121extern "C"
9122#endif
9123char opendir ();
9124int
9125main ()
9126{
9127return opendir ();
9128 ;
9129 return 0;
9130}
9131_ACEOF
9132for ac_lib in '' x; do
9133 if test -z "$ac_lib"; then
9134 ac_res="none required"
9135 else
9136 ac_res=-l$ac_lib
9137 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9138 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009139 rm -f conftest.$ac_objext conftest$ac_exeext
9140if { (ac_try="$ac_link"
9141case "(($ac_try" in
9142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9143 *) ac_try_echo=$ac_try;;
9144esac
9145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9146 (eval "$ac_link") 2>conftest.er1
9147 ac_status=$?
9148 grep -v '^ *+' conftest.er1 >conftest.err
9149 rm -f conftest.er1
9150 cat conftest.err >&5
9151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152 (exit $ac_status); } &&
9153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9154 { (case "(($ac_try" in
9155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9156 *) ac_try_echo=$ac_try;;
9157esac
9158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9159 (eval "$ac_try") 2>&5
9160 ac_status=$?
9161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162 (exit $ac_status); }; } &&
9163 { ac_try='test -s conftest$ac_exeext'
9164 { (case "(($ac_try" in
9165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9166 *) ac_try_echo=$ac_try;;
9167esac
9168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9169 (eval "$ac_try") 2>&5
9170 ac_status=$?
9171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009173 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009174else
9175 echo "$as_me: failed program was:" >&5
9176sed 's/^/| /' conftest.$ac_ext >&5
9177
9178
Reid Spencera773bd52006-08-04 18:18:08 +00009179fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009180
Bill Wendlingebcceee2009-04-18 11:20:33 +00009181rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009182 conftest$ac_exeext
9183 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009184 break
9185fi
9186done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009187if test "${ac_cv_search_opendir+set}" = set; then
9188 :
Reid Spencera773bd52006-08-04 18:18:08 +00009189else
9190 ac_cv_search_opendir=no
9191fi
9192rm conftest.$ac_ext
9193LIBS=$ac_func_search_save_LIBS
9194fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009195{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9196echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009197ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009198if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009199 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9200
9201fi
9202
9203fi
John Criswell7a73b802003-06-30 21:59:07 +00009204
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009205
John Criswell7a73b802003-06-30 21:59:07 +00009206for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009207do
9208as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9209if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9210 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9211echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9212if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9213 echo $ECHO_N "(cached) $ECHO_C" >&6
9214fi
9215ac_res=`eval echo '${'$as_ac_Header'}'`
9216 { echo "$as_me:$LINENO: result: $ac_res" >&5
9217echo "${ECHO_T}$ac_res" >&6; }
9218else
9219 # Is the header compilable?
9220{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9221echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9222cat >conftest.$ac_ext <<_ACEOF
9223/* confdefs.h. */
9224_ACEOF
9225cat confdefs.h >>conftest.$ac_ext
9226cat >>conftest.$ac_ext <<_ACEOF
9227/* end confdefs.h. */
9228$ac_includes_default
9229#include <$ac_header>
9230_ACEOF
9231rm -f conftest.$ac_objext
9232if { (ac_try="$ac_compile"
9233case "(($ac_try" in
9234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9235 *) ac_try_echo=$ac_try;;
9236esac
9237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9238 (eval "$ac_compile") 2>conftest.er1
9239 ac_status=$?
9240 grep -v '^ *+' conftest.er1 >conftest.err
9241 rm -f conftest.er1
9242 cat conftest.err >&5
9243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244 (exit $ac_status); } &&
9245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9246 { (case "(($ac_try" in
9247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9248 *) ac_try_echo=$ac_try;;
9249esac
9250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9251 (eval "$ac_try") 2>&5
9252 ac_status=$?
9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); }; } &&
9255 { ac_try='test -s conftest.$ac_objext'
9256 { (case "(($ac_try" in
9257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9258 *) ac_try_echo=$ac_try;;
9259esac
9260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9261 (eval "$ac_try") 2>&5
9262 ac_status=$?
9263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264 (exit $ac_status); }; }; then
9265 ac_header_compiler=yes
9266else
9267 echo "$as_me: failed program was:" >&5
9268sed 's/^/| /' conftest.$ac_ext >&5
9269
9270 ac_header_compiler=no
9271fi
9272
9273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9274{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9275echo "${ECHO_T}$ac_header_compiler" >&6; }
9276
9277# Is the header present?
9278{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9279echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9280cat >conftest.$ac_ext <<_ACEOF
9281/* confdefs.h. */
9282_ACEOF
9283cat confdefs.h >>conftest.$ac_ext
9284cat >>conftest.$ac_ext <<_ACEOF
9285/* end confdefs.h. */
9286#include <$ac_header>
9287_ACEOF
9288if { (ac_try="$ac_cpp conftest.$ac_ext"
9289case "(($ac_try" in
9290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9291 *) ac_try_echo=$ac_try;;
9292esac
9293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9294 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9295 ac_status=$?
9296 grep -v '^ *+' conftest.er1 >conftest.err
9297 rm -f conftest.er1
9298 cat conftest.err >&5
9299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300 (exit $ac_status); } >/dev/null; then
9301 if test -s conftest.err; then
9302 ac_cpp_err=$ac_c_preproc_warn_flag
9303 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9304 else
9305 ac_cpp_err=
9306 fi
9307else
9308 ac_cpp_err=yes
9309fi
9310if test -z "$ac_cpp_err"; then
9311 ac_header_preproc=yes
9312else
9313 echo "$as_me: failed program was:" >&5
9314sed 's/^/| /' conftest.$ac_ext >&5
9315
9316 ac_header_preproc=no
9317fi
9318
9319rm -f conftest.err conftest.$ac_ext
9320{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9321echo "${ECHO_T}$ac_header_preproc" >&6; }
9322
9323# So? What about this header?
9324case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9325 yes:no: )
9326 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9327echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9328 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9329echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9330 ac_header_preproc=yes
9331 ;;
9332 no:yes:* )
9333 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9334echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9335 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9336echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9337 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9338echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9339 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9340echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9341 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9342echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9343 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9344echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9345 ( cat <<\_ASBOX
9346## ----------------------------------- ##
9347## Report this to llvmbugs@cs.uiuc.edu ##
9348## ----------------------------------- ##
9349_ASBOX
9350 ) | sed "s/^/$as_me: WARNING: /" >&2
9351 ;;
9352esac
9353{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9354echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9355if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9356 echo $ECHO_N "(cached) $ECHO_C" >&6
9357else
9358 eval "$as_ac_Header=\$ac_header_preproc"
9359fi
9360ac_res=`eval echo '${'$as_ac_Header'}'`
9361 { echo "$as_me:$LINENO: result: $ac_res" >&5
9362echo "${ECHO_T}$ac_res" >&6; }
9363
9364fi
9365if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00009366 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009367#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00009368_ACEOF
9369
9370fi
9371
9372done
9373
Reid Spencera773bd52006-08-04 18:18:08 +00009374# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009375if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009376 enableval=$enable_ltdl_install;
9377fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009378
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009379
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009380
9381
9382if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009383 INSTALL_LTDL_TRUE=
9384 INSTALL_LTDL_FALSE='#'
9385else
9386 INSTALL_LTDL_TRUE='#'
9387 INSTALL_LTDL_FALSE=
9388fi
9389
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009390
9391
9392if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009393 CONVENIENCE_LTDL_TRUE=
9394 CONVENIENCE_LTDL_FALSE='#'
9395else
9396 CONVENIENCE_LTDL_TRUE='#'
9397 CONVENIENCE_LTDL_FALSE=
9398fi
9399
9400
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009401{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9402echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009403library_names_spec=
9404libname_spec='lib$name'
9405soname_spec=
9406shrext_cmds=".so"
9407postinstall_cmds=
9408postuninstall_cmds=
9409finish_cmds=
9410finish_eval=
9411shlibpath_var=
9412shlibpath_overrides_runpath=unknown
9413version_type=none
9414dynamic_linker="$host_os ld.so"
9415sys_lib_dlsearch_path_spec="/lib /usr/lib"
9416if test "$GCC" = yes; then
9417 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9418 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9419 # if the path contains ";" then we assume it to be the separator
9420 # otherwise default to the standard path separator (i.e. ":") - it is
9421 # assumed that no part of a normal pathname contains ";" but that should
9422 # okay in the real world where ";" in dirpaths is itself problematic.
9423 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9424 else
9425 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9426 fi
9427else
9428 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9429fi
9430need_lib_prefix=unknown
9431hardcode_into_libs=no
9432
9433# when you set need_version to no, make sure it does not cause -set_version
9434# flags to be left without arguments
9435need_version=unknown
9436
9437case $host_os in
9438aix3*)
9439 version_type=linux
9440 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9441 shlibpath_var=LIBPATH
9442
9443 # AIX 3 has no versioning support, so we append a major version to the name.
9444 soname_spec='${libname}${release}${shared_ext}$major'
9445 ;;
9446
9447aix4* | aix5*)
9448 version_type=linux
9449 need_lib_prefix=no
9450 need_version=no
9451 hardcode_into_libs=yes
9452 if test "$host_cpu" = ia64; then
9453 # AIX 5 supports IA64
9454 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9455 shlibpath_var=LD_LIBRARY_PATH
9456 else
9457 # With GCC up to 2.95.x, collect2 would create an import file
9458 # for dependence libraries. The import file would start with
9459 # the line `#! .'. This would cause the generated library to
9460 # depend on `.', always an invalid library. This was fixed in
9461 # development snapshots of GCC prior to 3.0.
9462 case $host_os in
9463 aix4 | aix4.[01] | aix4.[01].*)
9464 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9465 echo ' yes '
9466 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9467 :
9468 else
9469 can_build_shared=no
9470 fi
9471 ;;
9472 esac
9473 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9474 # soname into executable. Probably we can add versioning support to
9475 # collect2, so additional links can be useful in future.
9476 if test "$aix_use_runtimelinking" = yes; then
9477 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9478 # instead of lib<name>.a to let people know that these are not
9479 # typical AIX shared libraries.
9480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9481 else
9482 # We preserve .a as extension for shared libraries through AIX4.2
9483 # and later when we are not doing run time linking.
9484 library_names_spec='${libname}${release}.a $libname.a'
9485 soname_spec='${libname}${release}${shared_ext}$major'
9486 fi
9487 shlibpath_var=LIBPATH
9488 fi
9489 ;;
9490
9491amigaos*)
9492 library_names_spec='$libname.ixlibrary $libname.a'
9493 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9494 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'
9495 ;;
9496
9497beos*)
9498 library_names_spec='${libname}${shared_ext}'
9499 dynamic_linker="$host_os ld.so"
9500 shlibpath_var=LIBRARY_PATH
9501 ;;
9502
9503bsdi[45]*)
9504 version_type=linux
9505 need_version=no
9506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9507 soname_spec='${libname}${release}${shared_ext}$major'
9508 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9509 shlibpath_var=LD_LIBRARY_PATH
9510 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9511 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9512 # the default ld.so.conf also contains /usr/contrib/lib and
9513 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9514 # libtool to hard-code these into programs
9515 ;;
9516
9517cygwin* | mingw* | pw32*)
9518 version_type=windows
9519 shrext_cmds=".dll"
9520 need_version=no
9521 need_lib_prefix=no
9522
9523 case $GCC,$host_os in
9524 yes,cygwin* | yes,mingw* | yes,pw32*)
9525 library_names_spec='$libname.dll.a'
9526 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9527 postinstall_cmds='base_file=`basename \${file}`~
9528 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9529 dldir=$destdir/`dirname \$dlpath`~
9530 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009531 $install_prog $dir/$dlname \$dldir/$dlname~
9532 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009533 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9534 dlpath=$dir/\$dldll~
9535 $rm \$dlpath'
9536 shlibpath_overrides_runpath=yes
9537
9538 case $host_os in
9539 cygwin*)
9540 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9541 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9542 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9543 ;;
9544 mingw*)
9545 # MinGW DLLs use traditional 'lib' prefix
9546 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9547 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9548 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9549 # It is most probably a Windows format PATH printed by
9550 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9551 # path with ; separators, and with drive letters. We can handle the
9552 # drive letters (cygwin fileutils understands them), so leave them,
9553 # especially as we might pass files found there to a mingw objdump,
9554 # which wouldn't understand a cygwinified path. Ahh.
9555 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9556 else
9557 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9558 fi
9559 ;;
9560 pw32*)
9561 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009562 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 +00009563 ;;
9564 esac
9565 ;;
9566
9567 *)
9568 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9569 ;;
9570 esac
9571 dynamic_linker='Win32 ld.exe'
9572 # FIXME: first we should search . and the directory the executable is in
9573 shlibpath_var=PATH
9574 ;;
9575
9576darwin* | rhapsody*)
9577 dynamic_linker="$host_os dyld"
9578 version_type=darwin
9579 need_lib_prefix=no
9580 need_version=no
9581 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9582 soname_spec='${libname}${release}${major}$shared_ext'
9583 shlibpath_overrides_runpath=yes
9584 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009585 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009586 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9587 if test "$GCC" = yes; then
9588 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"`
9589 else
9590 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9591 fi
9592 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9593 ;;
9594
9595dgux*)
9596 version_type=linux
9597 need_lib_prefix=no
9598 need_version=no
9599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9600 soname_spec='${libname}${release}${shared_ext}$major'
9601 shlibpath_var=LD_LIBRARY_PATH
9602 ;;
9603
9604freebsd1*)
9605 dynamic_linker=no
9606 ;;
9607
9608kfreebsd*-gnu)
9609 version_type=linux
9610 need_lib_prefix=no
9611 need_version=no
9612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9613 soname_spec='${libname}${release}${shared_ext}$major'
9614 shlibpath_var=LD_LIBRARY_PATH
9615 shlibpath_overrides_runpath=no
9616 hardcode_into_libs=yes
9617 dynamic_linker='GNU ld.so'
9618 ;;
9619
Reid Spencera773bd52006-08-04 18:18:08 +00009620freebsd* | dragonfly*)
9621 # DragonFly does not have aout. When/if they implement a new
9622 # versioning mechanism, adjust this.
9623 if test -x /usr/bin/objformat; then
9624 objformat=`/usr/bin/objformat`
9625 else
9626 case $host_os in
9627 freebsd[123]*) objformat=aout ;;
9628 *) objformat=elf ;;
9629 esac
9630 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009631 version_type=freebsd-$objformat
9632 case $version_type in
9633 freebsd-elf*)
9634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9635 need_version=no
9636 need_lib_prefix=no
9637 ;;
9638 freebsd-*)
9639 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9640 need_version=yes
9641 ;;
9642 esac
9643 shlibpath_var=LD_LIBRARY_PATH
9644 case $host_os in
9645 freebsd2*)
9646 shlibpath_overrides_runpath=yes
9647 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009648 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009649 shlibpath_overrides_runpath=yes
9650 hardcode_into_libs=yes
9651 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009652 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9653 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009654 shlibpath_overrides_runpath=no
9655 hardcode_into_libs=yes
9656 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009657 freebsd*) # from 4.6 on
9658 shlibpath_overrides_runpath=yes
9659 hardcode_into_libs=yes
9660 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009661 esac
9662 ;;
9663
9664gnu*)
9665 version_type=linux
9666 need_lib_prefix=no
9667 need_version=no
9668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9669 soname_spec='${libname}${release}${shared_ext}$major'
9670 shlibpath_var=LD_LIBRARY_PATH
9671 hardcode_into_libs=yes
9672 ;;
9673
9674hpux9* | hpux10* | hpux11*)
9675 # Give a soname corresponding to the major version so that dld.sl refuses to
9676 # link against other versions.
9677 version_type=sunos
9678 need_lib_prefix=no
9679 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009680 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009681 ia64*)
9682 shrext_cmds='.so'
9683 hardcode_into_libs=yes
9684 dynamic_linker="$host_os dld.so"
9685 shlibpath_var=LD_LIBRARY_PATH
9686 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9688 soname_spec='${libname}${release}${shared_ext}$major'
9689 if test "X$HPUX_IA64_MODE" = X32; then
9690 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9691 else
9692 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9693 fi
9694 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9695 ;;
9696 hppa*64*)
9697 shrext_cmds='.sl'
9698 hardcode_into_libs=yes
9699 dynamic_linker="$host_os dld.sl"
9700 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9701 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9703 soname_spec='${libname}${release}${shared_ext}$major'
9704 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9705 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9706 ;;
9707 *)
9708 shrext_cmds='.sl'
9709 dynamic_linker="$host_os dld.sl"
9710 shlibpath_var=SHLIB_PATH
9711 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9713 soname_spec='${libname}${release}${shared_ext}$major'
9714 ;;
9715 esac
9716 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9717 postinstall_cmds='chmod 555 $lib'
9718 ;;
9719
Reid Spencera773bd52006-08-04 18:18:08 +00009720interix3*)
9721 version_type=linux
9722 need_lib_prefix=no
9723 need_version=no
9724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9725 soname_spec='${libname}${release}${shared_ext}$major'
9726 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9727 shlibpath_var=LD_LIBRARY_PATH
9728 shlibpath_overrides_runpath=no
9729 hardcode_into_libs=yes
9730 ;;
9731
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009732irix5* | irix6* | nonstopux*)
9733 case $host_os in
9734 nonstopux*) version_type=nonstopux ;;
9735 *)
9736 if test "$lt_cv_prog_gnu_ld" = yes; then
9737 version_type=linux
9738 else
9739 version_type=irix
9740 fi ;;
9741 esac
9742 need_lib_prefix=no
9743 need_version=no
9744 soname_spec='${libname}${release}${shared_ext}$major'
9745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9746 case $host_os in
9747 irix5* | nonstopux*)
9748 libsuff= shlibsuff=
9749 ;;
9750 *)
9751 case $LD in # libtool.m4 will add one of these switches to LD
9752 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9753 libsuff= shlibsuff= libmagic=32-bit;;
9754 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9755 libsuff=32 shlibsuff=N32 libmagic=N32;;
9756 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9757 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9758 *) libsuff= shlibsuff= libmagic=never-match;;
9759 esac
9760 ;;
9761 esac
9762 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9763 shlibpath_overrides_runpath=no
9764 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9765 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9766 hardcode_into_libs=yes
9767 ;;
9768
9769# No shared lib support for Linux oldld, aout, or coff.
9770linux*oldld* | linux*aout* | linux*coff*)
9771 dynamic_linker=no
9772 ;;
9773
9774# This must be Linux ELF.
9775linux*)
9776 version_type=linux
9777 need_lib_prefix=no
9778 need_version=no
9779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9780 soname_spec='${libname}${release}${shared_ext}$major'
9781 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9782 shlibpath_var=LD_LIBRARY_PATH
9783 shlibpath_overrides_runpath=no
9784 # This implies no fast_install, which is unacceptable.
9785 # Some rework will be needed to allow for fast_install
9786 # before this can be enabled.
9787 hardcode_into_libs=yes
9788
9789 # Append ld.so.conf contents to the search path
9790 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009791 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 +00009792 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9793 fi
9794
9795 # We used to test for /lib/ld.so.1 and disable shared libraries on
9796 # powerpc, because MkLinux only supported shared libraries with the
9797 # GNU dynamic linker. Since this was broken with cross compilers,
9798 # most powerpc-linux boxes support dynamic linking these days and
9799 # people can always --disable-shared, the test was removed, and we
9800 # assume the GNU/Linux dynamic linker is in use.
9801 dynamic_linker='GNU/Linux ld.so'
9802 ;;
9803
9804knetbsd*-gnu)
9805 version_type=linux
9806 need_lib_prefix=no
9807 need_version=no
9808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9809 soname_spec='${libname}${release}${shared_ext}$major'
9810 shlibpath_var=LD_LIBRARY_PATH
9811 shlibpath_overrides_runpath=no
9812 hardcode_into_libs=yes
9813 dynamic_linker='GNU ld.so'
9814 ;;
9815
9816netbsd*)
9817 version_type=sunos
9818 need_lib_prefix=no
9819 need_version=no
9820 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9822 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9823 dynamic_linker='NetBSD (a.out) ld.so'
9824 else
9825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9826 soname_spec='${libname}${release}${shared_ext}$major'
9827 dynamic_linker='NetBSD ld.elf_so'
9828 fi
9829 shlibpath_var=LD_LIBRARY_PATH
9830 shlibpath_overrides_runpath=yes
9831 hardcode_into_libs=yes
9832 ;;
9833
9834newsos6)
9835 version_type=linux
9836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9837 shlibpath_var=LD_LIBRARY_PATH
9838 shlibpath_overrides_runpath=yes
9839 ;;
9840
9841nto-qnx*)
9842 version_type=linux
9843 need_lib_prefix=no
9844 need_version=no
9845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9846 soname_spec='${libname}${release}${shared_ext}$major'
9847 shlibpath_var=LD_LIBRARY_PATH
9848 shlibpath_overrides_runpath=yes
9849 ;;
9850
9851openbsd*)
9852 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009853 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009854 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009855 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9856 case $host_os in
9857 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9858 *) need_version=no ;;
9859 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9861 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9862 shlibpath_var=LD_LIBRARY_PATH
9863 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9864 case $host_os in
9865 openbsd2.[89] | openbsd2.[89].*)
9866 shlibpath_overrides_runpath=no
9867 ;;
9868 *)
9869 shlibpath_overrides_runpath=yes
9870 ;;
9871 esac
9872 else
9873 shlibpath_overrides_runpath=yes
9874 fi
9875 ;;
9876
9877os2*)
9878 libname_spec='$name'
9879 shrext_cmds=".dll"
9880 need_lib_prefix=no
9881 library_names_spec='$libname${shared_ext} $libname.a'
9882 dynamic_linker='OS/2 ld.exe'
9883 shlibpath_var=LIBPATH
9884 ;;
9885
9886osf3* | osf4* | osf5*)
9887 version_type=osf
9888 need_lib_prefix=no
9889 need_version=no
9890 soname_spec='${libname}${release}${shared_ext}$major'
9891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9892 shlibpath_var=LD_LIBRARY_PATH
9893 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9894 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9895 ;;
9896
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009897solaris*)
9898 version_type=linux
9899 need_lib_prefix=no
9900 need_version=no
9901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9902 soname_spec='${libname}${release}${shared_ext}$major'
9903 shlibpath_var=LD_LIBRARY_PATH
9904 shlibpath_overrides_runpath=yes
9905 hardcode_into_libs=yes
9906 # ldd complains unless libraries are executable
9907 postinstall_cmds='chmod +x $lib'
9908 ;;
9909
9910sunos4*)
9911 version_type=sunos
9912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9913 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9914 shlibpath_var=LD_LIBRARY_PATH
9915 shlibpath_overrides_runpath=yes
9916 if test "$with_gnu_ld" = yes; then
9917 need_lib_prefix=no
9918 fi
9919 need_version=yes
9920 ;;
9921
Reid Spencera773bd52006-08-04 18:18:08 +00009922sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009923 version_type=linux
9924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9925 soname_spec='${libname}${release}${shared_ext}$major'
9926 shlibpath_var=LD_LIBRARY_PATH
9927 case $host_vendor in
9928 sni)
9929 shlibpath_overrides_runpath=no
9930 need_lib_prefix=no
9931 export_dynamic_flag_spec='${wl}-Blargedynsym'
9932 runpath_var=LD_RUN_PATH
9933 ;;
9934 siemens)
9935 need_lib_prefix=no
9936 ;;
9937 motorola)
9938 need_lib_prefix=no
9939 need_version=no
9940 shlibpath_overrides_runpath=no
9941 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9942 ;;
9943 esac
9944 ;;
9945
9946sysv4*MP*)
9947 if test -d /usr/nec ;then
9948 version_type=linux
9949 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9950 soname_spec='$libname${shared_ext}.$major'
9951 shlibpath_var=LD_LIBRARY_PATH
9952 fi
9953 ;;
9954
Reid Spencera773bd52006-08-04 18:18:08 +00009955sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9956 version_type=freebsd-elf
9957 need_lib_prefix=no
9958 need_version=no
9959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9960 soname_spec='${libname}${release}${shared_ext}$major'
9961 shlibpath_var=LD_LIBRARY_PATH
9962 hardcode_into_libs=yes
9963 if test "$with_gnu_ld" = yes; then
9964 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9965 shlibpath_overrides_runpath=no
9966 else
9967 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9968 shlibpath_overrides_runpath=yes
9969 case $host_os in
9970 sco3.2v5*)
9971 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9972 ;;
9973 esac
9974 fi
9975 sys_lib_dlsearch_path_spec='/usr/lib'
9976 ;;
9977
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009978uts4*)
9979 version_type=linux
9980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9981 soname_spec='${libname}${release}${shared_ext}$major'
9982 shlibpath_var=LD_LIBRARY_PATH
9983 ;;
9984
9985*)
9986 dynamic_linker=no
9987 ;;
9988esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009989{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9990echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009991test "$dynamic_linker" = no && can_build_shared=no
9992
Reid Spencera773bd52006-08-04 18:18:08 +00009993variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9994if test "$GCC" = yes; then
9995 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9996fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009997
Reid Spencera773bd52006-08-04 18:18:08 +00009998
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009999{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10000echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10001if test "${libltdl_cv_shlibext+set}" = set; then
10002 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010003else
10004
10005module=yes
10006eval libltdl_cv_shlibext=$shrext_cmds
10007
10008fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010009{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10010echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010011if test -n "$libltdl_cv_shlibext"; then
10012
10013cat >>confdefs.h <<_ACEOF
10014#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10015_ACEOF
10016
10017fi
10018
10019
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010020{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10021echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10022if test "${libltdl_cv_shlibpath_var+set}" = set; then
10023 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010024else
10025 libltdl_cv_shlibpath_var="$shlibpath_var"
10026fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010027{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10028echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010029if test -n "$libltdl_cv_shlibpath_var"; then
10030
10031cat >>confdefs.h <<_ACEOF
10032#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10033_ACEOF
10034
10035fi
10036
10037
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010038{ echo "$as_me:$LINENO: checking for the default library search path" >&5
10039echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10040if test "${libltdl_cv_sys_search_path+set}" = set; then
10041 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010042else
10043 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10044fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010045{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10046echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010047if test -n "$libltdl_cv_sys_search_path"; then
10048 sys_search_path=
10049 for dir in $libltdl_cv_sys_search_path; do
10050 if test -z "$sys_search_path"; then
10051 sys_search_path="$dir"
10052 else
10053 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10054 fi
10055 done
10056
10057cat >>confdefs.h <<_ACEOF
10058#define LTDL_SYSSEARCHPATH "$sys_search_path"
10059_ACEOF
10060
10061fi
10062
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010063{ echo "$as_me:$LINENO: checking for objdir" >&5
10064echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10065if test "${libltdl_cv_objdir+set}" = set; then
10066 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010067else
10068 libltdl_cv_objdir="$objdir"
10069 if test -n "$objdir"; then
10070 :
10071 else
10072 rm -f .libs 2>/dev/null
10073 mkdir .libs 2>/dev/null
10074 if test -d .libs; then
10075 libltdl_cv_objdir=.libs
10076 else
10077 # MS-DOS does not allow filenames that begin with a dot.
10078 libltdl_cv_objdir=_libs
10079 fi
10080 rmdir .libs 2>/dev/null
10081 fi
10082
10083fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010084{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10085echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010086
10087cat >>confdefs.h <<_ACEOF
10088#define LTDL_OBJDIR "$libltdl_cv_objdir/"
10089_ACEOF
10090
10091
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010092
10093
10094
10095
10096# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010097{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10098echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10099if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10100 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010101else
10102
10103# These are sane defaults that work on at least a few old systems.
10104# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10105
10106# Character class describing NM global symbol codes.
10107symcode='[BCDEGRST]'
10108
10109# Regexp to match symbols that can be accessed directly from C.
10110sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10111
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010112# Transform an extracted symbol line into a proper C declaration
10113lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10114
10115# Transform an extracted symbol line into symbol name and symbol address
10116lt_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'"
10117
10118# Define system-specific variables.
10119case $host_os in
10120aix*)
10121 symcode='[BCDT]'
10122 ;;
10123cygwin* | mingw* | pw32*)
10124 symcode='[ABCDGISTW]'
10125 ;;
10126hpux*) # Its linker distinguishes data from code symbols
10127 if test "$host_cpu" = ia64; then
10128 symcode='[ABCDEGRST]'
10129 fi
10130 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10131 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'"
10132 ;;
10133linux*)
10134 if test "$host_cpu" = ia64; then
10135 symcode='[ABCDGIRSTW]'
10136 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10137 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'"
10138 fi
10139 ;;
10140irix* | nonstopux*)
10141 symcode='[BCDEGRST]'
10142 ;;
10143osf*)
10144 symcode='[BCDEGQRST]'
10145 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010146solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010147 symcode='[BDRT]'
10148 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010149sco3.2v5*)
10150 symcode='[DT]'
10151 ;;
10152sysv4.2uw2*)
10153 symcode='[DT]'
10154 ;;
10155sysv5* | sco5v6* | unixware* | OpenUNIX*)
10156 symcode='[ABDT]'
10157 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010158sysv4)
10159 symcode='[DFNSTU]'
10160 ;;
10161esac
10162
10163# Handle CRLF in mingw tool chain
10164opt_cr=
10165case $build_os in
10166mingw*)
10167 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10168 ;;
10169esac
10170
10171# If we're using GNU nm, then use its standard symbol codes.
10172case `$NM -V 2>&1` in
10173*GNU* | *'with BFD'*)
10174 symcode='[ABCDGIRSTW]' ;;
10175esac
10176
10177# Try without a prefix undercore, then with it.
10178for ac_symprfx in "" "_"; do
10179
Reid Spencera773bd52006-08-04 18:18:08 +000010180 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10181 symxfrm="\\1 $ac_symprfx\\2 \\2"
10182
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010183 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000010184 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 +000010185
10186 # Check to see that the pipe works correctly.
10187 pipe_works=no
10188
10189 rm -f conftest*
10190 cat > conftest.$ac_ext <<EOF
10191#ifdef __cplusplus
10192extern "C" {
10193#endif
10194char nm_test_var;
10195void nm_test_func(){}
10196#ifdef __cplusplus
10197}
10198#endif
10199int main(){nm_test_var='a';nm_test_func();return(0);}
10200EOF
10201
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010203 (eval $ac_compile) 2>&5
10204 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010207 # Now try to grab the symbols.
10208 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010209 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 +000010210 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10211 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010214 # Try sorting and uniquifying the output.
10215 if sort "$nlist" | uniq > "$nlist"T; then
10216 mv -f "$nlist"T "$nlist"
10217 else
10218 rm -f "$nlist"T
10219 fi
10220
10221 # Make sure that we snagged all the symbols we need.
10222 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10223 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10224 cat <<EOF > conftest.$ac_ext
10225#ifdef __cplusplus
10226extern "C" {
10227#endif
10228
10229EOF
10230 # Now generate the symbol file.
10231 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10232
10233 cat <<EOF >> conftest.$ac_ext
10234#if defined (__STDC__) && __STDC__
10235# define lt_ptr_t void *
10236#else
10237# define lt_ptr_t char *
10238# define const
10239#endif
10240
10241/* The mapping between symbol names and symbols. */
10242const struct {
10243 const char *name;
10244 lt_ptr_t address;
10245}
10246lt_preloaded_symbols[] =
10247{
10248EOF
10249 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10250 cat <<\EOF >> conftest.$ac_ext
10251 {0, (lt_ptr_t) 0}
10252};
10253
10254#ifdef __cplusplus
10255}
10256#endif
10257EOF
10258 # Now try linking the two files.
10259 mv conftest.$ac_objext conftstm.$ac_objext
10260 lt_save_LIBS="$LIBS"
10261 lt_save_CFLAGS="$CFLAGS"
10262 LIBS="conftstm.$ac_objext"
10263 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010265 (eval $ac_link) 2>&5
10266 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010269 pipe_works=yes
10270 fi
10271 LIBS="$lt_save_LIBS"
10272 CFLAGS="$lt_save_CFLAGS"
10273 else
10274 echo "cannot find nm_test_func in $nlist" >&5
10275 fi
10276 else
10277 echo "cannot find nm_test_var in $nlist" >&5
10278 fi
10279 else
10280 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10281 fi
10282 else
10283 echo "$progname: failed program was:" >&5
10284 cat conftest.$ac_ext >&5
10285 fi
10286 rm -f conftest* conftst*
10287
10288 # Do not use the global_symbol_pipe unless it works.
10289 if test "$pipe_works" = yes; then
10290 break
10291 else
10292 lt_cv_sys_global_symbol_pipe=
10293 fi
10294done
10295
10296fi
10297
10298if test -z "$lt_cv_sys_global_symbol_pipe"; then
10299 lt_cv_sys_global_symbol_to_cdecl=
10300fi
10301if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010302 { echo "$as_me:$LINENO: result: failed" >&5
10303echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010304else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010305 { echo "$as_me:$LINENO: result: ok" >&5
10306echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010307fi
10308
10309
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010310{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10311echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10312if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10313 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010314else
10315 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10316 libltdl_cv_preloaded_symbols=yes
10317 else
10318 libltdl_cv_preloaded_symbols=no
10319 fi
10320
10321fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010322{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10323echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010324if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10325
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010326cat >>confdefs.h <<\_ACEOF
10327#define HAVE_PRELOADED_SYMBOLS 1
10328_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010329
10330fi
10331
10332LIBADD_DL=
10333
10334ac_ext=c
10335ac_cpp='$CPP $CPPFLAGS'
10336ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10337ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10338ac_compiler_gnu=$ac_cv_c_compiler_gnu
10339
10340
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010341{ echo "$as_me:$LINENO: checking for shl_load" >&5
10342echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10343if test "${ac_cv_func_shl_load+set}" = set; then
10344 echo $ECHO_N "(cached) $ECHO_C" >&6
10345else
10346 cat >conftest.$ac_ext <<_ACEOF
10347/* confdefs.h. */
10348_ACEOF
10349cat confdefs.h >>conftest.$ac_ext
10350cat >>conftest.$ac_ext <<_ACEOF
10351/* end confdefs.h. */
10352/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10354#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010355
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010356/* System header to define __stub macros and hopefully few prototypes,
10357 which can conflict with char shl_load (); below.
10358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10359 <limits.h> exists even on freestanding compilers. */
10360
10361#ifdef __STDC__
10362# include <limits.h>
10363#else
10364# include <assert.h>
10365#endif
10366
10367#undef shl_load
10368
10369/* Override any GCC internal prototype to avoid an error.
10370 Use char because int might match the return type of a GCC
10371 builtin and then its argument prototype would still apply. */
10372#ifdef __cplusplus
10373extern "C"
10374#endif
10375char shl_load ();
10376/* The GNU C library defines this for functions which it implements
10377 to always fail with ENOSYS. Some functions are actually named
10378 something starting with __ and the normal name is an alias. */
10379#if defined __stub_shl_load || defined __stub___shl_load
10380choke me
10381#endif
10382
10383int
10384main ()
10385{
10386return shl_load ();
10387 ;
10388 return 0;
10389}
10390_ACEOF
10391rm -f conftest.$ac_objext conftest$ac_exeext
10392if { (ac_try="$ac_link"
10393case "(($ac_try" in
10394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10395 *) ac_try_echo=$ac_try;;
10396esac
10397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10398 (eval "$ac_link") 2>conftest.er1
10399 ac_status=$?
10400 grep -v '^ *+' conftest.er1 >conftest.err
10401 rm -f conftest.er1
10402 cat conftest.err >&5
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); } &&
10405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10406 { (case "(($ac_try" in
10407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10408 *) ac_try_echo=$ac_try;;
10409esac
10410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10411 (eval "$ac_try") 2>&5
10412 ac_status=$?
10413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414 (exit $ac_status); }; } &&
10415 { ac_try='test -s conftest$ac_exeext'
10416 { (case "(($ac_try" in
10417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10418 *) ac_try_echo=$ac_try;;
10419esac
10420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10421 (eval "$ac_try") 2>&5
10422 ac_status=$?
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424 (exit $ac_status); }; }; then
10425 ac_cv_func_shl_load=yes
10426else
10427 echo "$as_me: failed program was:" >&5
10428sed 's/^/| /' conftest.$ac_ext >&5
10429
10430 ac_cv_func_shl_load=no
10431fi
10432
10433rm -f core conftest.err conftest.$ac_objext \
10434 conftest$ac_exeext conftest.$ac_ext
10435fi
10436{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10437echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10438if test $ac_cv_func_shl_load = yes; then
10439
10440cat >>confdefs.h <<\_ACEOF
10441#define HAVE_SHL_LOAD 1
10442_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010443
10444else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010445 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10446echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10447if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10448 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010449else
10450 ac_check_lib_save_LIBS=$LIBS
10451LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010452cat >conftest.$ac_ext <<_ACEOF
10453/* confdefs.h. */
10454_ACEOF
10455cat confdefs.h >>conftest.$ac_ext
10456cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010457/* end confdefs.h. */
10458
Reid Spencera773bd52006-08-04 18:18:08 +000010459/* Override any GCC internal prototype to avoid an error.
10460 Use char because int might match the return type of a GCC
10461 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010462#ifdef __cplusplus
10463extern "C"
10464#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010465char shl_load ();
10466int
10467main ()
10468{
Reid Spencera773bd52006-08-04 18:18:08 +000010469return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010470 ;
10471 return 0;
10472}
10473_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010474rm -f conftest.$ac_objext conftest$ac_exeext
10475if { (ac_try="$ac_link"
10476case "(($ac_try" in
10477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10478 *) ac_try_echo=$ac_try;;
10479esac
10480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10481 (eval "$ac_link") 2>conftest.er1
10482 ac_status=$?
10483 grep -v '^ *+' conftest.er1 >conftest.err
10484 rm -f conftest.er1
10485 cat conftest.err >&5
10486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487 (exit $ac_status); } &&
10488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10489 { (case "(($ac_try" in
10490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10491 *) ac_try_echo=$ac_try;;
10492esac
10493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10494 (eval "$ac_try") 2>&5
10495 ac_status=$?
10496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497 (exit $ac_status); }; } &&
10498 { ac_try='test -s conftest$ac_exeext'
10499 { (case "(($ac_try" in
10500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10501 *) ac_try_echo=$ac_try;;
10502esac
10503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10504 (eval "$ac_try") 2>&5
10505 ac_status=$?
10506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010508 ac_cv_lib_dld_shl_load=yes
10509else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010510 echo "$as_me: failed program was:" >&5
10511sed 's/^/| /' conftest.$ac_ext >&5
10512
10513 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010514fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010515
Bill Wendlingebcceee2009-04-18 11:20:33 +000010516rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010517 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010518LIBS=$ac_check_lib_save_LIBS
10519fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010520{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10521echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10522if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010523
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010524cat >>confdefs.h <<\_ACEOF
10525#define HAVE_SHL_LOAD 1
10526_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010527
10528 LIBADD_DL="$LIBADD_DL -ldld"
10529else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010530 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10531echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10532if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10533 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010534else
10535 ac_check_lib_save_LIBS=$LIBS
10536LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010537cat >conftest.$ac_ext <<_ACEOF
10538/* confdefs.h. */
10539_ACEOF
10540cat confdefs.h >>conftest.$ac_ext
10541cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010542/* end confdefs.h. */
10543
Reid Spencera773bd52006-08-04 18:18:08 +000010544/* Override any GCC internal prototype to avoid an error.
10545 Use char because int might match the return type of a GCC
10546 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010547#ifdef __cplusplus
10548extern "C"
10549#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010550char dlopen ();
10551int
10552main ()
10553{
Reid Spencera773bd52006-08-04 18:18:08 +000010554return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010555 ;
10556 return 0;
10557}
10558_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010559rm -f conftest.$ac_objext conftest$ac_exeext
10560if { (ac_try="$ac_link"
10561case "(($ac_try" in
10562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10563 *) ac_try_echo=$ac_try;;
10564esac
10565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10566 (eval "$ac_link") 2>conftest.er1
10567 ac_status=$?
10568 grep -v '^ *+' conftest.er1 >conftest.err
10569 rm -f conftest.er1
10570 cat conftest.err >&5
10571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572 (exit $ac_status); } &&
10573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10574 { (case "(($ac_try" in
10575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10576 *) ac_try_echo=$ac_try;;
10577esac
10578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10579 (eval "$ac_try") 2>&5
10580 ac_status=$?
10581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582 (exit $ac_status); }; } &&
10583 { ac_try='test -s conftest$ac_exeext'
10584 { (case "(($ac_try" in
10585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10586 *) ac_try_echo=$ac_try;;
10587esac
10588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10589 (eval "$ac_try") 2>&5
10590 ac_status=$?
10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010593 ac_cv_lib_dl_dlopen=yes
10594else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010595 echo "$as_me: failed program was:" >&5
10596sed 's/^/| /' conftest.$ac_ext >&5
10597
10598 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010599fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010600
Bill Wendlingebcceee2009-04-18 11:20:33 +000010601rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010602 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010603LIBS=$ac_check_lib_save_LIBS
10604fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010605{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10606echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10607if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010608
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010609cat >>confdefs.h <<\_ACEOF
10610#define HAVE_LIBDL 1
10611_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010612
10613 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10614else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010615 cat >conftest.$ac_ext <<_ACEOF
10616/* confdefs.h. */
10617_ACEOF
10618cat confdefs.h >>conftest.$ac_ext
10619cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010620/* end confdefs.h. */
10621#if HAVE_DLFCN_H
10622# include <dlfcn.h>
10623#endif
10624
10625int
10626main ()
10627{
10628dlopen(0, 0);
10629 ;
10630 return 0;
10631}
10632_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010633rm -f conftest.$ac_objext conftest$ac_exeext
10634if { (ac_try="$ac_link"
10635case "(($ac_try" in
10636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10637 *) ac_try_echo=$ac_try;;
10638esac
10639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10640 (eval "$ac_link") 2>conftest.er1
10641 ac_status=$?
10642 grep -v '^ *+' conftest.er1 >conftest.err
10643 rm -f conftest.er1
10644 cat conftest.err >&5
10645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646 (exit $ac_status); } &&
10647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10648 { (case "(($ac_try" in
10649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10650 *) ac_try_echo=$ac_try;;
10651esac
10652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10653 (eval "$ac_try") 2>&5
10654 ac_status=$?
10655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656 (exit $ac_status); }; } &&
10657 { ac_try='test -s conftest$ac_exeext'
10658 { (case "(($ac_try" in
10659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10660 *) ac_try_echo=$ac_try;;
10661esac
10662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10663 (eval "$ac_try") 2>&5
10664 ac_status=$?
10665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010667
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010668cat >>confdefs.h <<\_ACEOF
10669#define HAVE_LIBDL 1
10670_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010671 libltdl_cv_func_dlopen="yes"
10672else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010673 echo "$as_me: failed program was:" >&5
10674sed 's/^/| /' conftest.$ac_ext >&5
10675
10676 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10677echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10678if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10679 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010680else
10681 ac_check_lib_save_LIBS=$LIBS
10682LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010683cat >conftest.$ac_ext <<_ACEOF
10684/* confdefs.h. */
10685_ACEOF
10686cat confdefs.h >>conftest.$ac_ext
10687cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010688/* end confdefs.h. */
10689
Reid Spencera773bd52006-08-04 18:18:08 +000010690/* Override any GCC internal prototype to avoid an error.
10691 Use char because int might match the return type of a GCC
10692 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010693#ifdef __cplusplus
10694extern "C"
10695#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010696char dlopen ();
10697int
10698main ()
10699{
Reid Spencera773bd52006-08-04 18:18:08 +000010700return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010701 ;
10702 return 0;
10703}
10704_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010705rm -f conftest.$ac_objext conftest$ac_exeext
10706if { (ac_try="$ac_link"
10707case "(($ac_try" in
10708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10709 *) ac_try_echo=$ac_try;;
10710esac
10711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10712 (eval "$ac_link") 2>conftest.er1
10713 ac_status=$?
10714 grep -v '^ *+' conftest.er1 >conftest.err
10715 rm -f conftest.er1
10716 cat conftest.err >&5
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); } &&
10719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10720 { (case "(($ac_try" in
10721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10722 *) ac_try_echo=$ac_try;;
10723esac
10724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10725 (eval "$ac_try") 2>&5
10726 ac_status=$?
10727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728 (exit $ac_status); }; } &&
10729 { ac_try='test -s conftest$ac_exeext'
10730 { (case "(($ac_try" in
10731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10732 *) ac_try_echo=$ac_try;;
10733esac
10734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10735 (eval "$ac_try") 2>&5
10736 ac_status=$?
10737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10738 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010739 ac_cv_lib_svld_dlopen=yes
10740else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010741 echo "$as_me: failed program was:" >&5
10742sed 's/^/| /' conftest.$ac_ext >&5
10743
10744 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010745fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010746
Bill Wendlingebcceee2009-04-18 11:20:33 +000010747rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010748 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010749LIBS=$ac_check_lib_save_LIBS
10750fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010751{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10752echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10753if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010754
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010755cat >>confdefs.h <<\_ACEOF
10756#define HAVE_LIBDL 1
10757_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010758
10759 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10760else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010761 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10762echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10763if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10764 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010765else
10766 ac_check_lib_save_LIBS=$LIBS
10767LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010768cat >conftest.$ac_ext <<_ACEOF
10769/* confdefs.h. */
10770_ACEOF
10771cat confdefs.h >>conftest.$ac_ext
10772cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010773/* end confdefs.h. */
10774
Reid Spencera773bd52006-08-04 18:18:08 +000010775/* Override any GCC internal prototype to avoid an error.
10776 Use char because int might match the return type of a GCC
10777 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010778#ifdef __cplusplus
10779extern "C"
10780#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010781char dld_link ();
10782int
10783main ()
10784{
Reid Spencera773bd52006-08-04 18:18:08 +000010785return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010786 ;
10787 return 0;
10788}
10789_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010790rm -f conftest.$ac_objext conftest$ac_exeext
10791if { (ac_try="$ac_link"
10792case "(($ac_try" in
10793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10794 *) ac_try_echo=$ac_try;;
10795esac
10796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10797 (eval "$ac_link") 2>conftest.er1
10798 ac_status=$?
10799 grep -v '^ *+' conftest.er1 >conftest.err
10800 rm -f conftest.er1
10801 cat conftest.err >&5
10802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803 (exit $ac_status); } &&
10804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10805 { (case "(($ac_try" in
10806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10807 *) ac_try_echo=$ac_try;;
10808esac
10809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10810 (eval "$ac_try") 2>&5
10811 ac_status=$?
10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); }; } &&
10814 { ac_try='test -s conftest$ac_exeext'
10815 { (case "(($ac_try" in
10816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10817 *) ac_try_echo=$ac_try;;
10818esac
10819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10820 (eval "$ac_try") 2>&5
10821 ac_status=$?
10822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010824 ac_cv_lib_dld_dld_link=yes
10825else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010826 echo "$as_me: failed program was:" >&5
10827sed 's/^/| /' conftest.$ac_ext >&5
10828
10829 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010830fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010831
Bill Wendlingebcceee2009-04-18 11:20:33 +000010832rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010833 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010834LIBS=$ac_check_lib_save_LIBS
10835fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010836{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10837echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10838if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010839
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010840cat >>confdefs.h <<\_ACEOF
10841#define HAVE_DLD 1
10842_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010843
10844 LIBADD_DL="$LIBADD_DL -ldld"
10845else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010846 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10847echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10848if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10849 echo $ECHO_N "(cached) $ECHO_C" >&6
10850else
10851 cat >conftest.$ac_ext <<_ACEOF
10852/* confdefs.h. */
10853_ACEOF
10854cat confdefs.h >>conftest.$ac_ext
10855cat >>conftest.$ac_ext <<_ACEOF
10856/* end confdefs.h. */
10857/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10859#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010860
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010861/* System header to define __stub macros and hopefully few prototypes,
10862 which can conflict with char _dyld_func_lookup (); below.
10863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10864 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010865
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010866#ifdef __STDC__
10867# include <limits.h>
10868#else
10869# include <assert.h>
10870#endif
10871
10872#undef _dyld_func_lookup
10873
10874/* Override any GCC internal prototype to avoid an error.
10875 Use char because int might match the return type of a GCC
10876 builtin and then its argument prototype would still apply. */
10877#ifdef __cplusplus
10878extern "C"
10879#endif
10880char _dyld_func_lookup ();
10881/* The GNU C library defines this for functions which it implements
10882 to always fail with ENOSYS. Some functions are actually named
10883 something starting with __ and the normal name is an alias. */
10884#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10885choke me
10886#endif
10887
10888int
10889main ()
10890{
10891return _dyld_func_lookup ();
10892 ;
10893 return 0;
10894}
10895_ACEOF
10896rm -f conftest.$ac_objext conftest$ac_exeext
10897if { (ac_try="$ac_link"
10898case "(($ac_try" in
10899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10900 *) ac_try_echo=$ac_try;;
10901esac
10902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10903 (eval "$ac_link") 2>conftest.er1
10904 ac_status=$?
10905 grep -v '^ *+' conftest.er1 >conftest.err
10906 rm -f conftest.er1
10907 cat conftest.err >&5
10908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10909 (exit $ac_status); } &&
10910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10911 { (case "(($ac_try" in
10912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10913 *) ac_try_echo=$ac_try;;
10914esac
10915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10916 (eval "$ac_try") 2>&5
10917 ac_status=$?
10918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919 (exit $ac_status); }; } &&
10920 { ac_try='test -s conftest$ac_exeext'
10921 { (case "(($ac_try" in
10922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10923 *) ac_try_echo=$ac_try;;
10924esac
10925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10926 (eval "$ac_try") 2>&5
10927 ac_status=$?
10928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929 (exit $ac_status); }; }; then
10930 ac_cv_func__dyld_func_lookup=yes
10931else
10932 echo "$as_me: failed program was:" >&5
10933sed 's/^/| /' conftest.$ac_ext >&5
10934
10935 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010936fi
Reid Spencera773bd52006-08-04 18:18:08 +000010937
Bill Wendlingebcceee2009-04-18 11:20:33 +000010938rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010939 conftest$ac_exeext conftest.$ac_ext
10940fi
10941{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10942echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10943if test $ac_cv_func__dyld_func_lookup = yes; then
10944
10945cat >>confdefs.h <<\_ACEOF
10946#define HAVE_DYLD 1
10947_ACEOF
10948
10949fi
10950
10951
10952fi
10953
10954
10955fi
10956
10957
10958fi
10959
10960rm -f core conftest.err conftest.$ac_objext \
10961 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010962
10963fi
10964
10965
10966fi
10967
10968
10969fi
10970
10971
10972if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10973then
10974 lt_save_LIBS="$LIBS"
10975 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010976
10977for ac_func in dlerror
10978do
10979as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10980{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10981echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10982if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10983 echo $ECHO_N "(cached) $ECHO_C" >&6
10984else
10985 cat >conftest.$ac_ext <<_ACEOF
10986/* confdefs.h. */
10987_ACEOF
10988cat confdefs.h >>conftest.$ac_ext
10989cat >>conftest.$ac_ext <<_ACEOF
10990/* end confdefs.h. */
10991/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10992 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10993#define $ac_func innocuous_$ac_func
10994
10995/* System header to define __stub macros and hopefully few prototypes,
10996 which can conflict with char $ac_func (); below.
10997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10998 <limits.h> exists even on freestanding compilers. */
10999
11000#ifdef __STDC__
11001# include <limits.h>
11002#else
11003# include <assert.h>
11004#endif
11005
11006#undef $ac_func
11007
11008/* Override any GCC internal prototype to avoid an error.
11009 Use char because int might match the return type of a GCC
11010 builtin and then its argument prototype would still apply. */
11011#ifdef __cplusplus
11012extern "C"
11013#endif
11014char $ac_func ();
11015/* The GNU C library defines this for functions which it implements
11016 to always fail with ENOSYS. Some functions are actually named
11017 something starting with __ and the normal name is an alias. */
11018#if defined __stub_$ac_func || defined __stub___$ac_func
11019choke me
11020#endif
11021
11022int
11023main ()
11024{
11025return $ac_func ();
11026 ;
11027 return 0;
11028}
11029_ACEOF
11030rm -f conftest.$ac_objext conftest$ac_exeext
11031if { (ac_try="$ac_link"
11032case "(($ac_try" in
11033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11034 *) ac_try_echo=$ac_try;;
11035esac
11036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11037 (eval "$ac_link") 2>conftest.er1
11038 ac_status=$?
11039 grep -v '^ *+' conftest.er1 >conftest.err
11040 rm -f conftest.er1
11041 cat conftest.err >&5
11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043 (exit $ac_status); } &&
11044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11045 { (case "(($ac_try" in
11046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11047 *) ac_try_echo=$ac_try;;
11048esac
11049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11050 (eval "$ac_try") 2>&5
11051 ac_status=$?
11052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053 (exit $ac_status); }; } &&
11054 { ac_try='test -s conftest$ac_exeext'
11055 { (case "(($ac_try" in
11056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11057 *) ac_try_echo=$ac_try;;
11058esac
11059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11060 (eval "$ac_try") 2>&5
11061 ac_status=$?
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); }; }; then
11064 eval "$as_ac_var=yes"
11065else
11066 echo "$as_me: failed program was:" >&5
11067sed 's/^/| /' conftest.$ac_ext >&5
11068
11069 eval "$as_ac_var=no"
11070fi
11071
11072rm -f core conftest.err conftest.$ac_objext \
11073 conftest$ac_exeext conftest.$ac_ext
11074fi
11075ac_res=`eval echo '${'$as_ac_var'}'`
11076 { echo "$as_me:$LINENO: result: $ac_res" >&5
11077echo "${ECHO_T}$ac_res" >&6; }
11078if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011079 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011080#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011081_ACEOF
11082
11083fi
11084done
11085
11086 LIBS="$lt_save_LIBS"
11087fi
11088ac_ext=c
11089ac_cpp='$CPP $CPPFLAGS'
11090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11092ac_compiler_gnu=$ac_cv_c_compiler_gnu
11093
11094
11095
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011096{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11097echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11098if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11099 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011100else
11101 ac_cv_sys_symbol_underscore=no
11102 cat > conftest.$ac_ext <<EOF
11103void nm_test_func(){}
11104int main(){nm_test_func;return 0;}
11105EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011107 (eval $ac_compile) 2>&5
11108 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011111 # Now try to grab the symbols.
11112 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011113 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 +000011114 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11115 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011118 # See whether the symbols have a leading underscore.
11119 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11120 ac_cv_sys_symbol_underscore=yes
11121 else
11122 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11123 :
11124 else
11125 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11126 fi
11127 fi
11128 else
11129 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11130 fi
11131 else
11132 echo "configure: failed program was:" >&5
11133 cat conftest.c >&5
11134 fi
11135 rm -rf conftest*
11136
11137fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011138{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11139echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011140
11141
11142if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11143 if test x"$libltdl_cv_func_dlopen" = xyes ||
11144 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011145 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11146echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11147if test "${libltdl_cv_need_uscore+set}" = set; then
11148 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011149else
11150 libltdl_cv_need_uscore=unknown
11151 save_LIBS="$LIBS"
11152 LIBS="$LIBS $LIBADD_DL"
11153 if test "$cross_compiling" = yes; then :
11154 libltdl_cv_need_uscore=cross
11155else
11156 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11157 lt_status=$lt_dlunknown
11158 cat > conftest.$ac_ext <<EOF
John Criswell52c02862010-03-25 13:59:09 +000011159#line 11159 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011160#include "confdefs.h"
11161
11162#if HAVE_DLFCN_H
11163#include <dlfcn.h>
11164#endif
11165
11166#include <stdio.h>
11167
11168#ifdef RTLD_GLOBAL
11169# define LT_DLGLOBAL RTLD_GLOBAL
11170#else
11171# ifdef DL_GLOBAL
11172# define LT_DLGLOBAL DL_GLOBAL
11173# else
11174# define LT_DLGLOBAL 0
11175# endif
11176#endif
11177
11178/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11179 find out it does not work in some platform. */
11180#ifndef LT_DLLAZY_OR_NOW
11181# ifdef RTLD_LAZY
11182# define LT_DLLAZY_OR_NOW RTLD_LAZY
11183# else
11184# ifdef DL_LAZY
11185# define LT_DLLAZY_OR_NOW DL_LAZY
11186# else
11187# ifdef RTLD_NOW
11188# define LT_DLLAZY_OR_NOW RTLD_NOW
11189# else
11190# ifdef DL_NOW
11191# define LT_DLLAZY_OR_NOW DL_NOW
11192# else
11193# define LT_DLLAZY_OR_NOW 0
11194# endif
11195# endif
11196# endif
11197# endif
11198#endif
11199
11200#ifdef __cplusplus
11201extern "C" void exit (int);
11202#endif
11203
11204void fnord() { int i=42;}
11205int main ()
11206{
11207 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11208 int status = $lt_dlunknown;
11209
11210 if (self)
11211 {
11212 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11213 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11214 /* dlclose (self); */
11215 }
Reid Spencera773bd52006-08-04 18:18:08 +000011216 else
11217 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011218
11219 exit (status);
11220}
11221EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011223 (eval $ac_link) 2>&5
11224 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000011227 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011228 lt_status=$?
11229 case x$lt_status in
11230 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11231 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011232 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011233 esac
11234 else :
11235 # compilation failed
11236
11237 fi
11238fi
11239rm -fr conftest*
11240
11241 LIBS="$save_LIBS"
11242
11243fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011244{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11245echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011246 fi
11247fi
11248
11249if test x"$libltdl_cv_need_uscore" = xyes; then
11250
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011251cat >>confdefs.h <<\_ACEOF
11252#define NEED_USCORE 1
11253_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011254
11255fi
11256
11257
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011258{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11259echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11260if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11261 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011262else
11263 # PORTME does your system automatically load deplibs for dlopen?
11264 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11265 # For now, we just catch OSes we know something about -- in the
11266 # future, we'll try test this programmatically.
11267 libltdl_cv_sys_dlopen_deplibs=unknown
11268 case "$host_os" in
11269 aix3*|aix4.1.*|aix4.2.*)
11270 # Unknown whether this is true for these versions of AIX, but
11271 # we want this `case' here to explicitly catch those versions.
11272 libltdl_cv_sys_dlopen_deplibs=unknown
11273 ;;
11274 aix[45]*)
11275 libltdl_cv_sys_dlopen_deplibs=yes
11276 ;;
11277 darwin*)
11278 # Assuming the user has installed a libdl from somewhere, this is true
11279 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11280 libltdl_cv_sys_dlopen_deplibs=yes
11281 ;;
11282 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11283 # GNU and its variants, using gnu ld.so (Glibc)
11284 libltdl_cv_sys_dlopen_deplibs=yes
11285 ;;
11286 hpux10*|hpux11*)
11287 libltdl_cv_sys_dlopen_deplibs=yes
11288 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011289 interix*)
11290 libltdl_cv_sys_dlopen_deplibs=yes
11291 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011292 irix[12345]*|irix6.[01]*)
11293 # Catch all versions of IRIX before 6.2, and indicate that we don't
11294 # know how it worked for any of those versions.
11295 libltdl_cv_sys_dlopen_deplibs=unknown
11296 ;;
11297 irix*)
11298 # The case above catches anything before 6.2, and it's known that
11299 # at 6.2 and later dlopen does load deplibs.
11300 libltdl_cv_sys_dlopen_deplibs=yes
11301 ;;
11302 netbsd*)
11303 libltdl_cv_sys_dlopen_deplibs=yes
11304 ;;
11305 openbsd*)
11306 libltdl_cv_sys_dlopen_deplibs=yes
11307 ;;
11308 osf[1234]*)
11309 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11310 # it did *not* use an RPATH in a shared library to find objects the
11311 # library depends on, so we explictly say `no'.
11312 libltdl_cv_sys_dlopen_deplibs=no
11313 ;;
11314 osf5.0|osf5.0a|osf5.1)
11315 # dlopen *does* load deplibs and with the right loader patch applied
11316 # it even uses RPATH in a shared library to search for shared objects
11317 # that the library depends on, but there's no easy way to know if that
11318 # patch is installed. Since this is the case, all we can really
11319 # say is unknown -- it depends on the patch being installed. If
11320 # it is, this changes to `yes'. Without it, it would be `no'.
11321 libltdl_cv_sys_dlopen_deplibs=unknown
11322 ;;
11323 osf*)
11324 # the two cases above should catch all versions of osf <= 5.1. Read
11325 # the comments above for what we know about them.
11326 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11327 # is used to find them so we can finally say `yes'.
11328 libltdl_cv_sys_dlopen_deplibs=yes
11329 ;;
11330 solaris*)
11331 libltdl_cv_sys_dlopen_deplibs=yes
11332 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011333 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11334 libltdl_cv_sys_dlopen_deplibs=yes
11335 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011336 esac
11337
11338fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011339{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11340echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011341if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11342
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011343cat >>confdefs.h <<\_ACEOF
11344#define LTDL_DLOPEN_DEPLIBS 1
11345_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011346
11347fi
11348
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011349
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011350for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011351do
11352as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11353if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11354 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11355echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11356if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11357 echo $ECHO_N "(cached) $ECHO_C" >&6
11358fi
11359ac_res=`eval echo '${'$as_ac_Header'}'`
11360 { echo "$as_me:$LINENO: result: $ac_res" >&5
11361echo "${ECHO_T}$ac_res" >&6; }
11362else
11363 # Is the header compilable?
11364{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11365echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11366cat >conftest.$ac_ext <<_ACEOF
11367/* confdefs.h. */
11368_ACEOF
11369cat confdefs.h >>conftest.$ac_ext
11370cat >>conftest.$ac_ext <<_ACEOF
11371/* end confdefs.h. */
11372$ac_includes_default
11373#include <$ac_header>
11374_ACEOF
11375rm -f conftest.$ac_objext
11376if { (ac_try="$ac_compile"
11377case "(($ac_try" in
11378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11379 *) ac_try_echo=$ac_try;;
11380esac
11381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11382 (eval "$ac_compile") 2>conftest.er1
11383 ac_status=$?
11384 grep -v '^ *+' conftest.er1 >conftest.err
11385 rm -f conftest.er1
11386 cat conftest.err >&5
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); } &&
11389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11390 { (case "(($ac_try" in
11391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11392 *) ac_try_echo=$ac_try;;
11393esac
11394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11395 (eval "$ac_try") 2>&5
11396 ac_status=$?
11397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398 (exit $ac_status); }; } &&
11399 { ac_try='test -s conftest.$ac_objext'
11400 { (case "(($ac_try" in
11401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11402 *) ac_try_echo=$ac_try;;
11403esac
11404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11405 (eval "$ac_try") 2>&5
11406 ac_status=$?
11407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408 (exit $ac_status); }; }; then
11409 ac_header_compiler=yes
11410else
11411 echo "$as_me: failed program was:" >&5
11412sed 's/^/| /' conftest.$ac_ext >&5
11413
11414 ac_header_compiler=no
11415fi
11416
11417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11418{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11419echo "${ECHO_T}$ac_header_compiler" >&6; }
11420
11421# Is the header present?
11422{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11423echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11424cat >conftest.$ac_ext <<_ACEOF
11425/* confdefs.h. */
11426_ACEOF
11427cat confdefs.h >>conftest.$ac_ext
11428cat >>conftest.$ac_ext <<_ACEOF
11429/* end confdefs.h. */
11430#include <$ac_header>
11431_ACEOF
11432if { (ac_try="$ac_cpp conftest.$ac_ext"
11433case "(($ac_try" in
11434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11435 *) ac_try_echo=$ac_try;;
11436esac
11437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11439 ac_status=$?
11440 grep -v '^ *+' conftest.er1 >conftest.err
11441 rm -f conftest.er1
11442 cat conftest.err >&5
11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444 (exit $ac_status); } >/dev/null; then
11445 if test -s conftest.err; then
11446 ac_cpp_err=$ac_c_preproc_warn_flag
11447 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11448 else
11449 ac_cpp_err=
11450 fi
11451else
11452 ac_cpp_err=yes
11453fi
11454if test -z "$ac_cpp_err"; then
11455 ac_header_preproc=yes
11456else
11457 echo "$as_me: failed program was:" >&5
11458sed 's/^/| /' conftest.$ac_ext >&5
11459
11460 ac_header_preproc=no
11461fi
11462
11463rm -f conftest.err conftest.$ac_ext
11464{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11465echo "${ECHO_T}$ac_header_preproc" >&6; }
11466
11467# So? What about this header?
11468case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11469 yes:no: )
11470 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11471echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11473echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11474 ac_header_preproc=yes
11475 ;;
11476 no:yes:* )
11477 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11478echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11479 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11480echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11481 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11482echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11483 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11484echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11486echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11487 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11488echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11489 ( cat <<\_ASBOX
11490## ----------------------------------- ##
11491## Report this to llvmbugs@cs.uiuc.edu ##
11492## ----------------------------------- ##
11493_ASBOX
11494 ) | sed "s/^/$as_me: WARNING: /" >&2
11495 ;;
11496esac
11497{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11498echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11499if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11500 echo $ECHO_N "(cached) $ECHO_C" >&6
11501else
11502 eval "$as_ac_Header=\$ac_header_preproc"
11503fi
11504ac_res=`eval echo '${'$as_ac_Header'}'`
11505 { echo "$as_me:$LINENO: result: $ac_res" >&5
11506echo "${ECHO_T}$ac_res" >&6; }
11507
11508fi
11509if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011510 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011511#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011512_ACEOF
11513
11514fi
11515
11516done
11517
11518
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011519{ echo "$as_me:$LINENO: checking for error_t" >&5
11520echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11521if test "${ac_cv_type_error_t+set}" = set; then
11522 echo $ECHO_N "(cached) $ECHO_C" >&6
11523else
11524 cat >conftest.$ac_ext <<_ACEOF
11525/* confdefs.h. */
11526_ACEOF
11527cat confdefs.h >>conftest.$ac_ext
11528cat >>conftest.$ac_ext <<_ACEOF
11529/* end confdefs.h. */
11530#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011531# include <argz.h>
11532#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011533
11534typedef error_t ac__type_new_;
11535int
11536main ()
11537{
11538if ((ac__type_new_ *) 0)
11539 return 0;
11540if (sizeof (ac__type_new_))
11541 return 0;
11542 ;
11543 return 0;
11544}
11545_ACEOF
11546rm -f conftest.$ac_objext
11547if { (ac_try="$ac_compile"
11548case "(($ac_try" in
11549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11550 *) ac_try_echo=$ac_try;;
11551esac
11552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11553 (eval "$ac_compile") 2>conftest.er1
11554 ac_status=$?
11555 grep -v '^ *+' conftest.er1 >conftest.err
11556 rm -f conftest.er1
11557 cat conftest.err >&5
11558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559 (exit $ac_status); } &&
11560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11561 { (case "(($ac_try" in
11562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11563 *) ac_try_echo=$ac_try;;
11564esac
11565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11566 (eval "$ac_try") 2>&5
11567 ac_status=$?
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); }; } &&
11570 { ac_try='test -s conftest.$ac_objext'
11571 { (case "(($ac_try" in
11572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11573 *) ac_try_echo=$ac_try;;
11574esac
11575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11576 (eval "$ac_try") 2>&5
11577 ac_status=$?
11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 (exit $ac_status); }; }; then
11580 ac_cv_type_error_t=yes
11581else
11582 echo "$as_me: failed program was:" >&5
11583sed 's/^/| /' conftest.$ac_ext >&5
11584
11585 ac_cv_type_error_t=no
11586fi
11587
11588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11589fi
11590{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11591echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11592if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011593
11594cat >>confdefs.h <<_ACEOF
11595#define HAVE_ERROR_T 1
11596_ACEOF
11597
11598
11599else
11600
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011601cat >>confdefs.h <<\_ACEOF
11602#define error_t int
11603_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011604
11605fi
11606
11607
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011608
11609
11610
11611
11612
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011613for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011614do
11615as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11616{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11617echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11618if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11619 echo $ECHO_N "(cached) $ECHO_C" >&6
11620else
11621 cat >conftest.$ac_ext <<_ACEOF
11622/* confdefs.h. */
11623_ACEOF
11624cat confdefs.h >>conftest.$ac_ext
11625cat >>conftest.$ac_ext <<_ACEOF
11626/* end confdefs.h. */
11627/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11629#define $ac_func innocuous_$ac_func
11630
11631/* System header to define __stub macros and hopefully few prototypes,
11632 which can conflict with char $ac_func (); below.
11633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11634 <limits.h> exists even on freestanding compilers. */
11635
11636#ifdef __STDC__
11637# include <limits.h>
11638#else
11639# include <assert.h>
11640#endif
11641
11642#undef $ac_func
11643
11644/* Override any GCC internal prototype to avoid an error.
11645 Use char because int might match the return type of a GCC
11646 builtin and then its argument prototype would still apply. */
11647#ifdef __cplusplus
11648extern "C"
11649#endif
11650char $ac_func ();
11651/* The GNU C library defines this for functions which it implements
11652 to always fail with ENOSYS. Some functions are actually named
11653 something starting with __ and the normal name is an alias. */
11654#if defined __stub_$ac_func || defined __stub___$ac_func
11655choke me
11656#endif
11657
11658int
11659main ()
11660{
11661return $ac_func ();
11662 ;
11663 return 0;
11664}
11665_ACEOF
11666rm -f conftest.$ac_objext conftest$ac_exeext
11667if { (ac_try="$ac_link"
11668case "(($ac_try" in
11669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11670 *) ac_try_echo=$ac_try;;
11671esac
11672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11673 (eval "$ac_link") 2>conftest.er1
11674 ac_status=$?
11675 grep -v '^ *+' conftest.er1 >conftest.err
11676 rm -f conftest.er1
11677 cat conftest.err >&5
11678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679 (exit $ac_status); } &&
11680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11681 { (case "(($ac_try" in
11682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11683 *) ac_try_echo=$ac_try;;
11684esac
11685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11686 (eval "$ac_try") 2>&5
11687 ac_status=$?
11688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689 (exit $ac_status); }; } &&
11690 { ac_try='test -s conftest$ac_exeext'
11691 { (case "(($ac_try" in
11692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11693 *) ac_try_echo=$ac_try;;
11694esac
11695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11696 (eval "$ac_try") 2>&5
11697 ac_status=$?
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); }; }; then
11700 eval "$as_ac_var=yes"
11701else
11702 echo "$as_me: failed program was:" >&5
11703sed 's/^/| /' conftest.$ac_ext >&5
11704
11705 eval "$as_ac_var=no"
11706fi
11707
11708rm -f core conftest.err conftest.$ac_objext \
11709 conftest$ac_exeext conftest.$ac_ext
11710fi
11711ac_res=`eval echo '${'$as_ac_var'}'`
11712 { echo "$as_me:$LINENO: result: $ac_res" >&5
11713echo "${ECHO_T}$ac_res" >&6; }
11714if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011715 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011716#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011717_ACEOF
11718
11719fi
11720done
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011741
11742
11743
11744
11745
11746
11747
11748
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011749for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11750 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011751do
11752as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11753if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11754 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11755echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11756if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11757 echo $ECHO_N "(cached) $ECHO_C" >&6
11758fi
11759ac_res=`eval echo '${'$as_ac_Header'}'`
11760 { echo "$as_me:$LINENO: result: $ac_res" >&5
11761echo "${ECHO_T}$ac_res" >&6; }
11762else
11763 # Is the header compilable?
11764{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11765echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11766cat >conftest.$ac_ext <<_ACEOF
11767/* confdefs.h. */
11768_ACEOF
11769cat confdefs.h >>conftest.$ac_ext
11770cat >>conftest.$ac_ext <<_ACEOF
11771/* end confdefs.h. */
11772$ac_includes_default
11773#include <$ac_header>
11774_ACEOF
11775rm -f conftest.$ac_objext
11776if { (ac_try="$ac_compile"
11777case "(($ac_try" in
11778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11779 *) ac_try_echo=$ac_try;;
11780esac
11781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11782 (eval "$ac_compile") 2>conftest.er1
11783 ac_status=$?
11784 grep -v '^ *+' conftest.er1 >conftest.err
11785 rm -f conftest.er1
11786 cat conftest.err >&5
11787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); } &&
11789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11790 { (case "(($ac_try" in
11791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11792 *) ac_try_echo=$ac_try;;
11793esac
11794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11795 (eval "$ac_try") 2>&5
11796 ac_status=$?
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); }; } &&
11799 { ac_try='test -s conftest.$ac_objext'
11800 { (case "(($ac_try" in
11801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11802 *) ac_try_echo=$ac_try;;
11803esac
11804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11805 (eval "$ac_try") 2>&5
11806 ac_status=$?
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808 (exit $ac_status); }; }; then
11809 ac_header_compiler=yes
11810else
11811 echo "$as_me: failed program was:" >&5
11812sed 's/^/| /' conftest.$ac_ext >&5
11813
11814 ac_header_compiler=no
11815fi
11816
11817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11818{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11819echo "${ECHO_T}$ac_header_compiler" >&6; }
11820
11821# Is the header present?
11822{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11823echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11824cat >conftest.$ac_ext <<_ACEOF
11825/* confdefs.h. */
11826_ACEOF
11827cat confdefs.h >>conftest.$ac_ext
11828cat >>conftest.$ac_ext <<_ACEOF
11829/* end confdefs.h. */
11830#include <$ac_header>
11831_ACEOF
11832if { (ac_try="$ac_cpp conftest.$ac_ext"
11833case "(($ac_try" in
11834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11835 *) ac_try_echo=$ac_try;;
11836esac
11837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11838 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11839 ac_status=$?
11840 grep -v '^ *+' conftest.er1 >conftest.err
11841 rm -f conftest.er1
11842 cat conftest.err >&5
11843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844 (exit $ac_status); } >/dev/null; then
11845 if test -s conftest.err; then
11846 ac_cpp_err=$ac_c_preproc_warn_flag
11847 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11848 else
11849 ac_cpp_err=
11850 fi
11851else
11852 ac_cpp_err=yes
11853fi
11854if test -z "$ac_cpp_err"; then
11855 ac_header_preproc=yes
11856else
11857 echo "$as_me: failed program was:" >&5
11858sed 's/^/| /' conftest.$ac_ext >&5
11859
11860 ac_header_preproc=no
11861fi
11862
11863rm -f conftest.err conftest.$ac_ext
11864{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11865echo "${ECHO_T}$ac_header_preproc" >&6; }
11866
11867# So? What about this header?
11868case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11869 yes:no: )
11870 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11871echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11873echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11874 ac_header_preproc=yes
11875 ;;
11876 no:yes:* )
11877 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11878echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11879 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11880echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11881 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11882echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11883 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11884echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11886echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11887 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11888echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11889 ( cat <<\_ASBOX
11890## ----------------------------------- ##
11891## Report this to llvmbugs@cs.uiuc.edu ##
11892## ----------------------------------- ##
11893_ASBOX
11894 ) | sed "s/^/$as_me: WARNING: /" >&2
11895 ;;
11896esac
11897{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11898echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11899if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11900 echo $ECHO_N "(cached) $ECHO_C" >&6
11901else
11902 eval "$as_ac_Header=\$ac_header_preproc"
11903fi
11904ac_res=`eval echo '${'$as_ac_Header'}'`
11905 { echo "$as_me:$LINENO: result: $ac_res" >&5
11906echo "${ECHO_T}$ac_res" >&6; }
11907
11908fi
11909if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011910 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011911#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011912_ACEOF
11913
11914fi
11915
11916done
11917
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011918
11919
11920
11921
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011922for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011923do
11924as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11925if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11926 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11927echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11928if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11929 echo $ECHO_N "(cached) $ECHO_C" >&6
11930fi
11931ac_res=`eval echo '${'$as_ac_Header'}'`
11932 { echo "$as_me:$LINENO: result: $ac_res" >&5
11933echo "${ECHO_T}$ac_res" >&6; }
11934else
11935 # Is the header compilable?
11936{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11937echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11938cat >conftest.$ac_ext <<_ACEOF
11939/* confdefs.h. */
11940_ACEOF
11941cat confdefs.h >>conftest.$ac_ext
11942cat >>conftest.$ac_ext <<_ACEOF
11943/* end confdefs.h. */
11944$ac_includes_default
11945#include <$ac_header>
11946_ACEOF
11947rm -f conftest.$ac_objext
11948if { (ac_try="$ac_compile"
11949case "(($ac_try" in
11950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11951 *) ac_try_echo=$ac_try;;
11952esac
11953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11954 (eval "$ac_compile") 2>conftest.er1
11955 ac_status=$?
11956 grep -v '^ *+' conftest.er1 >conftest.err
11957 rm -f conftest.er1
11958 cat conftest.err >&5
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); } &&
11961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11962 { (case "(($ac_try" in
11963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11964 *) ac_try_echo=$ac_try;;
11965esac
11966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11967 (eval "$ac_try") 2>&5
11968 ac_status=$?
11969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970 (exit $ac_status); }; } &&
11971 { ac_try='test -s conftest.$ac_objext'
11972 { (case "(($ac_try" in
11973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11974 *) ac_try_echo=$ac_try;;
11975esac
11976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11977 (eval "$ac_try") 2>&5
11978 ac_status=$?
11979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980 (exit $ac_status); }; }; then
11981 ac_header_compiler=yes
11982else
11983 echo "$as_me: failed program was:" >&5
11984sed 's/^/| /' conftest.$ac_ext >&5
11985
11986 ac_header_compiler=no
11987fi
11988
11989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11990{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11991echo "${ECHO_T}$ac_header_compiler" >&6; }
11992
11993# Is the header present?
11994{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11995echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11996cat >conftest.$ac_ext <<_ACEOF
11997/* confdefs.h. */
11998_ACEOF
11999cat confdefs.h >>conftest.$ac_ext
12000cat >>conftest.$ac_ext <<_ACEOF
12001/* end confdefs.h. */
12002#include <$ac_header>
12003_ACEOF
12004if { (ac_try="$ac_cpp conftest.$ac_ext"
12005case "(($ac_try" in
12006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12007 *) ac_try_echo=$ac_try;;
12008esac
12009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12011 ac_status=$?
12012 grep -v '^ *+' conftest.er1 >conftest.err
12013 rm -f conftest.er1
12014 cat conftest.err >&5
12015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016 (exit $ac_status); } >/dev/null; then
12017 if test -s conftest.err; then
12018 ac_cpp_err=$ac_c_preproc_warn_flag
12019 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12020 else
12021 ac_cpp_err=
12022 fi
12023else
12024 ac_cpp_err=yes
12025fi
12026if test -z "$ac_cpp_err"; then
12027 ac_header_preproc=yes
12028else
12029 echo "$as_me: failed program was:" >&5
12030sed 's/^/| /' conftest.$ac_ext >&5
12031
12032 ac_header_preproc=no
12033fi
12034
12035rm -f conftest.err conftest.$ac_ext
12036{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12037echo "${ECHO_T}$ac_header_preproc" >&6; }
12038
12039# So? What about this header?
12040case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12041 yes:no: )
12042 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12043echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12045echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12046 ac_header_preproc=yes
12047 ;;
12048 no:yes:* )
12049 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12050echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12051 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12052echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12053 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12054echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12055 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12056echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12057 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12058echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12059 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12060echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12061 ( cat <<\_ASBOX
12062## ----------------------------------- ##
12063## Report this to llvmbugs@cs.uiuc.edu ##
12064## ----------------------------------- ##
12065_ASBOX
12066 ) | sed "s/^/$as_me: WARNING: /" >&2
12067 ;;
12068esac
12069{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12070echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12071if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12072 echo $ECHO_N "(cached) $ECHO_C" >&6
12073else
12074 eval "$as_ac_Header=\$ac_header_preproc"
12075fi
12076ac_res=`eval echo '${'$as_ac_Header'}'`
12077 { echo "$as_me:$LINENO: result: $ac_res" >&5
12078echo "${ECHO_T}$ac_res" >&6; }
12079
12080fi
12081if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012082 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012083#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012084_ACEOF
12085
12086fi
12087
12088done
12089
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012090
12091
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012092for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012093do
12094as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12095if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12096 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12097echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12098if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12099 echo $ECHO_N "(cached) $ECHO_C" >&6
12100fi
12101ac_res=`eval echo '${'$as_ac_Header'}'`
12102 { echo "$as_me:$LINENO: result: $ac_res" >&5
12103echo "${ECHO_T}$ac_res" >&6; }
12104else
12105 # Is the header compilable?
12106{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12107echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12108cat >conftest.$ac_ext <<_ACEOF
12109/* confdefs.h. */
12110_ACEOF
12111cat confdefs.h >>conftest.$ac_ext
12112cat >>conftest.$ac_ext <<_ACEOF
12113/* end confdefs.h. */
12114$ac_includes_default
12115#include <$ac_header>
12116_ACEOF
12117rm -f conftest.$ac_objext
12118if { (ac_try="$ac_compile"
12119case "(($ac_try" in
12120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12121 *) ac_try_echo=$ac_try;;
12122esac
12123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12124 (eval "$ac_compile") 2>conftest.er1
12125 ac_status=$?
12126 grep -v '^ *+' conftest.er1 >conftest.err
12127 rm -f conftest.er1
12128 cat conftest.err >&5
12129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130 (exit $ac_status); } &&
12131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12132 { (case "(($ac_try" in
12133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12134 *) ac_try_echo=$ac_try;;
12135esac
12136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12137 (eval "$ac_try") 2>&5
12138 ac_status=$?
12139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140 (exit $ac_status); }; } &&
12141 { ac_try='test -s conftest.$ac_objext'
12142 { (case "(($ac_try" in
12143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12144 *) ac_try_echo=$ac_try;;
12145esac
12146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12147 (eval "$ac_try") 2>&5
12148 ac_status=$?
12149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150 (exit $ac_status); }; }; then
12151 ac_header_compiler=yes
12152else
12153 echo "$as_me: failed program was:" >&5
12154sed 's/^/| /' conftest.$ac_ext >&5
12155
12156 ac_header_compiler=no
12157fi
12158
12159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12160{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12161echo "${ECHO_T}$ac_header_compiler" >&6; }
12162
12163# Is the header present?
12164{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12165echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12166cat >conftest.$ac_ext <<_ACEOF
12167/* confdefs.h. */
12168_ACEOF
12169cat confdefs.h >>conftest.$ac_ext
12170cat >>conftest.$ac_ext <<_ACEOF
12171/* end confdefs.h. */
12172#include <$ac_header>
12173_ACEOF
12174if { (ac_try="$ac_cpp conftest.$ac_ext"
12175case "(($ac_try" in
12176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12177 *) ac_try_echo=$ac_try;;
12178esac
12179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12180 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12181 ac_status=$?
12182 grep -v '^ *+' conftest.er1 >conftest.err
12183 rm -f conftest.er1
12184 cat conftest.err >&5
12185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186 (exit $ac_status); } >/dev/null; then
12187 if test -s conftest.err; then
12188 ac_cpp_err=$ac_c_preproc_warn_flag
12189 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12190 else
12191 ac_cpp_err=
12192 fi
12193else
12194 ac_cpp_err=yes
12195fi
12196if test -z "$ac_cpp_err"; then
12197 ac_header_preproc=yes
12198else
12199 echo "$as_me: failed program was:" >&5
12200sed 's/^/| /' conftest.$ac_ext >&5
12201
12202 ac_header_preproc=no
12203fi
12204
12205rm -f conftest.err conftest.$ac_ext
12206{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12207echo "${ECHO_T}$ac_header_preproc" >&6; }
12208
12209# So? What about this header?
12210case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12211 yes:no: )
12212 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12213echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12215echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12216 ac_header_preproc=yes
12217 ;;
12218 no:yes:* )
12219 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12220echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12221 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12222echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12223 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12224echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12225 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12226echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12228echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12229 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12230echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12231 ( cat <<\_ASBOX
12232## ----------------------------------- ##
12233## Report this to llvmbugs@cs.uiuc.edu ##
12234## ----------------------------------- ##
12235_ASBOX
12236 ) | sed "s/^/$as_me: WARNING: /" >&2
12237 ;;
12238esac
12239{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12240echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12241if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12242 echo $ECHO_N "(cached) $ECHO_C" >&6
12243else
12244 eval "$as_ac_Header=\$ac_header_preproc"
12245fi
12246ac_res=`eval echo '${'$as_ac_Header'}'`
12247 { echo "$as_me:$LINENO: result: $ac_res" >&5
12248echo "${ECHO_T}$ac_res" >&6; }
12249
12250fi
12251if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012252 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012253#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012254_ACEOF
12255 break
12256fi
12257
12258done
12259
12260
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012261
12262
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012263for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012264do
12265as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12266{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12267echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12268if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12269 echo $ECHO_N "(cached) $ECHO_C" >&6
12270else
12271 cat >conftest.$ac_ext <<_ACEOF
12272/* confdefs.h. */
12273_ACEOF
12274cat confdefs.h >>conftest.$ac_ext
12275cat >>conftest.$ac_ext <<_ACEOF
12276/* end confdefs.h. */
12277/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12278 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12279#define $ac_func innocuous_$ac_func
12280
12281/* System header to define __stub macros and hopefully few prototypes,
12282 which can conflict with char $ac_func (); below.
12283 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12284 <limits.h> exists even on freestanding compilers. */
12285
12286#ifdef __STDC__
12287# include <limits.h>
12288#else
12289# include <assert.h>
12290#endif
12291
12292#undef $ac_func
12293
12294/* Override any GCC internal prototype to avoid an error.
12295 Use char because int might match the return type of a GCC
12296 builtin and then its argument prototype would still apply. */
12297#ifdef __cplusplus
12298extern "C"
12299#endif
12300char $ac_func ();
12301/* The GNU C library defines this for functions which it implements
12302 to always fail with ENOSYS. Some functions are actually named
12303 something starting with __ and the normal name is an alias. */
12304#if defined __stub_$ac_func || defined __stub___$ac_func
12305choke me
12306#endif
12307
12308int
12309main ()
12310{
12311return $ac_func ();
12312 ;
12313 return 0;
12314}
12315_ACEOF
12316rm -f conftest.$ac_objext conftest$ac_exeext
12317if { (ac_try="$ac_link"
12318case "(($ac_try" in
12319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12320 *) ac_try_echo=$ac_try;;
12321esac
12322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12323 (eval "$ac_link") 2>conftest.er1
12324 ac_status=$?
12325 grep -v '^ *+' conftest.er1 >conftest.err
12326 rm -f conftest.er1
12327 cat conftest.err >&5
12328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); } &&
12330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12331 { (case "(($ac_try" in
12332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12333 *) ac_try_echo=$ac_try;;
12334esac
12335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12336 (eval "$ac_try") 2>&5
12337 ac_status=$?
12338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339 (exit $ac_status); }; } &&
12340 { ac_try='test -s conftest$ac_exeext'
12341 { (case "(($ac_try" in
12342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12343 *) ac_try_echo=$ac_try;;
12344esac
12345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12346 (eval "$ac_try") 2>&5
12347 ac_status=$?
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); }; }; then
12350 eval "$as_ac_var=yes"
12351else
12352 echo "$as_me: failed program was:" >&5
12353sed 's/^/| /' conftest.$ac_ext >&5
12354
12355 eval "$as_ac_var=no"
12356fi
12357
12358rm -f core conftest.err conftest.$ac_objext \
12359 conftest$ac_exeext conftest.$ac_ext
12360fi
12361ac_res=`eval echo '${'$as_ac_var'}'`
12362 { echo "$as_me:$LINENO: result: $ac_res" >&5
12363echo "${ECHO_T}$ac_res" >&6; }
12364if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012365 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012366#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012367_ACEOF
12368 break
12369fi
12370done
12371
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012372
12373
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012374for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012375do
12376as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12377{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12378echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12379if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12380 echo $ECHO_N "(cached) $ECHO_C" >&6
12381else
12382 cat >conftest.$ac_ext <<_ACEOF
12383/* confdefs.h. */
12384_ACEOF
12385cat confdefs.h >>conftest.$ac_ext
12386cat >>conftest.$ac_ext <<_ACEOF
12387/* end confdefs.h. */
12388/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12389 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12390#define $ac_func innocuous_$ac_func
12391
12392/* System header to define __stub macros and hopefully few prototypes,
12393 which can conflict with char $ac_func (); below.
12394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12395 <limits.h> exists even on freestanding compilers. */
12396
12397#ifdef __STDC__
12398# include <limits.h>
12399#else
12400# include <assert.h>
12401#endif
12402
12403#undef $ac_func
12404
12405/* Override any GCC internal prototype to avoid an error.
12406 Use char because int might match the return type of a GCC
12407 builtin and then its argument prototype would still apply. */
12408#ifdef __cplusplus
12409extern "C"
12410#endif
12411char $ac_func ();
12412/* The GNU C library defines this for functions which it implements
12413 to always fail with ENOSYS. Some functions are actually named
12414 something starting with __ and the normal name is an alias. */
12415#if defined __stub_$ac_func || defined __stub___$ac_func
12416choke me
12417#endif
12418
12419int
12420main ()
12421{
12422return $ac_func ();
12423 ;
12424 return 0;
12425}
12426_ACEOF
12427rm -f conftest.$ac_objext conftest$ac_exeext
12428if { (ac_try="$ac_link"
12429case "(($ac_try" in
12430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12431 *) ac_try_echo=$ac_try;;
12432esac
12433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12434 (eval "$ac_link") 2>conftest.er1
12435 ac_status=$?
12436 grep -v '^ *+' conftest.er1 >conftest.err
12437 rm -f conftest.er1
12438 cat conftest.err >&5
12439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440 (exit $ac_status); } &&
12441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12442 { (case "(($ac_try" in
12443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12444 *) ac_try_echo=$ac_try;;
12445esac
12446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12447 (eval "$ac_try") 2>&5
12448 ac_status=$?
12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450 (exit $ac_status); }; } &&
12451 { ac_try='test -s conftest$ac_exeext'
12452 { (case "(($ac_try" in
12453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12454 *) ac_try_echo=$ac_try;;
12455esac
12456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12457 (eval "$ac_try") 2>&5
12458 ac_status=$?
12459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460 (exit $ac_status); }; }; then
12461 eval "$as_ac_var=yes"
12462else
12463 echo "$as_me: failed program was:" >&5
12464sed 's/^/| /' conftest.$ac_ext >&5
12465
12466 eval "$as_ac_var=no"
12467fi
12468
12469rm -f core conftest.err conftest.$ac_objext \
12470 conftest$ac_exeext conftest.$ac_ext
12471fi
12472ac_res=`eval echo '${'$as_ac_var'}'`
12473 { echo "$as_me:$LINENO: result: $ac_res" >&5
12474echo "${ECHO_T}$ac_res" >&6; }
12475if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012476 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012477#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012478_ACEOF
12479 break
12480fi
12481done
12482
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012483
12484
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012485for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012486do
12487as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12488{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12489echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12490if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12491 echo $ECHO_N "(cached) $ECHO_C" >&6
12492else
12493 cat >conftest.$ac_ext <<_ACEOF
12494/* confdefs.h. */
12495_ACEOF
12496cat confdefs.h >>conftest.$ac_ext
12497cat >>conftest.$ac_ext <<_ACEOF
12498/* end confdefs.h. */
12499/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12500 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12501#define $ac_func innocuous_$ac_func
12502
12503/* System header to define __stub macros and hopefully few prototypes,
12504 which can conflict with char $ac_func (); below.
12505 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12506 <limits.h> exists even on freestanding compilers. */
12507
12508#ifdef __STDC__
12509# include <limits.h>
12510#else
12511# include <assert.h>
12512#endif
12513
12514#undef $ac_func
12515
12516/* Override any GCC internal prototype to avoid an error.
12517 Use char because int might match the return type of a GCC
12518 builtin and then its argument prototype would still apply. */
12519#ifdef __cplusplus
12520extern "C"
12521#endif
12522char $ac_func ();
12523/* The GNU C library defines this for functions which it implements
12524 to always fail with ENOSYS. Some functions are actually named
12525 something starting with __ and the normal name is an alias. */
12526#if defined __stub_$ac_func || defined __stub___$ac_func
12527choke me
12528#endif
12529
12530int
12531main ()
12532{
12533return $ac_func ();
12534 ;
12535 return 0;
12536}
12537_ACEOF
12538rm -f conftest.$ac_objext conftest$ac_exeext
12539if { (ac_try="$ac_link"
12540case "(($ac_try" in
12541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12542 *) ac_try_echo=$ac_try;;
12543esac
12544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12545 (eval "$ac_link") 2>conftest.er1
12546 ac_status=$?
12547 grep -v '^ *+' conftest.er1 >conftest.err
12548 rm -f conftest.er1
12549 cat conftest.err >&5
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); } &&
12552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12553 { (case "(($ac_try" in
12554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12555 *) ac_try_echo=$ac_try;;
12556esac
12557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12558 (eval "$ac_try") 2>&5
12559 ac_status=$?
12560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561 (exit $ac_status); }; } &&
12562 { ac_try='test -s conftest$ac_exeext'
12563 { (case "(($ac_try" in
12564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12565 *) ac_try_echo=$ac_try;;
12566esac
12567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12568 (eval "$ac_try") 2>&5
12569 ac_status=$?
12570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571 (exit $ac_status); }; }; then
12572 eval "$as_ac_var=yes"
12573else
12574 echo "$as_me: failed program was:" >&5
12575sed 's/^/| /' conftest.$ac_ext >&5
12576
12577 eval "$as_ac_var=no"
12578fi
12579
12580rm -f core conftest.err conftest.$ac_objext \
12581 conftest$ac_exeext conftest.$ac_ext
12582fi
12583ac_res=`eval echo '${'$as_ac_var'}'`
12584 { echo "$as_me:$LINENO: result: $ac_res" >&5
12585echo "${ECHO_T}$ac_res" >&6; }
12586if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012587 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012588#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012589_ACEOF
12590 break
12591fi
12592done
12593
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012594
12595
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012596for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012597do
12598as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12599{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12600echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12601if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12602 echo $ECHO_N "(cached) $ECHO_C" >&6
12603else
12604 cat >conftest.$ac_ext <<_ACEOF
12605/* confdefs.h. */
12606_ACEOF
12607cat confdefs.h >>conftest.$ac_ext
12608cat >>conftest.$ac_ext <<_ACEOF
12609/* end confdefs.h. */
12610/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12611 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12612#define $ac_func innocuous_$ac_func
12613
12614/* System header to define __stub macros and hopefully few prototypes,
12615 which can conflict with char $ac_func (); below.
12616 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12617 <limits.h> exists even on freestanding compilers. */
12618
12619#ifdef __STDC__
12620# include <limits.h>
12621#else
12622# include <assert.h>
12623#endif
12624
12625#undef $ac_func
12626
12627/* Override any GCC internal prototype to avoid an error.
12628 Use char because int might match the return type of a GCC
12629 builtin and then its argument prototype would still apply. */
12630#ifdef __cplusplus
12631extern "C"
12632#endif
12633char $ac_func ();
12634/* The GNU C library defines this for functions which it implements
12635 to always fail with ENOSYS. Some functions are actually named
12636 something starting with __ and the normal name is an alias. */
12637#if defined __stub_$ac_func || defined __stub___$ac_func
12638choke me
12639#endif
12640
12641int
12642main ()
12643{
12644return $ac_func ();
12645 ;
12646 return 0;
12647}
12648_ACEOF
12649rm -f conftest.$ac_objext conftest$ac_exeext
12650if { (ac_try="$ac_link"
12651case "(($ac_try" in
12652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12653 *) ac_try_echo=$ac_try;;
12654esac
12655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12656 (eval "$ac_link") 2>conftest.er1
12657 ac_status=$?
12658 grep -v '^ *+' conftest.er1 >conftest.err
12659 rm -f conftest.er1
12660 cat conftest.err >&5
12661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662 (exit $ac_status); } &&
12663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12664 { (case "(($ac_try" in
12665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12666 *) ac_try_echo=$ac_try;;
12667esac
12668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12669 (eval "$ac_try") 2>&5
12670 ac_status=$?
12671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672 (exit $ac_status); }; } &&
12673 { ac_try='test -s conftest$ac_exeext'
12674 { (case "(($ac_try" in
12675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12676 *) ac_try_echo=$ac_try;;
12677esac
12678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12679 (eval "$ac_try") 2>&5
12680 ac_status=$?
12681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682 (exit $ac_status); }; }; then
12683 eval "$as_ac_var=yes"
12684else
12685 echo "$as_me: failed program was:" >&5
12686sed 's/^/| /' conftest.$ac_ext >&5
12687
12688 eval "$as_ac_var=no"
12689fi
12690
12691rm -f core conftest.err conftest.$ac_objext \
12692 conftest$ac_exeext conftest.$ac_ext
12693fi
12694ac_res=`eval echo '${'$as_ac_var'}'`
12695 { echo "$as_me:$LINENO: result: $ac_res" >&5
12696echo "${ECHO_T}$ac_res" >&6; }
12697if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012698 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012699#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012700_ACEOF
12701
12702fi
12703done
12704
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012705
12706
12707
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012708for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012709do
12710as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12711{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12712echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12713if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12714 echo $ECHO_N "(cached) $ECHO_C" >&6
12715else
12716 cat >conftest.$ac_ext <<_ACEOF
12717/* confdefs.h. */
12718_ACEOF
12719cat confdefs.h >>conftest.$ac_ext
12720cat >>conftest.$ac_ext <<_ACEOF
12721/* end confdefs.h. */
12722/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12724#define $ac_func innocuous_$ac_func
12725
12726/* System header to define __stub macros and hopefully few prototypes,
12727 which can conflict with char $ac_func (); below.
12728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12729 <limits.h> exists even on freestanding compilers. */
12730
12731#ifdef __STDC__
12732# include <limits.h>
12733#else
12734# include <assert.h>
12735#endif
12736
12737#undef $ac_func
12738
12739/* Override any GCC internal prototype to avoid an error.
12740 Use char because int might match the return type of a GCC
12741 builtin and then its argument prototype would still apply. */
12742#ifdef __cplusplus
12743extern "C"
12744#endif
12745char $ac_func ();
12746/* The GNU C library defines this for functions which it implements
12747 to always fail with ENOSYS. Some functions are actually named
12748 something starting with __ and the normal name is an alias. */
12749#if defined __stub_$ac_func || defined __stub___$ac_func
12750choke me
12751#endif
12752
12753int
12754main ()
12755{
12756return $ac_func ();
12757 ;
12758 return 0;
12759}
12760_ACEOF
12761rm -f conftest.$ac_objext conftest$ac_exeext
12762if { (ac_try="$ac_link"
12763case "(($ac_try" in
12764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12765 *) ac_try_echo=$ac_try;;
12766esac
12767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12768 (eval "$ac_link") 2>conftest.er1
12769 ac_status=$?
12770 grep -v '^ *+' conftest.er1 >conftest.err
12771 rm -f conftest.er1
12772 cat conftest.err >&5
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); } &&
12775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12776 { (case "(($ac_try" in
12777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12778 *) ac_try_echo=$ac_try;;
12779esac
12780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12781 (eval "$ac_try") 2>&5
12782 ac_status=$?
12783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784 (exit $ac_status); }; } &&
12785 { ac_try='test -s conftest$ac_exeext'
12786 { (case "(($ac_try" in
12787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12788 *) ac_try_echo=$ac_try;;
12789esac
12790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12791 (eval "$ac_try") 2>&5
12792 ac_status=$?
12793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794 (exit $ac_status); }; }; then
12795 eval "$as_ac_var=yes"
12796else
12797 echo "$as_me: failed program was:" >&5
12798sed 's/^/| /' conftest.$ac_ext >&5
12799
12800 eval "$as_ac_var=no"
12801fi
12802
12803rm -f core conftest.err conftest.$ac_objext \
12804 conftest$ac_exeext conftest.$ac_ext
12805fi
12806ac_res=`eval echo '${'$as_ac_var'}'`
12807 { echo "$as_me:$LINENO: result: $ac_res" >&5
12808echo "${ECHO_T}$ac_res" >&6; }
12809if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012810 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012811#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012812_ACEOF
12813
12814fi
12815done
12816
12817
Douglas Gregor01746742009-05-11 18:05:52 +000012818
Reid Spencer7931a782004-12-27 06:15:02 +000012819if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000012820 LLVMGCC="llvm-gcc${EXEEXT}"
12821 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012822 LLVMGCCCOMMAND="$LLVMGCC"
12823 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012824 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12825
12826 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12827
Reid Spencerc84492c2005-06-02 22:34:49 +000012828 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
12829set dummy $LLVMGCC; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012830{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12832if test "${ac_cv_path_LLVMGCC+set}" = set; then
12833 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000012834else
12835 case $LLVMGCC in
12836 [\\/]* | ?:[\\/]*)
12837 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
12838 ;;
12839 *)
12840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12841for as_dir in $PATH
12842do
12843 IFS=$as_save_IFS
12844 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012845 for ac_exec_ext in '' $ac_executable_extensions; do
12846 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 +000012847 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000012849 break 2
12850 fi
12851done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012852done
Reid Spencera773bd52006-08-04 18:18:08 +000012853IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000012854
Reid Spencer59473af2004-12-25 07:31:29 +000012855 ;;
12856esac
12857fi
12858LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000012859if test -n "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012860 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
12861echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000012862else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012863 { echo "$as_me:$LINENO: result: no" >&5
12864echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000012865fi
12866
Reid Spencera773bd52006-08-04 18:18:08 +000012867
Reid Spencerc84492c2005-06-02 22:34:49 +000012868 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
12869set dummy $LLVMGXX; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012870{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12871echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12872if test "${ac_cv_path_LLVMGXX+set}" = set; then
12873 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000012874else
12875 case $LLVMGXX in
12876 [\\/]* | ?:[\\/]*)
12877 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
12878 ;;
12879 *)
12880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12881for as_dir in $PATH
12882do
12883 IFS=$as_save_IFS
12884 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012885 for ac_exec_ext in '' $ac_executable_extensions; do
12886 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 +000012887 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000012889 break 2
12890 fi
12891done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012892done
Reid Spencera773bd52006-08-04 18:18:08 +000012893IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000012894
Reid Spencer59473af2004-12-25 07:31:29 +000012895 ;;
12896esac
12897fi
12898LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000012899if test -n "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012900 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
12901echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000012902else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012903 { echo "$as_me:$LINENO: result: no" >&5
12904echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000012905fi
12906
Reid Spencera773bd52006-08-04 18:18:08 +000012907
Reid Spencer59473af2004-12-25 07:31:29 +000012908else
Devang Patel5d28b882007-12-04 22:54:47 +000012909 if test -z "$LLVMGCC"; then
12910 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012911 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000012912 fi
12913 if test -z "$LLVMGXX"; then
12914 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012915 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000012916 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012917
Reid Spencer59473af2004-12-25 07:31:29 +000012918 LLVMGCC=$LLVMGCC
12919
12920 LLVMGXX=$LLVMGXX
12921
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012922 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12923
12924 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12925
Reid Spencer59473af2004-12-25 07:31:29 +000012926fi
12927
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012928
Daniel Dunbar98515672010-02-23 10:00:49 +000012929# Check whether --with-llvmcc was given.
12930if test "${with_llvmcc+set}" = set; then
12931 withval=$with_llvmcc;
12932else
12933 with_llvmcc=check
12934fi
12935
12936{ echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
12937echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
12938if test "$with_llvmcc" != "check"; then
12939 if (test "$with_llvmcc" != "llvm-gcc" &&
12940 test "$with_llvmcc" != "clang" &&
12941 test "$with_llvmcc" != "none"); then
12942 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
12943echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
12944 { (exit 1); exit 1; }; }
12945 fi
12946 WITH_LLVMCC="$with_llvmcc"
12947elif test -n "$LLVMGCC"; then
12948 WITH_LLVMCC=llvm-gcc
12949elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
12950 WITH_LLVMCC=clang
12951else
12952 WITH_LLVMCC=none
12953fi
12954{ echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
12955echo "${ECHO_T}$WITH_LLVMCC" >&6; }
12956LLVMCC_OPTION=$WITH_LLVMCC
12957
12958
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012959{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12960echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012961
Reid Spencer86901802004-12-08 23:07:27 +000012962ICC=no
12963IXX=no
12964case $CC in
12965 icc*|icpc*)
12966 ICC=yes
12967 IXX=yes
12968 ;;
12969 *)
12970 ;;
12971esac
12972
Duraid Madina937c60a2006-02-15 07:57:42 +000012973if test "$GCC" != "yes" && test "$ICC" != "yes"
12974then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012975 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12976echo "$as_me: error: gcc|icc required but not found" >&2;}
12977 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012978fi
12979
12980if test "$GXX" != "yes" && test "$IXX" != "yes"
12981then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012982 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
12983echo "$as_me: error: g++|icc required but not found" >&2;}
12984 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012985fi
12986
Reid Spencer86901802004-12-08 23:07:27 +000012987if test "$GCC" = "yes"
12988then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012989 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000012990#if !defined(__GNUC__) || __GNUC__ < 3
12991#error Unsupported GCC version
12992#endif
12993
12994_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012995rm -f conftest.$ac_objext
12996if { (ac_try="$ac_compile"
12997case "(($ac_try" in
12998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12999 *) ac_try_echo=$ac_try;;
13000esac
13001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13002 (eval "$ac_compile") 2>conftest.er1
13003 ac_status=$?
13004 grep -v '^ *+' conftest.er1 >conftest.err
13005 rm -f conftest.er1
13006 cat conftest.err >&5
13007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008 (exit $ac_status); } &&
13009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13010 { (case "(($ac_try" in
13011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13012 *) ac_try_echo=$ac_try;;
13013esac
13014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13015 (eval "$ac_try") 2>&5
13016 ac_status=$?
13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); }; } &&
13019 { ac_try='test -s conftest.$ac_objext'
13020 { (case "(($ac_try" in
13021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13022 *) ac_try_echo=$ac_try;;
13023esac
13024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13025 (eval "$ac_try") 2>&5
13026 ac_status=$?
13027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028 (exit $ac_status); }; }; then
13029 :
Chris Lattner399c7c72008-02-05 19:43:53 +000013030else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013031 echo "$as_me: failed program was:" >&5
13032sed 's/^/| /' conftest.$ac_ext >&5
13033
13034 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13035echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13036 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000013037fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013038
Chris Lattner399c7c72008-02-05 19:43:53 +000013039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013040fi
13041
13042if test -z "$llvm_cv_gnu_make_command"
13043then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013044 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13045echo "$as_me: error: GNU Make required but not found" >&2;}
13046 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013047fi
13048
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013049{ echo "$as_me:$LINENO: result: ok" >&5
13050echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013051
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013052{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
13053echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013054NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13055
13056NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13057
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013058{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13059echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013060
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000013061
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013062
13063{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
13064echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13065if test "${ac_cv_lib_m_sin+set}" = set; then
13066 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000013067else
13068 ac_check_lib_save_LIBS=$LIBS
13069LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013070cat >conftest.$ac_ext <<_ACEOF
13071/* confdefs.h. */
13072_ACEOF
13073cat confdefs.h >>conftest.$ac_ext
13074cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000013075/* end confdefs.h. */
13076
Reid Spencera773bd52006-08-04 18:18:08 +000013077/* Override any GCC internal prototype to avoid an error.
13078 Use char because int might match the return type of a GCC
13079 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000013080#ifdef __cplusplus
13081extern "C"
13082#endif
Reid Spencer3484a992006-01-19 08:31:08 +000013083char sin ();
13084int
13085main ()
13086{
Reid Spencera773bd52006-08-04 18:18:08 +000013087return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000013088 ;
13089 return 0;
13090}
13091_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013092rm -f conftest.$ac_objext conftest$ac_exeext
13093if { (ac_try="$ac_link"
13094case "(($ac_try" in
13095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13096 *) ac_try_echo=$ac_try;;
13097esac
13098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13099 (eval "$ac_link") 2>conftest.er1
13100 ac_status=$?
13101 grep -v '^ *+' conftest.er1 >conftest.err
13102 rm -f conftest.er1
13103 cat conftest.err >&5
13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); } &&
13106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13107 { (case "(($ac_try" in
13108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13109 *) ac_try_echo=$ac_try;;
13110esac
13111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13112 (eval "$ac_try") 2>&5
13113 ac_status=$?
13114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115 (exit $ac_status); }; } &&
13116 { ac_try='test -s conftest$ac_exeext'
13117 { (case "(($ac_try" in
13118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13119 *) ac_try_echo=$ac_try;;
13120esac
13121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13122 (eval "$ac_try") 2>&5
13123 ac_status=$?
13124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13125 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000013126 ac_cv_lib_m_sin=yes
13127else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013128 echo "$as_me: failed program was:" >&5
13129sed 's/^/| /' conftest.$ac_ext >&5
13130
13131 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000013132fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013133
Bill Wendlingebcceee2009-04-18 11:20:33 +000013134rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013135 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000013136LIBS=$ac_check_lib_save_LIBS
13137fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013138{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13139echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13140if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000013141 cat >>confdefs.h <<_ACEOF
13142#define HAVE_LIBM 1
13143_ACEOF
13144
13145 LIBS="-lm $LIBS"
13146
13147fi
13148
Jeff Cohen28783c32007-01-12 18:22:38 +000013149if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013150
13151{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13152echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13153if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13154 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013155else
13156 ac_check_lib_save_LIBS=$LIBS
13157LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013158cat >conftest.$ac_ext <<_ACEOF
13159/* confdefs.h. */
13160_ACEOF
13161cat confdefs.h >>conftest.$ac_ext
13162cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013163/* end confdefs.h. */
13164
Reid Spencer48fdf912006-06-01 19:03:21 +000013165
Reid Spencer484fc8e2006-06-01 16:55:59 +000013166int
13167main ()
13168{
Reid Spencera773bd52006-08-04 18:18:08 +000013169return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013170 ;
13171 return 0;
13172}
13173_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013174rm -f conftest.$ac_objext conftest$ac_exeext
13175if { (ac_try="$ac_link"
13176case "(($ac_try" in
13177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13178 *) ac_try_echo=$ac_try;;
13179esac
13180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13181 (eval "$ac_link") 2>conftest.er1
13182 ac_status=$?
13183 grep -v '^ *+' conftest.er1 >conftest.err
13184 rm -f conftest.er1
13185 cat conftest.err >&5
13186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187 (exit $ac_status); } &&
13188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13189 { (case "(($ac_try" in
13190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13191 *) ac_try_echo=$ac_try;;
13192esac
13193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13194 (eval "$ac_try") 2>&5
13195 ac_status=$?
13196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197 (exit $ac_status); }; } &&
13198 { ac_try='test -s conftest$ac_exeext'
13199 { (case "(($ac_try" in
13200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13201 *) ac_try_echo=$ac_try;;
13202esac
13203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13204 (eval "$ac_try") 2>&5
13205 ac_status=$?
13206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013208 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013209else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013210 echo "$as_me: failed program was:" >&5
13211sed 's/^/| /' conftest.$ac_ext >&5
13212
13213 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013214fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013215
Bill Wendlingebcceee2009-04-18 11:20:33 +000013216rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013217 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013218LIBS=$ac_check_lib_save_LIBS
13219fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013220{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13221echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13222if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013223 cat >>confdefs.h <<_ACEOF
13224#define HAVE_LIBIMAGEHLP 1
13225_ACEOF
13226
13227 LIBS="-limagehlp $LIBS"
13228
13229fi
13230
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013231
13232{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13233echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13234if test "${ac_cv_lib_psapi_main+set}" = set; then
13235 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013236else
13237 ac_check_lib_save_LIBS=$LIBS
13238LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013239cat >conftest.$ac_ext <<_ACEOF
13240/* confdefs.h. */
13241_ACEOF
13242cat confdefs.h >>conftest.$ac_ext
13243cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013244/* end confdefs.h. */
13245
Reid Spencer48fdf912006-06-01 19:03:21 +000013246
Reid Spencer484fc8e2006-06-01 16:55:59 +000013247int
13248main ()
13249{
Reid Spencera773bd52006-08-04 18:18:08 +000013250return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013251 ;
13252 return 0;
13253}
13254_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013255rm -f conftest.$ac_objext conftest$ac_exeext
13256if { (ac_try="$ac_link"
13257case "(($ac_try" in
13258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13259 *) ac_try_echo=$ac_try;;
13260esac
13261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13262 (eval "$ac_link") 2>conftest.er1
13263 ac_status=$?
13264 grep -v '^ *+' conftest.er1 >conftest.err
13265 rm -f conftest.er1
13266 cat conftest.err >&5
13267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268 (exit $ac_status); } &&
13269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13270 { (case "(($ac_try" in
13271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13272 *) ac_try_echo=$ac_try;;
13273esac
13274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13275 (eval "$ac_try") 2>&5
13276 ac_status=$?
13277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278 (exit $ac_status); }; } &&
13279 { ac_try='test -s conftest$ac_exeext'
13280 { (case "(($ac_try" in
13281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13282 *) ac_try_echo=$ac_try;;
13283esac
13284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13285 (eval "$ac_try") 2>&5
13286 ac_status=$?
13287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013289 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013290else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013291 echo "$as_me: failed program was:" >&5
13292sed 's/^/| /' conftest.$ac_ext >&5
13293
13294 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013295fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013296
Bill Wendlingebcceee2009-04-18 11:20:33 +000013297rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013298 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013299LIBS=$ac_check_lib_save_LIBS
13300fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013301{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13302echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13303if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013304 cat >>confdefs.h <<_ACEOF
13305#define HAVE_LIBPSAPI 1
13306_ACEOF
13307
13308 LIBS="-lpsapi $LIBS"
13309
13310fi
13311
13312fi
Reid Spencer22177fe2005-07-12 15:24:20 +000013313
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013314{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13315echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13316if test "${ac_cv_search_dlopen+set}" = set; then
13317 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013318else
13319 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013320cat >conftest.$ac_ext <<_ACEOF
13321/* confdefs.h. */
13322_ACEOF
13323cat confdefs.h >>conftest.$ac_ext
13324cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013325/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013326
Reid Spencera773bd52006-08-04 18:18:08 +000013327/* Override any GCC internal prototype to avoid an error.
13328 Use char because int might match the return type of a GCC
13329 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013330#ifdef __cplusplus
13331extern "C"
13332#endif
John Criswell7a73b802003-06-30 21:59:07 +000013333char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013334int
13335main ()
13336{
Reid Spencera773bd52006-08-04 18:18:08 +000013337return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013338 ;
13339 return 0;
13340}
13341_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013342for ac_lib in '' dl; do
13343 if test -z "$ac_lib"; then
13344 ac_res="none required"
13345 else
13346 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013347 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013348 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013349 rm -f conftest.$ac_objext conftest$ac_exeext
13350if { (ac_try="$ac_link"
13351case "(($ac_try" in
13352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13353 *) ac_try_echo=$ac_try;;
13354esac
13355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13356 (eval "$ac_link") 2>conftest.er1
13357 ac_status=$?
13358 grep -v '^ *+' conftest.er1 >conftest.err
13359 rm -f conftest.er1
13360 cat conftest.err >&5
13361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362 (exit $ac_status); } &&
13363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13364 { (case "(($ac_try" in
13365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13366 *) ac_try_echo=$ac_try;;
13367esac
13368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13369 (eval "$ac_try") 2>&5
13370 ac_status=$?
13371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372 (exit $ac_status); }; } &&
13373 { ac_try='test -s conftest$ac_exeext'
13374 { (case "(($ac_try" in
13375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13376 *) ac_try_echo=$ac_try;;
13377esac
13378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13379 (eval "$ac_try") 2>&5
13380 ac_status=$?
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013383 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013384else
13385 echo "$as_me: failed program was:" >&5
13386sed 's/^/| /' conftest.$ac_ext >&5
13387
13388
John Criswell7a73b802003-06-30 21:59:07 +000013389fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013390
Bill Wendlingebcceee2009-04-18 11:20:33 +000013391rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013392 conftest$ac_exeext
13393 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013394 break
John Criswell7a73b802003-06-30 21:59:07 +000013395fi
Reid Spencera773bd52006-08-04 18:18:08 +000013396done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013397if test "${ac_cv_search_dlopen+set}" = set; then
13398 :
Reid Spencera773bd52006-08-04 18:18:08 +000013399else
13400 ac_cv_search_dlopen=no
13401fi
13402rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013403LIBS=$ac_func_search_save_LIBS
13404fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013405{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13406echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013407ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013408if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013409 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013410
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013411cat >>confdefs.h <<\_ACEOF
13412#define HAVE_DLOPEN 1
13413_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013414
13415else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013416 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13417echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000013418fi
13419
13420
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013421if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013422 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13423echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13424if test "${ac_cv_search_ffi_call+set}" = set; then
13425 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013426else
Nick Lewycky267fddb2009-04-13 04:26:27 +000013427 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013428cat >conftest.$ac_ext <<_ACEOF
13429/* confdefs.h. */
13430_ACEOF
13431cat confdefs.h >>conftest.$ac_ext
13432cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013433/* end confdefs.h. */
13434
13435/* Override any GCC internal prototype to avoid an error.
13436 Use char because int might match the return type of a GCC
13437 builtin and then its argument prototype would still apply. */
13438#ifdef __cplusplus
13439extern "C"
13440#endif
13441char ffi_call ();
13442int
13443main ()
13444{
13445return ffi_call ();
13446 ;
13447 return 0;
13448}
13449_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013450for ac_lib in '' ffi; do
13451 if test -z "$ac_lib"; then
13452 ac_res="none required"
13453 else
13454 ac_res=-l$ac_lib
13455 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13456 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013457 rm -f conftest.$ac_objext conftest$ac_exeext
13458if { (ac_try="$ac_link"
13459case "(($ac_try" in
13460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13461 *) ac_try_echo=$ac_try;;
13462esac
13463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13464 (eval "$ac_link") 2>conftest.er1
13465 ac_status=$?
13466 grep -v '^ *+' conftest.er1 >conftest.err
13467 rm -f conftest.er1
13468 cat conftest.err >&5
13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); } &&
13471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13472 { (case "(($ac_try" in
13473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13474 *) ac_try_echo=$ac_try;;
13475esac
13476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13477 (eval "$ac_try") 2>&5
13478 ac_status=$?
13479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480 (exit $ac_status); }; } &&
13481 { ac_try='test -s conftest$ac_exeext'
13482 { (case "(($ac_try" in
13483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13484 *) ac_try_echo=$ac_try;;
13485esac
13486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13487 (eval "$ac_try") 2>&5
13488 ac_status=$?
13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013491 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013492else
13493 echo "$as_me: failed program was:" >&5
13494sed 's/^/| /' conftest.$ac_ext >&5
13495
13496
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013497fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013498
Bill Wendlingebcceee2009-04-18 11:20:33 +000013499rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013500 conftest$ac_exeext
13501 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013502 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013503fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000013504done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013505if test "${ac_cv_search_ffi_call+set}" = set; then
13506 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000013507else
13508 ac_cv_search_ffi_call=no
13509fi
13510rm conftest.$ac_ext
13511LIBS=$ac_func_search_save_LIBS
13512fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013513{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13514echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000013515ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013516if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013517 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13518
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013519cat >>confdefs.h <<\_ACEOF
13520#define HAVE_FFI_CALL 1
13521_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013522
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013523else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000013524 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13525echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13526 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013527fi
13528
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013529fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013530
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013531{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13532echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13533if test "${ac_cv_search_mallinfo+set}" = set; then
13534 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013535else
13536 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013537cat >conftest.$ac_ext <<_ACEOF
13538/* confdefs.h. */
13539_ACEOF
13540cat confdefs.h >>conftest.$ac_ext
13541cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013542/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013543
Reid Spencera773bd52006-08-04 18:18:08 +000013544/* Override any GCC internal prototype to avoid an error.
13545 Use char because int might match the return type of a GCC
13546 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013547#ifdef __cplusplus
13548extern "C"
13549#endif
John Criswell7a73b802003-06-30 21:59:07 +000013550char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013551int
13552main ()
13553{
Reid Spencera773bd52006-08-04 18:18:08 +000013554return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013555 ;
13556 return 0;
13557}
13558_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013559for ac_lib in '' malloc; do
13560 if test -z "$ac_lib"; then
13561 ac_res="none required"
13562 else
13563 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013564 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013565 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013566 rm -f conftest.$ac_objext conftest$ac_exeext
13567if { (ac_try="$ac_link"
13568case "(($ac_try" in
13569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13570 *) ac_try_echo=$ac_try;;
13571esac
13572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13573 (eval "$ac_link") 2>conftest.er1
13574 ac_status=$?
13575 grep -v '^ *+' conftest.er1 >conftest.err
13576 rm -f conftest.er1
13577 cat conftest.err >&5
13578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579 (exit $ac_status); } &&
13580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13581 { (case "(($ac_try" in
13582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13583 *) ac_try_echo=$ac_try;;
13584esac
13585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13586 (eval "$ac_try") 2>&5
13587 ac_status=$?
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); }; } &&
13590 { ac_try='test -s conftest$ac_exeext'
13591 { (case "(($ac_try" in
13592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13593 *) ac_try_echo=$ac_try;;
13594esac
13595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13596 (eval "$ac_try") 2>&5
13597 ac_status=$?
13598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13599 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013600 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013601else
13602 echo "$as_me: failed program was:" >&5
13603sed 's/^/| /' conftest.$ac_ext >&5
13604
13605
John Criswell7a73b802003-06-30 21:59:07 +000013606fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013607
Bill Wendlingebcceee2009-04-18 11:20:33 +000013608rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013609 conftest$ac_exeext
13610 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013611 break
John Criswell7a73b802003-06-30 21:59:07 +000013612fi
Reid Spencera773bd52006-08-04 18:18:08 +000013613done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013614if test "${ac_cv_search_mallinfo+set}" = set; then
13615 :
Reid Spencera773bd52006-08-04 18:18:08 +000013616else
13617 ac_cv_search_mallinfo=no
13618fi
13619rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013620LIBS=$ac_func_search_save_LIBS
13621fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013622{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13623echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013624ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013625if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013626 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013627
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013628cat >>confdefs.h <<\_ACEOF
13629#define HAVE_MALLINFO 1
13630_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013631
13632fi
13633
13634
Reid Spencer0a262ba2005-08-24 10:07:20 +000013635if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013636
13637{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13638echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13639if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13640 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000013641else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013642 ac_check_lib_save_LIBS=$LIBS
13643LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013644cat >conftest.$ac_ext <<_ACEOF
13645/* confdefs.h. */
13646_ACEOF
13647cat confdefs.h >>conftest.$ac_ext
13648cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000013649/* end confdefs.h. */
13650
Reid Spencera773bd52006-08-04 18:18:08 +000013651/* Override any GCC internal prototype to avoid an error.
13652 Use char because int might match the return type of a GCC
13653 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000013654#ifdef __cplusplus
13655extern "C"
13656#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000013657char pthread_mutex_init ();
13658int
13659main ()
13660{
Reid Spencera773bd52006-08-04 18:18:08 +000013661return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000013662 ;
13663 return 0;
13664}
13665_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013666rm -f conftest.$ac_objext conftest$ac_exeext
13667if { (ac_try="$ac_link"
13668case "(($ac_try" in
13669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13670 *) ac_try_echo=$ac_try;;
13671esac
13672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13673 (eval "$ac_link") 2>conftest.er1
13674 ac_status=$?
13675 grep -v '^ *+' conftest.er1 >conftest.err
13676 rm -f conftest.er1
13677 cat conftest.err >&5
13678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679 (exit $ac_status); } &&
13680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13681 { (case "(($ac_try" in
13682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13683 *) ac_try_echo=$ac_try;;
13684esac
13685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13686 (eval "$ac_try") 2>&5
13687 ac_status=$?
13688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689 (exit $ac_status); }; } &&
13690 { ac_try='test -s conftest$ac_exeext'
13691 { (case "(($ac_try" in
13692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13693 *) ac_try_echo=$ac_try;;
13694esac
13695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13696 (eval "$ac_try") 2>&5
13697 ac_status=$?
13698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013700 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000013701else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013702 echo "$as_me: failed program was:" >&5
13703sed 's/^/| /' conftest.$ac_ext >&5
13704
13705 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000013706fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013707
Bill Wendlingebcceee2009-04-18 11:20:33 +000013708rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013709 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013710LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000013711fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013712{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13713echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13714if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013715 cat >>confdefs.h <<_ACEOF
13716#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000013717_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000013718
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013719 LIBS="-lpthread $LIBS"
13720
Reid Spencer22177fe2005-07-12 15:24:20 +000013721fi
13722
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013723 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13724echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13725if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13726 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000013727else
13728 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013729cat >conftest.$ac_ext <<_ACEOF
13730/* confdefs.h. */
13731_ACEOF
13732cat confdefs.h >>conftest.$ac_ext
13733cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000013734/* end confdefs.h. */
13735
Reid Spencera773bd52006-08-04 18:18:08 +000013736/* Override any GCC internal prototype to avoid an error.
13737 Use char because int might match the return type of a GCC
13738 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000013739#ifdef __cplusplus
13740extern "C"
13741#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000013742char pthread_mutex_lock ();
13743int
13744main ()
13745{
Reid Spencera773bd52006-08-04 18:18:08 +000013746return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000013747 ;
13748 return 0;
13749}
13750_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013751for ac_lib in '' pthread; do
13752 if test -z "$ac_lib"; then
13753 ac_res="none required"
13754 else
13755 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000013756 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013757 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013758 rm -f conftest.$ac_objext conftest$ac_exeext
13759if { (ac_try="$ac_link"
13760case "(($ac_try" in
13761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13762 *) ac_try_echo=$ac_try;;
13763esac
13764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13765 (eval "$ac_link") 2>conftest.er1
13766 ac_status=$?
13767 grep -v '^ *+' conftest.er1 >conftest.err
13768 rm -f conftest.er1
13769 cat conftest.err >&5
13770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771 (exit $ac_status); } &&
13772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13773 { (case "(($ac_try" in
13774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13775 *) ac_try_echo=$ac_try;;
13776esac
13777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13778 (eval "$ac_try") 2>&5
13779 ac_status=$?
13780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); }; } &&
13782 { ac_try='test -s conftest$ac_exeext'
13783 { (case "(($ac_try" in
13784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13785 *) ac_try_echo=$ac_try;;
13786esac
13787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13788 (eval "$ac_try") 2>&5
13789 ac_status=$?
13790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013792 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013793else
13794 echo "$as_me: failed program was:" >&5
13795sed 's/^/| /' conftest.$ac_ext >&5
13796
13797
Brian Gaeke5f268f72003-12-05 19:29:01 +000013798fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013799
Bill Wendlingebcceee2009-04-18 11:20:33 +000013800rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013801 conftest$ac_exeext
13802 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013803 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000013804fi
Reid Spencera773bd52006-08-04 18:18:08 +000013805done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013806if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13807 :
Reid Spencera773bd52006-08-04 18:18:08 +000013808else
13809 ac_cv_search_pthread_mutex_lock=no
13810fi
13811rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000013812LIBS=$ac_func_search_save_LIBS
13813fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013814{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13815echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013816ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013817if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013818 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000013819
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013820cat >>confdefs.h <<\_ACEOF
13821#define HAVE_PTHREAD_MUTEX_LOCK 1
13822_ACEOF
John Criswell40468462004-09-24 21:19:06 +000013823
13824fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000013825
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013826 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13827echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13828if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13829 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000013830else
13831 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013832cat >conftest.$ac_ext <<_ACEOF
13833/* confdefs.h. */
13834_ACEOF
13835cat confdefs.h >>conftest.$ac_ext
13836cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013837/* end confdefs.h. */
13838
13839/* Override any GCC internal prototype to avoid an error.
13840 Use char because int might match the return type of a GCC
13841 builtin and then its argument prototype would still apply. */
13842#ifdef __cplusplus
13843extern "C"
13844#endif
13845char pthread_rwlock_init ();
13846int
13847main ()
13848{
13849return pthread_rwlock_init ();
13850 ;
13851 return 0;
13852}
13853_ACEOF
13854for ac_lib in '' pthread; do
13855 if test -z "$ac_lib"; then
13856 ac_res="none required"
13857 else
13858 ac_res=-l$ac_lib
13859 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13860 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013861 rm -f conftest.$ac_objext conftest$ac_exeext
13862if { (ac_try="$ac_link"
13863case "(($ac_try" in
13864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13865 *) ac_try_echo=$ac_try;;
13866esac
13867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13868 (eval "$ac_link") 2>conftest.er1
13869 ac_status=$?
13870 grep -v '^ *+' conftest.er1 >conftest.err
13871 rm -f conftest.er1
13872 cat conftest.err >&5
13873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874 (exit $ac_status); } &&
13875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13876 { (case "(($ac_try" in
13877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13878 *) ac_try_echo=$ac_try;;
13879esac
13880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13881 (eval "$ac_try") 2>&5
13882 ac_status=$?
13883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13884 (exit $ac_status); }; } &&
13885 { ac_try='test -s conftest$ac_exeext'
13886 { (case "(($ac_try" in
13887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13888 *) ac_try_echo=$ac_try;;
13889esac
13890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13891 (eval "$ac_try") 2>&5
13892 ac_status=$?
13893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013895 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013896else
13897 echo "$as_me: failed program was:" >&5
13898sed 's/^/| /' conftest.$ac_ext >&5
13899
13900
Owen Andersonde8aed22009-06-16 18:20:20 +000013901fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013902
Owen Andersonde8aed22009-06-16 18:20:20 +000013903rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013904 conftest$ac_exeext
13905 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013906 break
13907fi
13908done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013909if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13910 :
Owen Andersonde8aed22009-06-16 18:20:20 +000013911else
13912 ac_cv_search_pthread_rwlock_init=no
13913fi
13914rm conftest.$ac_ext
13915LIBS=$ac_func_search_save_LIBS
13916fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013917{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13918echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000013919ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013920if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013921 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13922
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013923cat >>confdefs.h <<\_ACEOF
13924#define HAVE_PTHREAD_RWLOCK_INIT 1
13925_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013926
13927fi
13928
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013929 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13930echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13931if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13932 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000013933else
13934 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013935cat >conftest.$ac_ext <<_ACEOF
13936/* confdefs.h. */
13937_ACEOF
13938cat confdefs.h >>conftest.$ac_ext
13939cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013940/* end confdefs.h. */
13941
13942/* Override any GCC internal prototype to avoid an error.
13943 Use char because int might match the return type of a GCC
13944 builtin and then its argument prototype would still apply. */
13945#ifdef __cplusplus
13946extern "C"
13947#endif
13948char pthread_getspecific ();
13949int
13950main ()
13951{
13952return pthread_getspecific ();
13953 ;
13954 return 0;
13955}
13956_ACEOF
13957for ac_lib in '' pthread; do
13958 if test -z "$ac_lib"; then
13959 ac_res="none required"
13960 else
13961 ac_res=-l$ac_lib
13962 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13963 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013964 rm -f conftest.$ac_objext conftest$ac_exeext
13965if { (ac_try="$ac_link"
13966case "(($ac_try" in
13967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13968 *) ac_try_echo=$ac_try;;
13969esac
13970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13971 (eval "$ac_link") 2>conftest.er1
13972 ac_status=$?
13973 grep -v '^ *+' conftest.er1 >conftest.err
13974 rm -f conftest.er1
13975 cat conftest.err >&5
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); } &&
13978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13979 { (case "(($ac_try" in
13980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13981 *) ac_try_echo=$ac_try;;
13982esac
13983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13984 (eval "$ac_try") 2>&5
13985 ac_status=$?
13986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13987 (exit $ac_status); }; } &&
13988 { ac_try='test -s conftest$ac_exeext'
13989 { (case "(($ac_try" in
13990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13991 *) ac_try_echo=$ac_try;;
13992esac
13993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13994 (eval "$ac_try") 2>&5
13995 ac_status=$?
13996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013998 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013999else
14000 echo "$as_me: failed program was:" >&5
14001sed 's/^/| /' conftest.$ac_ext >&5
14002
14003
Owen Anderson27fcfe12009-06-25 23:10:26 +000014004fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014005
Owen Anderson27fcfe12009-06-25 23:10:26 +000014006rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014007 conftest$ac_exeext
14008 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014009 break
14010fi
14011done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014012if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14013 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000014014else
14015 ac_cv_search_pthread_getspecific=no
14016fi
14017rm conftest.$ac_ext
14018LIBS=$ac_func_search_save_LIBS
14019fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014020{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14021echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000014022ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014023if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014024 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14025
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014026cat >>confdefs.h <<\_ACEOF
14027#define HAVE_PTHREAD_GETSPECIFIC 1
14028_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014029
14030fi
14031
Reid Spencer0a262ba2005-08-24 10:07:20 +000014032fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000014033
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014034
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014035# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014036if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014037 withval=$with_udis86;
14038 USE_UDIS86=1
14039
14040 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000014041 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014042 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14043 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014044
14045{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14046echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14047if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14048 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014049else
14050 ac_check_lib_save_LIBS=$LIBS
14051LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014052cat >conftest.$ac_ext <<_ACEOF
14053/* confdefs.h. */
14054_ACEOF
14055cat confdefs.h >>conftest.$ac_ext
14056cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014057/* end confdefs.h. */
14058
14059/* Override any GCC internal prototype to avoid an error.
14060 Use char because int might match the return type of a GCC
14061 builtin and then its argument prototype would still apply. */
14062#ifdef __cplusplus
14063extern "C"
14064#endif
14065char ud_init ();
14066int
14067main ()
14068{
14069return ud_init ();
14070 ;
14071 return 0;
14072}
14073_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014074rm -f conftest.$ac_objext conftest$ac_exeext
14075if { (ac_try="$ac_link"
14076case "(($ac_try" in
14077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14078 *) ac_try_echo=$ac_try;;
14079esac
14080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14081 (eval "$ac_link") 2>conftest.er1
14082 ac_status=$?
14083 grep -v '^ *+' conftest.er1 >conftest.err
14084 rm -f conftest.er1
14085 cat conftest.err >&5
14086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14087 (exit $ac_status); } &&
14088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14089 { (case "(($ac_try" in
14090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14091 *) ac_try_echo=$ac_try;;
14092esac
14093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14094 (eval "$ac_try") 2>&5
14095 ac_status=$?
14096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097 (exit $ac_status); }; } &&
14098 { ac_try='test -s conftest$ac_exeext'
14099 { (case "(($ac_try" in
14100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14101 *) ac_try_echo=$ac_try;;
14102esac
14103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14104 (eval "$ac_try") 2>&5
14105 ac_status=$?
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014108 ac_cv_lib_udis86_ud_init=yes
14109else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014110 echo "$as_me: failed program was:" >&5
14111sed 's/^/| /' conftest.$ac_ext >&5
14112
14113 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014114fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014115
Bill Wendlingebcceee2009-04-18 11:20:33 +000014116rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014117 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014118LIBS=$ac_check_lib_save_LIBS
14119fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014120{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14121echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14122if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014123 cat >>confdefs.h <<_ACEOF
14124#define HAVE_LIBUDIS86 1
14125_ACEOF
14126
14127 LIBS="-ludis86 $LIBS"
14128
14129else
14130
14131 echo "Error! You need to have libudis86 around."
14132 exit -1
14133
14134fi
14135
14136
14137else
14138 USE_UDIS86=0
14139
14140fi
14141
14142
14143cat >>confdefs.h <<_ACEOF
14144#define USE_UDIS86 $USE_UDIS86
14145_ACEOF
14146
14147
14148
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014149# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014150if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014151 withval=$with_oprofile;
14152 USE_OPROFILE=1
14153
14154 case "$withval" in
14155 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014156 no) llvm_cv_oppath=
14157 USE_OPROFILE=0
14158 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014159 *) llvm_cv_oppath="${withval}/lib/oprofile"
14160 CPPFLAGS="-I${withval}/include";;
14161 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014162 if test -n "$llvm_cv_oppath" ; then
14163 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014164 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14165echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14166if test "${ac_cv_search_bfd_init+set}" = set; then
14167 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014168else
14169 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014170cat >conftest.$ac_ext <<_ACEOF
14171/* confdefs.h. */
14172_ACEOF
14173cat confdefs.h >>conftest.$ac_ext
14174cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014175/* end confdefs.h. */
14176
14177/* Override any GCC internal prototype to avoid an error.
14178 Use char because int might match the return type of a GCC
14179 builtin and then its argument prototype would still apply. */
14180#ifdef __cplusplus
14181extern "C"
14182#endif
14183char bfd_init ();
14184int
14185main ()
14186{
14187return bfd_init ();
14188 ;
14189 return 0;
14190}
14191_ACEOF
14192for ac_lib in '' bfd; do
14193 if test -z "$ac_lib"; then
14194 ac_res="none required"
14195 else
14196 ac_res=-l$ac_lib
14197 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14198 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014199 rm -f conftest.$ac_objext conftest$ac_exeext
14200if { (ac_try="$ac_link"
14201case "(($ac_try" in
14202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14203 *) ac_try_echo=$ac_try;;
14204esac
14205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14206 (eval "$ac_link") 2>conftest.er1
14207 ac_status=$?
14208 grep -v '^ *+' conftest.er1 >conftest.err
14209 rm -f conftest.er1
14210 cat conftest.err >&5
14211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212 (exit $ac_status); } &&
14213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14214 { (case "(($ac_try" in
14215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14216 *) ac_try_echo=$ac_try;;
14217esac
14218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14219 (eval "$ac_try") 2>&5
14220 ac_status=$?
14221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222 (exit $ac_status); }; } &&
14223 { ac_try='test -s conftest$ac_exeext'
14224 { (case "(($ac_try" in
14225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14226 *) ac_try_echo=$ac_try;;
14227esac
14228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14229 (eval "$ac_try") 2>&5
14230 ac_status=$?
14231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14232 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014233 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014234else
14235 echo "$as_me: failed program was:" >&5
14236sed 's/^/| /' conftest.$ac_ext >&5
14237
14238
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014239fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014240
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014241rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014242 conftest$ac_exeext
14243 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014244 break
14245fi
14246done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014247if test "${ac_cv_search_bfd_init+set}" = set; then
14248 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014249else
14250 ac_cv_search_bfd_init=no
14251fi
14252rm conftest.$ac_ext
14253LIBS=$ac_func_search_save_LIBS
14254fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014255{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14256echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014257ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014258if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014259 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14260
14261fi
14262
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014263 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14264echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14265if test "${ac_cv_search_op_open_agent+set}" = set; then
14266 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014267else
14268 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014269cat >conftest.$ac_ext <<_ACEOF
14270/* confdefs.h. */
14271_ACEOF
14272cat confdefs.h >>conftest.$ac_ext
14273cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014274/* end confdefs.h. */
14275
14276/* Override any GCC internal prototype to avoid an error.
14277 Use char because int might match the return type of a GCC
14278 builtin and then its argument prototype would still apply. */
14279#ifdef __cplusplus
14280extern "C"
14281#endif
14282char op_open_agent ();
14283int
14284main ()
14285{
14286return op_open_agent ();
14287 ;
14288 return 0;
14289}
14290_ACEOF
14291for ac_lib in '' opagent; do
14292 if test -z "$ac_lib"; then
14293 ac_res="none required"
14294 else
14295 ac_res=-l$ac_lib
14296 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14297 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014298 rm -f conftest.$ac_objext conftest$ac_exeext
14299if { (ac_try="$ac_link"
14300case "(($ac_try" in
14301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14302 *) ac_try_echo=$ac_try;;
14303esac
14304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14305 (eval "$ac_link") 2>conftest.er1
14306 ac_status=$?
14307 grep -v '^ *+' conftest.er1 >conftest.err
14308 rm -f conftest.er1
14309 cat conftest.err >&5
14310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311 (exit $ac_status); } &&
14312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14313 { (case "(($ac_try" in
14314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14315 *) ac_try_echo=$ac_try;;
14316esac
14317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14318 (eval "$ac_try") 2>&5
14319 ac_status=$?
14320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14321 (exit $ac_status); }; } &&
14322 { ac_try='test -s conftest$ac_exeext'
14323 { (case "(($ac_try" in
14324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14325 *) ac_try_echo=$ac_try;;
14326esac
14327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14328 (eval "$ac_try") 2>&5
14329 ac_status=$?
14330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014332 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014333else
14334 echo "$as_me: failed program was:" >&5
14335sed 's/^/| /' conftest.$ac_ext >&5
14336
14337
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014338fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014339
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014340rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014341 conftest$ac_exeext
14342 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014343 break
14344fi
14345done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014346if test "${ac_cv_search_op_open_agent+set}" = set; then
14347 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014348else
14349 ac_cv_search_op_open_agent=no
14350fi
14351rm conftest.$ac_ext
14352LIBS=$ac_func_search_save_LIBS
14353fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014354{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14355echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014356ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014357if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014358 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14359
14360else
14361
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014362 echo "Error! You need to have libopagent around."
14363 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014364
14365fi
14366
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014367 if test "${ac_cv_header_opagent_h+set}" = set; then
14368 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14369echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14370if test "${ac_cv_header_opagent_h+set}" = set; then
14371 echo $ECHO_N "(cached) $ECHO_C" >&6
14372fi
14373{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14374echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14375else
14376 # Is the header compilable?
14377{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
14378echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14379cat >conftest.$ac_ext <<_ACEOF
14380/* confdefs.h. */
14381_ACEOF
14382cat confdefs.h >>conftest.$ac_ext
14383cat >>conftest.$ac_ext <<_ACEOF
14384/* end confdefs.h. */
14385$ac_includes_default
14386#include <opagent.h>
14387_ACEOF
14388rm -f conftest.$ac_objext
14389if { (ac_try="$ac_compile"
14390case "(($ac_try" in
14391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14392 *) ac_try_echo=$ac_try;;
14393esac
14394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14395 (eval "$ac_compile") 2>conftest.er1
14396 ac_status=$?
14397 grep -v '^ *+' conftest.er1 >conftest.err
14398 rm -f conftest.er1
14399 cat conftest.err >&5
14400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401 (exit $ac_status); } &&
14402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14403 { (case "(($ac_try" in
14404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14405 *) ac_try_echo=$ac_try;;
14406esac
14407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14408 (eval "$ac_try") 2>&5
14409 ac_status=$?
14410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411 (exit $ac_status); }; } &&
14412 { ac_try='test -s conftest.$ac_objext'
14413 { (case "(($ac_try" in
14414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14415 *) ac_try_echo=$ac_try;;
14416esac
14417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14418 (eval "$ac_try") 2>&5
14419 ac_status=$?
14420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421 (exit $ac_status); }; }; then
14422 ac_header_compiler=yes
14423else
14424 echo "$as_me: failed program was:" >&5
14425sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014426
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014427 ac_header_compiler=no
14428fi
14429
14430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14431{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14432echo "${ECHO_T}$ac_header_compiler" >&6; }
14433
14434# Is the header present?
14435{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
14436echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14437cat >conftest.$ac_ext <<_ACEOF
14438/* confdefs.h. */
14439_ACEOF
14440cat confdefs.h >>conftest.$ac_ext
14441cat >>conftest.$ac_ext <<_ACEOF
14442/* end confdefs.h. */
14443#include <opagent.h>
14444_ACEOF
14445if { (ac_try="$ac_cpp conftest.$ac_ext"
14446case "(($ac_try" in
14447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14448 *) ac_try_echo=$ac_try;;
14449esac
14450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14451 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14452 ac_status=$?
14453 grep -v '^ *+' conftest.er1 >conftest.err
14454 rm -f conftest.er1
14455 cat conftest.err >&5
14456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); } >/dev/null; then
14458 if test -s conftest.err; then
14459 ac_cpp_err=$ac_c_preproc_warn_flag
14460 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14461 else
14462 ac_cpp_err=
14463 fi
14464else
14465 ac_cpp_err=yes
14466fi
14467if test -z "$ac_cpp_err"; then
14468 ac_header_preproc=yes
14469else
14470 echo "$as_me: failed program was:" >&5
14471sed 's/^/| /' conftest.$ac_ext >&5
14472
14473 ac_header_preproc=no
14474fi
14475
14476rm -f conftest.err conftest.$ac_ext
14477{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14478echo "${ECHO_T}$ac_header_preproc" >&6; }
14479
14480# So? What about this header?
14481case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14482 yes:no: )
14483 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14484echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14485 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14486echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14487 ac_header_preproc=yes
14488 ;;
14489 no:yes:* )
14490 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14491echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14492 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14493echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14494 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14495echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14496 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14497echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14498 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14499echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14500 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14501echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14502 ( cat <<\_ASBOX
14503## ----------------------------------- ##
14504## Report this to llvmbugs@cs.uiuc.edu ##
14505## ----------------------------------- ##
14506_ASBOX
14507 ) | sed "s/^/$as_me: WARNING: /" >&2
14508 ;;
14509esac
14510{ echo "$as_me:$LINENO: checking for opagent.h" >&5
14511echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14512if test "${ac_cv_header_opagent_h+set}" = set; then
14513 echo $ECHO_N "(cached) $ECHO_C" >&6
14514else
14515 ac_cv_header_opagent_h=$ac_header_preproc
14516fi
14517{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14518echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14519
14520fi
14521if test $ac_cv_header_opagent_h = yes; then
14522 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014523else
14524
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014525 echo "Error! You need to have opagent.h around."
14526 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014527
14528fi
14529
14530
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014531 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014532
14533else
14534
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014535 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014536
14537
14538fi
14539
14540
14541cat >>confdefs.h <<_ACEOF
14542#define USE_OPROFILE $USE_OPROFILE
14543_ACEOF
14544
14545
14546
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014547
14548
14549
14550
14551
Reid Spencer59473af2004-12-25 07:31:29 +000014552ac_header_dirent=no
14553for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014554 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14555{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14556echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14557if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14558 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014559else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014560 cat >conftest.$ac_ext <<_ACEOF
14561/* confdefs.h. */
14562_ACEOF
14563cat confdefs.h >>conftest.$ac_ext
14564cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014565/* end confdefs.h. */
14566#include <sys/types.h>
14567#include <$ac_hdr>
14568
14569int
14570main ()
14571{
14572if ((DIR *) 0)
14573return 0;
14574 ;
14575 return 0;
14576}
14577_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014578rm -f conftest.$ac_objext
14579if { (ac_try="$ac_compile"
14580case "(($ac_try" in
14581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14582 *) ac_try_echo=$ac_try;;
14583esac
14584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14585 (eval "$ac_compile") 2>conftest.er1
14586 ac_status=$?
14587 grep -v '^ *+' conftest.er1 >conftest.err
14588 rm -f conftest.er1
14589 cat conftest.err >&5
14590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591 (exit $ac_status); } &&
14592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14593 { (case "(($ac_try" in
14594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14595 *) ac_try_echo=$ac_try;;
14596esac
14597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14598 (eval "$ac_try") 2>&5
14599 ac_status=$?
14600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14601 (exit $ac_status); }; } &&
14602 { ac_try='test -s conftest.$ac_objext'
14603 { (case "(($ac_try" in
14604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14605 *) ac_try_echo=$ac_try;;
14606esac
14607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14608 (eval "$ac_try") 2>&5
14609 ac_status=$?
14610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014612 eval "$as_ac_Header=yes"
14613else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014614 echo "$as_me: failed program was:" >&5
14615sed 's/^/| /' conftest.$ac_ext >&5
14616
14617 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000014618fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014619
Reid Spencera773bd52006-08-04 18:18:08 +000014620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014621fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014622ac_res=`eval echo '${'$as_ac_Header'}'`
14623 { echo "$as_me:$LINENO: result: $ac_res" >&5
14624echo "${ECHO_T}$ac_res" >&6; }
14625if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014626 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014627#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014628_ACEOF
14629
14630ac_header_dirent=$ac_hdr; break
14631fi
14632
14633done
14634# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14635if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014636 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14637echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14638if test "${ac_cv_search_opendir+set}" = set; then
14639 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014640else
14641 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014642cat >conftest.$ac_ext <<_ACEOF
14643/* confdefs.h. */
14644_ACEOF
14645cat confdefs.h >>conftest.$ac_ext
14646cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014647/* end confdefs.h. */
14648
Reid Spencera773bd52006-08-04 18:18:08 +000014649/* Override any GCC internal prototype to avoid an error.
14650 Use char because int might match the return type of a GCC
14651 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014652#ifdef __cplusplus
14653extern "C"
14654#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014655char opendir ();
14656int
14657main ()
14658{
Reid Spencera773bd52006-08-04 18:18:08 +000014659return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014660 ;
14661 return 0;
14662}
14663_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014664for ac_lib in '' dir; do
14665 if test -z "$ac_lib"; then
14666 ac_res="none required"
14667 else
14668 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014669 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014670 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014671 rm -f conftest.$ac_objext conftest$ac_exeext
14672if { (ac_try="$ac_link"
14673case "(($ac_try" in
14674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14675 *) ac_try_echo=$ac_try;;
14676esac
14677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14678 (eval "$ac_link") 2>conftest.er1
14679 ac_status=$?
14680 grep -v '^ *+' conftest.er1 >conftest.err
14681 rm -f conftest.er1
14682 cat conftest.err >&5
14683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684 (exit $ac_status); } &&
14685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14686 { (case "(($ac_try" in
14687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14688 *) ac_try_echo=$ac_try;;
14689esac
14690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14691 (eval "$ac_try") 2>&5
14692 ac_status=$?
14693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694 (exit $ac_status); }; } &&
14695 { ac_try='test -s conftest$ac_exeext'
14696 { (case "(($ac_try" in
14697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14698 *) ac_try_echo=$ac_try;;
14699esac
14700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14701 (eval "$ac_try") 2>&5
14702 ac_status=$?
14703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014705 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014706else
14707 echo "$as_me: failed program was:" >&5
14708sed 's/^/| /' conftest.$ac_ext >&5
14709
14710
Reid Spencer59473af2004-12-25 07:31:29 +000014711fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014712
Bill Wendlingebcceee2009-04-18 11:20:33 +000014713rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014714 conftest$ac_exeext
14715 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014716 break
Reid Spencer59473af2004-12-25 07:31:29 +000014717fi
Reid Spencera773bd52006-08-04 18:18:08 +000014718done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014719if test "${ac_cv_search_opendir+set}" = set; then
14720 :
Reid Spencera773bd52006-08-04 18:18:08 +000014721else
14722 ac_cv_search_opendir=no
14723fi
14724rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014725LIBS=$ac_func_search_save_LIBS
14726fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014727{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14728echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014729ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014730if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014731 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014732
14733fi
14734
14735else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014736 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14737echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14738if test "${ac_cv_search_opendir+set}" = set; then
14739 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014740else
14741 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014742cat >conftest.$ac_ext <<_ACEOF
14743/* confdefs.h. */
14744_ACEOF
14745cat confdefs.h >>conftest.$ac_ext
14746cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014747/* end confdefs.h. */
14748
Reid Spencera773bd52006-08-04 18:18:08 +000014749/* Override any GCC internal prototype to avoid an error.
14750 Use char because int might match the return type of a GCC
14751 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014752#ifdef __cplusplus
14753extern "C"
14754#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014755char opendir ();
14756int
14757main ()
14758{
Reid Spencera773bd52006-08-04 18:18:08 +000014759return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014760 ;
14761 return 0;
14762}
14763_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014764for ac_lib in '' x; do
14765 if test -z "$ac_lib"; then
14766 ac_res="none required"
14767 else
14768 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014769 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014770 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014771 rm -f conftest.$ac_objext conftest$ac_exeext
14772if { (ac_try="$ac_link"
14773case "(($ac_try" in
14774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14775 *) ac_try_echo=$ac_try;;
14776esac
14777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14778 (eval "$ac_link") 2>conftest.er1
14779 ac_status=$?
14780 grep -v '^ *+' conftest.er1 >conftest.err
14781 rm -f conftest.er1
14782 cat conftest.err >&5
14783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784 (exit $ac_status); } &&
14785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14786 { (case "(($ac_try" in
14787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14788 *) ac_try_echo=$ac_try;;
14789esac
14790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14791 (eval "$ac_try") 2>&5
14792 ac_status=$?
14793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794 (exit $ac_status); }; } &&
14795 { ac_try='test -s conftest$ac_exeext'
14796 { (case "(($ac_try" in
14797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14798 *) ac_try_echo=$ac_try;;
14799esac
14800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14801 (eval "$ac_try") 2>&5
14802 ac_status=$?
14803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014805 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014806else
14807 echo "$as_me: failed program was:" >&5
14808sed 's/^/| /' conftest.$ac_ext >&5
14809
14810
Reid Spencer59473af2004-12-25 07:31:29 +000014811fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014812
Bill Wendlingebcceee2009-04-18 11:20:33 +000014813rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014814 conftest$ac_exeext
14815 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014816 break
Reid Spencer59473af2004-12-25 07:31:29 +000014817fi
Reid Spencera773bd52006-08-04 18:18:08 +000014818done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014819if test "${ac_cv_search_opendir+set}" = set; then
14820 :
Reid Spencera773bd52006-08-04 18:18:08 +000014821else
14822 ac_cv_search_opendir=no
14823fi
14824rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014825LIBS=$ac_func_search_save_LIBS
14826fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014827{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14828echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014829ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014830if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014831 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014832
14833fi
14834
14835fi
14836
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014837{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14838echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14839if test "${ac_cv_header_mmap_anon+set}" = set; then
14840 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014841else
14842 ac_ext=c
14843ac_cpp='$CPP $CPPFLAGS'
14844ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14845ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14846ac_compiler_gnu=$ac_cv_c_compiler_gnu
14847
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014848 cat >conftest.$ac_ext <<_ACEOF
14849/* confdefs.h. */
14850_ACEOF
14851cat confdefs.h >>conftest.$ac_ext
14852cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014853/* end confdefs.h. */
14854#include <sys/mman.h>
14855#include <unistd.h>
14856#include <fcntl.h>
14857int
14858main ()
14859{
14860mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14861 ;
14862 return 0;
14863}
14864_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014865rm -f conftest.$ac_objext
14866if { (ac_try="$ac_compile"
14867case "(($ac_try" in
14868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14869 *) ac_try_echo=$ac_try;;
14870esac
14871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14872 (eval "$ac_compile") 2>conftest.er1
14873 ac_status=$?
14874 grep -v '^ *+' conftest.er1 >conftest.err
14875 rm -f conftest.er1
14876 cat conftest.err >&5
14877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878 (exit $ac_status); } &&
14879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14880 { (case "(($ac_try" in
14881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14882 *) ac_try_echo=$ac_try;;
14883esac
14884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14885 (eval "$ac_try") 2>&5
14886 ac_status=$?
14887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888 (exit $ac_status); }; } &&
14889 { ac_try='test -s conftest.$ac_objext'
14890 { (case "(($ac_try" in
14891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14892 *) ac_try_echo=$ac_try;;
14893esac
14894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14895 (eval "$ac_try") 2>&5
14896 ac_status=$?
14897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014899 ac_cv_header_mmap_anon=yes
14900else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014901 echo "$as_me: failed program was:" >&5
14902sed 's/^/| /' conftest.$ac_ext >&5
14903
14904 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000014905fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014906
Reid Spencera773bd52006-08-04 18:18:08 +000014907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014908 ac_ext=c
14909ac_cpp='$CPP $CPPFLAGS'
14910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14912ac_compiler_gnu=$ac_cv_c_compiler_gnu
14913
14914
14915fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014916{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14917echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014918if test "$ac_cv_header_mmap_anon" = yes; then
14919
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014920cat >>confdefs.h <<\_ACEOF
14921#define HAVE_MMAP_ANONYMOUS 1
14922_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014923
14924fi
14925
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014926{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14927echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14928if test "${ac_cv_header_stat_broken+set}" = set; then
14929 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014930else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014931 cat >conftest.$ac_ext <<_ACEOF
14932/* confdefs.h. */
14933_ACEOF
14934cat confdefs.h >>conftest.$ac_ext
14935cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014936/* end confdefs.h. */
14937#include <sys/types.h>
14938#include <sys/stat.h>
14939
Reid Spencera773bd52006-08-04 18:18:08 +000014940#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014941# if S_ISBLK (S_IFDIR)
14942You lose.
14943# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014944#endif
14945
Reid Spencera773bd52006-08-04 18:18:08 +000014946#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014947# if S_ISBLK (S_IFCHR)
14948You lose.
14949# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014950#endif
14951
Reid Spencera773bd52006-08-04 18:18:08 +000014952#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014953# if S_ISLNK (S_IFREG)
14954You lose.
14955# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014956#endif
14957
Reid Spencera773bd52006-08-04 18:18:08 +000014958#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014959# if S_ISSOCK (S_IFREG)
14960You lose.
14961# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014962#endif
14963
14964_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014965if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14966 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000014967 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014968else
14969 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000014970fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014971rm -f conftest*
14972
Reid Spencer59473af2004-12-25 07:31:29 +000014973fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014974{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14975echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014976if test $ac_cv_header_stat_broken = yes; then
14977
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014978cat >>confdefs.h <<\_ACEOF
14979#define STAT_MACROS_BROKEN 1
14980_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014981
14982fi
14983
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014984{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14985echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14986if test "${ac_cv_header_stdc+set}" = set; then
14987 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014988else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014989 cat >conftest.$ac_ext <<_ACEOF
14990/* confdefs.h. */
14991_ACEOF
14992cat confdefs.h >>conftest.$ac_ext
14993cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014994/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014995#include <stdlib.h>
14996#include <stdarg.h>
14997#include <string.h>
14998#include <float.h>
14999
John Criswell0c38eaf2003-09-10 15:17:25 +000015000int
15001main ()
15002{
15003
15004 ;
15005 return 0;
15006}
John Criswell7a73b802003-06-30 21:59:07 +000015007_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015008rm -f conftest.$ac_objext
15009if { (ac_try="$ac_compile"
15010case "(($ac_try" in
15011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15012 *) ac_try_echo=$ac_try;;
15013esac
15014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15015 (eval "$ac_compile") 2>conftest.er1
15016 ac_status=$?
15017 grep -v '^ *+' conftest.er1 >conftest.err
15018 rm -f conftest.er1
15019 cat conftest.err >&5
15020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021 (exit $ac_status); } &&
15022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15023 { (case "(($ac_try" in
15024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15025 *) ac_try_echo=$ac_try;;
15026esac
15027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15028 (eval "$ac_try") 2>&5
15029 ac_status=$?
15030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031 (exit $ac_status); }; } &&
15032 { ac_try='test -s conftest.$ac_objext'
15033 { (case "(($ac_try" in
15034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15035 *) ac_try_echo=$ac_try;;
15036esac
15037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15038 (eval "$ac_try") 2>&5
15039 ac_status=$?
15040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015042 ac_cv_header_stdc=yes
15043else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015044 echo "$as_me: failed program was:" >&5
15045sed 's/^/| /' conftest.$ac_ext >&5
15046
15047 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015048fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015049
Reid Spencera773bd52006-08-04 18:18:08 +000015050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015051
15052if test $ac_cv_header_stdc = yes; then
15053 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015054 cat >conftest.$ac_ext <<_ACEOF
15055/* confdefs.h. */
15056_ACEOF
15057cat confdefs.h >>conftest.$ac_ext
15058cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015059/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015060#include <string.h>
15061
15062_ACEOF
15063if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015064 $EGREP "memchr" >/dev/null 2>&1; then
15065 :
John Criswell7a73b802003-06-30 21:59:07 +000015066else
15067 ac_cv_header_stdc=no
15068fi
15069rm -f conftest*
15070
15071fi
15072
15073if test $ac_cv_header_stdc = yes; then
15074 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015075 cat >conftest.$ac_ext <<_ACEOF
15076/* confdefs.h. */
15077_ACEOF
15078cat confdefs.h >>conftest.$ac_ext
15079cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015080/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015081#include <stdlib.h>
15082
15083_ACEOF
15084if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015085 $EGREP "free" >/dev/null 2>&1; then
15086 :
John Criswell7a73b802003-06-30 21:59:07 +000015087else
15088 ac_cv_header_stdc=no
15089fi
15090rm -f conftest*
15091
15092fi
15093
15094if test $ac_cv_header_stdc = yes; then
15095 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015096 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000015097 :
15098else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015099 cat >conftest.$ac_ext <<_ACEOF
15100/* confdefs.h. */
15101_ACEOF
15102cat confdefs.h >>conftest.$ac_ext
15103cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015104/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015105#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000015106#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000015107#if ((' ' & 0x0FF) == 0x020)
15108# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15109# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15110#else
John Criswell0c38eaf2003-09-10 15:17:25 +000015111# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015112 (('a' <= (c) && (c) <= 'i') \
15113 || ('j' <= (c) && (c) <= 'r') \
15114 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000015115# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15116#endif
15117
15118#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15119int
15120main ()
15121{
15122 int i;
15123 for (i = 0; i < 256; i++)
15124 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000015125 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000015126 return 2;
15127 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000015128}
15129_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015130rm -f conftest$ac_exeext
15131if { (ac_try="$ac_link"
15132case "(($ac_try" in
15133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15134 *) ac_try_echo=$ac_try;;
15135esac
15136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15137 (eval "$ac_link") 2>&5
15138 ac_status=$?
15139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15141 { (case "(($ac_try" in
15142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15143 *) ac_try_echo=$ac_try;;
15144esac
15145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15146 (eval "$ac_try") 2>&5
15147 ac_status=$?
15148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149 (exit $ac_status); }; }; then
15150 :
John Criswell7a73b802003-06-30 21:59:07 +000015151else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015152 echo "$as_me: program exited with status $ac_status" >&5
15153echo "$as_me: failed program was:" >&5
15154sed 's/^/| /' conftest.$ac_ext >&5
15155
15156( exit $ac_status )
15157ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015158fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015159rm -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 +000015160fi
15161
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015162
John Criswell7a73b802003-06-30 21:59:07 +000015163fi
15164fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015165{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15166echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015167if test $ac_cv_header_stdc = yes; then
15168
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015169cat >>confdefs.h <<\_ACEOF
15170#define STDC_HEADERS 1
15171_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015172
15173fi
15174
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015175{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15176echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15177if test "${ac_cv_header_sys_wait_h+set}" = set; then
15178 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015179else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015180 cat >conftest.$ac_ext <<_ACEOF
15181/* confdefs.h. */
15182_ACEOF
15183cat confdefs.h >>conftest.$ac_ext
15184cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015185/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015186#include <sys/types.h>
15187#include <sys/wait.h>
15188#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000015189# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000015190#endif
15191#ifndef WIFEXITED
15192# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15193#endif
15194
John Criswell7a73b802003-06-30 21:59:07 +000015195int
15196main ()
15197{
15198 int s;
15199 wait (&s);
15200 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15201 ;
15202 return 0;
15203}
15204_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015205rm -f conftest.$ac_objext
15206if { (ac_try="$ac_compile"
15207case "(($ac_try" in
15208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15209 *) ac_try_echo=$ac_try;;
15210esac
15211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15212 (eval "$ac_compile") 2>conftest.er1
15213 ac_status=$?
15214 grep -v '^ *+' conftest.er1 >conftest.err
15215 rm -f conftest.er1
15216 cat conftest.err >&5
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); } &&
15219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15220 { (case "(($ac_try" in
15221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15222 *) ac_try_echo=$ac_try;;
15223esac
15224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15225 (eval "$ac_try") 2>&5
15226 ac_status=$?
15227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15228 (exit $ac_status); }; } &&
15229 { ac_try='test -s conftest.$ac_objext'
15230 { (case "(($ac_try" in
15231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15232 *) ac_try_echo=$ac_try;;
15233esac
15234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15235 (eval "$ac_try") 2>&5
15236 ac_status=$?
15237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015239 ac_cv_header_sys_wait_h=yes
15240else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015241 echo "$as_me: failed program was:" >&5
15242sed 's/^/| /' conftest.$ac_ext >&5
15243
15244 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000015245fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015246
Reid Spencera773bd52006-08-04 18:18:08 +000015247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015248fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015249{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15250echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015251if test $ac_cv_header_sys_wait_h = yes; then
15252
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015253cat >>confdefs.h <<\_ACEOF
15254#define HAVE_SYS_WAIT_H 1
15255_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015256
15257fi
15258
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015259{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15260echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15261if test "${ac_cv_header_time+set}" = set; then
15262 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015263else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015264 cat >conftest.$ac_ext <<_ACEOF
15265/* confdefs.h. */
15266_ACEOF
15267cat confdefs.h >>conftest.$ac_ext
15268cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015269/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015270#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015271#include <sys/time.h>
15272#include <time.h>
15273
15274int
15275main ()
15276{
15277if ((struct tm *) 0)
15278return 0;
15279 ;
15280 return 0;
15281}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015282_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015283rm -f conftest.$ac_objext
15284if { (ac_try="$ac_compile"
15285case "(($ac_try" in
15286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15287 *) ac_try_echo=$ac_try;;
15288esac
15289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15290 (eval "$ac_compile") 2>conftest.er1
15291 ac_status=$?
15292 grep -v '^ *+' conftest.er1 >conftest.err
15293 rm -f conftest.er1
15294 cat conftest.err >&5
15295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15296 (exit $ac_status); } &&
15297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15298 { (case "(($ac_try" in
15299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15300 *) ac_try_echo=$ac_try;;
15301esac
15302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15303 (eval "$ac_try") 2>&5
15304 ac_status=$?
15305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306 (exit $ac_status); }; } &&
15307 { ac_try='test -s conftest.$ac_objext'
15308 { (case "(($ac_try" in
15309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15310 *) ac_try_echo=$ac_try;;
15311esac
15312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15313 (eval "$ac_try") 2>&5
15314 ac_status=$?
15315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15316 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015317 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015318else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015319 echo "$as_me: failed program was:" >&5
15320sed 's/^/| /' conftest.$ac_ext >&5
15321
15322 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015323fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015324
Reid Spencera773bd52006-08-04 18:18:08 +000015325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015326fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015327{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15328echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015329if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015330
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015331cat >>confdefs.h <<\_ACEOF
15332#define TIME_WITH_SYS_TIME 1
15333_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015334
15335fi
15336
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015337
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015338
15339
15340
15341
15342
15343
Reid Spencer59473af2004-12-25 07:31:29 +000015344for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015345do
15346as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15347if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15348 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15349echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15350if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15351 echo $ECHO_N "(cached) $ECHO_C" >&6
15352fi
15353ac_res=`eval echo '${'$as_ac_Header'}'`
15354 { echo "$as_me:$LINENO: result: $ac_res" >&5
15355echo "${ECHO_T}$ac_res" >&6; }
15356else
15357 # Is the header compilable?
15358{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15359echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15360cat >conftest.$ac_ext <<_ACEOF
15361/* confdefs.h. */
15362_ACEOF
15363cat confdefs.h >>conftest.$ac_ext
15364cat >>conftest.$ac_ext <<_ACEOF
15365/* end confdefs.h. */
15366$ac_includes_default
15367#include <$ac_header>
15368_ACEOF
15369rm -f conftest.$ac_objext
15370if { (ac_try="$ac_compile"
15371case "(($ac_try" in
15372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15373 *) ac_try_echo=$ac_try;;
15374esac
15375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15376 (eval "$ac_compile") 2>conftest.er1
15377 ac_status=$?
15378 grep -v '^ *+' conftest.er1 >conftest.err
15379 rm -f conftest.er1
15380 cat conftest.err >&5
15381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382 (exit $ac_status); } &&
15383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15384 { (case "(($ac_try" in
15385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15386 *) ac_try_echo=$ac_try;;
15387esac
15388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15389 (eval "$ac_try") 2>&5
15390 ac_status=$?
15391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392 (exit $ac_status); }; } &&
15393 { ac_try='test -s conftest.$ac_objext'
15394 { (case "(($ac_try" in
15395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15396 *) ac_try_echo=$ac_try;;
15397esac
15398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15399 (eval "$ac_try") 2>&5
15400 ac_status=$?
15401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402 (exit $ac_status); }; }; then
15403 ac_header_compiler=yes
15404else
15405 echo "$as_me: failed program was:" >&5
15406sed 's/^/| /' conftest.$ac_ext >&5
15407
15408 ac_header_compiler=no
15409fi
15410
15411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15412{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15413echo "${ECHO_T}$ac_header_compiler" >&6; }
15414
15415# Is the header present?
15416{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15417echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15418cat >conftest.$ac_ext <<_ACEOF
15419/* confdefs.h. */
15420_ACEOF
15421cat confdefs.h >>conftest.$ac_ext
15422cat >>conftest.$ac_ext <<_ACEOF
15423/* end confdefs.h. */
15424#include <$ac_header>
15425_ACEOF
15426if { (ac_try="$ac_cpp conftest.$ac_ext"
15427case "(($ac_try" in
15428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15429 *) ac_try_echo=$ac_try;;
15430esac
15431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15432 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15433 ac_status=$?
15434 grep -v '^ *+' conftest.er1 >conftest.err
15435 rm -f conftest.er1
15436 cat conftest.err >&5
15437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438 (exit $ac_status); } >/dev/null; then
15439 if test -s conftest.err; then
15440 ac_cpp_err=$ac_c_preproc_warn_flag
15441 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15442 else
15443 ac_cpp_err=
15444 fi
15445else
15446 ac_cpp_err=yes
15447fi
15448if test -z "$ac_cpp_err"; then
15449 ac_header_preproc=yes
15450else
15451 echo "$as_me: failed program was:" >&5
15452sed 's/^/| /' conftest.$ac_ext >&5
15453
15454 ac_header_preproc=no
15455fi
15456
15457rm -f conftest.err conftest.$ac_ext
15458{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15459echo "${ECHO_T}$ac_header_preproc" >&6; }
15460
15461# So? What about this header?
15462case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15463 yes:no: )
15464 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15465echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15467echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15468 ac_header_preproc=yes
15469 ;;
15470 no:yes:* )
15471 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15472echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15473 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15474echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15475 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15476echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15477 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15478echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15480echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15481 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15482echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15483 ( cat <<\_ASBOX
15484## ----------------------------------- ##
15485## Report this to llvmbugs@cs.uiuc.edu ##
15486## ----------------------------------- ##
15487_ASBOX
15488 ) | sed "s/^/$as_me: WARNING: /" >&2
15489 ;;
15490esac
15491{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15492echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15493if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15494 echo $ECHO_N "(cached) $ECHO_C" >&6
15495else
15496 eval "$as_ac_Header=\$ac_header_preproc"
15497fi
15498ac_res=`eval echo '${'$as_ac_Header'}'`
15499 { echo "$as_me:$LINENO: result: $ac_res" >&5
15500echo "${ECHO_T}$ac_res" >&6; }
15501
15502fi
15503if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015504 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015505#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015506_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015507
15508fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015509
Reid Spencer59473af2004-12-25 07:31:29 +000015510done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015511
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015512
15513
15514
15515
15516
15517
Douglas Gregor071d73d2009-05-18 17:21:34 +000015518for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015519do
15520as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15521if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15522 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15523echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15524if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15525 echo $ECHO_N "(cached) $ECHO_C" >&6
15526fi
15527ac_res=`eval echo '${'$as_ac_Header'}'`
15528 { echo "$as_me:$LINENO: result: $ac_res" >&5
15529echo "${ECHO_T}$ac_res" >&6; }
15530else
15531 # Is the header compilable?
15532{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15533echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15534cat >conftest.$ac_ext <<_ACEOF
15535/* confdefs.h. */
15536_ACEOF
15537cat confdefs.h >>conftest.$ac_ext
15538cat >>conftest.$ac_ext <<_ACEOF
15539/* end confdefs.h. */
15540$ac_includes_default
15541#include <$ac_header>
15542_ACEOF
15543rm -f conftest.$ac_objext
15544if { (ac_try="$ac_compile"
15545case "(($ac_try" in
15546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15547 *) ac_try_echo=$ac_try;;
15548esac
15549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15550 (eval "$ac_compile") 2>conftest.er1
15551 ac_status=$?
15552 grep -v '^ *+' conftest.er1 >conftest.err
15553 rm -f conftest.er1
15554 cat conftest.err >&5
15555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556 (exit $ac_status); } &&
15557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15558 { (case "(($ac_try" in
15559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15560 *) ac_try_echo=$ac_try;;
15561esac
15562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15563 (eval "$ac_try") 2>&5
15564 ac_status=$?
15565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566 (exit $ac_status); }; } &&
15567 { ac_try='test -s conftest.$ac_objext'
15568 { (case "(($ac_try" in
15569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15570 *) ac_try_echo=$ac_try;;
15571esac
15572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15573 (eval "$ac_try") 2>&5
15574 ac_status=$?
15575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15576 (exit $ac_status); }; }; then
15577 ac_header_compiler=yes
15578else
15579 echo "$as_me: failed program was:" >&5
15580sed 's/^/| /' conftest.$ac_ext >&5
15581
15582 ac_header_compiler=no
15583fi
15584
15585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15586{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15587echo "${ECHO_T}$ac_header_compiler" >&6; }
15588
15589# Is the header present?
15590{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15591echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15592cat >conftest.$ac_ext <<_ACEOF
15593/* confdefs.h. */
15594_ACEOF
15595cat confdefs.h >>conftest.$ac_ext
15596cat >>conftest.$ac_ext <<_ACEOF
15597/* end confdefs.h. */
15598#include <$ac_header>
15599_ACEOF
15600if { (ac_try="$ac_cpp conftest.$ac_ext"
15601case "(($ac_try" in
15602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15603 *) ac_try_echo=$ac_try;;
15604esac
15605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15606 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15607 ac_status=$?
15608 grep -v '^ *+' conftest.er1 >conftest.err
15609 rm -f conftest.er1
15610 cat conftest.err >&5
15611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612 (exit $ac_status); } >/dev/null; then
15613 if test -s conftest.err; then
15614 ac_cpp_err=$ac_c_preproc_warn_flag
15615 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15616 else
15617 ac_cpp_err=
15618 fi
15619else
15620 ac_cpp_err=yes
15621fi
15622if test -z "$ac_cpp_err"; then
15623 ac_header_preproc=yes
15624else
15625 echo "$as_me: failed program was:" >&5
15626sed 's/^/| /' conftest.$ac_ext >&5
15627
15628 ac_header_preproc=no
15629fi
15630
15631rm -f conftest.err conftest.$ac_ext
15632{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15633echo "${ECHO_T}$ac_header_preproc" >&6; }
15634
15635# So? What about this header?
15636case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15637 yes:no: )
15638 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15639echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15641echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15642 ac_header_preproc=yes
15643 ;;
15644 no:yes:* )
15645 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15646echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15647 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15648echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15649 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15650echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15651 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15652echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15653 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15654echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15655 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15656echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15657 ( cat <<\_ASBOX
15658## ----------------------------------- ##
15659## Report this to llvmbugs@cs.uiuc.edu ##
15660## ----------------------------------- ##
15661_ASBOX
15662 ) | sed "s/^/$as_me: WARNING: /" >&2
15663 ;;
15664esac
15665{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15666echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15667if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15668 echo $ECHO_N "(cached) $ECHO_C" >&6
15669else
15670 eval "$as_ac_Header=\$ac_header_preproc"
15671fi
15672ac_res=`eval echo '${'$as_ac_Header'}'`
15673 { echo "$as_me:$LINENO: result: $ac_res" >&5
15674echo "${ECHO_T}$ac_res" >&6; }
15675
15676fi
15677if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015678 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015679#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000015680_ACEOF
15681
15682fi
15683
15684done
15685
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015686
15687
Douglas Gregor071d73d2009-05-18 17:21:34 +000015688for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015689do
15690as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15691if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15692 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15693echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15694if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15695 echo $ECHO_N "(cached) $ECHO_C" >&6
15696fi
15697ac_res=`eval echo '${'$as_ac_Header'}'`
15698 { echo "$as_me:$LINENO: result: $ac_res" >&5
15699echo "${ECHO_T}$ac_res" >&6; }
15700else
15701 # Is the header compilable?
15702{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15703echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15704cat >conftest.$ac_ext <<_ACEOF
15705/* confdefs.h. */
15706_ACEOF
15707cat confdefs.h >>conftest.$ac_ext
15708cat >>conftest.$ac_ext <<_ACEOF
15709/* end confdefs.h. */
15710$ac_includes_default
15711#include <$ac_header>
15712_ACEOF
15713rm -f conftest.$ac_objext
15714if { (ac_try="$ac_compile"
15715case "(($ac_try" in
15716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15717 *) ac_try_echo=$ac_try;;
15718esac
15719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15720 (eval "$ac_compile") 2>conftest.er1
15721 ac_status=$?
15722 grep -v '^ *+' conftest.er1 >conftest.err
15723 rm -f conftest.er1
15724 cat conftest.err >&5
15725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726 (exit $ac_status); } &&
15727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15728 { (case "(($ac_try" in
15729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15730 *) ac_try_echo=$ac_try;;
15731esac
15732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15733 (eval "$ac_try") 2>&5
15734 ac_status=$?
15735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736 (exit $ac_status); }; } &&
15737 { ac_try='test -s conftest.$ac_objext'
15738 { (case "(($ac_try" in
15739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15740 *) ac_try_echo=$ac_try;;
15741esac
15742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15743 (eval "$ac_try") 2>&5
15744 ac_status=$?
15745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15746 (exit $ac_status); }; }; then
15747 ac_header_compiler=yes
15748else
15749 echo "$as_me: failed program was:" >&5
15750sed 's/^/| /' conftest.$ac_ext >&5
15751
15752 ac_header_compiler=no
15753fi
15754
15755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15756{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15757echo "${ECHO_T}$ac_header_compiler" >&6; }
15758
15759# Is the header present?
15760{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15761echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15762cat >conftest.$ac_ext <<_ACEOF
15763/* confdefs.h. */
15764_ACEOF
15765cat confdefs.h >>conftest.$ac_ext
15766cat >>conftest.$ac_ext <<_ACEOF
15767/* end confdefs.h. */
15768#include <$ac_header>
15769_ACEOF
15770if { (ac_try="$ac_cpp conftest.$ac_ext"
15771case "(($ac_try" in
15772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15773 *) ac_try_echo=$ac_try;;
15774esac
15775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15777 ac_status=$?
15778 grep -v '^ *+' conftest.er1 >conftest.err
15779 rm -f conftest.er1
15780 cat conftest.err >&5
15781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782 (exit $ac_status); } >/dev/null; then
15783 if test -s conftest.err; then
15784 ac_cpp_err=$ac_c_preproc_warn_flag
15785 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15786 else
15787 ac_cpp_err=
15788 fi
15789else
15790 ac_cpp_err=yes
15791fi
15792if test -z "$ac_cpp_err"; then
15793 ac_header_preproc=yes
15794else
15795 echo "$as_me: failed program was:" >&5
15796sed 's/^/| /' conftest.$ac_ext >&5
15797
15798 ac_header_preproc=no
15799fi
15800
15801rm -f conftest.err conftest.$ac_ext
15802{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15803echo "${ECHO_T}$ac_header_preproc" >&6; }
15804
15805# So? What about this header?
15806case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15807 yes:no: )
15808 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15809echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15811echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15812 ac_header_preproc=yes
15813 ;;
15814 no:yes:* )
15815 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15816echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15817 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15818echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15819 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15820echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15821 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15822echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15824echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15825 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15826echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15827 ( cat <<\_ASBOX
15828## ----------------------------------- ##
15829## Report this to llvmbugs@cs.uiuc.edu ##
15830## ----------------------------------- ##
15831_ASBOX
15832 ) | sed "s/^/$as_me: WARNING: /" >&2
15833 ;;
15834esac
15835{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15836echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15837if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15838 echo $ECHO_N "(cached) $ECHO_C" >&6
15839else
15840 eval "$as_ac_Header=\$ac_header_preproc"
15841fi
15842ac_res=`eval echo '${'$as_ac_Header'}'`
15843 { echo "$as_me:$LINENO: result: $ac_res" >&5
15844echo "${ECHO_T}$ac_res" >&6; }
15845
15846fi
15847if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015848 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015849#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015850_ACEOF
15851
15852fi
15853
15854done
Reid Spencer59473af2004-12-25 07:31:29 +000015855
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015856
15857
15858
15859
Reid Spencerbe3e4192007-08-17 05:45:26 +000015860for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015861do
15862as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15863if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15864 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15865echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15866if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15867 echo $ECHO_N "(cached) $ECHO_C" >&6
15868fi
15869ac_res=`eval echo '${'$as_ac_Header'}'`
15870 { echo "$as_me:$LINENO: result: $ac_res" >&5
15871echo "${ECHO_T}$ac_res" >&6; }
15872else
15873 # Is the header compilable?
15874{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15875echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15876cat >conftest.$ac_ext <<_ACEOF
15877/* confdefs.h. */
15878_ACEOF
15879cat confdefs.h >>conftest.$ac_ext
15880cat >>conftest.$ac_ext <<_ACEOF
15881/* end confdefs.h. */
15882$ac_includes_default
15883#include <$ac_header>
15884_ACEOF
15885rm -f conftest.$ac_objext
15886if { (ac_try="$ac_compile"
15887case "(($ac_try" in
15888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15889 *) ac_try_echo=$ac_try;;
15890esac
15891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15892 (eval "$ac_compile") 2>conftest.er1
15893 ac_status=$?
15894 grep -v '^ *+' conftest.er1 >conftest.err
15895 rm -f conftest.er1
15896 cat conftest.err >&5
15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); } &&
15899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15900 { (case "(($ac_try" in
15901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15902 *) ac_try_echo=$ac_try;;
15903esac
15904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15905 (eval "$ac_try") 2>&5
15906 ac_status=$?
15907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908 (exit $ac_status); }; } &&
15909 { ac_try='test -s conftest.$ac_objext'
15910 { (case "(($ac_try" in
15911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15912 *) ac_try_echo=$ac_try;;
15913esac
15914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15915 (eval "$ac_try") 2>&5
15916 ac_status=$?
15917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918 (exit $ac_status); }; }; then
15919 ac_header_compiler=yes
15920else
15921 echo "$as_me: failed program was:" >&5
15922sed 's/^/| /' conftest.$ac_ext >&5
15923
15924 ac_header_compiler=no
15925fi
15926
15927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15928{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15929echo "${ECHO_T}$ac_header_compiler" >&6; }
15930
15931# Is the header present?
15932{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15933echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15934cat >conftest.$ac_ext <<_ACEOF
15935/* confdefs.h. */
15936_ACEOF
15937cat confdefs.h >>conftest.$ac_ext
15938cat >>conftest.$ac_ext <<_ACEOF
15939/* end confdefs.h. */
15940#include <$ac_header>
15941_ACEOF
15942if { (ac_try="$ac_cpp conftest.$ac_ext"
15943case "(($ac_try" in
15944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15945 *) ac_try_echo=$ac_try;;
15946esac
15947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15948 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15949 ac_status=$?
15950 grep -v '^ *+' conftest.er1 >conftest.err
15951 rm -f conftest.er1
15952 cat conftest.err >&5
15953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954 (exit $ac_status); } >/dev/null; then
15955 if test -s conftest.err; then
15956 ac_cpp_err=$ac_c_preproc_warn_flag
15957 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15958 else
15959 ac_cpp_err=
15960 fi
15961else
15962 ac_cpp_err=yes
15963fi
15964if test -z "$ac_cpp_err"; then
15965 ac_header_preproc=yes
15966else
15967 echo "$as_me: failed program was:" >&5
15968sed 's/^/| /' conftest.$ac_ext >&5
15969
15970 ac_header_preproc=no
15971fi
15972
15973rm -f conftest.err conftest.$ac_ext
15974{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15975echo "${ECHO_T}$ac_header_preproc" >&6; }
15976
15977# So? What about this header?
15978case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15979 yes:no: )
15980 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15981echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15982 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15983echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15984 ac_header_preproc=yes
15985 ;;
15986 no:yes:* )
15987 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15988echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15989 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15990echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15991 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15992echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15993 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15994echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15996echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15997 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15998echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15999 ( cat <<\_ASBOX
16000## ----------------------------------- ##
16001## Report this to llvmbugs@cs.uiuc.edu ##
16002## ----------------------------------- ##
16003_ASBOX
16004 ) | sed "s/^/$as_me: WARNING: /" >&2
16005 ;;
16006esac
16007{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16008echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16009if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16010 echo $ECHO_N "(cached) $ECHO_C" >&6
16011else
16012 eval "$as_ac_Header=\$ac_header_preproc"
16013fi
16014ac_res=`eval echo '${'$as_ac_Header'}'`
16015 { echo "$as_me:$LINENO: result: $ac_res" >&5
16016echo "${ECHO_T}$ac_res" >&6; }
16017
16018fi
16019if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016020 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016021#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000016022_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000016023
16024fi
John Criswell7ed43ad2004-07-19 16:12:29 +000016025
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016026done
16027
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016028
16029
16030
16031
Douglas Gregor01746742009-05-11 18:05:52 +000016032for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016033do
16034as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16035if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16036 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16037echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16038if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16039 echo $ECHO_N "(cached) $ECHO_C" >&6
16040fi
16041ac_res=`eval echo '${'$as_ac_Header'}'`
16042 { echo "$as_me:$LINENO: result: $ac_res" >&5
16043echo "${ECHO_T}$ac_res" >&6; }
16044else
16045 # Is the header compilable?
16046{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16047echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16048cat >conftest.$ac_ext <<_ACEOF
16049/* confdefs.h. */
16050_ACEOF
16051cat confdefs.h >>conftest.$ac_ext
16052cat >>conftest.$ac_ext <<_ACEOF
16053/* end confdefs.h. */
16054$ac_includes_default
16055#include <$ac_header>
16056_ACEOF
16057rm -f conftest.$ac_objext
16058if { (ac_try="$ac_compile"
16059case "(($ac_try" in
16060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16061 *) ac_try_echo=$ac_try;;
16062esac
16063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16064 (eval "$ac_compile") 2>conftest.er1
16065 ac_status=$?
16066 grep -v '^ *+' conftest.er1 >conftest.err
16067 rm -f conftest.er1
16068 cat conftest.err >&5
16069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070 (exit $ac_status); } &&
16071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16072 { (case "(($ac_try" in
16073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16074 *) ac_try_echo=$ac_try;;
16075esac
16076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16077 (eval "$ac_try") 2>&5
16078 ac_status=$?
16079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080 (exit $ac_status); }; } &&
16081 { ac_try='test -s conftest.$ac_objext'
16082 { (case "(($ac_try" in
16083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16084 *) ac_try_echo=$ac_try;;
16085esac
16086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16087 (eval "$ac_try") 2>&5
16088 ac_status=$?
16089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16090 (exit $ac_status); }; }; then
16091 ac_header_compiler=yes
16092else
16093 echo "$as_me: failed program was:" >&5
16094sed 's/^/| /' conftest.$ac_ext >&5
16095
16096 ac_header_compiler=no
16097fi
16098
16099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16100{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16101echo "${ECHO_T}$ac_header_compiler" >&6; }
16102
16103# Is the header present?
16104{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16105echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16106cat >conftest.$ac_ext <<_ACEOF
16107/* confdefs.h. */
16108_ACEOF
16109cat confdefs.h >>conftest.$ac_ext
16110cat >>conftest.$ac_ext <<_ACEOF
16111/* end confdefs.h. */
16112#include <$ac_header>
16113_ACEOF
16114if { (ac_try="$ac_cpp conftest.$ac_ext"
16115case "(($ac_try" in
16116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16117 *) ac_try_echo=$ac_try;;
16118esac
16119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16120 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16121 ac_status=$?
16122 grep -v '^ *+' conftest.er1 >conftest.err
16123 rm -f conftest.er1
16124 cat conftest.err >&5
16125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16126 (exit $ac_status); } >/dev/null; then
16127 if test -s conftest.err; then
16128 ac_cpp_err=$ac_c_preproc_warn_flag
16129 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16130 else
16131 ac_cpp_err=
16132 fi
16133else
16134 ac_cpp_err=yes
16135fi
16136if test -z "$ac_cpp_err"; then
16137 ac_header_preproc=yes
16138else
16139 echo "$as_me: failed program was:" >&5
16140sed 's/^/| /' conftest.$ac_ext >&5
16141
16142 ac_header_preproc=no
16143fi
16144
16145rm -f conftest.err conftest.$ac_ext
16146{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16147echo "${ECHO_T}$ac_header_preproc" >&6; }
16148
16149# So? What about this header?
16150case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16151 yes:no: )
16152 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16153echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16155echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16156 ac_header_preproc=yes
16157 ;;
16158 no:yes:* )
16159 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16160echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16161 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16162echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16163 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16164echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16165 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16166echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16168echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16169 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16170echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16171 ( cat <<\_ASBOX
16172## ----------------------------------- ##
16173## Report this to llvmbugs@cs.uiuc.edu ##
16174## ----------------------------------- ##
16175_ASBOX
16176 ) | sed "s/^/$as_me: WARNING: /" >&2
16177 ;;
16178esac
16179{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16180echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16181if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16182 echo $ECHO_N "(cached) $ECHO_C" >&6
16183else
16184 eval "$as_ac_Header=\$ac_header_preproc"
16185fi
16186ac_res=`eval echo '${'$as_ac_Header'}'`
16187 { echo "$as_me:$LINENO: result: $ac_res" >&5
16188echo "${ECHO_T}$ac_res" >&6; }
16189
16190fi
16191if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000016192 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016193#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000016194_ACEOF
16195
16196fi
16197
16198done
16199
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000016200
16201for ac_header in valgrind/valgrind.h
16202do
16203as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16204if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16205 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16206echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16207if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16208 echo $ECHO_N "(cached) $ECHO_C" >&6
16209fi
16210ac_res=`eval echo '${'$as_ac_Header'}'`
16211 { echo "$as_me:$LINENO: result: $ac_res" >&5
16212echo "${ECHO_T}$ac_res" >&6; }
16213else
16214 # Is the header compilable?
16215{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16216echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16217cat >conftest.$ac_ext <<_ACEOF
16218/* confdefs.h. */
16219_ACEOF
16220cat confdefs.h >>conftest.$ac_ext
16221cat >>conftest.$ac_ext <<_ACEOF
16222/* end confdefs.h. */
16223$ac_includes_default
16224#include <$ac_header>
16225_ACEOF
16226rm -f conftest.$ac_objext
16227if { (ac_try="$ac_compile"
16228case "(($ac_try" in
16229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16230 *) ac_try_echo=$ac_try;;
16231esac
16232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16233 (eval "$ac_compile") 2>conftest.er1
16234 ac_status=$?
16235 grep -v '^ *+' conftest.er1 >conftest.err
16236 rm -f conftest.er1
16237 cat conftest.err >&5
16238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16239 (exit $ac_status); } &&
16240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16241 { (case "(($ac_try" in
16242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16243 *) ac_try_echo=$ac_try;;
16244esac
16245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16246 (eval "$ac_try") 2>&5
16247 ac_status=$?
16248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249 (exit $ac_status); }; } &&
16250 { ac_try='test -s conftest.$ac_objext'
16251 { (case "(($ac_try" in
16252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16253 *) ac_try_echo=$ac_try;;
16254esac
16255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16256 (eval "$ac_try") 2>&5
16257 ac_status=$?
16258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259 (exit $ac_status); }; }; then
16260 ac_header_compiler=yes
16261else
16262 echo "$as_me: failed program was:" >&5
16263sed 's/^/| /' conftest.$ac_ext >&5
16264
16265 ac_header_compiler=no
16266fi
16267
16268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16269{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16270echo "${ECHO_T}$ac_header_compiler" >&6; }
16271
16272# Is the header present?
16273{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16274echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16275cat >conftest.$ac_ext <<_ACEOF
16276/* confdefs.h. */
16277_ACEOF
16278cat confdefs.h >>conftest.$ac_ext
16279cat >>conftest.$ac_ext <<_ACEOF
16280/* end confdefs.h. */
16281#include <$ac_header>
16282_ACEOF
16283if { (ac_try="$ac_cpp conftest.$ac_ext"
16284case "(($ac_try" in
16285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16286 *) ac_try_echo=$ac_try;;
16287esac
16288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16289 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16290 ac_status=$?
16291 grep -v '^ *+' conftest.er1 >conftest.err
16292 rm -f conftest.er1
16293 cat conftest.err >&5
16294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295 (exit $ac_status); } >/dev/null; then
16296 if test -s conftest.err; then
16297 ac_cpp_err=$ac_c_preproc_warn_flag
16298 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16299 else
16300 ac_cpp_err=
16301 fi
16302else
16303 ac_cpp_err=yes
16304fi
16305if test -z "$ac_cpp_err"; then
16306 ac_header_preproc=yes
16307else
16308 echo "$as_me: failed program was:" >&5
16309sed 's/^/| /' conftest.$ac_ext >&5
16310
16311 ac_header_preproc=no
16312fi
16313
16314rm -f conftest.err conftest.$ac_ext
16315{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16316echo "${ECHO_T}$ac_header_preproc" >&6; }
16317
16318# So? What about this header?
16319case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16320 yes:no: )
16321 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16322echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16323 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16324echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16325 ac_header_preproc=yes
16326 ;;
16327 no:yes:* )
16328 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16329echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16330 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16331echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16332 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16333echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16334 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16335echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16336 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16337echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16338 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16339echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16340 ( cat <<\_ASBOX
16341## ----------------------------------- ##
16342## Report this to llvmbugs@cs.uiuc.edu ##
16343## ----------------------------------- ##
16344_ASBOX
16345 ) | sed "s/^/$as_me: WARNING: /" >&2
16346 ;;
16347esac
16348{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16349echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16350if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16351 echo $ECHO_N "(cached) $ECHO_C" >&6
16352else
16353 eval "$as_ac_Header=\$ac_header_preproc"
16354fi
16355ac_res=`eval echo '${'$as_ac_Header'}'`
16356 { echo "$as_me:$LINENO: result: $ac_res" >&5
16357echo "${ECHO_T}$ac_res" >&6; }
16358
16359fi
16360if test `eval echo '${'$as_ac_Header'}'` = yes; then
16361 cat >>confdefs.h <<_ACEOF
16362#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16363_ACEOF
16364
16365fi
16366
16367done
16368
Reid Spencer0a262ba2005-08-24 10:07:20 +000016369if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016370
16371for ac_header in pthread.h
16372do
16373as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16374if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16375 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16376echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16377if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16378 echo $ECHO_N "(cached) $ECHO_C" >&6
16379fi
16380ac_res=`eval echo '${'$as_ac_Header'}'`
16381 { echo "$as_me:$LINENO: result: $ac_res" >&5
16382echo "${ECHO_T}$ac_res" >&6; }
16383else
16384 # Is the header compilable?
16385{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16386echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16387cat >conftest.$ac_ext <<_ACEOF
16388/* confdefs.h. */
16389_ACEOF
16390cat confdefs.h >>conftest.$ac_ext
16391cat >>conftest.$ac_ext <<_ACEOF
16392/* end confdefs.h. */
16393$ac_includes_default
16394#include <$ac_header>
16395_ACEOF
16396rm -f conftest.$ac_objext
16397if { (ac_try="$ac_compile"
16398case "(($ac_try" in
16399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16400 *) ac_try_echo=$ac_try;;
16401esac
16402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16403 (eval "$ac_compile") 2>conftest.er1
16404 ac_status=$?
16405 grep -v '^ *+' conftest.er1 >conftest.err
16406 rm -f conftest.er1
16407 cat conftest.err >&5
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); } &&
16410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16411 { (case "(($ac_try" in
16412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16413 *) ac_try_echo=$ac_try;;
16414esac
16415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16416 (eval "$ac_try") 2>&5
16417 ac_status=$?
16418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16419 (exit $ac_status); }; } &&
16420 { ac_try='test -s conftest.$ac_objext'
16421 { (case "(($ac_try" in
16422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16423 *) ac_try_echo=$ac_try;;
16424esac
16425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16426 (eval "$ac_try") 2>&5
16427 ac_status=$?
16428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429 (exit $ac_status); }; }; then
16430 ac_header_compiler=yes
16431else
16432 echo "$as_me: failed program was:" >&5
16433sed 's/^/| /' conftest.$ac_ext >&5
16434
16435 ac_header_compiler=no
16436fi
16437
16438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16439{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16440echo "${ECHO_T}$ac_header_compiler" >&6; }
16441
16442# Is the header present?
16443{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16444echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16445cat >conftest.$ac_ext <<_ACEOF
16446/* confdefs.h. */
16447_ACEOF
16448cat confdefs.h >>conftest.$ac_ext
16449cat >>conftest.$ac_ext <<_ACEOF
16450/* end confdefs.h. */
16451#include <$ac_header>
16452_ACEOF
16453if { (ac_try="$ac_cpp conftest.$ac_ext"
16454case "(($ac_try" in
16455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16456 *) ac_try_echo=$ac_try;;
16457esac
16458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16459 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16460 ac_status=$?
16461 grep -v '^ *+' conftest.er1 >conftest.err
16462 rm -f conftest.er1
16463 cat conftest.err >&5
16464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16465 (exit $ac_status); } >/dev/null; then
16466 if test -s conftest.err; then
16467 ac_cpp_err=$ac_c_preproc_warn_flag
16468 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16469 else
16470 ac_cpp_err=
16471 fi
16472else
16473 ac_cpp_err=yes
16474fi
16475if test -z "$ac_cpp_err"; then
16476 ac_header_preproc=yes
16477else
16478 echo "$as_me: failed program was:" >&5
16479sed 's/^/| /' conftest.$ac_ext >&5
16480
16481 ac_header_preproc=no
16482fi
16483
16484rm -f conftest.err conftest.$ac_ext
16485{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16486echo "${ECHO_T}$ac_header_preproc" >&6; }
16487
16488# So? What about this header?
16489case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16490 yes:no: )
16491 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16492echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16494echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16495 ac_header_preproc=yes
16496 ;;
16497 no:yes:* )
16498 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16499echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16500 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16501echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16502 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16503echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16504 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16505echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16507echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16508 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16509echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16510 ( cat <<\_ASBOX
16511## ----------------------------------- ##
16512## Report this to llvmbugs@cs.uiuc.edu ##
16513## ----------------------------------- ##
16514_ASBOX
16515 ) | sed "s/^/$as_me: WARNING: /" >&2
16516 ;;
16517esac
16518{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16519echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16520if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16521 echo $ECHO_N "(cached) $ECHO_C" >&6
16522else
16523 eval "$as_ac_Header=\$ac_header_preproc"
16524fi
16525ac_res=`eval echo '${'$as_ac_Header'}'`
16526 { echo "$as_me:$LINENO: result: $ac_res" >&5
16527echo "${ECHO_T}$ac_res" >&6; }
16528
16529fi
16530if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000016531 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016532#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000016533_ACEOF
16534 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000016535
16536else
16537 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000016538
16539fi
16540
Reid Spencerbe3e4192007-08-17 05:45:26 +000016541done
Reid Spencer1000b732006-12-01 00:37:14 +000016542
16543else
16544 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000016545
16546fi
Reid Spencer8085cff2005-01-16 02:58:39 +000016547
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016548if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016549
16550
16551for ac_header in ffi.h ffi/ffi.h
16552do
16553as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16554if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16555 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16556echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16557if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16558 echo $ECHO_N "(cached) $ECHO_C" >&6
16559fi
16560ac_res=`eval echo '${'$as_ac_Header'}'`
16561 { echo "$as_me:$LINENO: result: $ac_res" >&5
16562echo "${ECHO_T}$ac_res" >&6; }
16563else
16564 # Is the header compilable?
16565{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16566echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16567cat >conftest.$ac_ext <<_ACEOF
16568/* confdefs.h. */
16569_ACEOF
16570cat confdefs.h >>conftest.$ac_ext
16571cat >>conftest.$ac_ext <<_ACEOF
16572/* end confdefs.h. */
16573$ac_includes_default
16574#include <$ac_header>
16575_ACEOF
16576rm -f conftest.$ac_objext
16577if { (ac_try="$ac_compile"
16578case "(($ac_try" in
16579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16580 *) ac_try_echo=$ac_try;;
16581esac
16582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16583 (eval "$ac_compile") 2>conftest.er1
16584 ac_status=$?
16585 grep -v '^ *+' conftest.er1 >conftest.err
16586 rm -f conftest.er1
16587 cat conftest.err >&5
16588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589 (exit $ac_status); } &&
16590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16591 { (case "(($ac_try" in
16592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16593 *) ac_try_echo=$ac_try;;
16594esac
16595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16596 (eval "$ac_try") 2>&5
16597 ac_status=$?
16598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599 (exit $ac_status); }; } &&
16600 { ac_try='test -s conftest.$ac_objext'
16601 { (case "(($ac_try" in
16602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16603 *) ac_try_echo=$ac_try;;
16604esac
16605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16606 (eval "$ac_try") 2>&5
16607 ac_status=$?
16608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609 (exit $ac_status); }; }; then
16610 ac_header_compiler=yes
16611else
16612 echo "$as_me: failed program was:" >&5
16613sed 's/^/| /' conftest.$ac_ext >&5
16614
16615 ac_header_compiler=no
16616fi
16617
16618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16619{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16620echo "${ECHO_T}$ac_header_compiler" >&6; }
16621
16622# Is the header present?
16623{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16624echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16625cat >conftest.$ac_ext <<_ACEOF
16626/* confdefs.h. */
16627_ACEOF
16628cat confdefs.h >>conftest.$ac_ext
16629cat >>conftest.$ac_ext <<_ACEOF
16630/* end confdefs.h. */
16631#include <$ac_header>
16632_ACEOF
16633if { (ac_try="$ac_cpp conftest.$ac_ext"
16634case "(($ac_try" in
16635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16636 *) ac_try_echo=$ac_try;;
16637esac
16638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16640 ac_status=$?
16641 grep -v '^ *+' conftest.er1 >conftest.err
16642 rm -f conftest.er1
16643 cat conftest.err >&5
16644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645 (exit $ac_status); } >/dev/null; then
16646 if test -s conftest.err; then
16647 ac_cpp_err=$ac_c_preproc_warn_flag
16648 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16649 else
16650 ac_cpp_err=
16651 fi
16652else
16653 ac_cpp_err=yes
16654fi
16655if test -z "$ac_cpp_err"; then
16656 ac_header_preproc=yes
16657else
16658 echo "$as_me: failed program was:" >&5
16659sed 's/^/| /' conftest.$ac_ext >&5
16660
16661 ac_header_preproc=no
16662fi
16663
16664rm -f conftest.err conftest.$ac_ext
16665{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16666echo "${ECHO_T}$ac_header_preproc" >&6; }
16667
16668# So? What about this header?
16669case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16670 yes:no: )
16671 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16672echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16674echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16675 ac_header_preproc=yes
16676 ;;
16677 no:yes:* )
16678 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16679echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16680 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16681echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16682 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16683echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16684 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16685echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16686 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16687echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16688 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16689echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16690 ( cat <<\_ASBOX
16691## ----------------------------------- ##
16692## Report this to llvmbugs@cs.uiuc.edu ##
16693## ----------------------------------- ##
16694_ASBOX
16695 ) | sed "s/^/$as_me: WARNING: /" >&2
16696 ;;
16697esac
16698{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16699echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16700if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16701 echo $ECHO_N "(cached) $ECHO_C" >&6
16702else
16703 eval "$as_ac_Header=\$ac_header_preproc"
16704fi
16705ac_res=`eval echo '${'$as_ac_Header'}'`
16706 { echo "$as_me:$LINENO: result: $ac_res" >&5
16707echo "${ECHO_T}$ac_res" >&6; }
16708
16709fi
16710if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016711 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016712#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016713_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016714
16715fi
16716
16717done
16718
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016719fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016720
Nick Lewycky2ab1d862009-01-20 00:52:24 +000016721
Reid Spencer8085cff2005-01-16 02:58:39 +000016722
Torok Edwin871384f2010-01-26 08:50:50 +000016723
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016724 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16725echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16726if test "${ac_cv_huge_val_sanity+set}" = set; then
16727 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000016728else
16729
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016730 ac_ext=cpp
16731ac_cpp='$CXXCPP $CPPFLAGS'
16732ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16733ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16734ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000016735
Eric Christopherc7718502010-03-02 05:06:54 +000016736 ac_save_CXXFLAGS=$CXXFLAGS
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016737 CXXFLAGS=-pedantic
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016738 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016739 ac_cv_huge_val_sanity=yes
16740else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016741 cat >conftest.$ac_ext <<_ACEOF
16742/* confdefs.h. */
16743_ACEOF
16744cat confdefs.h >>conftest.$ac_ext
16745cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000016746/* end confdefs.h. */
16747#include <math.h>
16748int
16749main ()
16750{
16751double x = HUGE_VAL; return x != x;
16752 ;
16753 return 0;
16754}
16755_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016756rm -f conftest$ac_exeext
16757if { (ac_try="$ac_link"
16758case "(($ac_try" in
16759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16760 *) ac_try_echo=$ac_try;;
16761esac
16762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16763 (eval "$ac_link") 2>&5
16764 ac_status=$?
16765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16767 { (case "(($ac_try" in
16768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16769 *) ac_try_echo=$ac_try;;
16770esac
16771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16772 (eval "$ac_try") 2>&5
16773 ac_status=$?
16774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016776 ac_cv_huge_val_sanity=yes
16777else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016778 echo "$as_me: program exited with status $ac_status" >&5
16779echo "$as_me: failed program was:" >&5
16780sed 's/^/| /' conftest.$ac_ext >&5
16781
16782( exit $ac_status )
16783ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000016784fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016785rm -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 +000016786fi
16787
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016788
Eric Christopherc7718502010-03-02 05:06:54 +000016789 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000016790 ac_ext=c
16791ac_cpp='$CPP $CPPFLAGS'
16792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16794ac_compiler_gnu=$ac_cv_c_compiler_gnu
16795
16796
16797fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016798{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16799echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000016800 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16801
16802
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016803{ echo "$as_me:$LINENO: checking for pid_t" >&5
16804echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16805if test "${ac_cv_type_pid_t+set}" = set; then
16806 echo $ECHO_N "(cached) $ECHO_C" >&6
16807else
16808 cat >conftest.$ac_ext <<_ACEOF
16809/* confdefs.h. */
16810_ACEOF
16811cat confdefs.h >>conftest.$ac_ext
16812cat >>conftest.$ac_ext <<_ACEOF
16813/* end confdefs.h. */
16814$ac_includes_default
16815typedef pid_t ac__type_new_;
16816int
16817main ()
16818{
16819if ((ac__type_new_ *) 0)
16820 return 0;
16821if (sizeof (ac__type_new_))
16822 return 0;
16823 ;
16824 return 0;
16825}
16826_ACEOF
16827rm -f conftest.$ac_objext
16828if { (ac_try="$ac_compile"
16829case "(($ac_try" in
16830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16831 *) ac_try_echo=$ac_try;;
16832esac
16833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16834 (eval "$ac_compile") 2>conftest.er1
16835 ac_status=$?
16836 grep -v '^ *+' conftest.er1 >conftest.err
16837 rm -f conftest.er1
16838 cat conftest.err >&5
16839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840 (exit $ac_status); } &&
16841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16842 { (case "(($ac_try" in
16843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16844 *) ac_try_echo=$ac_try;;
16845esac
16846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16847 (eval "$ac_try") 2>&5
16848 ac_status=$?
16849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16850 (exit $ac_status); }; } &&
16851 { ac_try='test -s conftest.$ac_objext'
16852 { (case "(($ac_try" in
16853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16854 *) ac_try_echo=$ac_try;;
16855esac
16856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16857 (eval "$ac_try") 2>&5
16858 ac_status=$?
16859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860 (exit $ac_status); }; }; then
16861 ac_cv_type_pid_t=yes
16862else
16863 echo "$as_me: failed program was:" >&5
16864sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016865
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016866 ac_cv_type_pid_t=no
16867fi
16868
16869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16870fi
16871{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16872echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16873if test $ac_cv_type_pid_t = yes; then
16874 :
John Criswell7a73b802003-06-30 21:59:07 +000016875else
16876
16877cat >>confdefs.h <<_ACEOF
16878#define pid_t int
16879_ACEOF
16880
16881fi
16882
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016883{ echo "$as_me:$LINENO: checking for size_t" >&5
16884echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16885if test "${ac_cv_type_size_t+set}" = set; then
16886 echo $ECHO_N "(cached) $ECHO_C" >&6
16887else
16888 cat >conftest.$ac_ext <<_ACEOF
16889/* confdefs.h. */
16890_ACEOF
16891cat confdefs.h >>conftest.$ac_ext
16892cat >>conftest.$ac_ext <<_ACEOF
16893/* end confdefs.h. */
16894$ac_includes_default
16895typedef size_t ac__type_new_;
16896int
16897main ()
16898{
16899if ((ac__type_new_ *) 0)
16900 return 0;
16901if (sizeof (ac__type_new_))
16902 return 0;
16903 ;
16904 return 0;
16905}
16906_ACEOF
16907rm -f conftest.$ac_objext
16908if { (ac_try="$ac_compile"
16909case "(($ac_try" in
16910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16911 *) ac_try_echo=$ac_try;;
16912esac
16913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16914 (eval "$ac_compile") 2>conftest.er1
16915 ac_status=$?
16916 grep -v '^ *+' conftest.er1 >conftest.err
16917 rm -f conftest.er1
16918 cat conftest.err >&5
16919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920 (exit $ac_status); } &&
16921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16922 { (case "(($ac_try" in
16923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16924 *) ac_try_echo=$ac_try;;
16925esac
16926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16927 (eval "$ac_try") 2>&5
16928 ac_status=$?
16929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930 (exit $ac_status); }; } &&
16931 { ac_try='test -s conftest.$ac_objext'
16932 { (case "(($ac_try" in
16933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16934 *) ac_try_echo=$ac_try;;
16935esac
16936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16937 (eval "$ac_try") 2>&5
16938 ac_status=$?
16939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16940 (exit $ac_status); }; }; then
16941 ac_cv_type_size_t=yes
16942else
16943 echo "$as_me: failed program was:" >&5
16944sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016945
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016946 ac_cv_type_size_t=no
16947fi
16948
16949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16950fi
16951{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16952echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16953if test $ac_cv_type_size_t = yes; then
16954 :
John Criswell7a73b802003-06-30 21:59:07 +000016955else
16956
16957cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000016958#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000016959_ACEOF
16960
16961fi
16962
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016963
16964cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000016965#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016966_ACEOF
16967
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016968{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16969echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16970if test "${ac_cv_struct_tm+set}" = set; then
16971 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016972else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016973 cat >conftest.$ac_ext <<_ACEOF
16974/* confdefs.h. */
16975_ACEOF
16976cat confdefs.h >>conftest.$ac_ext
16977cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016978/* end confdefs.h. */
16979#include <sys/types.h>
16980#include <time.h>
16981
16982int
16983main ()
16984{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016985struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016986 ;
16987 return 0;
16988}
16989_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016990rm -f conftest.$ac_objext
16991if { (ac_try="$ac_compile"
16992case "(($ac_try" in
16993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16994 *) ac_try_echo=$ac_try;;
16995esac
16996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16997 (eval "$ac_compile") 2>conftest.er1
16998 ac_status=$?
16999 grep -v '^ *+' conftest.er1 >conftest.err
17000 rm -f conftest.er1
17001 cat conftest.err >&5
17002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003 (exit $ac_status); } &&
17004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17005 { (case "(($ac_try" in
17006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17007 *) ac_try_echo=$ac_try;;
17008esac
17009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17010 (eval "$ac_try") 2>&5
17011 ac_status=$?
17012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17013 (exit $ac_status); }; } &&
17014 { ac_try='test -s conftest.$ac_objext'
17015 { (case "(($ac_try" in
17016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17017 *) ac_try_echo=$ac_try;;
17018esac
17019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17020 (eval "$ac_try") 2>&5
17021 ac_status=$?
17022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017024 ac_cv_struct_tm=time.h
17025else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017026 echo "$as_me: failed program was:" >&5
17027sed 's/^/| /' conftest.$ac_ext >&5
17028
17029 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017030fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017031
Reid Spencera773bd52006-08-04 18:18:08 +000017032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017033fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017034{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17035echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017036if test $ac_cv_struct_tm = sys/time.h; then
17037
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017038cat >>confdefs.h <<\_ACEOF
17039#define TM_IN_SYS_TIME 1
17040_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017041
17042fi
17043
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017044{ echo "$as_me:$LINENO: checking for int64_t" >&5
17045echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17046if test "${ac_cv_type_int64_t+set}" = set; then
17047 echo $ECHO_N "(cached) $ECHO_C" >&6
17048else
17049 cat >conftest.$ac_ext <<_ACEOF
17050/* confdefs.h. */
17051_ACEOF
17052cat confdefs.h >>conftest.$ac_ext
17053cat >>conftest.$ac_ext <<_ACEOF
17054/* end confdefs.h. */
17055$ac_includes_default
17056typedef int64_t ac__type_new_;
17057int
17058main ()
17059{
17060if ((ac__type_new_ *) 0)
17061 return 0;
17062if (sizeof (ac__type_new_))
17063 return 0;
17064 ;
17065 return 0;
17066}
17067_ACEOF
17068rm -f conftest.$ac_objext
17069if { (ac_try="$ac_compile"
17070case "(($ac_try" in
17071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17072 *) ac_try_echo=$ac_try;;
17073esac
17074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17075 (eval "$ac_compile") 2>conftest.er1
17076 ac_status=$?
17077 grep -v '^ *+' conftest.er1 >conftest.err
17078 rm -f conftest.er1
17079 cat conftest.err >&5
17080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17081 (exit $ac_status); } &&
17082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17083 { (case "(($ac_try" in
17084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17085 *) ac_try_echo=$ac_try;;
17086esac
17087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17088 (eval "$ac_try") 2>&5
17089 ac_status=$?
17090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17091 (exit $ac_status); }; } &&
17092 { ac_try='test -s conftest.$ac_objext'
17093 { (case "(($ac_try" in
17094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17095 *) ac_try_echo=$ac_try;;
17096esac
17097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17098 (eval "$ac_try") 2>&5
17099 ac_status=$?
17100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101 (exit $ac_status); }; }; then
17102 ac_cv_type_int64_t=yes
17103else
17104 echo "$as_me: failed program was:" >&5
17105sed 's/^/| /' conftest.$ac_ext >&5
17106
17107 ac_cv_type_int64_t=no
17108fi
17109
17110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17111fi
17112{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17113echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17114if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017115
17116cat >>confdefs.h <<_ACEOF
17117#define HAVE_INT64_T 1
17118_ACEOF
17119
17120
17121else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017122 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17123echo "$as_me: error: Type int64_t required but not found" >&2;}
17124 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000017125fi
17126
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017127{ echo "$as_me:$LINENO: checking for uint64_t" >&5
17128echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17129if test "${ac_cv_type_uint64_t+set}" = set; then
17130 echo $ECHO_N "(cached) $ECHO_C" >&6
17131else
17132 cat >conftest.$ac_ext <<_ACEOF
17133/* confdefs.h. */
17134_ACEOF
17135cat confdefs.h >>conftest.$ac_ext
17136cat >>conftest.$ac_ext <<_ACEOF
17137/* end confdefs.h. */
17138$ac_includes_default
17139typedef uint64_t ac__type_new_;
17140int
17141main ()
17142{
17143if ((ac__type_new_ *) 0)
17144 return 0;
17145if (sizeof (ac__type_new_))
17146 return 0;
17147 ;
17148 return 0;
17149}
17150_ACEOF
17151rm -f conftest.$ac_objext
17152if { (ac_try="$ac_compile"
17153case "(($ac_try" in
17154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17155 *) ac_try_echo=$ac_try;;
17156esac
17157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17158 (eval "$ac_compile") 2>conftest.er1
17159 ac_status=$?
17160 grep -v '^ *+' conftest.er1 >conftest.err
17161 rm -f conftest.er1
17162 cat conftest.err >&5
17163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164 (exit $ac_status); } &&
17165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17166 { (case "(($ac_try" in
17167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17168 *) ac_try_echo=$ac_try;;
17169esac
17170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17171 (eval "$ac_try") 2>&5
17172 ac_status=$?
17173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174 (exit $ac_status); }; } &&
17175 { ac_try='test -s conftest.$ac_objext'
17176 { (case "(($ac_try" in
17177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17178 *) ac_try_echo=$ac_try;;
17179esac
17180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17181 (eval "$ac_try") 2>&5
17182 ac_status=$?
17183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17184 (exit $ac_status); }; }; then
17185 ac_cv_type_uint64_t=yes
17186else
17187 echo "$as_me: failed program was:" >&5
17188sed 's/^/| /' conftest.$ac_ext >&5
17189
17190 ac_cv_type_uint64_t=no
17191fi
17192
17193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17194fi
17195{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17196echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17197if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017198
17199cat >>confdefs.h <<_ACEOF
17200#define HAVE_UINT64_T 1
17201_ACEOF
17202
17203
17204else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017205 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17206echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17207if test "${ac_cv_type_u_int64_t+set}" = set; then
17208 echo $ECHO_N "(cached) $ECHO_C" >&6
17209else
17210 cat >conftest.$ac_ext <<_ACEOF
17211/* confdefs.h. */
17212_ACEOF
17213cat confdefs.h >>conftest.$ac_ext
17214cat >>conftest.$ac_ext <<_ACEOF
17215/* end confdefs.h. */
17216$ac_includes_default
17217typedef u_int64_t ac__type_new_;
17218int
17219main ()
17220{
17221if ((ac__type_new_ *) 0)
17222 return 0;
17223if (sizeof (ac__type_new_))
17224 return 0;
17225 ;
17226 return 0;
17227}
17228_ACEOF
17229rm -f conftest.$ac_objext
17230if { (ac_try="$ac_compile"
17231case "(($ac_try" in
17232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17233 *) ac_try_echo=$ac_try;;
17234esac
17235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17236 (eval "$ac_compile") 2>conftest.er1
17237 ac_status=$?
17238 grep -v '^ *+' conftest.er1 >conftest.err
17239 rm -f conftest.er1
17240 cat conftest.err >&5
17241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242 (exit $ac_status); } &&
17243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17244 { (case "(($ac_try" in
17245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17246 *) ac_try_echo=$ac_try;;
17247esac
17248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17249 (eval "$ac_try") 2>&5
17250 ac_status=$?
17251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252 (exit $ac_status); }; } &&
17253 { ac_try='test -s conftest.$ac_objext'
17254 { (case "(($ac_try" in
17255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17256 *) ac_try_echo=$ac_try;;
17257esac
17258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17259 (eval "$ac_try") 2>&5
17260 ac_status=$?
17261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262 (exit $ac_status); }; }; then
17263 ac_cv_type_u_int64_t=yes
17264else
17265 echo "$as_me: failed program was:" >&5
17266sed 's/^/| /' conftest.$ac_ext >&5
17267
17268 ac_cv_type_u_int64_t=no
17269fi
17270
17271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17272fi
17273{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17274echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17275if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000017276
17277cat >>confdefs.h <<_ACEOF
17278#define HAVE_U_INT64_T 1
17279_ACEOF
17280
17281
Misha Brukmanceca9042004-09-02 23:02:30 +000017282else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017283 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17284echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17285 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000017286fi
17287
John Criswell679ff312004-09-02 18:44:44 +000017288fi
17289
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017290
17291
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017292
17293
17294
17295
17296
17297
17298
Reid Spencerdf3be822006-01-23 08:15:53 +000017299for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017300do
17301as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17302{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17303echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17304if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17305 echo $ECHO_N "(cached) $ECHO_C" >&6
17306else
17307 cat >conftest.$ac_ext <<_ACEOF
17308/* confdefs.h. */
17309_ACEOF
17310cat confdefs.h >>conftest.$ac_ext
17311cat >>conftest.$ac_ext <<_ACEOF
17312/* end confdefs.h. */
17313/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17314 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17315#define $ac_func innocuous_$ac_func
17316
17317/* System header to define __stub macros and hopefully few prototypes,
17318 which can conflict with char $ac_func (); below.
17319 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17320 <limits.h> exists even on freestanding compilers. */
17321
17322#ifdef __STDC__
17323# include <limits.h>
17324#else
17325# include <assert.h>
17326#endif
17327
17328#undef $ac_func
17329
17330/* Override any GCC internal prototype to avoid an error.
17331 Use char because int might match the return type of a GCC
17332 builtin and then its argument prototype would still apply. */
17333#ifdef __cplusplus
17334extern "C"
17335#endif
17336char $ac_func ();
17337/* The GNU C library defines this for functions which it implements
17338 to always fail with ENOSYS. Some functions are actually named
17339 something starting with __ and the normal name is an alias. */
17340#if defined __stub_$ac_func || defined __stub___$ac_func
17341choke me
17342#endif
17343
17344int
17345main ()
17346{
17347return $ac_func ();
17348 ;
17349 return 0;
17350}
17351_ACEOF
17352rm -f conftest.$ac_objext conftest$ac_exeext
17353if { (ac_try="$ac_link"
17354case "(($ac_try" in
17355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17356 *) ac_try_echo=$ac_try;;
17357esac
17358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17359 (eval "$ac_link") 2>conftest.er1
17360 ac_status=$?
17361 grep -v '^ *+' conftest.er1 >conftest.err
17362 rm -f conftest.er1
17363 cat conftest.err >&5
17364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365 (exit $ac_status); } &&
17366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17367 { (case "(($ac_try" in
17368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17369 *) ac_try_echo=$ac_try;;
17370esac
17371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17372 (eval "$ac_try") 2>&5
17373 ac_status=$?
17374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17375 (exit $ac_status); }; } &&
17376 { ac_try='test -s conftest$ac_exeext'
17377 { (case "(($ac_try" in
17378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17379 *) ac_try_echo=$ac_try;;
17380esac
17381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17382 (eval "$ac_try") 2>&5
17383 ac_status=$?
17384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385 (exit $ac_status); }; }; then
17386 eval "$as_ac_var=yes"
17387else
17388 echo "$as_me: failed program was:" >&5
17389sed 's/^/| /' conftest.$ac_ext >&5
17390
17391 eval "$as_ac_var=no"
17392fi
17393
17394rm -f core conftest.err conftest.$ac_objext \
17395 conftest$ac_exeext conftest.$ac_ext
17396fi
17397ac_res=`eval echo '${'$as_ac_var'}'`
17398 { echo "$as_me:$LINENO: result: $ac_res" >&5
17399echo "${ECHO_T}$ac_res" >&6; }
17400if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017401 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017402#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017403_ACEOF
17404
17405fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017406done
John Criswell7a73b802003-06-30 21:59:07 +000017407
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017408
17409
17410
17411
Reid Spencer96cf5872007-07-13 10:05:30 +000017412for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017413do
17414as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17415{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17416echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17417if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17418 echo $ECHO_N "(cached) $ECHO_C" >&6
17419else
17420 cat >conftest.$ac_ext <<_ACEOF
17421/* confdefs.h. */
17422_ACEOF
17423cat confdefs.h >>conftest.$ac_ext
17424cat >>conftest.$ac_ext <<_ACEOF
17425/* end confdefs.h. */
17426/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17428#define $ac_func innocuous_$ac_func
17429
17430/* System header to define __stub macros and hopefully few prototypes,
17431 which can conflict with char $ac_func (); below.
17432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17433 <limits.h> exists even on freestanding compilers. */
17434
17435#ifdef __STDC__
17436# include <limits.h>
17437#else
17438# include <assert.h>
17439#endif
17440
17441#undef $ac_func
17442
17443/* Override any GCC internal prototype to avoid an error.
17444 Use char because int might match the return type of a GCC
17445 builtin and then its argument prototype would still apply. */
17446#ifdef __cplusplus
17447extern "C"
17448#endif
17449char $ac_func ();
17450/* The GNU C library defines this for functions which it implements
17451 to always fail with ENOSYS. Some functions are actually named
17452 something starting with __ and the normal name is an alias. */
17453#if defined __stub_$ac_func || defined __stub___$ac_func
17454choke me
17455#endif
17456
17457int
17458main ()
17459{
17460return $ac_func ();
17461 ;
17462 return 0;
17463}
17464_ACEOF
17465rm -f conftest.$ac_objext conftest$ac_exeext
17466if { (ac_try="$ac_link"
17467case "(($ac_try" in
17468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17469 *) ac_try_echo=$ac_try;;
17470esac
17471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17472 (eval "$ac_link") 2>conftest.er1
17473 ac_status=$?
17474 grep -v '^ *+' conftest.er1 >conftest.err
17475 rm -f conftest.er1
17476 cat conftest.err >&5
17477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478 (exit $ac_status); } &&
17479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17480 { (case "(($ac_try" in
17481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17482 *) ac_try_echo=$ac_try;;
17483esac
17484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17485 (eval "$ac_try") 2>&5
17486 ac_status=$?
17487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488 (exit $ac_status); }; } &&
17489 { ac_try='test -s conftest$ac_exeext'
17490 { (case "(($ac_try" in
17491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17492 *) ac_try_echo=$ac_try;;
17493esac
17494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17495 (eval "$ac_try") 2>&5
17496 ac_status=$?
17497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17498 (exit $ac_status); }; }; then
17499 eval "$as_ac_var=yes"
17500else
17501 echo "$as_me: failed program was:" >&5
17502sed 's/^/| /' conftest.$ac_ext >&5
17503
17504 eval "$as_ac_var=no"
17505fi
17506
17507rm -f core conftest.err conftest.$ac_objext \
17508 conftest$ac_exeext conftest.$ac_ext
17509fi
17510ac_res=`eval echo '${'$as_ac_var'}'`
17511 { echo "$as_me:$LINENO: result: $ac_res" >&5
17512echo "${ECHO_T}$ac_res" >&6; }
17513if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000017514 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017515#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000017516_ACEOF
17517
17518fi
17519done
17520
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017521
17522
17523
17524
17525
Reid Spencerb90645c2007-02-16 19:17:20 +000017526for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017527do
17528as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17529{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17530echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17531if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17532 echo $ECHO_N "(cached) $ECHO_C" >&6
17533else
17534 cat >conftest.$ac_ext <<_ACEOF
17535/* confdefs.h. */
17536_ACEOF
17537cat confdefs.h >>conftest.$ac_ext
17538cat >>conftest.$ac_ext <<_ACEOF
17539/* end confdefs.h. */
17540/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17541 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17542#define $ac_func innocuous_$ac_func
17543
17544/* System header to define __stub macros and hopefully few prototypes,
17545 which can conflict with char $ac_func (); below.
17546 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17547 <limits.h> exists even on freestanding compilers. */
17548
17549#ifdef __STDC__
17550# include <limits.h>
17551#else
17552# include <assert.h>
17553#endif
17554
17555#undef $ac_func
17556
17557/* Override any GCC internal prototype to avoid an error.
17558 Use char because int might match the return type of a GCC
17559 builtin and then its argument prototype would still apply. */
17560#ifdef __cplusplus
17561extern "C"
17562#endif
17563char $ac_func ();
17564/* The GNU C library defines this for functions which it implements
17565 to always fail with ENOSYS. Some functions are actually named
17566 something starting with __ and the normal name is an alias. */
17567#if defined __stub_$ac_func || defined __stub___$ac_func
17568choke me
17569#endif
17570
17571int
17572main ()
17573{
17574return $ac_func ();
17575 ;
17576 return 0;
17577}
17578_ACEOF
17579rm -f conftest.$ac_objext conftest$ac_exeext
17580if { (ac_try="$ac_link"
17581case "(($ac_try" in
17582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17583 *) ac_try_echo=$ac_try;;
17584esac
17585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17586 (eval "$ac_link") 2>conftest.er1
17587 ac_status=$?
17588 grep -v '^ *+' conftest.er1 >conftest.err
17589 rm -f conftest.er1
17590 cat conftest.err >&5
17591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592 (exit $ac_status); } &&
17593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17594 { (case "(($ac_try" in
17595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17596 *) ac_try_echo=$ac_try;;
17597esac
17598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17599 (eval "$ac_try") 2>&5
17600 ac_status=$?
17601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602 (exit $ac_status); }; } &&
17603 { ac_try='test -s conftest$ac_exeext'
17604 { (case "(($ac_try" in
17605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17606 *) ac_try_echo=$ac_try;;
17607esac
17608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17609 (eval "$ac_try") 2>&5
17610 ac_status=$?
17611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612 (exit $ac_status); }; }; then
17613 eval "$as_ac_var=yes"
17614else
17615 echo "$as_me: failed program was:" >&5
17616sed 's/^/| /' conftest.$ac_ext >&5
17617
17618 eval "$as_ac_var=no"
17619fi
17620
17621rm -f core conftest.err conftest.$ac_objext \
17622 conftest$ac_exeext conftest.$ac_ext
17623fi
17624ac_res=`eval echo '${'$as_ac_var'}'`
17625 { echo "$as_me:$LINENO: result: $ac_res" >&5
17626echo "${ECHO_T}$ac_res" >&6; }
17627if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000017628 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017629#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000017630_ACEOF
17631
17632fi
17633done
17634
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017635
17636
17637
Reid Spencerb90645c2007-02-16 19:17:20 +000017638for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017639do
17640as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17641{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17642echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17643if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17644 echo $ECHO_N "(cached) $ECHO_C" >&6
17645else
17646 cat >conftest.$ac_ext <<_ACEOF
17647/* confdefs.h. */
17648_ACEOF
17649cat confdefs.h >>conftest.$ac_ext
17650cat >>conftest.$ac_ext <<_ACEOF
17651/* end confdefs.h. */
17652/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17653 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17654#define $ac_func innocuous_$ac_func
17655
17656/* System header to define __stub macros and hopefully few prototypes,
17657 which can conflict with char $ac_func (); below.
17658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17659 <limits.h> exists even on freestanding compilers. */
17660
17661#ifdef __STDC__
17662# include <limits.h>
17663#else
17664# include <assert.h>
17665#endif
17666
17667#undef $ac_func
17668
17669/* Override any GCC internal prototype to avoid an error.
17670 Use char because int might match the return type of a GCC
17671 builtin and then its argument prototype would still apply. */
17672#ifdef __cplusplus
17673extern "C"
17674#endif
17675char $ac_func ();
17676/* The GNU C library defines this for functions which it implements
17677 to always fail with ENOSYS. Some functions are actually named
17678 something starting with __ and the normal name is an alias. */
17679#if defined __stub_$ac_func || defined __stub___$ac_func
17680choke me
17681#endif
17682
17683int
17684main ()
17685{
17686return $ac_func ();
17687 ;
17688 return 0;
17689}
17690_ACEOF
17691rm -f conftest.$ac_objext conftest$ac_exeext
17692if { (ac_try="$ac_link"
17693case "(($ac_try" in
17694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17695 *) ac_try_echo=$ac_try;;
17696esac
17697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17698 (eval "$ac_link") 2>conftest.er1
17699 ac_status=$?
17700 grep -v '^ *+' conftest.er1 >conftest.err
17701 rm -f conftest.er1
17702 cat conftest.err >&5
17703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704 (exit $ac_status); } &&
17705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17706 { (case "(($ac_try" in
17707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17708 *) ac_try_echo=$ac_try;;
17709esac
17710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17711 (eval "$ac_try") 2>&5
17712 ac_status=$?
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); }; } &&
17715 { ac_try='test -s conftest$ac_exeext'
17716 { (case "(($ac_try" in
17717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17718 *) ac_try_echo=$ac_try;;
17719esac
17720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17721 (eval "$ac_try") 2>&5
17722 ac_status=$?
17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724 (exit $ac_status); }; }; then
17725 eval "$as_ac_var=yes"
17726else
17727 echo "$as_me: failed program was:" >&5
17728sed 's/^/| /' conftest.$ac_ext >&5
17729
17730 eval "$as_ac_var=no"
17731fi
17732
17733rm -f core conftest.err conftest.$ac_objext \
17734 conftest$ac_exeext conftest.$ac_ext
17735fi
17736ac_res=`eval echo '${'$as_ac_var'}'`
17737 { echo "$as_me:$LINENO: result: $ac_res" >&5
17738echo "${ECHO_T}$ac_res" >&6; }
17739if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000017740 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017741#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000017742_ACEOF
17743
17744fi
17745done
17746
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017747
17748
17749
17750
17751
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017752for ac_func in mktemp realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017753do
17754as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17755{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17756echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17757if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17758 echo $ECHO_N "(cached) $ECHO_C" >&6
17759else
17760 cat >conftest.$ac_ext <<_ACEOF
17761/* confdefs.h. */
17762_ACEOF
17763cat confdefs.h >>conftest.$ac_ext
17764cat >>conftest.$ac_ext <<_ACEOF
17765/* end confdefs.h. */
17766/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17768#define $ac_func innocuous_$ac_func
17769
17770/* System header to define __stub macros and hopefully few prototypes,
17771 which can conflict with char $ac_func (); below.
17772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17773 <limits.h> exists even on freestanding compilers. */
17774
17775#ifdef __STDC__
17776# include <limits.h>
17777#else
17778# include <assert.h>
17779#endif
17780
17781#undef $ac_func
17782
17783/* Override any GCC internal prototype to avoid an error.
17784 Use char because int might match the return type of a GCC
17785 builtin and then its argument prototype would still apply. */
17786#ifdef __cplusplus
17787extern "C"
17788#endif
17789char $ac_func ();
17790/* The GNU C library defines this for functions which it implements
17791 to always fail with ENOSYS. Some functions are actually named
17792 something starting with __ and the normal name is an alias. */
17793#if defined __stub_$ac_func || defined __stub___$ac_func
17794choke me
17795#endif
17796
17797int
17798main ()
17799{
17800return $ac_func ();
17801 ;
17802 return 0;
17803}
17804_ACEOF
17805rm -f conftest.$ac_objext conftest$ac_exeext
17806if { (ac_try="$ac_link"
17807case "(($ac_try" in
17808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17809 *) ac_try_echo=$ac_try;;
17810esac
17811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17812 (eval "$ac_link") 2>conftest.er1
17813 ac_status=$?
17814 grep -v '^ *+' conftest.er1 >conftest.err
17815 rm -f conftest.er1
17816 cat conftest.err >&5
17817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818 (exit $ac_status); } &&
17819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17820 { (case "(($ac_try" in
17821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17822 *) ac_try_echo=$ac_try;;
17823esac
17824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17825 (eval "$ac_try") 2>&5
17826 ac_status=$?
17827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828 (exit $ac_status); }; } &&
17829 { ac_try='test -s conftest$ac_exeext'
17830 { (case "(($ac_try" in
17831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17832 *) ac_try_echo=$ac_try;;
17833esac
17834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17835 (eval "$ac_try") 2>&5
17836 ac_status=$?
17837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17838 (exit $ac_status); }; }; then
17839 eval "$as_ac_var=yes"
17840else
17841 echo "$as_me: failed program was:" >&5
17842sed 's/^/| /' conftest.$ac_ext >&5
17843
17844 eval "$as_ac_var=no"
17845fi
17846
17847rm -f core conftest.err conftest.$ac_objext \
17848 conftest$ac_exeext conftest.$ac_ext
17849fi
17850ac_res=`eval echo '${'$as_ac_var'}'`
17851 { echo "$as_me:$LINENO: result: $ac_res" >&5
17852echo "${ECHO_T}$ac_res" >&6; }
17853if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017854 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017855#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017856_ACEOF
17857
17858fi
17859done
Reid Spencerdf3be822006-01-23 08:15:53 +000017860
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017861
17862
17863
17864
Jeffrey Yasskinb7a8d402009-09-25 21:07:20 +000017865for ac_func in strerror strerror_r strerror_s setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017866do
17867as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17868{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17869echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17870if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17871 echo $ECHO_N "(cached) $ECHO_C" >&6
17872else
17873 cat >conftest.$ac_ext <<_ACEOF
17874/* confdefs.h. */
17875_ACEOF
17876cat confdefs.h >>conftest.$ac_ext
17877cat >>conftest.$ac_ext <<_ACEOF
17878/* end confdefs.h. */
17879/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17881#define $ac_func innocuous_$ac_func
17882
17883/* System header to define __stub macros and hopefully few prototypes,
17884 which can conflict with char $ac_func (); below.
17885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17886 <limits.h> exists even on freestanding compilers. */
17887
17888#ifdef __STDC__
17889# include <limits.h>
17890#else
17891# include <assert.h>
17892#endif
17893
17894#undef $ac_func
17895
17896/* Override any GCC internal prototype to avoid an error.
17897 Use char because int might match the return type of a GCC
17898 builtin and then its argument prototype would still apply. */
17899#ifdef __cplusplus
17900extern "C"
17901#endif
17902char $ac_func ();
17903/* The GNU C library defines this for functions which it implements
17904 to always fail with ENOSYS. Some functions are actually named
17905 something starting with __ and the normal name is an alias. */
17906#if defined __stub_$ac_func || defined __stub___$ac_func
17907choke me
17908#endif
17909
17910int
17911main ()
17912{
17913return $ac_func ();
17914 ;
17915 return 0;
17916}
17917_ACEOF
17918rm -f conftest.$ac_objext conftest$ac_exeext
17919if { (ac_try="$ac_link"
17920case "(($ac_try" in
17921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17922 *) ac_try_echo=$ac_try;;
17923esac
17924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17925 (eval "$ac_link") 2>conftest.er1
17926 ac_status=$?
17927 grep -v '^ *+' conftest.er1 >conftest.err
17928 rm -f conftest.er1
17929 cat conftest.err >&5
17930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17931 (exit $ac_status); } &&
17932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17933 { (case "(($ac_try" in
17934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17935 *) ac_try_echo=$ac_try;;
17936esac
17937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17938 (eval "$ac_try") 2>&5
17939 ac_status=$?
17940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941 (exit $ac_status); }; } &&
17942 { ac_try='test -s conftest$ac_exeext'
17943 { (case "(($ac_try" in
17944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17945 *) ac_try_echo=$ac_try;;
17946esac
17947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17948 (eval "$ac_try") 2>&5
17949 ac_status=$?
17950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17951 (exit $ac_status); }; }; then
17952 eval "$as_ac_var=yes"
17953else
17954 echo "$as_me: failed program was:" >&5
17955sed 's/^/| /' conftest.$ac_ext >&5
17956
17957 eval "$as_ac_var=no"
17958fi
17959
17960rm -f core conftest.err conftest.$ac_objext \
17961 conftest$ac_exeext conftest.$ac_ext
17962fi
17963ac_res=`eval echo '${'$as_ac_var'}'`
17964 { echo "$as_me:$LINENO: result: $ac_res" >&5
17965echo "${ECHO_T}$ac_res" >&6; }
17966if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000017967 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017968#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000017969_ACEOF
17970
17971fi
17972done
17973
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017974
17975
17976
17977
Chris Lattner511f11d2005-11-14 07:25:50 +000017978for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017979do
17980as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17981{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17982echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17983if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17984 echo $ECHO_N "(cached) $ECHO_C" >&6
17985else
17986 cat >conftest.$ac_ext <<_ACEOF
17987/* confdefs.h. */
17988_ACEOF
17989cat confdefs.h >>conftest.$ac_ext
17990cat >>conftest.$ac_ext <<_ACEOF
17991/* end confdefs.h. */
17992/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17994#define $ac_func innocuous_$ac_func
17995
17996/* System header to define __stub macros and hopefully few prototypes,
17997 which can conflict with char $ac_func (); below.
17998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17999 <limits.h> exists even on freestanding compilers. */
18000
18001#ifdef __STDC__
18002# include <limits.h>
18003#else
18004# include <assert.h>
18005#endif
18006
18007#undef $ac_func
18008
18009/* Override any GCC internal prototype to avoid an error.
18010 Use char because int might match the return type of a GCC
18011 builtin and then its argument prototype would still apply. */
18012#ifdef __cplusplus
18013extern "C"
18014#endif
18015char $ac_func ();
18016/* The GNU C library defines this for functions which it implements
18017 to always fail with ENOSYS. Some functions are actually named
18018 something starting with __ and the normal name is an alias. */
18019#if defined __stub_$ac_func || defined __stub___$ac_func
18020choke me
18021#endif
18022
18023int
18024main ()
18025{
18026return $ac_func ();
18027 ;
18028 return 0;
18029}
18030_ACEOF
18031rm -f conftest.$ac_objext conftest$ac_exeext
18032if { (ac_try="$ac_link"
18033case "(($ac_try" in
18034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18035 *) ac_try_echo=$ac_try;;
18036esac
18037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18038 (eval "$ac_link") 2>conftest.er1
18039 ac_status=$?
18040 grep -v '^ *+' conftest.er1 >conftest.err
18041 rm -f conftest.er1
18042 cat conftest.err >&5
18043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18044 (exit $ac_status); } &&
18045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18046 { (case "(($ac_try" in
18047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18048 *) ac_try_echo=$ac_try;;
18049esac
18050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18051 (eval "$ac_try") 2>&5
18052 ac_status=$?
18053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054 (exit $ac_status); }; } &&
18055 { ac_try='test -s conftest$ac_exeext'
18056 { (case "(($ac_try" in
18057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18058 *) ac_try_echo=$ac_try;;
18059esac
18060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18061 (eval "$ac_try") 2>&5
18062 ac_status=$?
18063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064 (exit $ac_status); }; }; then
18065 eval "$as_ac_var=yes"
18066else
18067 echo "$as_me: failed program was:" >&5
18068sed 's/^/| /' conftest.$ac_ext >&5
18069
18070 eval "$as_ac_var=no"
18071fi
18072
18073rm -f core conftest.err conftest.$ac_objext \
18074 conftest$ac_exeext conftest.$ac_ext
18075fi
18076ac_res=`eval echo '${'$as_ac_var'}'`
18077 { echo "$as_me:$LINENO: result: $ac_res" >&5
18078echo "${ECHO_T}$ac_res" >&6; }
18079if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018080 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018081#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018082_ACEOF
18083
18084fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018085done
John Criswell7a73b802003-06-30 21:59:07 +000018086
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018087
18088
18089
18090
Reid Spencerafa22e22006-12-10 23:29:19 +000018091for ac_func in setjmp longjmp sigsetjmp siglongjmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018092do
18093as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18094{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18095echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18096if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18097 echo $ECHO_N "(cached) $ECHO_C" >&6
18098else
18099 cat >conftest.$ac_ext <<_ACEOF
18100/* confdefs.h. */
18101_ACEOF
18102cat confdefs.h >>conftest.$ac_ext
18103cat >>conftest.$ac_ext <<_ACEOF
18104/* end confdefs.h. */
18105/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18106 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18107#define $ac_func innocuous_$ac_func
18108
18109/* System header to define __stub macros and hopefully few prototypes,
18110 which can conflict with char $ac_func (); below.
18111 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18112 <limits.h> exists even on freestanding compilers. */
18113
18114#ifdef __STDC__
18115# include <limits.h>
18116#else
18117# include <assert.h>
18118#endif
18119
18120#undef $ac_func
18121
18122/* Override any GCC internal prototype to avoid an error.
18123 Use char because int might match the return type of a GCC
18124 builtin and then its argument prototype would still apply. */
18125#ifdef __cplusplus
18126extern "C"
18127#endif
18128char $ac_func ();
18129/* The GNU C library defines this for functions which it implements
18130 to always fail with ENOSYS. Some functions are actually named
18131 something starting with __ and the normal name is an alias. */
18132#if defined __stub_$ac_func || defined __stub___$ac_func
18133choke me
18134#endif
18135
18136int
18137main ()
18138{
18139return $ac_func ();
18140 ;
18141 return 0;
18142}
18143_ACEOF
18144rm -f conftest.$ac_objext conftest$ac_exeext
18145if { (ac_try="$ac_link"
18146case "(($ac_try" in
18147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18148 *) ac_try_echo=$ac_try;;
18149esac
18150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18151 (eval "$ac_link") 2>conftest.er1
18152 ac_status=$?
18153 grep -v '^ *+' conftest.er1 >conftest.err
18154 rm -f conftest.er1
18155 cat conftest.err >&5
18156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18157 (exit $ac_status); } &&
18158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18159 { (case "(($ac_try" in
18160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18161 *) ac_try_echo=$ac_try;;
18162esac
18163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18164 (eval "$ac_try") 2>&5
18165 ac_status=$?
18166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18167 (exit $ac_status); }; } &&
18168 { ac_try='test -s conftest$ac_exeext'
18169 { (case "(($ac_try" in
18170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18171 *) ac_try_echo=$ac_try;;
18172esac
18173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18174 (eval "$ac_try") 2>&5
18175 ac_status=$?
18176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18177 (exit $ac_status); }; }; then
18178 eval "$as_ac_var=yes"
18179else
18180 echo "$as_me: failed program was:" >&5
18181sed 's/^/| /' conftest.$ac_ext >&5
18182
18183 eval "$as_ac_var=no"
18184fi
18185
18186rm -f core conftest.err conftest.$ac_objext \
18187 conftest$ac_exeext conftest.$ac_ext
18188fi
18189ac_res=`eval echo '${'$as_ac_var'}'`
18190 { echo "$as_me:$LINENO: result: $ac_res" >&5
18191echo "${ECHO_T}$ac_res" >&6; }
18192if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000018193 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018194#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000018195_ACEOF
18196
18197fi
18198done
18199
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018200{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18201echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18202if test "${llvm_cv_c_printf_a+set}" = set; then
18203 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018204else
Reid Spencer2706f8c2004-09-19 23:53:36 +000018205 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000018206ac_cpp='$CPP $CPPFLAGS'
18207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18209ac_compiler_gnu=$ac_cv_c_compiler_gnu
18210
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018211 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000018212 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000018213else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018214 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000018215
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018216 /* confdefs.h. */
18217_ACEOF
18218cat confdefs.h >>conftest.$ac_ext
18219cat >>conftest.$ac_ext <<_ACEOF
18220/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000018221
John Criswella0137d32003-10-13 16:22:01 +000018222#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000018223#include <stdlib.h>
18224
John Criswella0137d32003-10-13 16:22:01 +000018225int
18226main ()
18227{
18228
Reid Spencer2706f8c2004-09-19 23:53:36 +000018229volatile double A, B;
18230char Buffer[100];
18231A = 1;
18232A /= 10.0;
18233sprintf(Buffer, "%a", A);
18234B = atof(Buffer);
18235if (A != B)
18236 return (1);
18237if (A != 0x1.999999999999ap-4)
18238 return (1);
18239return (0);
John Criswella0137d32003-10-13 16:22:01 +000018240 ;
18241 return 0;
18242}
18243_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018244rm -f conftest$ac_exeext
18245if { (ac_try="$ac_link"
18246case "(($ac_try" in
18247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18248 *) ac_try_echo=$ac_try;;
18249esac
18250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18251 (eval "$ac_link") 2>&5
18252 ac_status=$?
18253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18254 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18255 { (case "(($ac_try" in
18256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18257 *) ac_try_echo=$ac_try;;
18258esac
18259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18260 (eval "$ac_try") 2>&5
18261 ac_status=$?
18262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18263 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000018264 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000018265else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018266 echo "$as_me: program exited with status $ac_status" >&5
18267echo "$as_me: failed program was:" >&5
18268sed 's/^/| /' conftest.$ac_ext >&5
18269
18270( exit $ac_status )
18271llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000018272fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018273rm -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 +000018274fi
Reid Spencera773bd52006-08-04 18:18:08 +000018275
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018276
Reid Spencer2706f8c2004-09-19 23:53:36 +000018277 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000018278ac_cpp='$CPP $CPPFLAGS'
18279ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18280ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18281ac_compiler_gnu=$ac_cv_c_compiler_gnu
18282
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018283fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018284{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18285echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000018286 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000018287
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018288cat >>confdefs.h <<\_ACEOF
18289#define HAVE_PRINTF_A 1
18290_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000018291
Reid Spencer2706f8c2004-09-19 23:53:36 +000018292 fi
John Criswella0137d32003-10-13 16:22:01 +000018293
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018294
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018295{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18296echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18297if test "${ac_cv_func_rand48+set}" = set; then
18298 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018299else
Reid Spencera773bd52006-08-04 18:18:08 +000018300 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018301ac_cpp='$CXXCPP $CPPFLAGS'
18302ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18303ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18304ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18305
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018306 cat >conftest.$ac_ext <<_ACEOF
18307/* confdefs.h. */
18308_ACEOF
18309cat confdefs.h >>conftest.$ac_ext
18310cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018311/* end confdefs.h. */
18312#include <stdlib.h>
18313int
18314main ()
18315{
18316srand48(0);lrand48();drand48();
18317 ;
18318 return 0;
18319}
18320_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018321rm -f conftest.$ac_objext
18322if { (ac_try="$ac_compile"
18323case "(($ac_try" in
18324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18325 *) ac_try_echo=$ac_try;;
18326esac
18327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18328 (eval "$ac_compile") 2>conftest.er1
18329 ac_status=$?
18330 grep -v '^ *+' conftest.er1 >conftest.err
18331 rm -f conftest.er1
18332 cat conftest.err >&5
18333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334 (exit $ac_status); } &&
18335 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18336 { (case "(($ac_try" in
18337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18338 *) ac_try_echo=$ac_try;;
18339esac
18340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18341 (eval "$ac_try") 2>&5
18342 ac_status=$?
18343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344 (exit $ac_status); }; } &&
18345 { ac_try='test -s conftest.$ac_objext'
18346 { (case "(($ac_try" in
18347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18348 *) ac_try_echo=$ac_try;;
18349esac
18350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18351 (eval "$ac_try") 2>&5
18352 ac_status=$?
18353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018355 ac_cv_func_rand48=yes
18356else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018357 echo "$as_me: failed program was:" >&5
18358sed 's/^/| /' conftest.$ac_ext >&5
18359
18360 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018361fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018362
Reid Spencera773bd52006-08-04 18:18:08 +000018363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018364 ac_ext=c
18365ac_cpp='$CPP $CPPFLAGS'
18366ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18367ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18368ac_compiler_gnu=$ac_cv_c_compiler_gnu
18369
18370fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018371{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18372echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018373
18374if test "$ac_cv_func_rand48" = "yes" ; then
18375
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018376cat >>confdefs.h <<\_ACEOF
18377#define HAVE_RAND48 1
18378_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018379
18380fi
John Criswell0021c312004-02-13 21:57:29 +000018381
18382
Torok Edwin871384f2010-01-26 08:50:50 +000018383
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018384{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18385echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18386if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18387 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000018388else
Reid Spencera773bd52006-08-04 18:18:08 +000018389 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000018390ac_cpp='$CXXCPP $CPPFLAGS'
18391ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18392ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18393ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18394
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018395 cat >conftest.$ac_ext <<_ACEOF
18396/* confdefs.h. */
18397_ACEOF
18398cat confdefs.h >>conftest.$ac_ext
18399cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018400/* end confdefs.h. */
18401#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000018402int
18403main ()
18404{
18405float f; isnan(f);
18406 ;
18407 return 0;
18408}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018409_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018410rm -f conftest.$ac_objext
18411if { (ac_try="$ac_compile"
18412case "(($ac_try" in
18413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18414 *) ac_try_echo=$ac_try;;
18415esac
18416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18417 (eval "$ac_compile") 2>conftest.er1
18418 ac_status=$?
18419 grep -v '^ *+' conftest.er1 >conftest.err
18420 rm -f conftest.er1
18421 cat conftest.err >&5
18422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18423 (exit $ac_status); } &&
18424 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18425 { (case "(($ac_try" in
18426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18427 *) ac_try_echo=$ac_try;;
18428esac
18429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18430 (eval "$ac_try") 2>&5
18431 ac_status=$?
18432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18433 (exit $ac_status); }; } &&
18434 { ac_try='test -s conftest.$ac_objext'
18435 { (case "(($ac_try" in
18436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18437 *) ac_try_echo=$ac_try;;
18438esac
18439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18440 (eval "$ac_try") 2>&5
18441 ac_status=$?
18442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18443 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018444 ac_cv_func_isnan_in_math_h=yes
18445else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018446 echo "$as_me: failed program was:" >&5
18447sed 's/^/| /' conftest.$ac_ext >&5
18448
18449 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018450fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018451
Reid Spencera773bd52006-08-04 18:18:08 +000018452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018453 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018454ac_cpp='$CPP $CPPFLAGS'
18455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18457ac_compiler_gnu=$ac_cv_c_compiler_gnu
18458
18459fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018460{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
18461echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018462
18463
18464if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018465
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018466cat >>confdefs.h <<\_ACEOF
18467#define HAVE_ISNAN_IN_MATH_H 1
18468_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018469
Reid Spencerabec8f92004-10-27 23:03:44 +000018470fi
18471
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018472{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
18473echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
18474if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
18475 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018476else
Reid Spencera773bd52006-08-04 18:18:08 +000018477 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018478ac_cpp='$CXXCPP $CPPFLAGS'
18479ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18480ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18481ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18482
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018483 cat >conftest.$ac_ext <<_ACEOF
18484/* confdefs.h. */
18485_ACEOF
18486cat confdefs.h >>conftest.$ac_ext
18487cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018488/* end confdefs.h. */
18489#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000018490int
18491main ()
18492{
18493float f; isnan(f);
18494 ;
18495 return 0;
18496}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018497_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018498rm -f conftest.$ac_objext
18499if { (ac_try="$ac_compile"
18500case "(($ac_try" in
18501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18502 *) ac_try_echo=$ac_try;;
18503esac
18504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18505 (eval "$ac_compile") 2>conftest.er1
18506 ac_status=$?
18507 grep -v '^ *+' conftest.er1 >conftest.err
18508 rm -f conftest.er1
18509 cat conftest.err >&5
18510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18511 (exit $ac_status); } &&
18512 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18513 { (case "(($ac_try" in
18514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18515 *) ac_try_echo=$ac_try;;
18516esac
18517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18518 (eval "$ac_try") 2>&5
18519 ac_status=$?
18520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18521 (exit $ac_status); }; } &&
18522 { ac_try='test -s conftest.$ac_objext'
18523 { (case "(($ac_try" in
18524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18525 *) ac_try_echo=$ac_try;;
18526esac
18527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18528 (eval "$ac_try") 2>&5
18529 ac_status=$?
18530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018532 ac_cv_func_isnan_in_cmath=yes
18533else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018534 echo "$as_me: failed program was:" >&5
18535sed 's/^/| /' conftest.$ac_ext >&5
18536
18537 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018538fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018539
Reid Spencera773bd52006-08-04 18:18:08 +000018540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018541 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018542ac_cpp='$CPP $CPPFLAGS'
18543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18545ac_compiler_gnu=$ac_cv_c_compiler_gnu
18546
18547fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018548{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
18549echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018550
18551if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018552
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018553cat >>confdefs.h <<\_ACEOF
18554#define HAVE_ISNAN_IN_CMATH 1
18555_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018556
Reid Spencerabec8f92004-10-27 23:03:44 +000018557fi
18558
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018559{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
18560echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
18561if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
18562 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018563else
Reid Spencera773bd52006-08-04 18:18:08 +000018564 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018565ac_cpp='$CXXCPP $CPPFLAGS'
18566ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18567ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18568ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18569
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018570 cat >conftest.$ac_ext <<_ACEOF
18571/* confdefs.h. */
18572_ACEOF
18573cat confdefs.h >>conftest.$ac_ext
18574cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018575/* end confdefs.h. */
18576#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000018577int
18578main ()
18579{
18580float f; std::isnan(f);
18581 ;
18582 return 0;
18583}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018584_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018585rm -f conftest.$ac_objext
18586if { (ac_try="$ac_compile"
18587case "(($ac_try" in
18588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18589 *) ac_try_echo=$ac_try;;
18590esac
18591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18592 (eval "$ac_compile") 2>conftest.er1
18593 ac_status=$?
18594 grep -v '^ *+' conftest.er1 >conftest.err
18595 rm -f conftest.er1
18596 cat conftest.err >&5
18597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18598 (exit $ac_status); } &&
18599 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18600 { (case "(($ac_try" in
18601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18602 *) ac_try_echo=$ac_try;;
18603esac
18604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18605 (eval "$ac_try") 2>&5
18606 ac_status=$?
18607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18608 (exit $ac_status); }; } &&
18609 { ac_try='test -s conftest.$ac_objext'
18610 { (case "(($ac_try" in
18611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18612 *) ac_try_echo=$ac_try;;
18613esac
18614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18615 (eval "$ac_try") 2>&5
18616 ac_status=$?
18617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18618 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018619 ac_cv_func_std_isnan_in_cmath=yes
18620else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018621 echo "$as_me: failed program was:" >&5
18622sed 's/^/| /' conftest.$ac_ext >&5
18623
18624 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018625fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018626
Reid Spencera773bd52006-08-04 18:18:08 +000018627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018628 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018629ac_cpp='$CPP $CPPFLAGS'
18630ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18631ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18632ac_compiler_gnu=$ac_cv_c_compiler_gnu
18633
18634fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018635{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
18636echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018637
18638if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018639
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018640cat >>confdefs.h <<\_ACEOF
18641#define HAVE_STD_ISNAN_IN_CMATH 1
18642_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018643
Reid Spencerabec8f92004-10-27 23:03:44 +000018644fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018645
18646
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018647{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
18648echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
18649if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
18650 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000018651else
Reid Spencera773bd52006-08-04 18:18:08 +000018652 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000018653ac_cpp='$CXXCPP $CPPFLAGS'
18654ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18655ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18656ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18657
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018658 cat >conftest.$ac_ext <<_ACEOF
18659/* confdefs.h. */
18660_ACEOF
18661cat confdefs.h >>conftest.$ac_ext
18662cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018663/* end confdefs.h. */
18664#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000018665int
18666main ()
18667{
18668float f; isinf(f);
18669 ;
18670 return 0;
18671}
Brian Gaeke52a551d2004-07-21 03:14:12 +000018672_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018673rm -f conftest.$ac_objext
18674if { (ac_try="$ac_compile"
18675case "(($ac_try" in
18676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18677 *) ac_try_echo=$ac_try;;
18678esac
18679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18680 (eval "$ac_compile") 2>conftest.er1
18681 ac_status=$?
18682 grep -v '^ *+' conftest.er1 >conftest.err
18683 rm -f conftest.er1
18684 cat conftest.err >&5
18685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18686 (exit $ac_status); } &&
18687 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18688 { (case "(($ac_try" in
18689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18690 *) ac_try_echo=$ac_try;;
18691esac
18692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18693 (eval "$ac_try") 2>&5
18694 ac_status=$?
18695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696 (exit $ac_status); }; } &&
18697 { ac_try='test -s conftest.$ac_objext'
18698 { (case "(($ac_try" in
18699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18700 *) ac_try_echo=$ac_try;;
18701esac
18702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18703 (eval "$ac_try") 2>&5
18704 ac_status=$?
18705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018707 ac_cv_func_isinf_in_math_h=yes
18708else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018709 echo "$as_me: failed program was:" >&5
18710sed 's/^/| /' conftest.$ac_ext >&5
18711
18712 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000018713fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018714
Reid Spencera773bd52006-08-04 18:18:08 +000018715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018716 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000018717ac_cpp='$CPP $CPPFLAGS'
18718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18720ac_compiler_gnu=$ac_cv_c_compiler_gnu
18721
18722fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018723{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
18724echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018725
18726if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018727
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018728cat >>confdefs.h <<\_ACEOF
18729#define HAVE_ISINF_IN_MATH_H 1
18730_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018731
Reid Spencerabec8f92004-10-27 23:03:44 +000018732fi
18733
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018734{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
18735echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
18736if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
18737 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000018738else
Reid Spencera773bd52006-08-04 18:18:08 +000018739 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000018740ac_cpp='$CXXCPP $CPPFLAGS'
18741ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18742ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18743ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18744
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018745 cat >conftest.$ac_ext <<_ACEOF
18746/* confdefs.h. */
18747_ACEOF
18748cat confdefs.h >>conftest.$ac_ext
18749cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018750/* end confdefs.h. */
18751#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000018752int
18753main ()
18754{
18755float f; isinf(f);
18756 ;
18757 return 0;
18758}
Brian Gaeke52a551d2004-07-21 03:14:12 +000018759_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018760rm -f conftest.$ac_objext
18761if { (ac_try="$ac_compile"
18762case "(($ac_try" in
18763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18764 *) ac_try_echo=$ac_try;;
18765esac
18766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18767 (eval "$ac_compile") 2>conftest.er1
18768 ac_status=$?
18769 grep -v '^ *+' conftest.er1 >conftest.err
18770 rm -f conftest.er1
18771 cat conftest.err >&5
18772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18773 (exit $ac_status); } &&
18774 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18775 { (case "(($ac_try" in
18776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18777 *) ac_try_echo=$ac_try;;
18778esac
18779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18780 (eval "$ac_try") 2>&5
18781 ac_status=$?
18782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18783 (exit $ac_status); }; } &&
18784 { ac_try='test -s conftest.$ac_objext'
18785 { (case "(($ac_try" in
18786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18787 *) ac_try_echo=$ac_try;;
18788esac
18789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18790 (eval "$ac_try") 2>&5
18791 ac_status=$?
18792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18793 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018794 ac_cv_func_isinf_in_cmath=yes
18795else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018796 echo "$as_me: failed program was:" >&5
18797sed 's/^/| /' conftest.$ac_ext >&5
18798
18799 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000018800fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018801
Reid Spencera773bd52006-08-04 18:18:08 +000018802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018803 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000018804ac_cpp='$CPP $CPPFLAGS'
18805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18807ac_compiler_gnu=$ac_cv_c_compiler_gnu
18808
18809fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018810{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
18811echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018812
18813if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018814
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018815cat >>confdefs.h <<\_ACEOF
18816#define HAVE_ISINF_IN_CMATH 1
18817_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018818
Reid Spencerabec8f92004-10-27 23:03:44 +000018819fi
18820
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018821{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
18822echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
18823if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
18824 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000018825else
Reid Spencera773bd52006-08-04 18:18:08 +000018826 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000018827ac_cpp='$CXXCPP $CPPFLAGS'
18828ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18829ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18830ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18831
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018832 cat >conftest.$ac_ext <<_ACEOF
18833/* confdefs.h. */
18834_ACEOF
18835cat confdefs.h >>conftest.$ac_ext
18836cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018837/* end confdefs.h. */
18838#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000018839int
18840main ()
18841{
18842float f; std::isinf(f)}
18843 ;
18844 return 0;
18845}
Brian Gaeke52a551d2004-07-21 03:14:12 +000018846_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018847rm -f conftest.$ac_objext
18848if { (ac_try="$ac_compile"
18849case "(($ac_try" in
18850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18851 *) ac_try_echo=$ac_try;;
18852esac
18853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18854 (eval "$ac_compile") 2>conftest.er1
18855 ac_status=$?
18856 grep -v '^ *+' conftest.er1 >conftest.err
18857 rm -f conftest.er1
18858 cat conftest.err >&5
18859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18860 (exit $ac_status); } &&
18861 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18862 { (case "(($ac_try" in
18863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18864 *) ac_try_echo=$ac_try;;
18865esac
18866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18867 (eval "$ac_try") 2>&5
18868 ac_status=$?
18869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870 (exit $ac_status); }; } &&
18871 { ac_try='test -s conftest.$ac_objext'
18872 { (case "(($ac_try" in
18873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18874 *) ac_try_echo=$ac_try;;
18875esac
18876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18877 (eval "$ac_try") 2>&5
18878 ac_status=$?
18879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018881 ac_cv_func_std_isinf_in_cmath=yes
18882else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018883 echo "$as_me: failed program was:" >&5
18884sed 's/^/| /' conftest.$ac_ext >&5
18885
18886 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000018887fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018888
Reid Spencera773bd52006-08-04 18:18:08 +000018889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018890 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000018891ac_cpp='$CPP $CPPFLAGS'
18892ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18893ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18894ac_compiler_gnu=$ac_cv_c_compiler_gnu
18895
18896fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018897{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
18898echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018899
18900if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018901
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018902cat >>confdefs.h <<\_ACEOF
18903#define HAVE_STD_ISINF_IN_CMATH 1
18904_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018905
Reid Spencerabec8f92004-10-27 23:03:44 +000018906fi
18907
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018908{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
18909echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
18910if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
18911 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000018912else
Reid Spencera773bd52006-08-04 18:18:08 +000018913 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000018914ac_cpp='$CXXCPP $CPPFLAGS'
18915ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18916ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18917ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18918
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018919 cat >conftest.$ac_ext <<_ACEOF
18920/* confdefs.h. */
18921_ACEOF
18922cat confdefs.h >>conftest.$ac_ext
18923cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000018924/* end confdefs.h. */
18925#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000018926int
18927main ()
18928{
18929float f; finite(f);
18930 ;
18931 return 0;
18932}
Brian Gaeked59a6472004-07-21 03:33:58 +000018933_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018934rm -f conftest.$ac_objext
18935if { (ac_try="$ac_compile"
18936case "(($ac_try" in
18937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18938 *) ac_try_echo=$ac_try;;
18939esac
18940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18941 (eval "$ac_compile") 2>conftest.er1
18942 ac_status=$?
18943 grep -v '^ *+' conftest.er1 >conftest.err
18944 rm -f conftest.er1
18945 cat conftest.err >&5
18946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18947 (exit $ac_status); } &&
18948 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18949 { (case "(($ac_try" in
18950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18951 *) ac_try_echo=$ac_try;;
18952esac
18953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18954 (eval "$ac_try") 2>&5
18955 ac_status=$?
18956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18957 (exit $ac_status); }; } &&
18958 { ac_try='test -s conftest.$ac_objext'
18959 { (case "(($ac_try" in
18960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18961 *) ac_try_echo=$ac_try;;
18962esac
18963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18964 (eval "$ac_try") 2>&5
18965 ac_status=$?
18966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18967 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000018968 ac_cv_func_finite_in_ieeefp_h=yes
18969else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018970 echo "$as_me: failed program was:" >&5
18971sed 's/^/| /' conftest.$ac_ext >&5
18972
18973 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000018974fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018975
Reid Spencera773bd52006-08-04 18:18:08 +000018976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018977 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000018978ac_cpp='$CPP $CPPFLAGS'
18979ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18980ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18981ac_compiler_gnu=$ac_cv_c_compiler_gnu
18982
18983fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018984{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
18985echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018986
Brian Gaeke6802b552004-10-28 05:06:45 +000018987if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000018988
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018989cat >>confdefs.h <<\_ACEOF
18990#define HAVE_FINITE_IN_IEEEFP_H 1
18991_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000018992
Reid Spencerabec8f92004-10-27 23:03:44 +000018993fi
18994
18995
18996
Reid Spencer30fe5262007-01-20 07:48:49 +000018997if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000018998
18999
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019000for ac_header in stdlib.h unistd.h
19001do
19002as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19003if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19004 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19005echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19006if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19007 echo $ECHO_N "(cached) $ECHO_C" >&6
19008fi
19009ac_res=`eval echo '${'$as_ac_Header'}'`
19010 { echo "$as_me:$LINENO: result: $ac_res" >&5
19011echo "${ECHO_T}$ac_res" >&6; }
19012else
19013 # Is the header compilable?
19014{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19015echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19016cat >conftest.$ac_ext <<_ACEOF
19017/* confdefs.h. */
19018_ACEOF
19019cat confdefs.h >>conftest.$ac_ext
19020cat >>conftest.$ac_ext <<_ACEOF
19021/* end confdefs.h. */
19022$ac_includes_default
19023#include <$ac_header>
19024_ACEOF
19025rm -f conftest.$ac_objext
19026if { (ac_try="$ac_compile"
19027case "(($ac_try" in
19028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19029 *) ac_try_echo=$ac_try;;
19030esac
19031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19032 (eval "$ac_compile") 2>conftest.er1
19033 ac_status=$?
19034 grep -v '^ *+' conftest.er1 >conftest.err
19035 rm -f conftest.er1
19036 cat conftest.err >&5
19037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038 (exit $ac_status); } &&
19039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19040 { (case "(($ac_try" in
19041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19042 *) ac_try_echo=$ac_try;;
19043esac
19044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19045 (eval "$ac_try") 2>&5
19046 ac_status=$?
19047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19048 (exit $ac_status); }; } &&
19049 { ac_try='test -s conftest.$ac_objext'
19050 { (case "(($ac_try" in
19051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19052 *) ac_try_echo=$ac_try;;
19053esac
19054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19055 (eval "$ac_try") 2>&5
19056 ac_status=$?
19057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058 (exit $ac_status); }; }; then
19059 ac_header_compiler=yes
19060else
19061 echo "$as_me: failed program was:" >&5
19062sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019063
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019064 ac_header_compiler=no
19065fi
19066
19067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19068{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19069echo "${ECHO_T}$ac_header_compiler" >&6; }
19070
19071# Is the header present?
19072{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19073echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19074cat >conftest.$ac_ext <<_ACEOF
19075/* confdefs.h. */
19076_ACEOF
19077cat confdefs.h >>conftest.$ac_ext
19078cat >>conftest.$ac_ext <<_ACEOF
19079/* end confdefs.h. */
19080#include <$ac_header>
19081_ACEOF
19082if { (ac_try="$ac_cpp conftest.$ac_ext"
19083case "(($ac_try" in
19084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19085 *) ac_try_echo=$ac_try;;
19086esac
19087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19088 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19089 ac_status=$?
19090 grep -v '^ *+' conftest.er1 >conftest.err
19091 rm -f conftest.er1
19092 cat conftest.err >&5
19093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094 (exit $ac_status); } >/dev/null; then
19095 if test -s conftest.err; then
19096 ac_cpp_err=$ac_c_preproc_warn_flag
19097 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19098 else
19099 ac_cpp_err=
19100 fi
19101else
19102 ac_cpp_err=yes
19103fi
19104if test -z "$ac_cpp_err"; then
19105 ac_header_preproc=yes
19106else
19107 echo "$as_me: failed program was:" >&5
19108sed 's/^/| /' conftest.$ac_ext >&5
19109
19110 ac_header_preproc=no
19111fi
19112
19113rm -f conftest.err conftest.$ac_ext
19114{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19115echo "${ECHO_T}$ac_header_preproc" >&6; }
19116
19117# So? What about this header?
19118case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19119 yes:no: )
19120 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19121echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19123echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19124 ac_header_preproc=yes
19125 ;;
19126 no:yes:* )
19127 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19128echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19129 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19130echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19131 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19132echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19133 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19134echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19135 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19136echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19137 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19138echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19139 ( cat <<\_ASBOX
19140## ----------------------------------- ##
19141## Report this to llvmbugs@cs.uiuc.edu ##
19142## ----------------------------------- ##
19143_ASBOX
19144 ) | sed "s/^/$as_me: WARNING: /" >&2
19145 ;;
19146esac
19147{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19148echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19149if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19150 echo $ECHO_N "(cached) $ECHO_C" >&6
19151else
19152 eval "$as_ac_Header=\$ac_header_preproc"
19153fi
19154ac_res=`eval echo '${'$as_ac_Header'}'`
19155 { echo "$as_me:$LINENO: result: $ac_res" >&5
19156echo "${ECHO_T}$ac_res" >&6; }
19157
19158fi
19159if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019160 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019161#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000019162_ACEOF
19163
19164fi
19165
19166done
19167
19168
19169for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019170do
19171as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19172{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19173echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19174if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19175 echo $ECHO_N "(cached) $ECHO_C" >&6
19176else
19177 cat >conftest.$ac_ext <<_ACEOF
19178/* confdefs.h. */
19179_ACEOF
19180cat confdefs.h >>conftest.$ac_ext
19181cat >>conftest.$ac_ext <<_ACEOF
19182/* end confdefs.h. */
19183/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19185#define $ac_func innocuous_$ac_func
19186
19187/* System header to define __stub macros and hopefully few prototypes,
19188 which can conflict with char $ac_func (); below.
19189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19190 <limits.h> exists even on freestanding compilers. */
19191
19192#ifdef __STDC__
19193# include <limits.h>
19194#else
19195# include <assert.h>
19196#endif
19197
19198#undef $ac_func
19199
19200/* Override any GCC internal prototype to avoid an error.
19201 Use char because int might match the return type of a GCC
19202 builtin and then its argument prototype would still apply. */
19203#ifdef __cplusplus
19204extern "C"
19205#endif
19206char $ac_func ();
19207/* The GNU C library defines this for functions which it implements
19208 to always fail with ENOSYS. Some functions are actually named
19209 something starting with __ and the normal name is an alias. */
19210#if defined __stub_$ac_func || defined __stub___$ac_func
19211choke me
19212#endif
19213
19214int
19215main ()
19216{
19217return $ac_func ();
19218 ;
19219 return 0;
19220}
19221_ACEOF
19222rm -f conftest.$ac_objext conftest$ac_exeext
19223if { (ac_try="$ac_link"
19224case "(($ac_try" in
19225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19226 *) ac_try_echo=$ac_try;;
19227esac
19228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19229 (eval "$ac_link") 2>conftest.er1
19230 ac_status=$?
19231 grep -v '^ *+' conftest.er1 >conftest.err
19232 rm -f conftest.er1
19233 cat conftest.err >&5
19234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235 (exit $ac_status); } &&
19236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19237 { (case "(($ac_try" in
19238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19239 *) ac_try_echo=$ac_try;;
19240esac
19241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19242 (eval "$ac_try") 2>&5
19243 ac_status=$?
19244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19245 (exit $ac_status); }; } &&
19246 { ac_try='test -s conftest$ac_exeext'
19247 { (case "(($ac_try" in
19248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19249 *) ac_try_echo=$ac_try;;
19250esac
19251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19252 (eval "$ac_try") 2>&5
19253 ac_status=$?
19254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19255 (exit $ac_status); }; }; then
19256 eval "$as_ac_var=yes"
19257else
19258 echo "$as_me: failed program was:" >&5
19259sed 's/^/| /' conftest.$ac_ext >&5
19260
19261 eval "$as_ac_var=no"
19262fi
19263
19264rm -f core conftest.err conftest.$ac_objext \
19265 conftest$ac_exeext conftest.$ac_ext
19266fi
19267ac_res=`eval echo '${'$as_ac_var'}'`
19268 { echo "$as_me:$LINENO: result: $ac_res" >&5
19269echo "${ECHO_T}$ac_res" >&6; }
19270if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019271 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019272#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000019273_ACEOF
19274
19275fi
19276done
19277
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019278{ echo "$as_me:$LINENO: checking for working mmap" >&5
19279echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19280if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19281 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019282else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019283 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019284 ac_cv_func_mmap_fixed_mapped=no
19285else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019286 cat >conftest.$ac_ext <<_ACEOF
19287/* confdefs.h. */
19288_ACEOF
19289cat confdefs.h >>conftest.$ac_ext
19290cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019291/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019292$ac_includes_default
19293/* malloc might have been renamed as rpl_malloc. */
19294#undef malloc
19295
19296/* Thanks to Mike Haertel and Jim Avera for this test.
19297 Here is a matrix of mmap possibilities:
19298 mmap private not fixed
19299 mmap private fixed at somewhere currently unmapped
19300 mmap private fixed at somewhere already mapped
19301 mmap shared not fixed
19302 mmap shared fixed at somewhere currently unmapped
19303 mmap shared fixed at somewhere already mapped
19304 For private mappings, we should verify that changes cannot be read()
19305 back from the file, nor mmap's back from the file at a different
19306 address. (There have been systems where private was not correctly
19307 implemented like the infamous i386 svr4.0, and systems where the
19308 VM page cache was not coherent with the file system buffer cache
19309 like early versions of FreeBSD and possibly contemporary NetBSD.)
19310 For shared mappings, we should conversely verify that changes get
19311 propagated back to all the places they're supposed to be.
19312
19313 Grep wants private fixed already mapped.
19314 The main things grep needs to know about mmap are:
19315 * does it exist and is it safe to write into the mmap'd area
19316 * how to use it (BSD variants) */
19317
19318#include <fcntl.h>
19319#include <sys/mman.h>
19320
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019321#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000019322char *malloc ();
19323#endif
19324
19325/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019326#if !HAVE_GETPAGESIZE
19327/* Assume that all systems that can run configure have sys/param.h. */
19328# if !HAVE_SYS_PARAM_H
19329# define HAVE_SYS_PARAM_H 1
19330# endif
19331
John Criswell7a73b802003-06-30 21:59:07 +000019332# ifdef _SC_PAGESIZE
19333# define getpagesize() sysconf(_SC_PAGESIZE)
19334# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019335# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000019336# include <sys/param.h>
19337# ifdef EXEC_PAGESIZE
19338# define getpagesize() EXEC_PAGESIZE
19339# else /* no EXEC_PAGESIZE */
19340# ifdef NBPG
19341# define getpagesize() NBPG * CLSIZE
19342# ifndef CLSIZE
19343# define CLSIZE 1
19344# endif /* no CLSIZE */
19345# else /* no NBPG */
19346# ifdef NBPC
19347# define getpagesize() NBPC
19348# else /* no NBPC */
19349# ifdef PAGESIZE
19350# define getpagesize() PAGESIZE
19351# endif /* PAGESIZE */
19352# endif /* no NBPC */
19353# endif /* no NBPG */
19354# endif /* no EXEC_PAGESIZE */
19355# else /* no HAVE_SYS_PARAM_H */
19356# define getpagesize() 8192 /* punt totally */
19357# endif /* no HAVE_SYS_PARAM_H */
19358# endif /* no _SC_PAGESIZE */
19359
19360#endif /* no HAVE_GETPAGESIZE */
19361
19362int
19363main ()
19364{
19365 char *data, *data2, *data3;
19366 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019367 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000019368
19369 pagesize = getpagesize ();
19370
19371 /* First, make a file with some known garbage in it. */
19372 data = (char *) malloc (pagesize);
19373 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000019374 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019375 for (i = 0; i < pagesize; ++i)
19376 *(data + i) = rand ();
19377 umask (0);
19378 fd = creat ("conftest.mmap", 0600);
19379 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019380 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019381 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019382 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019383 close (fd);
19384
19385 /* Next, try to mmap the file at a fixed address which already has
19386 something else allocated at it. If we can, also make sure that
19387 we see the same garbage. */
19388 fd = open ("conftest.mmap", O_RDWR);
19389 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019390 return 1;
19391 data2 = (char *) malloc (2 * pagesize);
19392 if (!data2)
19393 return 1;
19394 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000019395 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000019396 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019397 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019398 for (i = 0; i < pagesize; ++i)
19399 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019400 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019401
19402 /* Finally, make sure that changes to the mapped area do not
19403 percolate back to the file as seen by read(). (This is a bug on
19404 some variants of i386 svr4.0.) */
19405 for (i = 0; i < pagesize; ++i)
19406 *(data2 + i) = *(data2 + i) + 1;
19407 data3 = (char *) malloc (pagesize);
19408 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019409 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019410 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019411 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019412 for (i = 0; i < pagesize; ++i)
19413 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019414 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019415 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000019416 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000019417}
19418_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019419rm -f conftest$ac_exeext
19420if { (ac_try="$ac_link"
19421case "(($ac_try" in
19422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19423 *) ac_try_echo=$ac_try;;
19424esac
19425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19426 (eval "$ac_link") 2>&5
19427 ac_status=$?
19428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19429 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19430 { (case "(($ac_try" in
19431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19432 *) ac_try_echo=$ac_try;;
19433esac
19434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19435 (eval "$ac_try") 2>&5
19436 ac_status=$?
19437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19438 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019439 ac_cv_func_mmap_fixed_mapped=yes
19440else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019441 echo "$as_me: program exited with status $ac_status" >&5
19442echo "$as_me: failed program was:" >&5
19443sed 's/^/| /' conftest.$ac_ext >&5
19444
19445( exit $ac_status )
19446ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000019447fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019448rm -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 +000019449fi
Reid Spencera773bd52006-08-04 18:18:08 +000019450
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019451
John Criswell7a73b802003-06-30 21:59:07 +000019452fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019453{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19454echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000019455if test $ac_cv_func_mmap_fixed_mapped = yes; then
19456
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019457cat >>confdefs.h <<\_ACEOF
19458#define HAVE_MMAP 1
19459_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019460
19461fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019462rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000019463
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019464 { echo "$as_me:$LINENO: checking for mmap of files" >&5
19465echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
19466if test "${ac_cv_func_mmap_file+set}" = set; then
19467 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019468else
Reid Spencer2706f8c2004-09-19 23:53:36 +000019469 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000019470ac_cpp='$CPP $CPPFLAGS'
19471ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19472ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19473ac_compiler_gnu=$ac_cv_c_compiler_gnu
19474
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019475 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000019476 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000019477else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019478 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000019479
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019480 /* confdefs.h. */
19481_ACEOF
19482cat confdefs.h >>conftest.$ac_ext
19483cat >>conftest.$ac_ext <<_ACEOF
19484/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000019485
John Criswell7a73b802003-06-30 21:59:07 +000019486#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000019487#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000019488#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000019489
19490int
19491main ()
19492{
John Criswell7a73b802003-06-30 21:59:07 +000019493
19494 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000019495 fd = creat ("foo",0777);
19496 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
19497 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000019498 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000019499 ;
19500 return 0;
19501}
John Criswell7a73b802003-06-30 21:59:07 +000019502_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019503rm -f conftest$ac_exeext
19504if { (ac_try="$ac_link"
19505case "(($ac_try" in
19506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19507 *) ac_try_echo=$ac_try;;
19508esac
19509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19510 (eval "$ac_link") 2>&5
19511 ac_status=$?
19512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19513 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19514 { (case "(($ac_try" in
19515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19516 *) ac_try_echo=$ac_try;;
19517esac
19518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19519 (eval "$ac_try") 2>&5
19520 ac_status=$?
19521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019523 ac_cv_func_mmap_file=yes
19524else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019525 echo "$as_me: program exited with status $ac_status" >&5
19526echo "$as_me: failed program was:" >&5
19527sed 's/^/| /' conftest.$ac_ext >&5
19528
19529( exit $ac_status )
19530ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000019531fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019532rm -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 +000019533fi
Reid Spencera773bd52006-08-04 18:18:08 +000019534
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019535
John Criswell7a73b802003-06-30 21:59:07 +000019536 ac_ext=c
19537ac_cpp='$CPP $CPPFLAGS'
19538ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19539ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19540ac_compiler_gnu=$ac_cv_c_compiler_gnu
19541
19542
19543fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019544{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
19545echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000019546if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000019547
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019548cat >>confdefs.h <<\_ACEOF
19549#define HAVE_MMAP_FILE
19550_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019551
19552 MMAP_FILE=yes
19553
19554fi
19555
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019556 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
19557echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
19558if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
19559 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000019560else
Reid Spencer582a23c2004-12-29 07:07:57 +000019561 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000019562 ac_cv_need_dev_zero_for_mmap=yes
19563 else
19564 ac_cv_need_dev_zero_for_mmap=no
19565 fi
19566
19567fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019568{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
19569echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000019570if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
19571
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019572cat >>confdefs.h <<\_ACEOF
19573#define NEED_DEV_ZERO_FOR_MMAP 1
19574_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000019575
19576fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019577
Reid Spencer30fe5262007-01-20 07:48:49 +000019578 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
19579 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019580 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
19581echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000019582 fi
19583 if test "$ac_cv_func_mmap_file" = "no"
19584 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019585 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
19586echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000019587 fi
John Criswellb13092b2003-07-22 21:00:24 +000019588fi
John Criswell7a73b802003-06-30 21:59:07 +000019589
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019590{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
19591echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
19592cat >conftest.$ac_ext <<_ACEOF
19593/* confdefs.h. */
19594_ACEOF
19595cat confdefs.h >>conftest.$ac_ext
19596cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000019597/* end confdefs.h. */
19598int main() {
Owen Andersona8603702009-05-19 22:18:56 +000019599 volatile unsigned long val = 1;
19600 __sync_synchronize();
19601 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000019602 __sync_add_and_fetch(&val, 1);
19603 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000019604 return 0;
19605 }
Owen Andersond4b272b2009-05-18 23:58:51 +000019606
19607_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019608rm -f conftest.$ac_objext conftest$ac_exeext
19609if { (ac_try="$ac_link"
19610case "(($ac_try" in
19611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19612 *) ac_try_echo=$ac_try;;
19613esac
19614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19615 (eval "$ac_link") 2>conftest.er1
19616 ac_status=$?
19617 grep -v '^ *+' conftest.er1 >conftest.err
19618 rm -f conftest.er1
19619 cat conftest.err >&5
19620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19621 (exit $ac_status); } &&
19622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19623 { (case "(($ac_try" in
19624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19625 *) ac_try_echo=$ac_try;;
19626esac
19627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19628 (eval "$ac_try") 2>&5
19629 ac_status=$?
19630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19631 (exit $ac_status); }; } &&
19632 { ac_try='test -s conftest$ac_exeext'
19633 { (case "(($ac_try" in
19634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19635 *) ac_try_echo=$ac_try;;
19636esac
19637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19638 (eval "$ac_try") 2>&5
19639 ac_status=$?
19640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641 (exit $ac_status); }; }; then
19642 { echo "$as_me:$LINENO: result: yes" >&5
19643echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000019644
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019645cat >>confdefs.h <<\_ACEOF
19646#define LLVM_MULTITHREADED 1
19647_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000019648
Owen Andersond4b272b2009-05-18 23:58:51 +000019649else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019650 echo "$as_me: failed program was:" >&5
19651sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000019652
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019653 { echo "$as_me:$LINENO: result: no" >&5
19654echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000019655
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019656cat >>confdefs.h <<\_ACEOF
19657#define LLVM_MULTITHREADED 0
19658_ACEOF
19659
19660 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
19661echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000019662fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019663
Owen Andersond4b272b2009-05-18 23:58:51 +000019664rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019665 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000019666
19667
John Criswell7a73b802003-06-30 21:59:07 +000019668
Nick Lewycky4372e692009-09-29 06:18:23 +000019669if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019670 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
19671echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
19672if test "${llvm_cv_linux_mixed+set}" = set; then
19673 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000019674else
19675 ac_ext=c
19676ac_cpp='$CPP $CPPFLAGS'
19677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19679ac_compiler_gnu=$ac_cv_c_compiler_gnu
19680
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019681 cat >conftest.$ac_ext <<_ACEOF
19682/* confdefs.h. */
19683_ACEOF
19684cat confdefs.h >>conftest.$ac_ext
19685cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000019686/* end confdefs.h. */
19687#ifndef __x86_64__
19688 error: Not x86-64 even if uname says so!
19689 #endif
19690
19691int
19692main ()
19693{
19694
19695 ;
19696 return 0;
19697}
19698_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019699rm -f conftest.$ac_objext
19700if { (ac_try="$ac_compile"
19701case "(($ac_try" in
19702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19703 *) ac_try_echo=$ac_try;;
19704esac
19705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19706 (eval "$ac_compile") 2>conftest.er1
19707 ac_status=$?
19708 grep -v '^ *+' conftest.er1 >conftest.err
19709 rm -f conftest.er1
19710 cat conftest.err >&5
19711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); } &&
19713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19714 { (case "(($ac_try" in
19715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19716 *) ac_try_echo=$ac_try;;
19717esac
19718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19719 (eval "$ac_try") 2>&5
19720 ac_status=$?
19721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722 (exit $ac_status); }; } &&
19723 { ac_try='test -s conftest.$ac_objext'
19724 { (case "(($ac_try" in
19725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19726 *) ac_try_echo=$ac_try;;
19727esac
19728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19729 (eval "$ac_try") 2>&5
19730 ac_status=$?
19731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19732 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000019733 llvm_cv_linux_mixed=no
19734else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019735 echo "$as_me: failed program was:" >&5
19736sed 's/^/| /' conftest.$ac_ext >&5
19737
19738 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000019739fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019740
Nick Lewycky4372e692009-09-29 06:18:23 +000019741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19742 ac_ext=c
19743ac_cpp='$CPP $CPPFLAGS'
19744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19746ac_compiler_gnu=$ac_cv_c_compiler_gnu
19747
19748
19749fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019750{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
19751echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000019752
19753 if test "$llvm_cv_linux_mixed" = "yes"; then
19754 llvm_cv_target_arch="x86"
19755 ARCH="x86"
19756 fi
19757fi
19758
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019759
Reid Spencer9372f152007-07-30 20:13:24 +000019760for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019761do
19762as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19763{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19764echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19765if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19766 echo $ECHO_N "(cached) $ECHO_C" >&6
19767else
19768 cat >conftest.$ac_ext <<_ACEOF
19769/* confdefs.h. */
19770_ACEOF
19771cat confdefs.h >>conftest.$ac_ext
19772cat >>conftest.$ac_ext <<_ACEOF
19773/* end confdefs.h. */
19774/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19775 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19776#define $ac_func innocuous_$ac_func
19777
19778/* System header to define __stub macros and hopefully few prototypes,
19779 which can conflict with char $ac_func (); below.
19780 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19781 <limits.h> exists even on freestanding compilers. */
19782
19783#ifdef __STDC__
19784# include <limits.h>
19785#else
19786# include <assert.h>
19787#endif
19788
19789#undef $ac_func
19790
19791/* Override any GCC internal prototype to avoid an error.
19792 Use char because int might match the return type of a GCC
19793 builtin and then its argument prototype would still apply. */
19794#ifdef __cplusplus
19795extern "C"
19796#endif
19797char $ac_func ();
19798/* The GNU C library defines this for functions which it implements
19799 to always fail with ENOSYS. Some functions are actually named
19800 something starting with __ and the normal name is an alias. */
19801#if defined __stub_$ac_func || defined __stub___$ac_func
19802choke me
19803#endif
19804
19805int
19806main ()
19807{
19808return $ac_func ();
19809 ;
19810 return 0;
19811}
19812_ACEOF
19813rm -f conftest.$ac_objext conftest$ac_exeext
19814if { (ac_try="$ac_link"
19815case "(($ac_try" in
19816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19817 *) ac_try_echo=$ac_try;;
19818esac
19819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19820 (eval "$ac_link") 2>conftest.er1
19821 ac_status=$?
19822 grep -v '^ *+' conftest.er1 >conftest.err
19823 rm -f conftest.er1
19824 cat conftest.err >&5
19825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19826 (exit $ac_status); } &&
19827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19828 { (case "(($ac_try" in
19829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19830 *) ac_try_echo=$ac_try;;
19831esac
19832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19833 (eval "$ac_try") 2>&5
19834 ac_status=$?
19835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19836 (exit $ac_status); }; } &&
19837 { ac_try='test -s conftest$ac_exeext'
19838 { (case "(($ac_try" in
19839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19840 *) ac_try_echo=$ac_try;;
19841esac
19842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19843 (eval "$ac_try") 2>&5
19844 ac_status=$?
19845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19846 (exit $ac_status); }; }; then
19847 eval "$as_ac_var=yes"
19848else
19849 echo "$as_me: failed program was:" >&5
19850sed 's/^/| /' conftest.$ac_ext >&5
19851
19852 eval "$as_ac_var=no"
19853fi
19854
19855rm -f core conftest.err conftest.$ac_objext \
19856 conftest$ac_exeext conftest.$ac_ext
19857fi
19858ac_res=`eval echo '${'$as_ac_var'}'`
19859 { echo "$as_me:$LINENO: result: $ac_res" >&5
19860echo "${ECHO_T}$ac_res" >&6; }
19861if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000019862 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019863#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000019864_ACEOF
19865
19866fi
19867done
19868
19869
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019870{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
19871echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
19872if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
19873 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019874else
19875 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000019876if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019877 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000019878 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
19879 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019880 if test $? -eq 0 ; then
19881 llvm_cv_llvmgcc_sanity="yes"
19882 fi
19883 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000019884fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019885fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019886{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
19887echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019888
19889if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019890 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
19891echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000019892 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019893 LLVMCC1=$llvmcc1path
19894
Reid Spencer502935f2004-12-22 05:56:56 +000019895 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019896 LLVMCC1PLUS=$llvmcc1pluspath
19897
Reid Spencer502935f2004-12-22 05:56:56 +000019898 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
19899 LLVMGCCDIR=$llvmgccdir
19900
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000019901 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000019902 LLVMGCC_LANGS=$llvmgcclangs
19903
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019904 { echo "$as_me:$LINENO: result: ok" >&5
19905echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000019906fi
19907
Reid Spencer2bc7bd52004-11-29 12:29:58 +000019908SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000019909
19910
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000019911SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
19912
19913
Reid Spencere9de0912004-08-20 09:03:57 +000019914# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019915# information into substitutions that will end up in Makefile.config.in
19916# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000019917if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000019918 prefix="/usr/local"
19919fi
Reid Spencere9de0912004-08-20 09:03:57 +000019920eval LLVM_PREFIX="${prefix}";
19921eval LLVM_BINDIR="${prefix}/bin";
19922eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000019923eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000019924eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000019925eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000019926eval LLVM_INCLUDEDIR="${prefix}/include";
19927eval LLVM_INFODIR="${prefix}/info";
19928eval LLVM_MANDIR="${prefix}/man";
19929LLVM_CONFIGTIME=`date`
19930
19931
19932
19933
19934
19935
19936
19937
19938
19939
19940
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019941# Place the various directores into the config.h file as #defines so that we
19942# can know about the installation paths within LLVM.
19943
Reid Spencere9de0912004-08-20 09:03:57 +000019944cat >>confdefs.h <<_ACEOF
19945#define LLVM_PREFIX "$LLVM_PREFIX"
19946_ACEOF
19947
19948
19949cat >>confdefs.h <<_ACEOF
19950#define LLVM_BINDIR "$LLVM_BINDIR"
19951_ACEOF
19952
19953
19954cat >>confdefs.h <<_ACEOF
19955#define LLVM_LIBDIR "$LLVM_LIBDIR"
19956_ACEOF
19957
19958
19959cat >>confdefs.h <<_ACEOF
19960#define LLVM_DATADIR "$LLVM_DATADIR"
19961_ACEOF
19962
19963
19964cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000019965#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000019966_ACEOF
19967
19968
19969cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000019970#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000019971_ACEOF
19972
19973
19974cat >>confdefs.h <<_ACEOF
19975#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
19976_ACEOF
19977
19978
19979cat >>confdefs.h <<_ACEOF
19980#define LLVM_INFODIR "$LLVM_INFODIR"
19981_ACEOF
19982
19983
19984cat >>confdefs.h <<_ACEOF
19985#define LLVM_MANDIR "$LLVM_MANDIR"
19986_ACEOF
19987
19988
19989cat >>confdefs.h <<_ACEOF
19990#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
19991_ACEOF
19992
19993
Eric Christopher790e11c2007-12-01 00:34:39 +000019994cat >>confdefs.h <<_ACEOF
19995#define LLVM_HOSTTRIPLE "$host"
19996_ACEOF
19997
19998
Gordon Henriksenc0efff82007-10-02 09:50:32 +000019999# Determine which bindings to build.
20000if test "$BINDINGS_TO_BUILD" = auto ; then
20001 BINDINGS_TO_BUILD=""
20002 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20003 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20004 fi
20005fi
20006BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20007
20008
20009# This isn't really configurey, but it avoids having to repeat the list in
20010# other files.
20011ALL_BINDINGS=ocaml
20012
20013
Gordon Henriksenf0915682007-10-02 16:42:22 +000020014# Do any work necessary to ensure that bindings have what they need.
20015binding_prereqs_failed=0
20016for a_binding in $BINDINGS_TO_BUILD ; do
20017 case "$a_binding" in
20018 ocaml)
20019 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020020 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20021echo "$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 +000020022 binding_prereqs_failed=1
20023 fi
20024 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020025 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20026echo "$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 +000020027 binding_prereqs_failed=1
20028 fi
20029 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020030 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20031echo "$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 +000020032 fi
20033 if test "x$with_ocaml_libdir" != xauto ; then
20034 OCAML_LIBDIR=$with_ocaml_libdir
20035
20036 else
20037 ocaml_stdlib="`"$OCAMLC" -where`"
20038 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20039 then
20040 # ocaml stdlib is beneath our prefix; use stdlib
20041 OCAML_LIBDIR=$ocaml_stdlib
20042
20043 else
20044 # ocaml stdlib is outside our prefix; use libdir/ocaml
20045 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20046
20047 fi
20048 fi
20049 ;;
20050 esac
20051done
20052if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020053 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20054echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20055 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000020056fi
20057
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020058{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20059echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20060if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20061 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020062else
20063 ac_ext=cpp
20064ac_cpp='$CXXCPP $CPPFLAGS'
20065ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20066ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20067ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20068
20069 oldcxxflags="$CXXFLAGS"
20070 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020071 cat >conftest.$ac_ext <<_ACEOF
20072/* confdefs.h. */
20073_ACEOF
20074cat confdefs.h >>conftest.$ac_ext
20075cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020076/* end confdefs.h. */
20077
20078int
20079main ()
20080{
20081
20082 ;
20083 return 0;
20084}
20085_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020086rm -f conftest.$ac_objext
20087if { (ac_try="$ac_compile"
20088case "(($ac_try" in
20089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20090 *) ac_try_echo=$ac_try;;
20091esac
20092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20093 (eval "$ac_compile") 2>conftest.er1
20094 ac_status=$?
20095 grep -v '^ *+' conftest.er1 >conftest.err
20096 rm -f conftest.er1
20097 cat conftest.err >&5
20098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20099 (exit $ac_status); } &&
20100 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20101 { (case "(($ac_try" in
20102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20103 *) ac_try_echo=$ac_try;;
20104esac
20105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20106 (eval "$ac_try") 2>&5
20107 ac_status=$?
20108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20109 (exit $ac_status); }; } &&
20110 { ac_try='test -s conftest.$ac_objext'
20111 { (case "(($ac_try" in
20112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20113 *) ac_try_echo=$ac_try;;
20114esac
20115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20116 (eval "$ac_try") 2>&5
20117 ac_status=$?
20118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20119 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020120 llvm_cv_cxx_visibility_inlines_hidden=yes
20121else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020122 echo "$as_me: failed program was:" >&5
20123sed 's/^/| /' conftest.$ac_ext >&5
20124
20125 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020126fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020127
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20129 CXXFLAGS="$oldcxxflags"
20130 ac_ext=c
20131ac_cpp='$CPP $CPPFLAGS'
20132ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20133ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20134ac_compiler_gnu=$ac_cv_c_compiler_gnu
20135
20136
20137fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020138{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20139echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020140if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20141 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20142
20143else
20144 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20145
20146fi
20147
Gordon Henriksenf0915682007-10-02 16:42:22 +000020148
Nick Lewycky731c6ab2009-03-05 08:20:44 +000020149if test "$llvm_cv_link_use_r" = "yes" ; then
20150 RPATH="-Wl,-R"
20151else
20152 RPATH="-Wl,-rpath"
20153fi
20154
20155
20156if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20157 RDYNAMIC="-Wl,-export-dynamic"
20158else
20159 RDYNAMIC=""
20160fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000020161
20162
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020163
Reid Spencera773bd52006-08-04 18:18:08 +000020164ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020165
Douglas Gregor1555a232009-06-16 20:12:29 +000020166ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20167
20168ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20169
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000020170ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20171
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000020172ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20173
Chandler Carruth8b67f772009-10-26 01:35:46 +000020174ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020175
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020176
Reid Spencera773bd52006-08-04 18:18:08 +000020177ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020178
20179
Reid Spencerea949cf2006-08-16 00:45:38 +000020180ac_config_files="$ac_config_files llvm.spec"
20181
20182
Reid Spencera773bd52006-08-04 18:18:08 +000020183ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000020184
20185
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000020186ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
20187
20188
Reid Spencera773bd52006-08-04 18:18:08 +000020189ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000020190
20191
Reid Spencera773bd52006-08-04 18:18:08 +000020192ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000020193
Reid Spencera773bd52006-08-04 18:18:08 +000020194ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020195
20196
Reid Spencera773bd52006-08-04 18:18:08 +000020197ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020198
20199
Reid Spencera773bd52006-08-04 18:18:08 +000020200ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020201
20202
Reid Spencera773bd52006-08-04 18:18:08 +000020203ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020204
20205
Reid Spencer8b2e1412006-11-17 03:32:33 +000020206ac_config_commands="$ac_config_commands runtime/Makefile"
20207
20208
Reid Spencera773bd52006-08-04 18:18:08 +000020209ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020210
20211
Reid Spencera773bd52006-08-04 18:18:08 +000020212ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020213
20214
Bill Wendlingf24eb392009-01-04 23:12:30 +000020215ac_config_commands="$ac_config_commands unittests/Makefile"
20216
20217
Reid Spencera773bd52006-08-04 18:18:08 +000020218ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020219
20220
Reid Spencera773bd52006-08-04 18:18:08 +000020221ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020222
20223
Reid Spencera773bd52006-08-04 18:18:08 +000020224ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020225
20226
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000020227ac_config_commands="$ac_config_commands bindings/Makefile"
20228
20229
20230ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20231
20232
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020233
John Criswell7a73b802003-06-30 21:59:07 +000020234cat >confcache <<\_ACEOF
20235# This file is a shell script that caches the results of configure
20236# tests run on this system so they can be shared between configure
20237# scripts and configure runs, see configure's option --config-cache.
20238# It is not useful on other systems. If it contains results you don't
20239# want to keep, you may remove or edit it.
20240#
20241# config.status only pays attention to the cache file if you give it
20242# the --recheck option to rerun configure.
20243#
John Criswell0c38eaf2003-09-10 15:17:25 +000020244# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000020245# loading this file, other *unset* `ac_cv_foo' will be assigned the
20246# following values.
20247
20248_ACEOF
20249
20250# The following way of writing the cache mishandles newlines in values,
20251# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000020252# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000020253# Ultrix sh set writes to stderr and can't be redirected directly,
20254# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000020255(
20256 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20257 eval ac_val=\$$ac_var
20258 case $ac_val in #(
20259 *${as_nl}*)
20260 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020261 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20262echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020263 esac
20264 case $ac_var in #(
20265 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020266 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020267 esac ;;
20268 esac
20269 done
20270
John Criswell7a73b802003-06-30 21:59:07 +000020271 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000020272 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20273 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020274 # `set' does not quote correctly, so add quotes (double-quote
20275 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000020276 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000020277 "s/'/'\\\\''/g;
20278 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000020279 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000020280 *)
20281 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000020282 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000020283 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020284 esac |
20285 sort
20286) |
John Criswell7a73b802003-06-30 21:59:07 +000020287 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000020288 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000020289 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000020290 :clear
John Criswell7a73b802003-06-30 21:59:07 +000020291 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20292 t end
Reid Spencera773bd52006-08-04 18:18:08 +000020293 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20294 :end' >>confcache
20295if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20296 if test -w "$cache_file"; then
20297 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020298 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20299echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000020300 cat confcache >$cache_file
20301 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020302 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20303echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000020304 fi
20305fi
20306rm -f confcache
20307
20308test "x$prefix" = xNONE && prefix=$ac_default_prefix
20309# Let make expand exec_prefix.
20310test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20311
John Criswell7a73b802003-06-30 21:59:07 +000020312DEFS=-DHAVE_CONFIG_H
20313
John Criswell0c38eaf2003-09-10 15:17:25 +000020314ac_libobjs=
20315ac_ltlibobjs=
20316for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20317 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000020318 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020319 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000020320 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20321 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020322 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20323 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000020324done
20325LIBOBJS=$ac_libobjs
20326
20327LTLIBOBJS=$ac_ltlibobjs
20328
20329
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020330if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020331 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20332Usually this means the macro was only invoked conditionally." >&5
20333echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20334Usually this means the macro was only invoked conditionally." >&2;}
20335 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020336fi
20337if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020338 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20339Usually this means the macro was only invoked conditionally." >&5
20340echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20341Usually this means the macro was only invoked conditionally." >&2;}
20342 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020343fi
John Criswell7a73b802003-06-30 21:59:07 +000020344
20345: ${CONFIG_STATUS=./config.status}
20346ac_clean_files_save=$ac_clean_files
20347ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020348{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20349echo "$as_me: creating $CONFIG_STATUS" >&6;}
20350cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020351#! $SHELL
20352# Generated by $as_me.
20353# Run this file to recreate the current configuration.
20354# Compiler output produced by configure, useful for debugging
20355# configure, is in config.log if it exists.
20356
20357debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000020358ac_cs_recheck=false
20359ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000020360SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020361_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020362
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020363cat >>$CONFIG_STATUS <<\_ACEOF
20364## --------------------- ##
20365## M4sh Initialization. ##
20366## --------------------- ##
20367
20368# Be Bourne compatible
20369if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000020370 emulate sh
20371 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020372 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000020373 # is contrary to our usage. Disable this feature.
20374 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000020375 setopt NO_GLOB_SUBST
20376else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020377 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000020378fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020379BIN_SH=xpg4; export BIN_SH # for Tru64
20380DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000020381
John Criswell7a73b802003-06-30 21:59:07 +000020382
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020383# PATH needs CR
20384# Avoid depending upon Character Ranges.
20385as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20386as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20387as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20388as_cr_digits='0123456789'
20389as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000020390
20391# The user is always right.
20392if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020393 echo "#! /bin/sh" >conf$$.sh
20394 echo "exit 0" >>conf$$.sh
20395 chmod +x conf$$.sh
20396 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20397 PATH_SEPARATOR=';'
20398 else
20399 PATH_SEPARATOR=:
20400 fi
20401 rm -f conf$$.sh
20402fi
20403
20404# Support unset when possible.
20405if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20406 as_unset=unset
20407else
20408 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000020409fi
John Criswell7a73b802003-06-30 21:59:07 +000020410
Reid Spencera773bd52006-08-04 18:18:08 +000020411
20412# IFS
20413# We need space, tab and new line, in precisely that order. Quoting is
20414# there to prevent editors from complaining about space-tab.
20415# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20416# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020417as_nl='
20418'
Reid Spencera773bd52006-08-04 18:18:08 +000020419IFS=" "" $as_nl"
20420
20421# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020422case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000020423 *[\\/]* ) as_myself=$0 ;;
20424 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000020425for as_dir in $PATH
20426do
20427 IFS=$as_save_IFS
20428 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020429 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20430done
Reid Spencera773bd52006-08-04 18:18:08 +000020431IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000020432
Reid Spencera773bd52006-08-04 18:18:08 +000020433 ;;
20434esac
20435# We did not find ourselves, most probably we were run as `sh COMMAND'
20436# in which case we are not to be found in the path.
20437if test "x$as_myself" = x; then
20438 as_myself=$0
20439fi
20440if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020441 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20442 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000020443fi
20444
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020445# Work around bugs in pre-3.0 UWIN ksh.
20446for as_var in ENV MAIL MAILPATH
20447do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000020448done
20449PS1='$ '
20450PS2='> '
20451PS4='+ '
20452
20453# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020454for as_var in \
20455 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20456 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20457 LC_TELEPHONE LC_TIME
20458do
20459 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20460 eval $as_var=C; export $as_var
20461 else
20462 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000020463 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020464done
Torok Edwin871384f2010-01-26 08:50:50 +000020465
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020466# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000020467if expr a : '\(a\)' >/dev/null 2>&1 &&
20468 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20469 as_expr=expr
20470else
20471 as_expr=false
20472fi
20473
20474if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20475 as_basename=basename
20476else
20477 as_basename=false
20478fi
20479
20480
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020481# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000020482as_me=`$as_basename -- "$0" ||
20483$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20484 X"$0" : 'X\(//\)$' \| \
20485 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020486echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000020487 sed '/^.*\/\([^/][^/]*\)\/*$/{
20488 s//\1/
20489 q
20490 }
20491 /^X\/\(\/\/\)$/{
20492 s//\1/
20493 q
20494 }
20495 /^X\/\(\/\).*/{
20496 s//\1/
20497 q
20498 }
20499 s/.*/./; q'`
20500
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020501# CDPATH.
20502$as_unset CDPATH
20503
20504
20505
20506 as_lineno_1=$LINENO
20507 as_lineno_2=$LINENO
20508 test "x$as_lineno_1" != "x$as_lineno_2" &&
20509 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20510
20511 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20512 # uniformly replaced by the line number. The first 'sed' inserts a
20513 # line-number line after each line using $LINENO; the second 'sed'
20514 # does the real work. The second script uses 'N' to pair each
20515 # line-number line with the line containing $LINENO, and appends
20516 # trailing '-' during substitution so that $LINENO is not a special
20517 # case at line end.
20518 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20519 # scripts with optimization help from Paolo Bonzini. Blame Lee
20520 # E. McMahon (1931-1989) for sed's syntax. :-)
20521 sed -n '
20522 p
20523 /[$]LINENO/=
20524 ' <$as_myself |
20525 sed '
20526 s/[$]LINENO.*/&-/
20527 t lineno
20528 b
20529 :lineno
20530 N
20531 :loop
20532 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20533 t loop
20534 s/-\n.*//
20535 ' >$as_me.lineno &&
20536 chmod +x "$as_me.lineno" ||
20537 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20538 { (exit 1); exit 1; }; }
20539
20540 # Don't try to exec as it changes $[0], causing all sort of problems
20541 # (the dirname of $[0] is not the place where we might find the
20542 # original and so on. Autoconf is especially sensitive to this).
20543 . "./$as_me.lineno"
20544 # Exit status is that of the last command.
20545 exit
20546}
20547
20548
20549if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20550 as_dirname=dirname
20551else
20552 as_dirname=false
20553fi
Reid Spencera773bd52006-08-04 18:18:08 +000020554
20555ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020556case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000020557-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020558 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000020559 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020560 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000020561 esac;;
20562*)
20563 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000020564esac
20565
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020566if expr a : '\(a\)' >/dev/null 2>&1 &&
20567 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20568 as_expr=expr
20569else
20570 as_expr=false
20571fi
20572
John Criswell7a73b802003-06-30 21:59:07 +000020573rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000020574if test -d conf$$.dir; then
20575 rm -f conf$$.dir/conf$$.file
20576else
20577 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020578 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000020579fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020580echo >conf$$.file
20581if ln -s conf$$.file conf$$ 2>/dev/null; then
20582 as_ln_s='ln -s'
20583 # ... but there are two gotchas:
20584 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20585 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20586 # In both cases, we have to default to `cp -p'.
20587 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000020588 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020589elif ln conf$$.file conf$$ 2>/dev/null; then
20590 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000020591else
20592 as_ln_s='cp -p'
20593fi
Reid Spencera773bd52006-08-04 18:18:08 +000020594rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20595rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000020596
John Criswell0c38eaf2003-09-10 15:17:25 +000020597if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020598 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000020599else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020600 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000020601 as_mkdir_p=false
20602fi
20603
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020604# Find out whether ``test -x'' works. Don't use a zero-byte file, as
20605# systems may use methods other than mode bits to determine executability.
20606cat >conf$$.file <<_ASEOF
20607#! /bin/sh
20608exit 0
20609_ASEOF
20610chmod +x conf$$.file
20611if test -x conf$$.file >/dev/null 2>&1; then
20612 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000020613else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020614 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000020615fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020616rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000020617
20618# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020619as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000020620
20621# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020622as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000020623
20624
John Criswell7a73b802003-06-30 21:59:07 +000020625exec 6>&1
20626
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020627# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000020628# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000020629# values after options handling.
20630ac_log="
Tanya Lattnerdc29dff2010-03-19 21:22:13 +000020631This file was extended by llvm $as_me 2.8svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020632generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000020633
20634 CONFIG_FILES = $CONFIG_FILES
20635 CONFIG_HEADERS = $CONFIG_HEADERS
20636 CONFIG_LINKS = $CONFIG_LINKS
20637 CONFIG_COMMANDS = $CONFIG_COMMANDS
20638 $ $0 $@
20639
Reid Spencera773bd52006-08-04 18:18:08 +000020640on `(hostname || uname -n) 2>/dev/null | sed 1q`
20641"
20642
John Criswell7a73b802003-06-30 21:59:07 +000020643_ACEOF
20644
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020645cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020646# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000020647config_files="$ac_config_files"
20648config_headers="$ac_config_headers"
20649config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000020650
Reid Spencera773bd52006-08-04 18:18:08 +000020651_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020652
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020653cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020654ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020655\`$as_me' instantiates files from templates according to the
20656current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000020657
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020658Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000020659
20660 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020661 -V, --version print version number, then exit
20662 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000020663 -d, --debug don't remove temporary files
20664 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020665 --file=FILE[:TEMPLATE]
20666 instantiate the configuration file FILE
20667 --header=FILE[:TEMPLATE]
20668 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000020669
20670Configuration files:
20671$config_files
20672
20673Configuration headers:
20674$config_headers
20675
John Criswellc764fbc2003-09-06 15:17:13 +000020676Configuration commands:
20677$config_commands
20678
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020679Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000020680
Reid Spencera773bd52006-08-04 18:18:08 +000020681_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020682cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020683ac_cs_version="\\
Tanya Lattnerdc29dff2010-03-19 21:22:13 +000020684llvm config.status 2.8svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020685configured by $0, generated by GNU Autoconf 2.60,
20686 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000020687
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020688Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000020689This config.status script is free software; the Free Software Foundation
20690gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000020691
20692ac_pwd='$ac_pwd'
20693srcdir='$srcdir'
20694INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000020695_ACEOF
20696
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020697cat >>$CONFIG_STATUS <<\_ACEOF
20698# If no file are specified by the user, then we need to provide default
20699# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000020700ac_need_defaults=:
20701while test $# != 0
20702do
20703 case $1 in
20704 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000020705 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20706 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000020707 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000020708 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020709 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000020710 ac_option=$1
20711 ac_optarg=$2
20712 ac_shift=shift
20713 ;;
John Criswell7a73b802003-06-30 21:59:07 +000020714 esac
20715
John Criswell0c38eaf2003-09-10 15:17:25 +000020716 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000020717 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000020718 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20719 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020720 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020721 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020722 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000020723 debug=: ;;
20724 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000020725 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020726 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000020727 ac_need_defaults=false;;
20728 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000020729 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020730 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000020731 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000020732 --he | --h)
20733 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020734 { echo "$as_me: error: ambiguous option: $1
20735Try \`$0 --help' for more information." >&2
20736 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000020737 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020738 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000020739 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20740 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20741 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000020742
20743 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020744 -*) { echo "$as_me: error: unrecognized option: $1
20745Try \`$0 --help' for more information." >&2
20746 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000020747
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020748 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000020749 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000020750
20751 esac
20752 shift
20753done
20754
John Criswell0c38eaf2003-09-10 15:17:25 +000020755ac_configure_extra_args=
20756
20757if $ac_cs_silent; then
20758 exec 6>/dev/null
20759 ac_configure_extra_args="$ac_configure_extra_args --silent"
20760fi
20761
20762_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020763cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020764if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020765 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20766 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000020767 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020768 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000020769fi
20770
John Criswell7a73b802003-06-30 21:59:07 +000020771_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020772cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000020773exec 5>>config.log
20774{
20775 echo
20776 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20777## Running $as_me. ##
20778_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020779 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000020780} >&5
John Criswell7a73b802003-06-30 21:59:07 +000020781
Reid Spencera773bd52006-08-04 18:18:08 +000020782_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020783cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000020784#
Reid Spencera773bd52006-08-04 18:18:08 +000020785# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000020786#
Reid Spencerc0682832005-02-24 19:05:19 +000020787llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000020788
20789_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020790
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020791cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000020792
20793# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000020794for ac_config_target in $ac_config_targets
20795do
Reid Spencera773bd52006-08-04 18:18:08 +000020796 case $ac_config_target in
20797 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000020798 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
20799 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000020800 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000020801 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Chandler Carruth8b67f772009-10-26 01:35:46 +000020802 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020803 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000020804 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020805 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000020806 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020807 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
20808 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
20809 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
20810 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
20811 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
20812 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000020813 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020814 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
20815 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000020816 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020817 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
20818 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
20819 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000020820 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
20821 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020822
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020823 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20824echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20825 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000020826 esac
20827done
20828
Reid Spencera773bd52006-08-04 18:18:08 +000020829
John Criswell7a73b802003-06-30 21:59:07 +000020830# If the user did not use the arguments to specify the items to instantiate,
20831# then the envvar interface is used. Set only those that are not.
20832# We use the long form for the default assignment because of an extremely
20833# bizarre bug on SunOS 4.1.3.
20834if $ac_need_defaults; then
20835 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20836 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000020837 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000020838fi
20839
John Criswell0c38eaf2003-09-10 15:17:25 +000020840# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000020841# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000020842# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000020843# Hook for its removal unless debugging.
20844# Note that there is a small window in which the directory will not be cleaned:
20845# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000020846$debug ||
20847{
Reid Spencera773bd52006-08-04 18:18:08 +000020848 tmp=
20849 trap 'exit_status=$?
20850 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20851' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020852 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000020853}
John Criswell7a73b802003-06-30 21:59:07 +000020854# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000020855
John Criswell7a73b802003-06-30 21:59:07 +000020856{
Reid Spencera773bd52006-08-04 18:18:08 +000020857 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000020858 test -n "$tmp" && test -d "$tmp"
20859} ||
20860{
Reid Spencera773bd52006-08-04 18:18:08 +000020861 tmp=./conf$$-$RANDOM
20862 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020863} ||
20864{
20865 echo "$me: cannot create a temporary directory in ." >&2
20866 { (exit 1); exit 1; }
20867}
John Criswell7a73b802003-06-30 21:59:07 +000020868
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020869#
20870# Set up the sed scripts for CONFIG_FILES section.
20871#
20872
20873# No need to generate the scripts if there are no CONFIG_FILES.
20874# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000020875if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000020876
20877_ACEOF
20878
Reid Spencera773bd52006-08-04 18:18:08 +000020879
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020880
Reid Spencera773bd52006-08-04 18:18:08 +000020881ac_delim='%!_!# '
20882for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020883 cat >conf$$subs.sed <<_ACEOF
20884SHELL!$SHELL$ac_delim
20885PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20886PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20887PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20888PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20889PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20890PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20891exec_prefix!$exec_prefix$ac_delim
20892prefix!$prefix$ac_delim
20893program_transform_name!$program_transform_name$ac_delim
20894bindir!$bindir$ac_delim
20895sbindir!$sbindir$ac_delim
20896libexecdir!$libexecdir$ac_delim
20897datarootdir!$datarootdir$ac_delim
20898datadir!$datadir$ac_delim
20899sysconfdir!$sysconfdir$ac_delim
20900sharedstatedir!$sharedstatedir$ac_delim
20901localstatedir!$localstatedir$ac_delim
20902includedir!$includedir$ac_delim
20903oldincludedir!$oldincludedir$ac_delim
20904docdir!$docdir$ac_delim
20905infodir!$infodir$ac_delim
20906htmldir!$htmldir$ac_delim
20907dvidir!$dvidir$ac_delim
20908pdfdir!$pdfdir$ac_delim
20909psdir!$psdir$ac_delim
20910libdir!$libdir$ac_delim
20911localedir!$localedir$ac_delim
20912mandir!$mandir$ac_delim
20913DEFS!$DEFS$ac_delim
20914ECHO_C!$ECHO_C$ac_delim
20915ECHO_N!$ECHO_N$ac_delim
20916ECHO_T!$ECHO_T$ac_delim
20917LIBS!$LIBS$ac_delim
20918build_alias!$build_alias$ac_delim
20919host_alias!$host_alias$ac_delim
20920target_alias!$target_alias$ac_delim
20921LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
20922subdirs!$subdirs$ac_delim
20923build!$build$ac_delim
20924build_cpu!$build_cpu$ac_delim
20925build_vendor!$build_vendor$ac_delim
20926build_os!$build_os$ac_delim
20927host!$host$ac_delim
20928host_cpu!$host_cpu$ac_delim
20929host_vendor!$host_vendor$ac_delim
20930host_os!$host_os$ac_delim
20931target!$target$ac_delim
20932target_cpu!$target_cpu$ac_delim
20933target_vendor!$target_vendor$ac_delim
20934target_os!$target_os$ac_delim
20935OS!$OS$ac_delim
20936HOST_OS!$HOST_OS$ac_delim
20937TARGET_OS!$TARGET_OS$ac_delim
20938LINKALL!$LINKALL$ac_delim
20939NOLINKALL!$NOLINKALL$ac_delim
20940LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
20941LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
20942ARCH!$ARCH$ac_delim
20943ENDIAN!$ENDIAN$ac_delim
20944CC!$CC$ac_delim
20945CFLAGS!$CFLAGS$ac_delim
20946LDFLAGS!$LDFLAGS$ac_delim
20947CPPFLAGS!$CPPFLAGS$ac_delim
20948ac_ct_CC!$ac_ct_CC$ac_delim
20949EXEEXT!$EXEEXT$ac_delim
20950OBJEXT!$OBJEXT$ac_delim
20951CPP!$CPP$ac_delim
20952GREP!$GREP$ac_delim
20953EGREP!$EGREP$ac_delim
20954LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
20955BUILD_CC!$BUILD_CC$ac_delim
20956BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
20957BUILD_CXX!$BUILD_CXX$ac_delim
20958CVSBUILD!$CVSBUILD$ac_delim
20959ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
20960ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
20961DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
20962ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
20963EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
20964DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
20965DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
20966JIT!$JIT$ac_delim
20967TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
20968ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
20969ENABLE_THREADS!$ENABLE_THREADS$ac_delim
20970ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000020971ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020972TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
20973LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
20974LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
20975LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
20976LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
20977ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000020978CLANGPATH!$CLANGPATH$ac_delim
20979CLANGXXPATH!$CLANGXXPATH$ac_delim
20980ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020981_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000020982
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020983 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000020984 break
20985 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020986 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20987echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20988 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000020989 else
20990 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000020991 fi
Reid Spencera773bd52006-08-04 18:18:08 +000020992done
20993
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020994ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20995if test -n "$ac_eof"; then
20996 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20997 ac_eof=`expr $ac_eof + 1`
20998fi
20999
21000cat >>$CONFIG_STATUS <<_ACEOF
21001cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21002/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000021003_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021004sed '
21005s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21006s/^/s,@/; s/!/@,|#_!!_#|/
21007:n
21008t n
21009s/'"$ac_delim"'$/,g/; t
21010s/$/\\/; p
21011N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21012' >>$CONFIG_STATUS <conf$$subs.sed
21013rm -f conf$$subs.sed
21014cat >>$CONFIG_STATUS <<_ACEOF
21015CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000021016_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021017
21018
21019ac_delim='%!_!# '
21020for ac_last_try in false false false false false :; do
21021 cat >conf$$subs.sed <<_ACEOF
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021022OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021023EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21024BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21025ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021026ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
21027CXX!$CXX$ac_delim
21028CXXFLAGS!$CXXFLAGS$ac_delim
21029ac_ct_CXX!$ac_ct_CXX$ac_delim
21030NM!$NM$ac_delim
21031ifGNUmake!$ifGNUmake$ac_delim
21032LN_S!$LN_S$ac_delim
21033CMP!$CMP$ac_delim
21034CP!$CP$ac_delim
21035DATE!$DATE$ac_delim
21036FIND!$FIND$ac_delim
21037MKDIR!$MKDIR$ac_delim
21038MV!$MV$ac_delim
21039RANLIB!$RANLIB$ac_delim
21040AR!$AR$ac_delim
21041RM!$RM$ac_delim
21042SED!$SED$ac_delim
21043TAR!$TAR$ac_delim
21044BINPWD!$BINPWD$ac_delim
21045GRAPHVIZ!$GRAPHVIZ$ac_delim
21046DOT!$DOT$ac_delim
21047FDP!$FDP$ac_delim
21048NEATO!$NEATO$ac_delim
21049TWOPI!$TWOPI$ac_delim
21050CIRCO!$CIRCO$ac_delim
21051GV!$GV$ac_delim
21052DOTTY!$DOTTY$ac_delim
21053PERL!$PERL$ac_delim
21054HAVE_PERL!$HAVE_PERL$ac_delim
21055INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21056INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21057INSTALL_DATA!$INSTALL_DATA$ac_delim
21058BZIP2!$BZIP2$ac_delim
21059DOXYGEN!$DOXYGEN$ac_delim
21060GROFF!$GROFF$ac_delim
21061GZIP!$GZIP$ac_delim
21062POD2HTML!$POD2HTML$ac_delim
21063POD2MAN!$POD2MAN$ac_delim
21064RUNTEST!$RUNTEST$ac_delim
21065TCLSH!$TCLSH$ac_delim
21066ZIP!$ZIP$ac_delim
21067OCAMLC!$OCAMLC$ac_delim
21068OCAMLOPT!$OCAMLOPT$ac_delim
21069OCAMLDEP!$OCAMLDEP$ac_delim
21070OCAMLDOC!$OCAMLDOC$ac_delim
21071GAS!$GAS$ac_delim
21072INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21073INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21074CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21075CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21076LIBADD_DL!$LIBADD_DL$ac_delim
21077LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21078LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21079LLVMGCC!$LLVMGCC$ac_delim
21080LLVMGXX!$LLVMGXX$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021081LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021082NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21083NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21084USE_UDIS86!$USE_UDIS86$ac_delim
21085USE_OPROFILE!$USE_OPROFILE$ac_delim
21086HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21087HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21088MMAP_FILE!$MMAP_FILE$ac_delim
21089LLVMCC1!$LLVMCC1$ac_delim
21090LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21091LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021092LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21093SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021094SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021095LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21096LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21097LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21098LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21099LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21100LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21101LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21102LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21103LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21104LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21105BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21106ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21107OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21108ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21109RPATH!$RPATH$ac_delim
21110RDYNAMIC!$RDYNAMIC$ac_delim
21111LIBOBJS!$LIBOBJS$ac_delim
21112LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000021113_ACEOF
21114
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021115 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021116 break
21117 elif $ac_last_try; then
21118 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21119echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21120 { (exit 1); exit 1; }; }
21121 else
21122 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21123 fi
21124done
21125
21126ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21127if test -n "$ac_eof"; then
21128 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21129 ac_eof=`expr $ac_eof + 1`
21130fi
21131
21132cat >>$CONFIG_STATUS <<_ACEOF
21133cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21134/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21135_ACEOF
21136sed '
21137s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21138s/^/s,@/; s/!/@,|#_!!_#|/
21139:n
21140t n
21141s/'"$ac_delim"'$/,g/; t
21142s/$/\\/; p
21143N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21144' >>$CONFIG_STATUS <conf$$subs.sed
21145rm -f conf$$subs.sed
21146cat >>$CONFIG_STATUS <<_ACEOF
21147:end
21148s/|#_!!_#|//g
21149CEOF$ac_eof
21150_ACEOF
21151
21152
Reid Spencera773bd52006-08-04 18:18:08 +000021153# VPATH may cause trouble with some makes, so we remove $(srcdir),
21154# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21155# trailing colons and then remove the whole line if VPATH becomes empty
21156# (actually we leave an empty line to preserve line numbers).
21157if test "x$srcdir" = x.; then
21158 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21159s/:*\$(srcdir):*/:/
21160s/:*\${srcdir}:*/:/
21161s/:*@srcdir@:*/:/
21162s/^\([^=]*=[ ]*\):*/\1/
21163s/:*$//
21164s/^[^=]*=[ ]*$//
21165}'
21166fi
21167
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021168cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021169fi # test -n "$CONFIG_FILES"
21170
Reid Spencera773bd52006-08-04 18:18:08 +000021171
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021172for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000021173do
21174 case $ac_tag in
21175 :[FHLC]) ac_mode=$ac_tag; continue;;
21176 esac
21177 case $ac_mode$ac_tag in
21178 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021179 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21180echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21181 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021182 :[FH]-) ac_tag=-:-;;
21183 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21184 esac
21185 ac_save_IFS=$IFS
21186 IFS=:
21187 set x $ac_tag
21188 IFS=$ac_save_IFS
21189 shift
21190 ac_file=$1
21191 shift
21192
21193 case $ac_mode in
21194 :L) ac_source=$1;;
21195 :[FH])
21196 ac_file_inputs=
21197 for ac_f
21198 do
21199 case $ac_f in
21200 -) ac_f="$tmp/stdin";;
21201 *) # Look for the file first in the build tree, then in the source tree
21202 # (if the path is not absolute). The absolute path cannot be DOS-style,
21203 # because $ac_f cannot contain `:'.
21204 test -f "$ac_f" ||
21205 case $ac_f in
21206 [\\/$]*) false;;
21207 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21208 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021209 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21210echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21211 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021212 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021213 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000021214 done
21215
21216 # Let's still pretend it is `configure' which instantiates (i.e., don't
21217 # use $as_me), people would be surprised to read:
21218 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021219 configure_input="Generated from "`IFS=:
21220 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000021221 if test x"$ac_file" != x-; then
21222 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021223 { echo "$as_me:$LINENO: creating $ac_file" >&5
21224echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000021225 fi
21226
21227 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021228 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000021229 esac
21230 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021231 esac
21232
Reid Spencera773bd52006-08-04 18:18:08 +000021233 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000021234$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021235 X"$ac_file" : 'X\(//\)[^/]' \| \
21236 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000021237 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021238echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000021239 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21240 s//\1/
21241 q
21242 }
21243 /^X\(\/\/\)[^/].*/{
21244 s//\1/
21245 q
21246 }
21247 /^X\(\/\/\)$/{
21248 s//\1/
21249 q
21250 }
21251 /^X\(\/\).*/{
21252 s//\1/
21253 q
21254 }
21255 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021256 { as_dir="$ac_dir"
21257 case $as_dir in #(
21258 -*) as_dir=./$as_dir;;
21259 esac
21260 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21261 as_dirs=
21262 while :; do
21263 case $as_dir in #(
21264 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21265 *) as_qdir=$as_dir;;
21266 esac
21267 as_dirs="'$as_qdir' $as_dirs"
21268 as_dir=`$as_dirname -- "$as_dir" ||
21269$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21270 X"$as_dir" : 'X\(//\)[^/]' \| \
21271 X"$as_dir" : 'X\(//\)$' \| \
21272 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21273echo X"$as_dir" |
21274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21275 s//\1/
21276 q
21277 }
21278 /^X\(\/\/\)[^/].*/{
21279 s//\1/
21280 q
21281 }
21282 /^X\(\/\/\)$/{
21283 s//\1/
21284 q
21285 }
21286 /^X\(\/\).*/{
21287 s//\1/
21288 q
21289 }
21290 s/.*/./; q'`
21291 test -d "$as_dir" && break
21292 done
21293 test -z "$as_dirs" || eval "mkdir $as_dirs"
21294 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21295echo "$as_me: error: cannot create directory $as_dir" >&2;}
21296 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000021297 ac_builddir=.
21298
Reid Spencera773bd52006-08-04 18:18:08 +000021299case "$ac_dir" in
21300.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21301*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021302 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021303 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021304 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021305 case $ac_top_builddir_sub in
21306 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21307 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21308 esac ;;
21309esac
21310ac_abs_top_builddir=$ac_pwd
21311ac_abs_builddir=$ac_pwd$ac_dir_suffix
21312# for backward compatibility:
21313ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000021314
21315case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000021316 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000021317 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000021318 ac_top_srcdir=$ac_top_builddir_sub
21319 ac_abs_top_srcdir=$ac_pwd ;;
21320 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000021321 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000021322 ac_top_srcdir=$srcdir
21323 ac_abs_top_srcdir=$srcdir ;;
21324 *) # Relative name.
21325 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21326 ac_top_srcdir=$ac_top_build_prefix$srcdir
21327 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000021328esac
Reid Spencera773bd52006-08-04 18:18:08 +000021329ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000021330
John Criswell7a73b802003-06-30 21:59:07 +000021331
Reid Spencera773bd52006-08-04 18:18:08 +000021332 case $ac_mode in
21333 :F)
21334 #
21335 # CONFIG_FILE
21336 #
John Criswell7a73b802003-06-30 21:59:07 +000021337
21338 case $INSTALL in
21339 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021340 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000021341 esac
John Criswell7a73b802003-06-30 21:59:07 +000021342_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021343
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021344cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021345# If the template does not know about datarootdir, expand it.
21346# FIXME: This hack should be removed a few years after 2.60.
21347ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021348
21349case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000021350 p
21351 q
21352}
21353/@datadir@/p
21354/@docdir@/p
21355/@infodir@/p
21356/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021357/@mandir@/p
21358' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000021359*datarootdir*) ac_datarootdir_seen=yes;;
21360*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021361 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21362echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000021363_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021364cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021365 ac_datarootdir_hack='
21366 s&@datadir@&$datadir&g
21367 s&@docdir@&$docdir&g
21368 s&@infodir@&$infodir&g
21369 s&@localedir@&$localedir&g
21370 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021371 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021372esac
21373_ACEOF
21374
21375# Neutralize VPATH when `$srcdir' = `.'.
21376# Shell code in configure.ac might set extrasub.
21377# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021378cat >>$CONFIG_STATUS <<_ACEOF
21379 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000021380$extrasub
21381_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021382cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021383:t
21384/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021385s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000021386s&@top_builddir@&$ac_top_builddir_sub&;t t
21387s&@srcdir@&$ac_srcdir&;t t
21388s&@abs_srcdir@&$ac_abs_srcdir&;t t
21389s&@top_srcdir@&$ac_top_srcdir&;t t
21390s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21391s&@builddir@&$ac_builddir&;t t
21392s&@abs_builddir@&$ac_abs_builddir&;t t
21393s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21394s&@INSTALL@&$ac_INSTALL&;t t
21395$ac_datarootdir_hack
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021396" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000021397
Reid Spencera773bd52006-08-04 18:18:08 +000021398test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21399 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21400 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021401 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000021402which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021403echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000021404which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000021405
Reid Spencera773bd52006-08-04 18:18:08 +000021406 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000021407 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021408 -) cat "$tmp/out"; rm -f "$tmp/out";;
21409 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21410 esac
Reid Spencera773bd52006-08-04 18:18:08 +000021411 ;;
21412 :H)
21413 #
21414 # CONFIG_HEADER
21415 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021416_ACEOF
21417
21418# Transform confdefs.h into a sed script `conftest.defines', that
21419# substitutes the proper values into config.h.in to produce config.h.
21420rm -f conftest.defines conftest.tail
21421# First, append a space to every undef/define line, to ease matching.
21422echo 's/$/ /' >conftest.defines
21423# Then, protect against being on the right side of a sed subst, or in
21424# an unquoted here document, in config.status. If some macros were
21425# called several times there might be several #defines for the same
21426# symbol, which is useless. But do not sort them, since the last
21427# AC_DEFINE must be honored.
21428ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21429# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21430# NAME is the cpp macro being defined, VALUE is the value it is being given.
21431# PARAMS is the parameter list in the macro definition--in most cases, it's
21432# just an empty string.
21433ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21434ac_dB='\\)[ (].*,\\1define\\2'
21435ac_dC=' '
21436ac_dD=' ,'
21437
21438uniq confdefs.h |
21439 sed -n '
21440 t rset
21441 :rset
21442 s/^[ ]*#[ ]*define[ ][ ]*//
21443 t ok
21444 d
21445 :ok
21446 s/[\\&,]/\\&/g
21447 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21448 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21449 ' >>conftest.defines
21450
21451# Remove the space that was appended to ease matching.
21452# Then replace #undef with comments. This is necessary, for
21453# example, in the case of _POSIX_SOURCE, which is predefined and required
21454# on some systems where configure will not decide to define it.
21455# (The regexp can be short, since the line contains either #define or #undef.)
21456echo 's/ $//
21457s,^[ #]*u.*,/* & */,' >>conftest.defines
21458
21459# Break up conftest.defines:
21460ac_max_sed_lines=50
21461
21462# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21463# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21464# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21465# et cetera.
21466ac_in='$ac_file_inputs'
21467ac_out='"$tmp/out1"'
21468ac_nxt='"$tmp/out2"'
21469
21470while :
21471do
21472 # Write a here document:
21473 cat >>$CONFIG_STATUS <<_ACEOF
21474 # First, check the format of the line:
21475 cat >"\$tmp/defines.sed" <<\\CEOF
21476/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21477/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21478b
21479:def
21480_ACEOF
21481 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21482 echo 'CEOF
21483 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21484 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21485 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21486 grep . conftest.tail >/dev/null || break
21487 rm -f conftest.defines
21488 mv conftest.tail conftest.defines
21489done
21490rm -f conftest.defines conftest.tail
21491
21492echo "ac_result=$ac_in" >>$CONFIG_STATUS
21493cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021494 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021495 echo "/* $configure_input */" >"$tmp/config.h"
21496 cat "$ac_result" >>"$tmp/config.h"
21497 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21498 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21499echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021500 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021501 rm -f $ac_file
21502 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000021503 fi
21504 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021505 echo "/* $configure_input */"
21506 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000021507 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021508 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000021509 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000021510
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021511 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21512echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000021513 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000021514 esac
John Criswell7a73b802003-06-30 21:59:07 +000021515
Reid Spencera773bd52006-08-04 18:18:08 +000021516
21517 case $ac_file$ac_mode in
21518 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021519 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021520 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000021521 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021522 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021523 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021524 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021525 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021526 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021527 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021528 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021529 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021530 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000021531 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021532 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021533 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021534 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021535 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021536 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021537 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021538 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021539 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021540 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021541 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021542 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000021543 ${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 +000021544
21545 esac
21546done # for ac_tag
21547
John Criswell7a73b802003-06-30 21:59:07 +000021548
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021549{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000021550_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021551chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000021552ac_clean_files=$ac_clean_files_save
21553
21554
21555# configure is writing to config.log, and then calls config.status.
21556# config.status does its own redirection, appending to config.log.
21557# Unfortunately, on DOS this fails, as config.log is still kept open
21558# by configure, so config.status won't be able to write to it; its
21559# output is simply discarded. So we exec the FD to /dev/null,
21560# effectively closing config.log, so it can be properly (re)opened and
21561# appended to by config.status. When coming back to configure, we
21562# need to make the FD available again.
21563if test "$no_create" != yes; then
21564 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021565 ac_config_status_args=
21566 test "$silent" = yes &&
21567 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000021568 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000021569 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000021570 exec 5>>config.log
21571 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21572 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021573 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000021574fi
21575
John Criswell12399a12003-09-30 15:55:44 +000021576#
21577# CONFIG_SUBDIRS section.
21578#
21579if test "$no_recursion" != yes; then
21580
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021581 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000021582 ac_sub_configure_args=
21583 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000021584 eval "set x $ac_configure_args"
21585 shift
21586 for ac_arg
21587 do
John Criswell12399a12003-09-30 15:55:44 +000021588 if test -n "$ac_prev"; then
21589 ac_prev=
21590 continue
21591 fi
21592 case $ac_arg in
21593 -cache-file | --cache-file | --cache-fil | --cache-fi \
21594 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21595 ac_prev=cache_file ;;
21596 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21597 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21598 | --c=*)
21599 ;;
21600 --config-cache | -C)
21601 ;;
21602 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21603 ac_prev=srcdir ;;
21604 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21605 ;;
21606 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21607 ac_prev=prefix ;;
21608 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21609 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021610 *)
21611 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021612 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021613 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021614 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000021615 esac
21616 done
21617
21618 # Always prepend --prefix to ensure using the same prefix
21619 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000021620 ac_arg="--prefix=$prefix"
21621 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021622 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021623 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021624 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000021625
21626 ac_popdir=`pwd`
21627 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21628
21629 # Do not complain, so a configure script can configure whichever
21630 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000021631 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000021632
Reid Spencera773bd52006-08-04 18:18:08 +000021633 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021634 echo "$as_me:$LINENO: $ac_msg" >&5
21635 echo "$ac_msg" >&6
21636 { as_dir="$ac_dir"
21637 case $as_dir in #(
21638 -*) as_dir=./$as_dir;;
21639 esac
21640 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21641 as_dirs=
21642 while :; do
21643 case $as_dir in #(
21644 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21645 *) as_qdir=$as_dir;;
21646 esac
21647 as_dirs="'$as_qdir' $as_dirs"
21648 as_dir=`$as_dirname -- "$as_dir" ||
21649$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21650 X"$as_dir" : 'X\(//\)[^/]' \| \
21651 X"$as_dir" : 'X\(//\)$' \| \
21652 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21653echo X"$as_dir" |
21654 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21655 s//\1/
21656 q
21657 }
21658 /^X\(\/\/\)[^/].*/{
21659 s//\1/
21660 q
21661 }
21662 /^X\(\/\/\)$/{
21663 s//\1/
21664 q
21665 }
21666 /^X\(\/\).*/{
21667 s//\1/
21668 q
21669 }
21670 s/.*/./; q'`
21671 test -d "$as_dir" && break
21672 done
21673 test -z "$as_dirs" || eval "mkdir $as_dirs"
21674 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21675echo "$as_me: error: cannot create directory $as_dir" >&2;}
21676 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000021677 ac_builddir=.
21678
Reid Spencera773bd52006-08-04 18:18:08 +000021679case "$ac_dir" in
21680.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21681*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021682 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021683 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021684 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021685 case $ac_top_builddir_sub in
21686 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21687 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21688 esac ;;
21689esac
21690ac_abs_top_builddir=$ac_pwd
21691ac_abs_builddir=$ac_pwd$ac_dir_suffix
21692# for backward compatibility:
21693ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000021694
21695case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000021696 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000021697 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000021698 ac_top_srcdir=$ac_top_builddir_sub
21699 ac_abs_top_srcdir=$ac_pwd ;;
21700 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000021701 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000021702 ac_top_srcdir=$srcdir
21703 ac_abs_top_srcdir=$srcdir ;;
21704 *) # Relative name.
21705 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21706 ac_top_srcdir=$ac_top_build_prefix$srcdir
21707 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000021708esac
Reid Spencera773bd52006-08-04 18:18:08 +000021709ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000021710
21711
Reid Spencera773bd52006-08-04 18:18:08 +000021712 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000021713
21714 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000021715 if test -f "$ac_srcdir/configure.gnu"; then
21716 ac_sub_configure=$ac_srcdir/configure.gnu
21717 elif test -f "$ac_srcdir/configure"; then
21718 ac_sub_configure=$ac_srcdir/configure
21719 elif test -f "$ac_srcdir/configure.in"; then
21720 # This should be Cygnus configure.
21721 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000021722 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021723 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
21724echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000021725 ac_sub_configure=
21726 fi
21727
21728 # The recursion is here.
21729 if test -n "$ac_sub_configure"; then
21730 # Make the cache file name correct relative to the subdirectory.
21731 case $cache_file in
21732 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021733 *) # Relative name.
21734 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000021735 esac
21736
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021737 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21738echo "$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 +000021739 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000021740 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21741 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021742 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21743echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21744 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000021745 fi
21746
Reid Spencera773bd52006-08-04 18:18:08 +000021747 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000021748 done
21749fi
21750