blob: 948e7ccd93694f12c6bea1d2dd770de126533566 [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
Daniel Dunbar195d2de2010-04-10 18:56:24 +000017# Be Bourne compatible
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell0c38eaf2003-09-10 15:17:25 +000019 emulate sh
20 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000022 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000024 setopt NO_GLOB_SUBST
25else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell0c38eaf2003-09-10 15:17:25 +000027fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000030
John Criswell0c38eaf2003-09-10 15:17:25 +000031
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000032# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell0c38eaf2003-09-10 15:17:25 +000039
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000042 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000058fi
John Criswell0c38eaf2003-09-10 15:17:25 +000059
Reid Spencera773bd52006-08-04 18:18:08 +000060
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000066as_nl='
67'
Reid Spencera773bd52006-08-04 18:18:08 +000068IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000071case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000072 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell0c38eaf2003-09-10 15:17:25 +000074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000078 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Reid Spencera773bd52006-08-04 18:18:08 +000080IFS=$as_save_IFS
John Criswell0c38eaf2003-09-10 15:17:25 +000081
Reid Spencera773bd52006-08-04 18:18:08 +000082 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000090 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000092fi
93
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000094# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000097done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
Torok Edwin871384f2010-01-26 08:50:50 +0000107do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
Torok Edwin871384f2010-01-26 08:50:50 +0000110 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +0000112 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000113done
Torok Edwin871384f2010-01-26 08:50:50 +0000114
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000115# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +0000116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000130# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +0000131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000135echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +0000136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000150# CDPATH.
151$as_unset CDPATH
Reid Spencera773bd52006-08-04 18:18:08 +0000152
153
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240# Be Bourne compatible
241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248else
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250fi
251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
253
254:
255_ASEOF
256}; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260# Be Bourne compatible
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270fi
271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
273
274:
275(as_func_return () {
276 (exit $1)
277}
278as_func_success () {
279 as_func_return 0
280}
281as_func_failure () {
282 as_func_return 1
283}
284as_func_ret_success () {
285 return 0
286}
287as_func_ret_failure () {
288 return 1
289}
290
291exitcode=0
292if as_func_success; then
293 :
294else
295 exitcode=1
296 echo as_func_success failed.
297fi
298
299if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
302fi
303
304if as_func_ret_success; then
305 :
306else
307 exitcode=1
308 echo as_func_ret_success failed.
309fi
310
311if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
314fi
315
316if ( set x; as_func_ret_success y && test x = "$1" ); then
317 :
318else
319 exitcode=1
320 echo positional parameters were not saved.
321fi
322
323test $exitcode = 0) || { (exit 1); exit 1; }
324
325(
326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331_ASEOF
332}; then
333 break
334fi
335
336fi
337
338 done
339
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 done
344 export CONFIG_SHELL
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346fi
347
348
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
355fi
356
357
358fi
359
360fi
361
362
363
364(eval "as_func_return () {
365 (exit \$1)
366}
367as_func_success () {
368 as_func_return 0
369}
370as_func_failure () {
371 as_func_return 1
372}
373as_func_ret_success () {
374 return 0
375}
376as_func_ret_failure () {
377 return 1
378}
379
380exitcode=0
381if as_func_success; then
382 :
383else
384 exitcode=1
385 echo as_func_success failed.
386fi
387
388if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
391fi
392
393if as_func_ret_success; then
394 :
395else
396 exitcode=1
397 echo as_func_ret_success failed.
398fi
399
400if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
403fi
404
405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406 :
407else
408 exitcode=1
409 echo positional parameters were not saved.
410fi
411
412test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
416 echo message
417}
418
419
420
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
432 # case at line end.
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
Reid Spencera773bd52006-08-04 18:18:08 +0000436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
John Criswell0c38eaf2003-09-10 15:17:25 +0000440 sed '
Reid Spencera773bd52006-08-04 18:18:08 +0000441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
John Criswell0c38eaf2003-09-10 15:17:25 +0000445 N
Reid Spencera773bd52006-08-04 18:18:08 +0000446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell0c38eaf2003-09-10 15:17:25 +0000448 t loop
Reid Spencera773bd52006-08-04 18:18:08 +0000449 s/-\n.*//
John Criswell0c38eaf2003-09-10 15:17:25 +0000450 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +0000451 chmod +x "$as_me.lineno" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
John Criswell0c38eaf2003-09-10 15:17:25 +0000454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +0000457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
John Criswell0c38eaf2003-09-10 15:17:25 +0000459 # Exit status is that of the last command.
460 exit
461}
462
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000463
464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466else
467 as_dirname=false
468fi
469
Reid Spencera773bd52006-08-04 18:18:08 +0000470ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000471case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +0000472-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000473 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +0000474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000475 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +0000476 esac;;
477*)
478 ECHO_N='-n';;
John Criswell0c38eaf2003-09-10 15:17:25 +0000479esac
480
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000481if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
483 as_expr=expr
484else
485 as_expr=false
486fi
487
John Criswell0c38eaf2003-09-10 15:17:25 +0000488rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +0000489if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491else
492 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000493 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +0000494fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000495echo >conf$$.file
496if ln -s conf$$.file conf$$ 2>/dev/null; then
497 as_ln_s='ln -s'
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000503 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000504elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
John Criswell0c38eaf2003-09-10 15:17:25 +0000506else
507 as_ln_s='cp -p'
508fi
Reid Spencera773bd52006-08-04 18:18:08 +0000509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +0000511
512if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000513 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +0000514else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000515 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000516 as_mkdir_p=false
517fi
518
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000519# Find out whether ``test -x'' works. Don't use a zero-byte file, as
520# systems may use methods other than mode bits to determine executability.
521cat >conf$$.file <<_ASEOF
522#! /bin/sh
523exit 0
524_ASEOF
525chmod +x conf$$.file
526if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +0000528else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000529 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +0000530fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000531rm -f conf$$.file
John Criswell0c38eaf2003-09-10 15:17:25 +0000532
533# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000535
536# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000538
539
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000540
541exec 7<&0 </dev/null 6>&1
Reid Spencera773bd52006-08-04 18:18:08 +0000542
John Criswell7a73b802003-06-30 21:59:07 +0000543# Name of the host.
544# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545# so uname gets run too.
546ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
John Criswell7a73b802003-06-30 21:59:07 +0000548#
549# Initializations.
550#
551ac_default_prefix=/usr/local
Reid Spencera773bd52006-08-04 18:18:08 +0000552ac_clean_files=
John Criswell0c38eaf2003-09-10 15:17:25 +0000553ac_config_libobj_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000554LIBOBJS=
John Criswell7a73b802003-06-30 21:59:07 +0000555cross_compiling=no
556subdirs=
557MFLAGS=
558MAKEFLAGS=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000559SHELL=${CONFIG_SHELL-/bin/sh}
John Criswell7a73b802003-06-30 21:59:07 +0000560
John Criswell7a73b802003-06-30 21:59:07 +0000561# Identity of this package.
Reid Spencerabec8f92004-10-27 23:03:44 +0000562PACKAGE_NAME='llvm'
Reid Spencer2b51a082004-08-04 00:34:49 +0000563PACKAGE_TARNAME='-llvm-'
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
Daniel Dunbardd464df2010-05-10 20:11:56 +0000693ENABLE_TIMESTAMPS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000694TARGETS_TO_BUILD
695LLVM_ENUM_TARGETS
696LLVM_ENUM_ASM_PRINTERS
697LLVM_ENUM_ASM_PARSERS
698LLVM_ENUM_DISASSEMBLERS
699ENABLE_CBE_PRINTF_A
Daniel Dunbar98515672010-02-23 10:00:49 +0000700CLANGPATH
701CLANGXXPATH
702ENABLE_BUILT_CLANG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000703OPTIMIZE_OPTION
704EXTRA_OPTIONS
705BINUTILS_INCDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000706CXX
707CXXFLAGS
708ac_ct_CXX
709NM
710ifGNUmake
711LN_S
712CMP
713CP
714DATE
715FIND
716MKDIR
717MV
718RANLIB
719AR
720RM
721SED
722TAR
723BINPWD
724GRAPHVIZ
725DOT
726FDP
727NEATO
728TWOPI
729CIRCO
730GV
731DOTTY
732PERL
733HAVE_PERL
734INSTALL_PROGRAM
735INSTALL_SCRIPT
736INSTALL_DATA
737BZIP2
mike-m68cb3192010-05-06 23:45:43 +0000738CAT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000739DOXYGEN
740GROFF
741GZIP
742POD2HTML
743POD2MAN
mike-m68cb3192010-05-06 23:45:43 +0000744PDFROFF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000745RUNTEST
746TCLSH
747ZIP
748OCAMLC
749OCAMLOPT
750OCAMLDEP
751OCAMLDOC
752GAS
Dan Gohmanda612d62010-06-01 14:56:56 +0000753HAVE_LINK_VERSION_SCRIPT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000754INSTALL_LTDL_TRUE
755INSTALL_LTDL_FALSE
756CONVENIENCE_LTDL_TRUE
757CONVENIENCE_LTDL_FALSE
758LIBADD_DL
759LLVMGCCCOMMAND
760LLVMGXXCOMMAND
761LLVMGCC
762LLVMGXX
Daniel Dunbar98515672010-02-23 10:00:49 +0000763LLVMCC_OPTION
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000764NO_VARIADIC_MACROS
765NO_MISSING_FIELD_INITIALIZERS
766USE_UDIS86
767USE_OPROFILE
768HAVE_PTHREAD
769HUGE_VAL_SANITY
770MMAP_FILE
771LLVMCC1
772LLVMCC1PLUS
773LLVMGCCDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000774LLVMGCC_LANGS
775SHLIBEXT
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000776SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000777LLVM_PREFIX
778LLVM_BINDIR
779LLVM_LIBDIR
780LLVM_DATADIR
781LLVM_DOCSDIR
782LLVM_ETCDIR
783LLVM_INCLUDEDIR
784LLVM_INFODIR
785LLVM_MANDIR
786LLVM_CONFIGTIME
787BINDINGS_TO_BUILD
788ALL_BINDINGS
789OCAML_LIBDIR
790ENABLE_VISIBILITY_INLINES_HIDDEN
791RPATH
792RDYNAMIC
793LIBOBJS
794LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000795ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000796 ac_precious_vars='build_alias
797host_alias
798target_alias
799CC
800CFLAGS
801LDFLAGS
802CPPFLAGS
803CPP
804CXX
805CXXFLAGS
Torok Edwin871384f2010-01-26 08:50:50 +0000806CCC'
John Criswell0157f502010-03-19 21:31:39 +0000807ac_subdirs_all='projects/llvm-gcc
808projects/test-suite
809projects/llvm-test
810projects/poolalloc
811projects/llvm-poolalloc
812projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000813projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000814projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000815projects/llvm-reopt
Reid Spencera773bd52006-08-04 18:18:08 +0000816projects/llvm-java
817projects/llvm-tv
John Criswell7def2932010-02-25 22:57:19 +0000818projects/safecode
Reid Spencera773bd52006-08-04 18:18:08 +0000819projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000820
821# Initialize some variables set by options.
822ac_init_help=
823ac_init_version=false
824# The variables have the same names as the options, with
825# dashes changed to underlines.
826cache_file=/dev/null
827exec_prefix=NONE
828no_create=
829no_recursion=
830prefix=NONE
831program_prefix=NONE
832program_suffix=NONE
833program_transform_name=s,x,x,
834silent=
835site=
836srcdir=
837verbose=
838x_includes=NONE
839x_libraries=NONE
840
841# Installation directory options.
842# These are left unexpanded so users can "make install exec_prefix=/foo"
843# and all the variables that are supposed to be based on exec_prefix
844# by default will actually change.
845# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000846# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000847bindir='${exec_prefix}/bin'
848sbindir='${exec_prefix}/sbin'
849libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000850datarootdir='${prefix}/share'
851datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000852sysconfdir='${prefix}/etc'
853sharedstatedir='${prefix}/com'
854localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000855includedir='${prefix}/include'
856oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000857docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
858infodir='${datarootdir}/info'
859htmldir='${docdir}'
860dvidir='${docdir}'
861pdfdir='${docdir}'
862psdir='${docdir}'
863libdir='${exec_prefix}/lib'
864localedir='${datarootdir}/locale'
865mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000866
867ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000868ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000869for ac_option
870do
871 # If the previous option needs an argument, assign it.
872 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000873 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000874 ac_prev=
875 continue
876 fi
877
Reid Spencera773bd52006-08-04 18:18:08 +0000878 case $ac_option in
879 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
880 *) ac_optarg=yes ;;
881 esac
John Criswell7a73b802003-06-30 21:59:07 +0000882
883 # Accept the important Cygnus configure options, so we can diagnose typos.
884
Reid Spencera773bd52006-08-04 18:18:08 +0000885 case $ac_dashdash$ac_option in
886 --)
887 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000888
889 -bindir | --bindir | --bindi | --bind | --bin | --bi)
890 ac_prev=bindir ;;
891 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
892 bindir=$ac_optarg ;;
893
894 -build | --build | --buil | --bui | --bu)
895 ac_prev=build_alias ;;
896 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
897 build_alias=$ac_optarg ;;
898
899 -cache-file | --cache-file | --cache-fil | --cache-fi \
900 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
901 ac_prev=cache_file ;;
902 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
903 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
904 cache_file=$ac_optarg ;;
905
906 --config-cache | -C)
907 cache_file=config.cache ;;
908
Reid Spencera773bd52006-08-04 18:18:08 +0000909 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000910 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000911 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000912 datadir=$ac_optarg ;;
913
Reid Spencera773bd52006-08-04 18:18:08 +0000914 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
915 | --dataroo | --dataro | --datar)
916 ac_prev=datarootdir ;;
917 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
918 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
919 datarootdir=$ac_optarg ;;
920
John Criswell7a73b802003-06-30 21:59:07 +0000921 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000922 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000923 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000924 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
925 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
926 { (exit 1); exit 1; }; }
927 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
928 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000929
930 -docdir | --docdir | --docdi | --doc | --do)
931 ac_prev=docdir ;;
932 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
933 docdir=$ac_optarg ;;
934
935 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
936 ac_prev=dvidir ;;
937 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
938 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000939
940 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000941 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000942 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000943 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
944 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
945 { (exit 1); exit 1; }; }
946 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
947 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000948
949 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
950 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
951 | --exec | --exe | --ex)
952 ac_prev=exec_prefix ;;
953 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
954 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
955 | --exec=* | --exe=* | --ex=*)
956 exec_prefix=$ac_optarg ;;
957
958 -gas | --gas | --ga | --g)
959 # Obsolete; use --with-gas.
960 with_gas=yes ;;
961
962 -help | --help | --hel | --he | -h)
963 ac_init_help=long ;;
964 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
965 ac_init_help=recursive ;;
966 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
967 ac_init_help=short ;;
968
969 -host | --host | --hos | --ho)
970 ac_prev=host_alias ;;
971 -host=* | --host=* | --hos=* | --ho=*)
972 host_alias=$ac_optarg ;;
973
Reid Spencera773bd52006-08-04 18:18:08 +0000974 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
975 ac_prev=htmldir ;;
976 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
977 | --ht=*)
978 htmldir=$ac_optarg ;;
979
John Criswell7a73b802003-06-30 21:59:07 +0000980 -includedir | --includedir | --includedi | --included | --include \
981 | --includ | --inclu | --incl | --inc)
982 ac_prev=includedir ;;
983 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
984 | --includ=* | --inclu=* | --incl=* | --inc=*)
985 includedir=$ac_optarg ;;
986
987 -infodir | --infodir | --infodi | --infod | --info | --inf)
988 ac_prev=infodir ;;
989 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
990 infodir=$ac_optarg ;;
991
992 -libdir | --libdir | --libdi | --libd)
993 ac_prev=libdir ;;
994 -libdir=* | --libdir=* | --libdi=* | --libd=*)
995 libdir=$ac_optarg ;;
996
997 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
998 | --libexe | --libex | --libe)
999 ac_prev=libexecdir ;;
1000 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1001 | --libexe=* | --libex=* | --libe=*)
1002 libexecdir=$ac_optarg ;;
1003
Reid Spencera773bd52006-08-04 18:18:08 +00001004 -localedir | --localedir | --localedi | --localed | --locale)
1005 ac_prev=localedir ;;
1006 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1007 localedir=$ac_optarg ;;
1008
John Criswell7a73b802003-06-30 21:59:07 +00001009 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001010 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001011 ac_prev=localstatedir ;;
1012 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001013 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001014 localstatedir=$ac_optarg ;;
1015
1016 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1017 ac_prev=mandir ;;
1018 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1019 mandir=$ac_optarg ;;
1020
1021 -nfp | --nfp | --nf)
1022 # Obsolete; use --without-fp.
1023 with_fp=no ;;
1024
1025 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1026 | --no-cr | --no-c | -n)
1027 no_create=yes ;;
1028
1029 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1030 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1031 no_recursion=yes ;;
1032
1033 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1034 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1035 | --oldin | --oldi | --old | --ol | --o)
1036 ac_prev=oldincludedir ;;
1037 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1038 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1039 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1040 oldincludedir=$ac_optarg ;;
1041
1042 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1043 ac_prev=prefix ;;
1044 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1045 prefix=$ac_optarg ;;
1046
1047 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1048 | --program-pre | --program-pr | --program-p)
1049 ac_prev=program_prefix ;;
1050 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1051 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1052 program_prefix=$ac_optarg ;;
1053
1054 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1055 | --program-suf | --program-su | --program-s)
1056 ac_prev=program_suffix ;;
1057 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1058 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1059 program_suffix=$ac_optarg ;;
1060
1061 -program-transform-name | --program-transform-name \
1062 | --program-transform-nam | --program-transform-na \
1063 | --program-transform-n | --program-transform- \
1064 | --program-transform | --program-transfor \
1065 | --program-transfo | --program-transf \
1066 | --program-trans | --program-tran \
1067 | --progr-tra | --program-tr | --program-t)
1068 ac_prev=program_transform_name ;;
1069 -program-transform-name=* | --program-transform-name=* \
1070 | --program-transform-nam=* | --program-transform-na=* \
1071 | --program-transform-n=* | --program-transform-=* \
1072 | --program-transform=* | --program-transfor=* \
1073 | --program-transfo=* | --program-transf=* \
1074 | --program-trans=* | --program-tran=* \
1075 | --progr-tra=* | --program-tr=* | --program-t=*)
1076 program_transform_name=$ac_optarg ;;
1077
Reid Spencera773bd52006-08-04 18:18:08 +00001078 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1079 ac_prev=pdfdir ;;
1080 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1081 pdfdir=$ac_optarg ;;
1082
1083 -psdir | --psdir | --psdi | --psd | --ps)
1084 ac_prev=psdir ;;
1085 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1086 psdir=$ac_optarg ;;
1087
John Criswell7a73b802003-06-30 21:59:07 +00001088 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1089 | -silent | --silent | --silen | --sile | --sil)
1090 silent=yes ;;
1091
1092 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1093 ac_prev=sbindir ;;
1094 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1095 | --sbi=* | --sb=*)
1096 sbindir=$ac_optarg ;;
1097
1098 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1099 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1100 | --sharedst | --shareds | --shared | --share | --shar \
1101 | --sha | --sh)
1102 ac_prev=sharedstatedir ;;
1103 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1104 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1105 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1106 | --sha=* | --sh=*)
1107 sharedstatedir=$ac_optarg ;;
1108
1109 -site | --site | --sit)
1110 ac_prev=site ;;
1111 -site=* | --site=* | --sit=*)
1112 site=$ac_optarg ;;
1113
1114 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1115 ac_prev=srcdir ;;
1116 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1117 srcdir=$ac_optarg ;;
1118
1119 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1120 | --syscon | --sysco | --sysc | --sys | --sy)
1121 ac_prev=sysconfdir ;;
1122 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1123 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1124 sysconfdir=$ac_optarg ;;
1125
1126 -target | --target | --targe | --targ | --tar | --ta | --t)
1127 ac_prev=target_alias ;;
1128 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1129 target_alias=$ac_optarg ;;
1130
1131 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1132 verbose=yes ;;
1133
1134 -version | --version | --versio | --versi | --vers | -V)
1135 ac_init_version=: ;;
1136
1137 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001138 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001139 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001140 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1141 { echo "$as_me: error: invalid package name: $ac_package" >&2
1142 { (exit 1); exit 1; }; }
1143 ac_package=`echo $ac_package| sed 's/-/_/g'`
1144 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001145
1146 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001147 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001148 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001149 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1150 { echo "$as_me: error: invalid package name: $ac_package" >&2
1151 { (exit 1); exit 1; }; }
1152 ac_package=`echo $ac_package | sed 's/-/_/g'`
1153 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001154
1155 --x)
1156 # Obsolete; use --with-x.
1157 with_x=yes ;;
1158
1159 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1160 | --x-incl | --x-inc | --x-in | --x-i)
1161 ac_prev=x_includes ;;
1162 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1163 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1164 x_includes=$ac_optarg ;;
1165
1166 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1167 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1168 ac_prev=x_libraries ;;
1169 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1170 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1171 x_libraries=$ac_optarg ;;
1172
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001173 -*) { echo "$as_me: error: unrecognized option: $ac_option
1174Try \`$0 --help' for more information." >&2
1175 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001176 ;;
1177
1178 *=*)
1179 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1180 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001181 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1182 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1183 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001184 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001185 export $ac_envvar ;;
1186
1187 *)
1188 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001189 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001190 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001191 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001192 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1193 ;;
1194
1195 esac
1196done
1197
1198if test -n "$ac_prev"; then
1199 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001200 { echo "$as_me: error: missing argument to $ac_option" >&2
1201 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001202fi
1203
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001204# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001205for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1206 datadir sysconfdir sharedstatedir localstatedir includedir \
1207 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1208 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001209do
Reid Spencera773bd52006-08-04 18:18:08 +00001210 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001211 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001212 [\\/$]* | ?:[\\/]* ) continue;;
1213 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001214 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001215 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1216 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001217done
1218
1219# There might be people who depend on the old broken behavior: `$host'
1220# used to hold the argument of --host etc.
1221# FIXME: To remove some day.
1222build=$build_alias
1223host=$host_alias
1224target=$target_alias
1225
1226# FIXME: To remove some day.
1227if test "x$host_alias" != x; then
1228 if test "x$build_alias" = x; then
1229 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001230 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001231 If a cross compiler is detected then cross compile mode will be used." >&2
1232 elif test "x$build_alias" != "x$host_alias"; then
1233 cross_compiling=yes
1234 fi
1235fi
1236
1237ac_tool_prefix=
1238test -n "$host_alias" && ac_tool_prefix=$host_alias-
1239
1240test "$silent" = yes && exec 6>/dev/null
1241
1242
Reid Spencera773bd52006-08-04 18:18:08 +00001243ac_pwd=`pwd` && test -n "$ac_pwd" &&
1244ac_ls_di=`ls -di .` &&
1245ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001246 { echo "$as_me: error: Working directory cannot be determined" >&2
1247 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001248test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001249 { echo "$as_me: error: pwd does not report name of working directory" >&2
1250 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001251
1252
John Criswell7a73b802003-06-30 21:59:07 +00001253# Find the source files, if location was not specified.
1254if test -z "$srcdir"; then
1255 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001256 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001257 ac_confdir=`$as_dirname -- "$0" ||
1258$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1259 X"$0" : 'X\(//\)[^/]' \| \
1260 X"$0" : 'X\(//\)$' \| \
1261 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1262echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1264 s//\1/
1265 q
1266 }
1267 /^X\(\/\/\)[^/].*/{
1268 s//\1/
1269 q
1270 }
1271 /^X\(\/\/\)$/{
1272 s//\1/
1273 q
1274 }
1275 /^X\(\/\).*/{
1276 s//\1/
1277 q
1278 }
1279 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001280 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001281 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001282 srcdir=..
1283 fi
1284else
1285 ac_srcdir_defaulted=no
1286fi
Reid Spencera773bd52006-08-04 18:18:08 +00001287if test ! -r "$srcdir/$ac_unique_file"; then
1288 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001289 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1290 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001291fi
Reid Spencera773bd52006-08-04 18:18:08 +00001292ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1293ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001294 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1295 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001296 pwd)`
1297# When building in place, set srcdir=.
1298if test "$ac_abs_confdir" = "$ac_pwd"; then
1299 srcdir=.
1300fi
1301# Remove unnecessary trailing slashes from srcdir.
1302# Double slashes in file names in object file debugging info
1303# mess up M-x gdb in Emacs.
1304case $srcdir in
1305*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1306esac
1307for ac_var in $ac_precious_vars; do
1308 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_env_${ac_var}_value=\$${ac_var}
1310 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1312done
John Criswell7a73b802003-06-30 21:59:07 +00001313
1314#
1315# Report the --help message.
1316#
1317if test "$ac_init_help" = "long"; then
1318 # Omit some internal or obsolete options to make the list less imposing.
1319 # This message is too long to be a string in the A/UX 3.1 sh.
1320 cat <<_ACEOF
Tanya Lattnerdc29dff2010-03-19 21:22:13 +00001321\`configure' configures llvm 2.8svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001322
1323Usage: $0 [OPTION]... [VAR=VALUE]...
1324
1325To assign environment variables (e.g., CC, CFLAGS...), specify them as
1326VAR=VALUE. See below for descriptions of some of the useful variables.
1327
1328Defaults for the options are specified in brackets.
1329
1330Configuration:
1331 -h, --help display this help and exit
1332 --help=short display options specific to this package
1333 --help=recursive display the short help of all the included packages
1334 -V, --version display version information and exit
1335 -q, --quiet, --silent do not print \`checking...' messages
1336 --cache-file=FILE cache test results in FILE [disabled]
1337 -C, --config-cache alias for \`--cache-file=config.cache'
1338 -n, --no-create do not create output files
1339 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1340
John Criswell7a73b802003-06-30 21:59:07 +00001341Installation directories:
1342 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001343 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001344 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001345 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001346
1347By default, \`make install' will install all the files in
1348\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1349an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1350for instance \`--prefix=\$HOME'.
1351
1352For better control, use the options below.
1353
1354Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001355 --bindir=DIR user executables [EPREFIX/bin]
1356 --sbindir=DIR system admin executables [EPREFIX/sbin]
1357 --libexecdir=DIR program executables [EPREFIX/libexec]
1358 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1359 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1360 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1361 --libdir=DIR object code libraries [EPREFIX/lib]
1362 --includedir=DIR C header files [PREFIX/include]
1363 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1364 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1365 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1366 --infodir=DIR info documentation [DATAROOTDIR/info]
1367 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1368 --mandir=DIR man documentation [DATAROOTDIR/man]
1369 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1370 --htmldir=DIR html documentation [DOCDIR]
1371 --dvidir=DIR dvi documentation [DOCDIR]
1372 --pdfdir=DIR pdf documentation [DOCDIR]
1373 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001374_ACEOF
1375
1376 cat <<\_ACEOF
1377
1378System types:
1379 --build=BUILD configure for building on BUILD [guessed]
1380 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1381 --target=TARGET configure for building compilers for TARGET [HOST]
1382_ACEOF
1383fi
1384
1385if test -n "$ac_init_help"; then
1386 case $ac_init_help in
Tanya Lattnerdc29dff2010-03-19 21:22:13 +00001387 short | recursive ) echo "Configuration of llvm 2.8svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001388 esac
1389 cat <<\_ACEOF
1390
1391Optional Features:
1392 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1393 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001394 --enable-optimized Compile with optimizations enabled (default is NO)
1395 --enable-profiling Compile with profiling enabled (default is NO)
1396 --enable-assertions Compile with assertion checks enabled (default is
1397 YES)
David Greenea696d242007-06-28 19:36:08 +00001398 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001399 Compile with expensive debug checks enabled (default
1400 is NO)
1401 --enable-debug-runtime Build runtime libs with debug symbols (default is
1402 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001403 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1404 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001405 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001406 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001407 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001408 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001409 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001410 --enable-shared Build a shared library and link tools against it
1411 (default is NO)
Daniel Dunbardd464df2010-05-10 20:11:56 +00001412 --enable-timestamps Enable embedding timestamp information in build
1413 (default is YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001414 --enable-targets Build specific host targets: all or
1415 target1,target2,... Valid targets are: host, x86,
1416 x86_64, sparc, powerpc, alpha, arm, mips, spu,
Chris Lattner885b6612010-08-28 16:33:36 +00001417 pic16, xcore, msp430, systemz, blackfin, cbe,
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001418 and cpp (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001419 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1420 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001421 --enable-bindings Build specific language bindings:
1422 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001423 --enable-libffi Check for the presence of libffi (default is NO)
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
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001985 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001986 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001987 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00001988 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001989 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001990 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001991 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001992;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001993 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00001994 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001995 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001996 ;;
John Criswell7def2932010-02-25 22:57:19 +00001997 safecode) subdirs="$subdirs projects/safecode"
1998 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001999 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002000 ;;
John Criswell52c02862010-03-25 13:59:09 +00002001 llvm-gcc) ;;
2002 test-suite) ;;
2003 llvm-test) ;;
2004 poolalloc) ;;
2005 llvm-poolalloc) ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002006 *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002007 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2008echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002009 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002010 esac
John Criswell33a911a2003-11-25 20:36:46 +00002011 fi
2012done
John Criswell559a6c12003-09-30 16:31:48 +00002013
John Criswell7a73b802003-06-30 21:59:07 +00002014
2015# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002016$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002017 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2018echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2019 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002020
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002021{ echo "$as_me:$LINENO: checking build system type" >&5
2022echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2023if test "${ac_cv_build+set}" = set; then
2024 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002025else
Reid Spencera773bd52006-08-04 18:18:08 +00002026 ac_build_alias=$build_alias
2027test "x$ac_build_alias" = x &&
2028 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2029test "x$ac_build_alias" = x &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002030 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2031echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2032 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002033ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002034 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2035echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2036 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002037
2038fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002039{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2040echo "${ECHO_T}$ac_cv_build" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002041case $ac_cv_build in
2042*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002043*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2044echo "$as_me: error: invalid value of canonical build" >&2;}
2045 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002046esac
John Criswell7a73b802003-06-30 21:59:07 +00002047build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002048ac_save_IFS=$IFS; IFS='-'
2049set x $ac_cv_build
2050shift
2051build_cpu=$1
2052build_vendor=$2
2053shift; shift
2054# Remember, the first character of IFS is used to create $*,
2055# except with old shells:
2056build_os=$*
2057IFS=$ac_save_IFS
2058case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002059
2060
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002061{ echo "$as_me:$LINENO: checking host system type" >&5
2062echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2063if test "${ac_cv_host+set}" = set; then
2064 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002065else
Reid Spencera773bd52006-08-04 18:18:08 +00002066 if test "x$host_alias" = x; then
2067 ac_cv_host=$ac_cv_build
2068else
2069 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002070 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2071echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2072 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002073fi
John Criswell7a73b802003-06-30 21:59:07 +00002074
2075fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002076{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2077echo "${ECHO_T}$ac_cv_host" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002078case $ac_cv_host in
2079*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002080*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2081echo "$as_me: error: invalid value of canonical host" >&2;}
2082 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002083esac
John Criswell7a73b802003-06-30 21:59:07 +00002084host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002085ac_save_IFS=$IFS; IFS='-'
2086set x $ac_cv_host
2087shift
2088host_cpu=$1
2089host_vendor=$2
2090shift; shift
2091# Remember, the first character of IFS is used to create $*,
2092# except with old shells:
2093host_os=$*
2094IFS=$ac_save_IFS
2095case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002096
2097
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002098{ echo "$as_me:$LINENO: checking target system type" >&5
2099echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2100if test "${ac_cv_target+set}" = set; then
2101 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002102else
Reid Spencera773bd52006-08-04 18:18:08 +00002103 if test "x$target_alias" = x; then
2104 ac_cv_target=$ac_cv_host
2105else
2106 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002107 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2108echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2109 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002110fi
John Criswell7a73b802003-06-30 21:59:07 +00002111
2112fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002113{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2114echo "${ECHO_T}$ac_cv_target" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002115case $ac_cv_target in
2116*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002117*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2118echo "$as_me: error: invalid value of canonical target" >&2;}
2119 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002120esac
John Criswell7a73b802003-06-30 21:59:07 +00002121target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002122ac_save_IFS=$IFS; IFS='-'
2123set x $ac_cv_target
2124shift
2125target_cpu=$1
2126target_vendor=$2
2127shift; shift
2128# Remember, the first character of IFS is used to create $*,
2129# except with old shells:
2130target_os=$*
2131IFS=$ac_save_IFS
2132case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002133
2134
2135# The aliases save the names the user supplied, while $host etc.
2136# will get canonicalized.
2137test -n "$target_alias" &&
2138 test "$program_prefix$program_suffix$program_transform_name" = \
2139 NONENONEs,x,x, &&
2140 program_prefix=${target_alias}-
2141
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002142{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2143echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2144if test "${llvm_cv_os_type+set}" = set; then
2145 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002146else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002147 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002148 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002149 llvm_cv_link_all_option="-Wl,--whole-archive"
2150 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002151 llvm_cv_os_type="AIX"
2152 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002153 *-*-irix*)
2154 llvm_cv_link_all_option="-Wl,--whole-archive"
2155 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2156 llvm_cv_os_type="IRIX"
2157 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002158 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002159 llvm_cv_link_all_option="-Wl,--whole-archive"
2160 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002161 llvm_cv_os_type="Cygwin"
2162 llvm_cv_platform_type="Unix" ;;
2163 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002164 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002165 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002166 llvm_cv_os_type="Darwin"
2167 llvm_cv_platform_type="Unix" ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00002168 *-*-minix*)
2169 llvm_cv_link_all_option="-Wl,-all_load"
2170 llvm_cv_no_link_all_option="-Wl,-noall_load"
2171 llvm_cv_os_type="Minix"
2172 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002173 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002174 llvm_cv_link_all_option="-Wl,--whole-archive"
2175 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002176 llvm_cv_os_type="FreeBSD"
2177 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002178 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002179 llvm_cv_link_all_option="-Wl,--whole-archive"
2180 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002181 llvm_cv_os_type="OpenBSD"
2182 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002183 *-*-netbsd*)
2184 llvm_cv_link_all_option="-Wl,--whole-archive"
2185 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2186 llvm_cv_os_type="NetBSD"
2187 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002188 *-*-dragonfly*)
2189 llvm_cv_link_all_option="-Wl,--whole-archive"
2190 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2191 llvm_cv_os_type="DragonFly"
2192 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002193 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002194 llvm_cv_link_all_option="-Wl,--whole-archive"
2195 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002196 llvm_cv_os_type="HP-UX"
2197 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002198 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002199 llvm_cv_link_all_option="-Wl,--whole-archive"
2200 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002201 llvm_cv_os_type="Interix"
2202 llvm_cv_platform_type="Unix" ;;
2203 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002204 llvm_cv_link_all_option="-Wl,--whole-archive"
2205 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002206 llvm_cv_os_type="Linux"
2207 llvm_cv_platform_type="Unix" ;;
2208 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002209 llvm_cv_link_all_option="-Wl,-z,allextract"
2210 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002211 llvm_cv_os_type="SunOS"
2212 llvm_cv_platform_type="Unix" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002213 *-*-auroraux*)
2214 llvm_cv_link_all_option="-Wl,-z,allextract"
2215 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2216 llvm_cv_os_type="AuroraUX"
2217 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002218 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002219 llvm_cv_link_all_option="-Wl,--whole-archive"
2220 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002221 llvm_cv_os_type="Win32"
2222 llvm_cv_platform_type="Win32" ;;
2223 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002224 llvm_cv_link_all_option="-Wl,--whole-archive"
2225 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002226 llvm_cv_os_type="MingW"
2227 llvm_cv_platform_type="Win32" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002228 *-*-haiku*)
2229 llvm_cv_link_all_option="-Wl,--whole-archive"
2230 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2231 llvm_cv_os_type="Haiku"
2232 llvm_cv_platform_type="Unix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002233 *-unknown-eabi*)
2234 llvm_cv_link_all_option="-Wl,--whole-archive"
2235 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2236 llvm_cv_os_type="Freestanding"
2237 llvm_cv_platform_type="Unix" ;;
2238 *-unknown-elf*)
2239 llvm_cv_link_all_option="-Wl,--whole-archive"
2240 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2241 llvm_cv_os_type="Freestanding"
2242 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002243 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002244 llvm_cv_link_all_option=""
2245 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002246 llvm_cv_os_type="Unknown"
2247 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002248esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002249fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002250{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2251echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002252
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002253{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2254echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2255if test "${llvm_cv_target_os_type+set}" = set; then
2256 echo $ECHO_N "(cached) $ECHO_C" >&6
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002257else
2258 case $target in
2259 *-*-aix*)
2260 llvm_cv_target_os_type="AIX" ;;
2261 *-*-irix*)
2262 llvm_cv_target_os_type="IRIX" ;;
2263 *-*-cygwin*)
2264 llvm_cv_target_os_type="Cygwin" ;;
2265 *-*-darwin*)
2266 llvm_cv_target_os_type="Darwin" ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00002267 *-*-minix*)
2268 llvm_cv_target_os_type="Minix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002269 *-*-freebsd*)
2270 llvm_cv_target_os_type="FreeBSD" ;;
2271 *-*-openbsd*)
2272 llvm_cv_target_os_type="OpenBSD" ;;
2273 *-*-netbsd*)
2274 llvm_cv_target_os_type="NetBSD" ;;
2275 *-*-dragonfly*)
2276 llvm_cv_target_os_type="DragonFly" ;;
2277 *-*-hpux*)
2278 llvm_cv_target_os_type="HP-UX" ;;
2279 *-*-interix*)
2280 llvm_cv_target_os_type="Interix" ;;
2281 *-*-linux*)
2282 llvm_cv_target_os_type="Linux" ;;
2283 *-*-solaris*)
2284 llvm_cv_target_os_type="SunOS" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002285 *-*-auroraux*)
2286 llvm_cv_target_os_type="AuroraUX" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002287 *-*-win32*)
2288 llvm_cv_target_os_type="Win32" ;;
2289 *-*-mingw*)
2290 llvm_cv_target_os_type="MingW" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002291 *-*-haiku*)
2292 llvm_cv_target_os_type="Haiku" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002293 *-unknown-eabi*)
2294 llvm_cv_target_os_type="Freestanding" ;;
2295 *)
2296 llvm_cv_target_os_type="Unknown" ;;
2297esac
2298fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002299{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2300echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002301
Reid Spencer7b3e8512004-12-24 06:29:05 +00002302if test "$llvm_cv_os_type" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002303 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2304echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2305 { (exit 1); exit 1; }; }
Reid Spencer886e9512004-08-31 01:34:10 +00002306fi
2307
Reid Spencer7b3e8512004-12-24 06:29:05 +00002308OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002309
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002310HOST_OS=$llvm_cv_os_type
2311
2312TARGET_OS=$llvm_cv_target_os_type
2313
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002314
Reid Spencera773bd52006-08-04 18:18:08 +00002315LINKALL=$llvm_cv_link_all_option
2316
2317NOLINKALL=$llvm_cv_no_link_all_option
2318
2319
Reid Spencer7b3e8512004-12-24 06:29:05 +00002320case $llvm_cv_platform_type in
2321 Unix)
2322
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002323cat >>confdefs.h <<\_ACEOF
2324#define LLVM_ON_UNIX 1
2325_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002326
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002327 LLVM_ON_UNIX=1
2328
2329 LLVM_ON_WIN32=0
2330
Reid Spencer7b3e8512004-12-24 06:29:05 +00002331 ;;
2332 Win32)
2333
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002334cat >>confdefs.h <<\_ACEOF
2335#define LLVM_ON_WIN32 1
2336_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002337
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002338 LLVM_ON_UNIX=0
2339
2340 LLVM_ON_WIN32=1
2341
Reid Spencer7b3e8512004-12-24 06:29:05 +00002342 ;;
2343esac
2344
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002345{ echo "$as_me:$LINENO: checking target architecture" >&5
2346echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2347if test "${llvm_cv_target_arch+set}" = set; then
2348 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002349else
2350 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002351 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002352 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002353 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2354 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002355 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Nick Lewyckyfa8ffc12009-04-18 18:11:26 +00002356 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002357 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00002358 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002359 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00002360 msp430-*) llvm_cv_target_arch="MSP430" ;;
Anton Korobeynikov4403b932009-07-16 13:27:25 +00002361 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00002362 bfin-*) llvm_cv_target_arch="Blackfin" ;;
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00002363 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002364 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002365esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002366fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002367{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2368echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002369
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002370if test "$llvm_cv_target_arch" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002371 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2372echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002373fi
John Criswell76595452003-07-01 22:07:39 +00002374
Nick Lewycky83fc4472009-09-29 05:48:51 +00002375# Determine the LLVM native architecture for the target
2376case "$llvm_cv_target_arch" in
2377 x86) LLVM_NATIVE_ARCH="X86" ;;
2378 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2379 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2380esac
2381
2382ARCH=$llvm_cv_target_arch
2383
2384
2385ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002386ac_cpp='$CPP $CPPFLAGS'
2387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2389ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002390if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002391 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2392set dummy ${ac_tool_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002393{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2394echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2395if test "${ac_cv_prog_CC+set}" = set; then
2396 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002397else
2398 if test -n "$CC"; then
2399 ac_cv_prog_CC="$CC" # Let the user override the test.
2400else
2401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2402for as_dir in $PATH
2403do
2404 IFS=$as_save_IFS
2405 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002406 for ac_exec_ext in '' $ac_executable_extensions; do
2407 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 +00002408 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002410 break 2
2411 fi
2412done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002413done
Reid Spencera773bd52006-08-04 18:18:08 +00002414IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002415
2416fi
2417fi
2418CC=$ac_cv_prog_CC
2419if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002420 { echo "$as_me:$LINENO: result: $CC" >&5
2421echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002422else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002423 { echo "$as_me:$LINENO: result: no" >&5
2424echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002425fi
2426
Reid Spencera773bd52006-08-04 18:18:08 +00002427
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002428fi
2429if test -z "$ac_cv_prog_CC"; then
2430 ac_ct_CC=$CC
2431 # Extract the first word of "gcc", so it can be a program name with args.
2432set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002433{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2434echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2435if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2436 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002437else
2438 if test -n "$ac_ct_CC"; then
2439 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2440else
2441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2442for as_dir in $PATH
2443do
2444 IFS=$as_save_IFS
2445 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002446 for ac_exec_ext in '' $ac_executable_extensions; do
2447 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 +00002448 ac_cv_prog_ac_ct_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002450 break 2
2451 fi
2452done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002453done
Reid Spencera773bd52006-08-04 18:18:08 +00002454IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002455
2456fi
2457fi
2458ac_ct_CC=$ac_cv_prog_ac_ct_CC
2459if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002460 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2461echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002462else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002463 { echo "$as_me:$LINENO: result: no" >&5
2464echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002465fi
2466
Reid Spencera773bd52006-08-04 18:18:08 +00002467 if test "x$ac_ct_CC" = x; then
2468 CC=""
2469 else
2470 case $cross_compiling:$ac_tool_warned in
2471yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002472{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2473whose name does not start with the host triplet. If you think this
2474configuration is useful to you, please write to autoconf@gnu.org." >&5
2475echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2476whose name does not start with the host triplet. If you think this
2477configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002478ac_tool_warned=yes ;;
2479esac
2480 CC=$ac_ct_CC
2481 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002482else
2483 CC="$ac_cv_prog_CC"
2484fi
2485
2486if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002487 if test -n "$ac_tool_prefix"; then
2488 # 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 +00002489set dummy ${ac_tool_prefix}cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002490{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2491echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2492if test "${ac_cv_prog_CC+set}" = set; then
2493 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002494else
2495 if test -n "$CC"; then
2496 ac_cv_prog_CC="$CC" # Let the user override the test.
2497else
2498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2499for as_dir in $PATH
2500do
2501 IFS=$as_save_IFS
2502 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002503 for ac_exec_ext in '' $ac_executable_extensions; do
2504 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 +00002505 ac_cv_prog_CC="${ac_tool_prefix}cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002507 break 2
2508 fi
2509done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002510done
Reid Spencera773bd52006-08-04 18:18:08 +00002511IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002512
2513fi
2514fi
2515CC=$ac_cv_prog_CC
2516if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002517 { echo "$as_me:$LINENO: result: $CC" >&5
2518echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002519else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002520 { echo "$as_me:$LINENO: result: no" >&5
2521echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002522fi
2523
Reid Spencera773bd52006-08-04 18:18:08 +00002524
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002525 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002526fi
2527if test -z "$CC"; then
2528 # Extract the first word of "cc", so it can be a program name with args.
2529set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002530{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2531echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2532if test "${ac_cv_prog_CC+set}" = set; then
2533 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002534else
2535 if test -n "$CC"; then
2536 ac_cv_prog_CC="$CC" # Let the user override the test.
2537else
2538 ac_prog_rejected=no
2539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540for as_dir in $PATH
2541do
2542 IFS=$as_save_IFS
2543 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002544 for ac_exec_ext in '' $ac_executable_extensions; do
2545 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 +00002546 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2547 ac_prog_rejected=yes
2548 continue
2549 fi
2550 ac_cv_prog_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002552 break 2
2553 fi
2554done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002555done
Reid Spencera773bd52006-08-04 18:18:08 +00002556IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002557
2558if test $ac_prog_rejected = yes; then
2559 # We found a bogon in the path, so make sure we never use it.
2560 set dummy $ac_cv_prog_CC
2561 shift
2562 if test $# != 0; then
2563 # We chose a different compiler from the bogus one.
2564 # However, it has the same basename, so the bogon will be chosen
2565 # first if we set CC to just the basename; use the full file name.
2566 shift
2567 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2568 fi
2569fi
2570fi
2571fi
2572CC=$ac_cv_prog_CC
2573if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002574 { echo "$as_me:$LINENO: result: $CC" >&5
2575echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002576else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002577 { echo "$as_me:$LINENO: result: no" >&5
2578echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002579fi
2580
Reid Spencera773bd52006-08-04 18:18:08 +00002581
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002582fi
2583if test -z "$CC"; then
2584 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002585 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002586 do
2587 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2588set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002589{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2590echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2591if test "${ac_cv_prog_CC+set}" = set; then
2592 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002593else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002594 if test -n "$CC"; then
2595 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002596else
2597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598for as_dir in $PATH
2599do
2600 IFS=$as_save_IFS
2601 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002602 for ac_exec_ext in '' $ac_executable_extensions; do
2603 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 +00002604 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002606 break 2
2607 fi
2608done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002609done
Reid Spencera773bd52006-08-04 18:18:08 +00002610IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002611
2612fi
2613fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002614CC=$ac_cv_prog_CC
2615if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002616 { echo "$as_me:$LINENO: result: $CC" >&5
2617echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002618else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002619 { echo "$as_me:$LINENO: result: no" >&5
2620echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002621fi
2622
Reid Spencera773bd52006-08-04 18:18:08 +00002623
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002624 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002625 done
2626fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002627if test -z "$CC"; then
2628 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002629 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002630do
2631 # Extract the first word of "$ac_prog", so it can be a program name with args.
2632set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002633{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2634echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2635if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2636 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002637else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002638 if test -n "$ac_ct_CC"; then
2639 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002640else
2641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2642for as_dir in $PATH
2643do
2644 IFS=$as_save_IFS
2645 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002646 for ac_exec_ext in '' $ac_executable_extensions; do
2647 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 +00002648 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002650 break 2
2651 fi
2652done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002653done
Reid Spencera773bd52006-08-04 18:18:08 +00002654IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002655
2656fi
2657fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002658ac_ct_CC=$ac_cv_prog_ac_ct_CC
2659if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002660 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2661echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002662else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002663 { echo "$as_me:$LINENO: result: no" >&5
2664echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002665fi
2666
Reid Spencera773bd52006-08-04 18:18:08 +00002667
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002668 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002669done
John Criswell7a73b802003-06-30 21:59:07 +00002670
Reid Spencera773bd52006-08-04 18:18:08 +00002671 if test "x$ac_ct_CC" = x; then
2672 CC=""
2673 else
2674 case $cross_compiling:$ac_tool_warned in
2675yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002676{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2677whose name does not start with the host triplet. If you think this
2678configuration is useful to you, please write to autoconf@gnu.org." >&5
2679echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2680whose name does not start with the host triplet. If you think this
2681configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002682ac_tool_warned=yes ;;
2683esac
2684 CC=$ac_ct_CC
2685 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002686fi
2687
John Criswell7a73b802003-06-30 21:59:07 +00002688fi
2689
2690
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002691test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2692See \`config.log' for more details." >&5
2693echo "$as_me: error: no acceptable C compiler found in \$PATH
2694See \`config.log' for more details." >&2;}
2695 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002696
John Criswell7a73b802003-06-30 21:59:07 +00002697# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002698echo "$as_me:$LINENO: checking for C compiler version" >&5
2699ac_compiler=`set X $ac_compile; echo $2`
2700{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002701case "(($ac_try" in
2702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2703 *) ac_try_echo=$ac_try;;
2704esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2706 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002707 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); }
2710{ (ac_try="$ac_compiler -v >&5"
2711case "(($ac_try" in
2712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2713 *) ac_try_echo=$ac_try;;
2714esac
2715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2716 (eval "$ac_compiler -v >&5") 2>&5
2717 ac_status=$?
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); }
2720{ (ac_try="$ac_compiler -V >&5"
2721case "(($ac_try" in
2722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2723 *) ac_try_echo=$ac_try;;
2724esac
2725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2726 (eval "$ac_compiler -V >&5") 2>&5
2727 ac_status=$?
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002730
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002731cat >conftest.$ac_ext <<_ACEOF
2732/* confdefs.h. */
2733_ACEOF
2734cat confdefs.h >>conftest.$ac_ext
2735cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002736/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002737
John Criswell7a73b802003-06-30 21:59:07 +00002738int
2739main ()
2740{
2741
2742 ;
2743 return 0;
2744}
2745_ACEOF
2746ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002747ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002748# Try to create an executable without -o first, disregard a.out.
2749# It will help us diagnose broken compilers, and finding out an intuition
2750# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002751{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2752echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2753ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2754#
2755# List of possible output files, starting from the most likely.
2756# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2757# only as a last resort. b.out is created by i960 compilers.
2758ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2759#
2760# The IRIX 6 linker writes into existing files which may not be
2761# executable, retaining their permissions. Remove them first so a
2762# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002763ac_rmfiles=
2764for ac_file in $ac_files
2765do
2766 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002767 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002768 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2769 esac
2770done
2771rm -f $ac_rmfiles
2772
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002773if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002774case "(($ac_try" in
2775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2776 *) ac_try_echo=$ac_try;;
2777esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002779 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002780 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002783 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2784# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2785# in a Makefile. We should not override ac_cv_exeext if it was cached,
2786# so that the user can short-circuit this test for compilers unknown to
2787# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002788for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002789do
2790 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002791 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002792 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002793 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002794 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002795 # We found the default executable, but exeext='' is most
2796 # certainly right.
2797 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002798 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002799 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002800 then :; else
2801 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2802 fi
2803 # We set ac_cv_exeext here because the later test for it is not
2804 # safe: cross compilers may not add the suffix if given an `-o'
2805 # argument, so we may need to know it at that point already.
2806 # Even if this section looks crufty: it has the advantage of
2807 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002808 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002809 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002810 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002811 esac
2812done
Reid Spencera773bd52006-08-04 18:18:08 +00002813test "$ac_cv_exeext" = no && ac_cv_exeext=
2814
John Criswell7a73b802003-06-30 21:59:07 +00002815else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002816 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002817sed 's/^/| /' conftest.$ac_ext >&5
2818
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002819{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2820See \`config.log' for more details." >&5
2821echo "$as_me: error: C compiler cannot create executables
2822See \`config.log' for more details." >&2;}
2823 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002824fi
John Criswell7a73b802003-06-30 21:59:07 +00002825
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002826ac_exeext=$ac_cv_exeext
2827{ echo "$as_me:$LINENO: result: $ac_file" >&5
2828echo "${ECHO_T}$ac_file" >&6; }
2829
2830# Check that the compiler produces executables we can run. If not, either
2831# the compiler is broken, or we cross compile.
2832{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2833echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2834# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2835# If not cross compiling, check that we can run a simple program.
2836if test "$cross_compiling" != yes; then
2837 if { ac_try='./$ac_file'
2838 { (case "(($ac_try" in
2839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2840 *) ac_try_echo=$ac_try;;
2841esac
2842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2843 (eval "$ac_try") 2>&5
2844 ac_status=$?
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); }; }; then
2847 cross_compiling=no
2848 else
2849 if test "$cross_compiling" = maybe; then
2850 cross_compiling=yes
2851 else
2852 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2853If you meant to cross compile, use \`--host'.
2854See \`config.log' for more details." >&5
2855echo "$as_me: error: cannot run C compiled programs.
2856If you meant to cross compile, use \`--host'.
2857See \`config.log' for more details." >&2;}
2858 { (exit 1); exit 1; }; }
2859 fi
2860 fi
2861fi
2862{ echo "$as_me:$LINENO: result: yes" >&5
2863echo "${ECHO_T}yes" >&6; }
2864
2865rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002866ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002867# Check that the compiler produces executables we can run. If not, either
2868# the compiler is broken, or we cross compile.
2869{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2870echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2871{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2872echo "${ECHO_T}$cross_compiling" >&6; }
2873
2874{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2875echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2876if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002877case "(($ac_try" in
2878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2879 *) ac_try_echo=$ac_try;;
2880esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002882 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002883 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002886 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2887# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2888# work properly (i.e., refer to `conftest.exe'), while it won't with
2889# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002890for ac_file in conftest.exe conftest conftest.*; do
2891 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002892 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002893 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002894 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002895 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002896 * ) break;;
2897 esac
2898done
2899else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002900 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2901See \`config.log' for more details." >&5
2902echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2903See \`config.log' for more details." >&2;}
2904 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002905fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002906
2907rm -f conftest$ac_cv_exeext
2908{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2909echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002910
2911rm -f conftest.$ac_ext
2912EXEEXT=$ac_cv_exeext
2913ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002914{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2915echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2916if test "${ac_cv_objext+set}" = set; then
2917 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002918else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002919 cat >conftest.$ac_ext <<_ACEOF
2920/* confdefs.h. */
2921_ACEOF
2922cat confdefs.h >>conftest.$ac_ext
2923cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002924/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002925
John Criswell7a73b802003-06-30 21:59:07 +00002926int
2927main ()
2928{
2929
2930 ;
2931 return 0;
2932}
2933_ACEOF
2934rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002935if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002936case "(($ac_try" in
2937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2938 *) ac_try_echo=$ac_try;;
2939esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002941 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002942 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002945 for ac_file in conftest.o conftest.obj conftest.*; do
2946 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002947 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002948 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002949 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2950 break;;
2951 esac
2952done
2953else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002954 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002955sed 's/^/| /' conftest.$ac_ext >&5
2956
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002957{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2958See \`config.log' for more details." >&5
2959echo "$as_me: error: cannot compute suffix of object files: cannot compile
2960See \`config.log' for more details." >&2;}
2961 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002962fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002963
John Criswell7a73b802003-06-30 21:59:07 +00002964rm -f conftest.$ac_cv_objext conftest.$ac_ext
2965fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002966{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2967echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002968OBJEXT=$ac_cv_objext
2969ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002970{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2971echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2972if test "${ac_cv_c_compiler_gnu+set}" = set; then
2973 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002974else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002975 cat >conftest.$ac_ext <<_ACEOF
2976/* confdefs.h. */
2977_ACEOF
2978cat confdefs.h >>conftest.$ac_ext
2979cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002980/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002981
John Criswell7a73b802003-06-30 21:59:07 +00002982int
2983main ()
2984{
2985#ifndef __GNUC__
2986 choke me
2987#endif
2988
2989 ;
2990 return 0;
2991}
2992_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002993rm -f conftest.$ac_objext
2994if { (ac_try="$ac_compile"
2995case "(($ac_try" in
2996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2997 *) ac_try_echo=$ac_try;;
2998esac
2999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3000 (eval "$ac_compile") 2>conftest.er1
3001 ac_status=$?
3002 grep -v '^ *+' conftest.er1 >conftest.err
3003 rm -f conftest.er1
3004 cat conftest.err >&5
3005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006 (exit $ac_status); } &&
3007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3008 { (case "(($ac_try" in
3009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3010 *) ac_try_echo=$ac_try;;
3011esac
3012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3013 (eval "$ac_try") 2>&5
3014 ac_status=$?
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); }; } &&
3017 { ac_try='test -s conftest.$ac_objext'
3018 { (case "(($ac_try" in
3019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020 *) ac_try_echo=$ac_try;;
3021esac
3022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3023 (eval "$ac_try") 2>&5
3024 ac_status=$?
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003027 ac_compiler_gnu=yes
3028else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003029 echo "$as_me: failed program was:" >&5
3030sed 's/^/| /' conftest.$ac_ext >&5
3031
3032 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003033fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003034
Reid Spencera773bd52006-08-04 18:18:08 +00003035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003036ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003037
3038fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003039{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3040echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3041GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003042ac_test_CFLAGS=${CFLAGS+set}
3043ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003044{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3045echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3046if test "${ac_cv_prog_cc_g+set}" = set; then
3047 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003048else
Reid Spencera773bd52006-08-04 18:18:08 +00003049 ac_save_c_werror_flag=$ac_c_werror_flag
3050 ac_c_werror_flag=yes
3051 ac_cv_prog_cc_g=no
3052 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003053 cat >conftest.$ac_ext <<_ACEOF
3054/* confdefs.h. */
3055_ACEOF
3056cat confdefs.h >>conftest.$ac_ext
3057cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003058/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003059
John Criswell7a73b802003-06-30 21:59:07 +00003060int
3061main ()
3062{
3063
3064 ;
3065 return 0;
3066}
3067_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003068rm -f conftest.$ac_objext
3069if { (ac_try="$ac_compile"
3070case "(($ac_try" in
3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072 *) ac_try_echo=$ac_try;;
3073esac
3074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3075 (eval "$ac_compile") 2>conftest.er1
3076 ac_status=$?
3077 grep -v '^ *+' conftest.er1 >conftest.err
3078 rm -f conftest.er1
3079 cat conftest.err >&5
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); } &&
3082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3083 { (case "(($ac_try" in
3084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085 *) ac_try_echo=$ac_try;;
3086esac
3087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3088 (eval "$ac_try") 2>&5
3089 ac_status=$?
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); }; } &&
3092 { ac_try='test -s conftest.$ac_objext'
3093 { (case "(($ac_try" in
3094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3095 *) ac_try_echo=$ac_try;;
3096esac
3097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3098 (eval "$ac_try") 2>&5
3099 ac_status=$?
3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003102 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003103else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003104 echo "$as_me: failed program was:" >&5
3105sed 's/^/| /' conftest.$ac_ext >&5
3106
3107 CFLAGS=""
3108 cat >conftest.$ac_ext <<_ACEOF
3109/* confdefs.h. */
3110_ACEOF
3111cat confdefs.h >>conftest.$ac_ext
3112cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003113/* end confdefs.h. */
3114
3115int
3116main ()
3117{
3118
3119 ;
3120 return 0;
3121}
3122_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003123rm -f conftest.$ac_objext
3124if { (ac_try="$ac_compile"
3125case "(($ac_try" in
3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127 *) ac_try_echo=$ac_try;;
3128esac
3129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3130 (eval "$ac_compile") 2>conftest.er1
3131 ac_status=$?
3132 grep -v '^ *+' conftest.er1 >conftest.err
3133 rm -f conftest.er1
3134 cat conftest.err >&5
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); } &&
3137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3138 { (case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3141esac
3142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143 (eval "$ac_try") 2>&5
3144 ac_status=$?
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); }; } &&
3147 { ac_try='test -s conftest.$ac_objext'
3148 { (case "(($ac_try" in
3149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150 *) ac_try_echo=$ac_try;;
3151esac
3152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3153 (eval "$ac_try") 2>&5
3154 ac_status=$?
3155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156 (exit $ac_status); }; }; then
3157 :
Torok Edwin871384f2010-01-26 08:50:50 +00003158else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003159 echo "$as_me: failed program was:" >&5
3160sed 's/^/| /' conftest.$ac_ext >&5
3161
3162 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00003163 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003164 cat >conftest.$ac_ext <<_ACEOF
3165/* confdefs.h. */
3166_ACEOF
3167cat confdefs.h >>conftest.$ac_ext
3168cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003169/* end confdefs.h. */
3170
3171int
3172main ()
3173{
3174
3175 ;
3176 return 0;
3177}
3178_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003179rm -f conftest.$ac_objext
3180if { (ac_try="$ac_compile"
3181case "(($ac_try" in
3182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3183 *) ac_try_echo=$ac_try;;
3184esac
3185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3186 (eval "$ac_compile") 2>conftest.er1
3187 ac_status=$?
3188 grep -v '^ *+' conftest.er1 >conftest.err
3189 rm -f conftest.er1
3190 cat conftest.err >&5
3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192 (exit $ac_status); } &&
3193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3194 { (case "(($ac_try" in
3195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196 *) ac_try_echo=$ac_try;;
3197esac
3198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3199 (eval "$ac_try") 2>&5
3200 ac_status=$?
3201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202 (exit $ac_status); }; } &&
3203 { ac_try='test -s conftest.$ac_objext'
3204 { (case "(($ac_try" in
3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206 *) ac_try_echo=$ac_try;;
3207esac
3208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3209 (eval "$ac_try") 2>&5
3210 ac_status=$?
3211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003213 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003214else
3215 echo "$as_me: failed program was:" >&5
3216sed 's/^/| /' conftest.$ac_ext >&5
3217
3218
John Criswell7a73b802003-06-30 21:59:07 +00003219fi
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
John Criswell7a73b802003-06-30 21:59:07 +00003222fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003223
Reid Spencera773bd52006-08-04 18:18:08 +00003224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3225fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003226
Reid Spencera773bd52006-08-04 18:18:08 +00003227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3228 ac_c_werror_flag=$ac_save_c_werror_flag
3229fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003230{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3231echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003232if test "$ac_test_CFLAGS" = set; then
3233 CFLAGS=$ac_save_CFLAGS
3234elif test $ac_cv_prog_cc_g = yes; then
3235 if test "$GCC" = yes; then
3236 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003237 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003238 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003239 fi
3240else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003241 if test "$GCC" = yes; then
3242 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003243 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003244 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003245 fi
3246fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003247{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3248echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3249if test "${ac_cv_prog_cc_c89+set}" = set; then
3250 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003251else
Reid Spencera773bd52006-08-04 18:18:08 +00003252 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003253ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003254cat >conftest.$ac_ext <<_ACEOF
3255/* confdefs.h. */
3256_ACEOF
3257cat confdefs.h >>conftest.$ac_ext
3258cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003259/* end confdefs.h. */
3260#include <stdarg.h>
3261#include <stdio.h>
3262#include <sys/types.h>
3263#include <sys/stat.h>
3264/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3265struct buf { int x; };
3266FILE * (*rcsopen) (struct buf *, struct stat *, int);
3267static char *e (p, i)
3268 char **p;
3269 int i;
3270{
3271 return p[i];
3272}
3273static char *f (char * (*g) (char **, int), char **p, ...)
3274{
3275 char *s;
3276 va_list v;
3277 va_start (v,p);
3278 s = g (p, va_arg (v,int));
3279 va_end (v);
3280 return s;
3281}
3282
3283/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3284 function prototypes and stuff, but not '\xHH' hex character constants.
3285 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003286 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003287 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3288 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003289 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003290int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3291
Reid Spencera773bd52006-08-04 18:18:08 +00003292/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3293 inside strings and character constants. */
3294#define FOO(x) 'x'
3295int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3296
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003297int test (int i, double x);
3298struct s1 {int (*f) (int a);};
3299struct s2 {int (*f) (double a);};
3300int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3301int argc;
3302char **argv;
3303int
3304main ()
3305{
3306return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3307 ;
3308 return 0;
3309}
3310_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003311for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3312 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003313do
3314 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003315 rm -f conftest.$ac_objext
3316if { (ac_try="$ac_compile"
3317case "(($ac_try" in
3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319 *) ac_try_echo=$ac_try;;
3320esac
3321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3322 (eval "$ac_compile") 2>conftest.er1
3323 ac_status=$?
3324 grep -v '^ *+' conftest.er1 >conftest.err
3325 rm -f conftest.er1
3326 cat conftest.err >&5
3327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); } &&
3329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3330 { (case "(($ac_try" in
3331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332 *) ac_try_echo=$ac_try;;
3333esac
3334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3335 (eval "$ac_try") 2>&5
3336 ac_status=$?
3337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338 (exit $ac_status); }; } &&
3339 { ac_try='test -s conftest.$ac_objext'
3340 { (case "(($ac_try" in
3341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3342 *) ac_try_echo=$ac_try;;
3343esac
3344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3345 (eval "$ac_try") 2>&5
3346 ac_status=$?
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003349 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003350else
3351 echo "$as_me: failed program was:" >&5
3352sed 's/^/| /' conftest.$ac_ext >&5
3353
3354
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003355fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003356
Reid Spencera773bd52006-08-04 18:18:08 +00003357rm -f core conftest.err conftest.$ac_objext
3358 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003359done
Reid Spencera773bd52006-08-04 18:18:08 +00003360rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003361CC=$ac_save_CC
3362
3363fi
Reid Spencera773bd52006-08-04 18:18:08 +00003364# AC_CACHE_VAL
3365case "x$ac_cv_prog_cc_c89" in
3366 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003367 { echo "$as_me:$LINENO: result: none needed" >&5
3368echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00003369 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003370 { echo "$as_me:$LINENO: result: unsupported" >&5
3371echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003372 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003373 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003374 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3375echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003376esac
3377
John Criswell0c38eaf2003-09-10 15:17:25 +00003378
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003379ac_ext=c
3380ac_cpp='$CPP $CPPFLAGS'
3381ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3382ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3383ac_compiler_gnu=$ac_cv_c_compiler_gnu
3384
3385
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003386ac_ext=c
3387ac_cpp='$CPP $CPPFLAGS'
3388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3390ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003391{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3392echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003393# On Suns, sometimes $CPP names a directory.
3394if test -n "$CPP" && test -d "$CPP"; then
3395 CPP=
3396fi
3397if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003398 if test "${ac_cv_prog_CPP+set}" = set; then
3399 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003400else
3401 # Double quotes because CPP needs to be expanded
3402 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3403 do
3404 ac_preproc_ok=false
3405for ac_c_preproc_warn_flag in '' yes
3406do
3407 # Use a header file that comes with gcc, so configuring glibc
3408 # with a fresh cross-compiler works.
3409 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3410 # <limits.h> exists even on freestanding compilers.
3411 # On the NeXT, cc -E runs the code through the compiler's parser,
3412 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003413 cat >conftest.$ac_ext <<_ACEOF
3414/* confdefs.h. */
3415_ACEOF
3416cat confdefs.h >>conftest.$ac_ext
3417cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003418/* end confdefs.h. */
3419#ifdef __STDC__
3420# include <limits.h>
3421#else
3422# include <assert.h>
3423#endif
3424 Syntax error
3425_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003426if { (ac_try="$ac_cpp conftest.$ac_ext"
3427case "(($ac_try" in
3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429 *) ac_try_echo=$ac_try;;
3430esac
3431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3432 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3433 ac_status=$?
3434 grep -v '^ *+' conftest.er1 >conftest.err
3435 rm -f conftest.er1
3436 cat conftest.err >&5
3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); } >/dev/null; then
3439 if test -s conftest.err; then
3440 ac_cpp_err=$ac_c_preproc_warn_flag
3441 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3442 else
3443 ac_cpp_err=
3444 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003445else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003446 ac_cpp_err=yes
3447fi
3448if test -z "$ac_cpp_err"; then
3449 :
3450else
3451 echo "$as_me: failed program was:" >&5
3452sed 's/^/| /' conftest.$ac_ext >&5
3453
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003454 # Broken: fails on valid input.
3455continue
3456fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003457
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003458rm -f conftest.err conftest.$ac_ext
3459
Reid Spencera773bd52006-08-04 18:18:08 +00003460 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003461 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003462 cat >conftest.$ac_ext <<_ACEOF
3463/* confdefs.h. */
3464_ACEOF
3465cat confdefs.h >>conftest.$ac_ext
3466cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003467/* end confdefs.h. */
3468#include <ac_nonexistent.h>
3469_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003470if { (ac_try="$ac_cpp conftest.$ac_ext"
3471case "(($ac_try" in
3472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3473 *) ac_try_echo=$ac_try;;
3474esac
3475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3476 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3477 ac_status=$?
3478 grep -v '^ *+' conftest.er1 >conftest.err
3479 rm -f conftest.er1
3480 cat conftest.err >&5
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); } >/dev/null; then
3483 if test -s conftest.err; then
3484 ac_cpp_err=$ac_c_preproc_warn_flag
3485 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3486 else
3487 ac_cpp_err=
3488 fi
3489else
3490 ac_cpp_err=yes
3491fi
3492if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003493 # Broken: success on invalid input.
3494continue
3495else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003496 echo "$as_me: failed program was:" >&5
3497sed 's/^/| /' conftest.$ac_ext >&5
3498
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003499 # Passes both tests.
3500ac_preproc_ok=:
3501break
3502fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003503
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003504rm -f conftest.err conftest.$ac_ext
3505
3506done
3507# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3508rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003509if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003510 break
3511fi
3512
3513 done
3514 ac_cv_prog_CPP=$CPP
3515
3516fi
3517 CPP=$ac_cv_prog_CPP
3518else
3519 ac_cv_prog_CPP=$CPP
3520fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003521{ echo "$as_me:$LINENO: result: $CPP" >&5
3522echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003523ac_preproc_ok=false
3524for ac_c_preproc_warn_flag in '' yes
3525do
3526 # Use a header file that comes with gcc, so configuring glibc
3527 # with a fresh cross-compiler works.
3528 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3529 # <limits.h> exists even on freestanding compilers.
3530 # On the NeXT, cc -E runs the code through the compiler's parser,
3531 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003532 cat >conftest.$ac_ext <<_ACEOF
3533/* confdefs.h. */
3534_ACEOF
3535cat confdefs.h >>conftest.$ac_ext
3536cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003537/* end confdefs.h. */
3538#ifdef __STDC__
3539# include <limits.h>
3540#else
3541# include <assert.h>
3542#endif
3543 Syntax error
3544_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003545if { (ac_try="$ac_cpp conftest.$ac_ext"
3546case "(($ac_try" in
3547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548 *) ac_try_echo=$ac_try;;
3549esac
3550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3551 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3552 ac_status=$?
3553 grep -v '^ *+' conftest.er1 >conftest.err
3554 rm -f conftest.er1
3555 cat conftest.err >&5
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); } >/dev/null; then
3558 if test -s conftest.err; then
3559 ac_cpp_err=$ac_c_preproc_warn_flag
3560 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3561 else
3562 ac_cpp_err=
3563 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003564else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003565 ac_cpp_err=yes
3566fi
3567if test -z "$ac_cpp_err"; then
3568 :
3569else
3570 echo "$as_me: failed program was:" >&5
3571sed 's/^/| /' conftest.$ac_ext >&5
3572
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003573 # Broken: fails on valid input.
3574continue
3575fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003576
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003577rm -f conftest.err conftest.$ac_ext
3578
Reid Spencera773bd52006-08-04 18:18:08 +00003579 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003580 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003581 cat >conftest.$ac_ext <<_ACEOF
3582/* confdefs.h. */
3583_ACEOF
3584cat confdefs.h >>conftest.$ac_ext
3585cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003586/* end confdefs.h. */
3587#include <ac_nonexistent.h>
3588_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003589if { (ac_try="$ac_cpp conftest.$ac_ext"
3590case "(($ac_try" in
3591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3592 *) ac_try_echo=$ac_try;;
3593esac
3594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3596 ac_status=$?
3597 grep -v '^ *+' conftest.er1 >conftest.err
3598 rm -f conftest.er1
3599 cat conftest.err >&5
3600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601 (exit $ac_status); } >/dev/null; then
3602 if test -s conftest.err; then
3603 ac_cpp_err=$ac_c_preproc_warn_flag
3604 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3605 else
3606 ac_cpp_err=
3607 fi
3608else
3609 ac_cpp_err=yes
3610fi
3611if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003612 # Broken: success on invalid input.
3613continue
3614else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003615 echo "$as_me: failed program was:" >&5
3616sed 's/^/| /' conftest.$ac_ext >&5
3617
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003618 # Passes both tests.
3619ac_preproc_ok=:
3620break
3621fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003622
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003623rm -f conftest.err conftest.$ac_ext
3624
3625done
3626# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3627rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003628if $ac_preproc_ok; then
3629 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003630else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003631 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3632See \`config.log' for more details." >&5
3633echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3634See \`config.log' for more details." >&2;}
3635 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003636fi
3637
John Criswell7a73b802003-06-30 21:59:07 +00003638ac_ext=c
3639ac_cpp='$CPP $CPPFLAGS'
3640ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3641ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3642ac_compiler_gnu=$ac_cv_c_compiler_gnu
3643
John Criswell7a73b802003-06-30 21:59:07 +00003644
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003645{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3646echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3647if test "${ac_cv_path_GREP+set}" = set; then
3648 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003649else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003650 # Extract the first word of "grep ggrep" to use in msg output
3651if test -z "$GREP"; then
3652set dummy grep ggrep; ac_prog_name=$2
3653if test "${ac_cv_path_GREP+set}" = set; then
3654 echo $ECHO_N "(cached) $ECHO_C" >&6
3655else
Reid Spencera773bd52006-08-04 18:18:08 +00003656 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003657# Loop through the user's path and test for each of PROGNAME-LIST
3658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003659for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003660do
3661 IFS=$as_save_IFS
3662 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003663 for ac_prog in grep ggrep; do
3664 for ac_exec_ext in '' $ac_executable_extensions; do
3665 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3666 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3667 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003668 # Check for GNU $ac_path_GREP
3669case `"$ac_path_GREP" --version 2>&1` in
3670*GNU*)
3671 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3672*)
3673 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003674 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003675 while :
3676 do
3677 cat "conftest.in" "conftest.in" >"conftest.tmp"
3678 mv "conftest.tmp" "conftest.in"
3679 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003680 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003681 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3682 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003683 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003684 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3685 # Best one so far, save it but keep looking for a better one
3686 ac_cv_path_GREP="$ac_path_GREP"
3687 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003688 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003689 # 10*(2^10) chars as input seems more than enough
3690 test $ac_count -gt 10 && break
3691 done
3692 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3693esac
3694
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003695
3696 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003697 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003698done
3699
3700done
Reid Spencera773bd52006-08-04 18:18:08 +00003701IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003702
3703
3704fi
3705
3706GREP="$ac_cv_path_GREP"
3707if test -z "$GREP"; then
3708 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3709echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3710 { (exit 1); exit 1; }; }
3711fi
3712
Reid Spencera773bd52006-08-04 18:18:08 +00003713else
3714 ac_cv_path_GREP=$GREP
3715fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003716
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003717
Reid Spencera773bd52006-08-04 18:18:08 +00003718fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003719{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3720echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003721 GREP="$ac_cv_path_GREP"
3722
3723
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003724{ echo "$as_me:$LINENO: checking for egrep" >&5
3725echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3726if test "${ac_cv_path_EGREP+set}" = set; then
3727 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00003728else
3729 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3730 then ac_cv_path_EGREP="$GREP -E"
3731 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003732 # Extract the first word of "egrep" to use in msg output
3733if test -z "$EGREP"; then
3734set dummy egrep; ac_prog_name=$2
3735if test "${ac_cv_path_EGREP+set}" = set; then
3736 echo $ECHO_N "(cached) $ECHO_C" >&6
3737else
Reid Spencera773bd52006-08-04 18:18:08 +00003738 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003739# Loop through the user's path and test for each of PROGNAME-LIST
3740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003741for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3742do
3743 IFS=$as_save_IFS
3744 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003745 for ac_prog in egrep; do
3746 for ac_exec_ext in '' $ac_executable_extensions; do
3747 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3748 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3749 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003750 # Check for GNU $ac_path_EGREP
3751case `"$ac_path_EGREP" --version 2>&1` in
3752*GNU*)
3753 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3754*)
3755 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003756 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003757 while :
3758 do
3759 cat "conftest.in" "conftest.in" >"conftest.tmp"
3760 mv "conftest.tmp" "conftest.in"
3761 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003762 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003763 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3764 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003765 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003766 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3767 # Best one so far, save it but keep looking for a better one
3768 ac_cv_path_EGREP="$ac_path_EGREP"
3769 ac_path_EGREP_max=$ac_count
3770 fi
3771 # 10*(2^10) chars as input seems more than enough
3772 test $ac_count -gt 10 && break
3773 done
3774 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3775esac
3776
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003777
3778 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003779 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003780done
3781
3782done
Reid Spencera773bd52006-08-04 18:18:08 +00003783IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003784
3785
3786fi
3787
3788EGREP="$ac_cv_path_EGREP"
3789if test -z "$EGREP"; then
3790 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3791echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3792 { (exit 1); exit 1; }; }
3793fi
3794
Reid Spencera773bd52006-08-04 18:18:08 +00003795else
3796 ac_cv_path_EGREP=$EGREP
3797fi
3798
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003799
Reid Spencera773bd52006-08-04 18:18:08 +00003800 fi
3801fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003802{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3803echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003804 EGREP="$ac_cv_path_EGREP"
3805
3806
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003807{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3808echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3809if test "${ac_cv_header_stdc+set}" = set; then
3810 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003811else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003812 cat >conftest.$ac_ext <<_ACEOF
3813/* confdefs.h. */
3814_ACEOF
3815cat confdefs.h >>conftest.$ac_ext
3816cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003817/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003818#include <stdlib.h>
3819#include <stdarg.h>
3820#include <string.h>
3821#include <float.h>
3822
John Criswell0c38eaf2003-09-10 15:17:25 +00003823int
3824main ()
3825{
3826
3827 ;
3828 return 0;
3829}
John Criswell7a73b802003-06-30 21:59:07 +00003830_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003831rm -f conftest.$ac_objext
3832if { (ac_try="$ac_compile"
3833case "(($ac_try" in
3834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3835 *) ac_try_echo=$ac_try;;
3836esac
3837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3838 (eval "$ac_compile") 2>conftest.er1
3839 ac_status=$?
3840 grep -v '^ *+' conftest.er1 >conftest.err
3841 rm -f conftest.er1
3842 cat conftest.err >&5
3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 (exit $ac_status); } &&
3845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3846 { (case "(($ac_try" in
3847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3848 *) ac_try_echo=$ac_try;;
3849esac
3850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3851 (eval "$ac_try") 2>&5
3852 ac_status=$?
3853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854 (exit $ac_status); }; } &&
3855 { ac_try='test -s conftest.$ac_objext'
3856 { (case "(($ac_try" in
3857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3858 *) ac_try_echo=$ac_try;;
3859esac
3860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3861 (eval "$ac_try") 2>&5
3862 ac_status=$?
3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003865 ac_cv_header_stdc=yes
3866else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003867 echo "$as_me: failed program was:" >&5
3868sed 's/^/| /' conftest.$ac_ext >&5
3869
3870 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003871fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003872
Reid Spencera773bd52006-08-04 18:18:08 +00003873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003874
3875if test $ac_cv_header_stdc = yes; then
3876 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003877 cat >conftest.$ac_ext <<_ACEOF
3878/* confdefs.h. */
3879_ACEOF
3880cat confdefs.h >>conftest.$ac_ext
3881cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003882/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003883#include <string.h>
3884
3885_ACEOF
3886if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003887 $EGREP "memchr" >/dev/null 2>&1; then
3888 :
John Criswell7a73b802003-06-30 21:59:07 +00003889else
3890 ac_cv_header_stdc=no
3891fi
3892rm -f conftest*
3893
3894fi
3895
3896if test $ac_cv_header_stdc = yes; then
3897 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003898 cat >conftest.$ac_ext <<_ACEOF
3899/* confdefs.h. */
3900_ACEOF
3901cat confdefs.h >>conftest.$ac_ext
3902cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003903/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003904#include <stdlib.h>
3905
3906_ACEOF
3907if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003908 $EGREP "free" >/dev/null 2>&1; then
3909 :
John Criswell7a73b802003-06-30 21:59:07 +00003910else
3911 ac_cv_header_stdc=no
3912fi
3913rm -f conftest*
3914
3915fi
3916
3917if test $ac_cv_header_stdc = yes; then
3918 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003919 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00003920 :
3921else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003922 cat >conftest.$ac_ext <<_ACEOF
3923/* confdefs.h. */
3924_ACEOF
3925cat confdefs.h >>conftest.$ac_ext
3926cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003927/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003928#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003929#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003930#if ((' ' & 0x0FF) == 0x020)
3931# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3932# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3933#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003934# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003935 (('a' <= (c) && (c) <= 'i') \
3936 || ('j' <= (c) && (c) <= 'r') \
3937 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003938# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3939#endif
3940
3941#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3942int
3943main ()
3944{
3945 int i;
3946 for (i = 0; i < 256; i++)
3947 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003948 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003949 return 2;
3950 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003951}
3952_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003953rm -f conftest$ac_exeext
3954if { (ac_try="$ac_link"
3955case "(($ac_try" in
3956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3957 *) ac_try_echo=$ac_try;;
3958esac
3959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3960 (eval "$ac_link") 2>&5
3961 ac_status=$?
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3964 { (case "(($ac_try" in
3965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3966 *) ac_try_echo=$ac_try;;
3967esac
3968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3969 (eval "$ac_try") 2>&5
3970 ac_status=$?
3971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972 (exit $ac_status); }; }; then
3973 :
John Criswell7a73b802003-06-30 21:59:07 +00003974else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003975 echo "$as_me: program exited with status $ac_status" >&5
3976echo "$as_me: failed program was:" >&5
3977sed 's/^/| /' conftest.$ac_ext >&5
3978
3979( exit $ac_status )
3980ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003981fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003982rm -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 +00003983fi
3984
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003985
John Criswell7a73b802003-06-30 21:59:07 +00003986fi
3987fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003988{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3989echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003990if test $ac_cv_header_stdc = yes; then
3991
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003992cat >>confdefs.h <<\_ACEOF
3993#define STDC_HEADERS 1
3994_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00003995
3996fi
3997
Reid Spencera773bd52006-08-04 18:18:08 +00003998# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003999
4000
4001
4002
4003
4004
4005
4006
4007
Reid Spencera773bd52006-08-04 18:18:08 +00004008for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4009 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004010do
4011as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4012{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4013echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4014if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4015 echo $ECHO_N "(cached) $ECHO_C" >&6
4016else
4017 cat >conftest.$ac_ext <<_ACEOF
4018/* confdefs.h. */
4019_ACEOF
4020cat confdefs.h >>conftest.$ac_ext
4021cat >>conftest.$ac_ext <<_ACEOF
4022/* end confdefs.h. */
4023$ac_includes_default
4024
4025#include <$ac_header>
4026_ACEOF
4027rm -f conftest.$ac_objext
4028if { (ac_try="$ac_compile"
4029case "(($ac_try" in
4030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4031 *) ac_try_echo=$ac_try;;
4032esac
4033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4034 (eval "$ac_compile") 2>conftest.er1
4035 ac_status=$?
4036 grep -v '^ *+' conftest.er1 >conftest.err
4037 rm -f conftest.er1
4038 cat conftest.err >&5
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); } &&
4041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4042 { (case "(($ac_try" in
4043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4044 *) ac_try_echo=$ac_try;;
4045esac
4046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4047 (eval "$ac_try") 2>&5
4048 ac_status=$?
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050 (exit $ac_status); }; } &&
4051 { ac_try='test -s conftest.$ac_objext'
4052 { (case "(($ac_try" in
4053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4054 *) ac_try_echo=$ac_try;;
4055esac
4056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4057 (eval "$ac_try") 2>&5
4058 ac_status=$?
4059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060 (exit $ac_status); }; }; then
4061 eval "$as_ac_Header=yes"
4062else
4063 echo "$as_me: failed program was:" >&5
4064sed 's/^/| /' conftest.$ac_ext >&5
4065
4066 eval "$as_ac_Header=no"
4067fi
4068
4069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4070fi
4071ac_res=`eval echo '${'$as_ac_Header'}'`
4072 { echo "$as_me:$LINENO: result: $ac_res" >&5
4073echo "${ECHO_T}$ac_res" >&6; }
4074if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004075 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004076#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004077_ACEOF
4078
4079fi
4080
4081done
4082
4083
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004084{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4085echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4086if test "${ac_cv_c_bigendian+set}" = set; then
4087 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004088else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004089 # See if sys/param.h defines the BYTE_ORDER macro.
4090cat >conftest.$ac_ext <<_ACEOF
4091/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004092_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004093cat confdefs.h >>conftest.$ac_ext
4094cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004095/* end confdefs.h. */
4096#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004097#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004098
4099int
4100main ()
4101{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004102#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4103 bogus endian macros
4104#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004105
4106 ;
4107 return 0;
4108}
4109_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004110rm -f conftest.$ac_objext
4111if { (ac_try="$ac_compile"
4112case "(($ac_try" in
4113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4114 *) ac_try_echo=$ac_try;;
4115esac
4116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4117 (eval "$ac_compile") 2>conftest.er1
4118 ac_status=$?
4119 grep -v '^ *+' conftest.er1 >conftest.err
4120 rm -f conftest.er1
4121 cat conftest.err >&5
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); } &&
4124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4125 { (case "(($ac_try" in
4126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4127 *) ac_try_echo=$ac_try;;
4128esac
4129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4130 (eval "$ac_try") 2>&5
4131 ac_status=$?
4132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133 (exit $ac_status); }; } &&
4134 { ac_try='test -s conftest.$ac_objext'
4135 { (case "(($ac_try" in
4136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4137 *) ac_try_echo=$ac_try;;
4138esac
4139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4140 (eval "$ac_try") 2>&5
4141 ac_status=$?
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004144 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004145cat >conftest.$ac_ext <<_ACEOF
4146/* confdefs.h. */
4147_ACEOF
4148cat confdefs.h >>conftest.$ac_ext
4149cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004150/* end confdefs.h. */
4151#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004152#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004153
4154int
4155main ()
4156{
4157#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004158 not big endian
4159#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004160
4161 ;
4162 return 0;
4163}
4164_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004165rm -f conftest.$ac_objext
4166if { (ac_try="$ac_compile"
4167case "(($ac_try" in
4168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4169 *) ac_try_echo=$ac_try;;
4170esac
4171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4172 (eval "$ac_compile") 2>conftest.er1
4173 ac_status=$?
4174 grep -v '^ *+' conftest.er1 >conftest.err
4175 rm -f conftest.er1
4176 cat conftest.err >&5
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); } &&
4179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4180 { (case "(($ac_try" in
4181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4182 *) ac_try_echo=$ac_try;;
4183esac
4184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4185 (eval "$ac_try") 2>&5
4186 ac_status=$?
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); }; } &&
4189 { ac_try='test -s conftest.$ac_objext'
4190 { (case "(($ac_try" in
4191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4192 *) ac_try_echo=$ac_try;;
4193esac
4194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4195 (eval "$ac_try") 2>&5
4196 ac_status=$?
4197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004199 ac_cv_c_bigendian=yes
4200else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004201 echo "$as_me: failed program was:" >&5
4202sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004203
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004204 ac_cv_c_bigendian=no
4205fi
4206
4207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4208else
4209 echo "$as_me: failed program was:" >&5
4210sed 's/^/| /' conftest.$ac_ext >&5
4211
4212 # It does not; compile a test program.
4213if test "$cross_compiling" = yes; then
4214 # try to guess the endianness by grepping values into an object file
4215 ac_cv_c_bigendian=unknown
4216 cat >conftest.$ac_ext <<_ACEOF
4217/* confdefs.h. */
4218_ACEOF
4219cat confdefs.h >>conftest.$ac_ext
4220cat >>conftest.$ac_ext <<_ACEOF
4221/* end confdefs.h. */
4222short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4223short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4224void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4225short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4226short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4227void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004228int
4229main ()
4230{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004231 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004232 ;
4233 return 0;
4234}
4235_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004236rm -f conftest.$ac_objext
4237if { (ac_try="$ac_compile"
4238case "(($ac_try" in
4239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4240 *) ac_try_echo=$ac_try;;
4241esac
4242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4243 (eval "$ac_compile") 2>conftest.er1
4244 ac_status=$?
4245 grep -v '^ *+' conftest.er1 >conftest.err
4246 rm -f conftest.er1
4247 cat conftest.err >&5
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); } &&
4250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4251 { (case "(($ac_try" in
4252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4253 *) ac_try_echo=$ac_try;;
4254esac
4255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4256 (eval "$ac_try") 2>&5
4257 ac_status=$?
4258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259 (exit $ac_status); }; } &&
4260 { ac_try='test -s conftest.$ac_objext'
4261 { (case "(($ac_try" in
4262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4263 *) ac_try_echo=$ac_try;;
4264esac
4265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4266 (eval "$ac_try") 2>&5
4267 ac_status=$?
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); }; }; then
4270 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004271 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004272fi
4273if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4274 if test "$ac_cv_c_bigendian" = unknown; then
4275 ac_cv_c_bigendian=no
4276 else
4277 # finding both strings is unlikely to happen, but who knows?
4278 ac_cv_c_bigendian=unknown
4279 fi
4280fi
Reid Spencera773bd52006-08-04 18:18:08 +00004281else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004282 echo "$as_me: failed program was:" >&5
4283sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004284
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004285
Torok Edwin871384f2010-01-26 08:50:50 +00004286fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004287
Reid Spencera773bd52006-08-04 18:18:08 +00004288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4289else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004290 cat >conftest.$ac_ext <<_ACEOF
4291/* confdefs.h. */
4292_ACEOF
4293cat confdefs.h >>conftest.$ac_ext
4294cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004295/* end confdefs.h. */
4296$ac_includes_default
4297int
4298main ()
4299{
4300
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004301 /* Are we little or big endian? From Harbison&Steele. */
4302 union
4303 {
4304 long int l;
4305 char c[sizeof (long int)];
4306 } u;
4307 u.l = 1;
4308 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004309
4310 ;
4311 return 0;
4312}
4313_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004314rm -f conftest$ac_exeext
4315if { (ac_try="$ac_link"
4316case "(($ac_try" in
4317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4318 *) ac_try_echo=$ac_try;;
4319esac
4320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4321 (eval "$ac_link") 2>&5
4322 ac_status=$?
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4325 { (case "(($ac_try" in
4326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4327 *) ac_try_echo=$ac_try;;
4328esac
4329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4330 (eval "$ac_try") 2>&5
4331 ac_status=$?
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004334 ac_cv_c_bigendian=no
4335else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004336 echo "$as_me: program exited with status $ac_status" >&5
4337echo "$as_me: failed program was:" >&5
4338sed 's/^/| /' conftest.$ac_ext >&5
4339
4340( exit $ac_status )
4341ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004342fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004343rm -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 +00004344fi
4345
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004346
Reid Spencera773bd52006-08-04 18:18:08 +00004347fi
4348
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4350fi
4351{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4352echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4353case $ac_cv_c_bigendian in
4354 yes)
4355 ENDIAN=big
4356 ;;
4357 no)
4358 ENDIAN=little
4359 ;;
4360 *)
4361 { { echo "$as_me:$LINENO: error: unknown endianness
4362presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4363echo "$as_me: error: unknown endianness
4364presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4365 { (exit 1); exit 1; }; } ;;
4366esac
Reid Spencera773bd52006-08-04 18:18:08 +00004367
4368
4369if test "$cross_compiling" = yes; then
4370 LLVM_CROSS_COMPILING=1
4371
4372
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004373{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4374echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4375if test "${ac_cv_build_exeext+set}" = set; then
4376 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004377else
4378 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4379 ac_cv_build_exeext=.exe
4380else
4381 ac_build_prefix=${build_alias}-
4382
4383 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4384set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004385{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4386echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4387if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4388 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004389else
4390 if test -n "$BUILD_CC"; then
4391 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4392else
4393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4394for as_dir in $PATH
4395do
4396 IFS=$as_save_IFS
4397 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004398 for ac_exec_ext in '' $ac_executable_extensions; do
4399 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 +00004400 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004402 break 2
4403 fi
4404done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004405done
Reid Spencera773bd52006-08-04 18:18:08 +00004406IFS=$as_save_IFS
4407
4408fi
4409fi
4410BUILD_CC=$ac_cv_prog_BUILD_CC
4411if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004412 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4413echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004414else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004415 { echo "$as_me:$LINENO: result: no" >&5
4416echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004417fi
4418
4419
4420 if test -z "$BUILD_CC"; then
4421 # Extract the first word of "gcc", so it can be a program name with args.
4422set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004423{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4424echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4425if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4426 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004427else
4428 if test -n "$BUILD_CC"; then
4429 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4430else
4431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432for as_dir in $PATH
4433do
4434 IFS=$as_save_IFS
4435 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004436 for ac_exec_ext in '' $ac_executable_extensions; do
4437 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 +00004438 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004440 break 2
4441 fi
4442done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004443done
Reid Spencera773bd52006-08-04 18:18:08 +00004444IFS=$as_save_IFS
4445
4446fi
4447fi
4448BUILD_CC=$ac_cv_prog_BUILD_CC
4449if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004450 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4451echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004452else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004453 { echo "$as_me:$LINENO: result: no" >&5
4454echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004455fi
4456
4457
4458 if test -z "$BUILD_CC"; then
4459 # Extract the first word of "cc", so it can be a program name with args.
4460set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004461{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4463if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4464 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004465else
4466 if test -n "$BUILD_CC"; then
4467 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4468else
4469 ac_prog_rejected=no
4470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471for as_dir in $PATH
4472do
4473 IFS=$as_save_IFS
4474 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004475 for ac_exec_ext in '' $ac_executable_extensions; do
4476 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 +00004477 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4478 ac_prog_rejected=yes
4479 continue
4480 fi
4481 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004483 break 2
4484 fi
4485done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004486done
Reid Spencera773bd52006-08-04 18:18:08 +00004487IFS=$as_save_IFS
4488
4489if test $ac_prog_rejected = yes; then
4490 # We found a bogon in the path, so make sure we never use it.
4491 set dummy $ac_cv_prog_BUILD_CC
4492 shift
4493 if test $# != 0; then
4494 # We chose a different compiler from the bogus one.
4495 # However, it has the same basename, so the bogon will be chosen
4496 # first if we set BUILD_CC to just the basename; use the full file name.
4497 shift
4498 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4499 fi
4500fi
4501fi
4502fi
4503BUILD_CC=$ac_cv_prog_BUILD_CC
4504if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004505 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4506echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004507else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004508 { echo "$as_me:$LINENO: result: no" >&5
4509echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004510fi
4511
4512
4513 fi
4514 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004515 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4516echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4517 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004518 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4519 rm -f conftest*
4520 echo 'int main () { return 0; }' > conftest.$ac_ext
4521 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004522 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004523 (eval $ac_build_link) 2>&5
4524 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004527 for file in conftest.*; do
4528 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004529 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004530 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4531 esac
4532 done
4533 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004534 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4535echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4536 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004537 fi
4538 rm -f conftest*
4539 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4540fi
4541fi
4542
4543BUILD_EXEEXT=""
4544test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004545{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4546echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004547ac_build_exeext=$BUILD_EXEEXT
4548
Jim Grosbach673612e2008-10-02 22:56:44 +00004549 ac_build_prefix=${build_alias}-
4550 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4551set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004552{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4553echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4554if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4555 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004556else
4557 if test -n "$BUILD_CXX"; then
4558 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4559else
4560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561for as_dir in $PATH
4562do
4563 IFS=$as_save_IFS
4564 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004565 for ac_exec_ext in '' $ac_executable_extensions; do
4566 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 +00004567 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004569 break 2
4570 fi
4571done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004572done
Jim Grosbach673612e2008-10-02 22:56:44 +00004573IFS=$as_save_IFS
4574
4575fi
4576fi
4577BUILD_CXX=$ac_cv_prog_BUILD_CXX
4578if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004579 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4580echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004581else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004582 { echo "$as_me:$LINENO: result: no" >&5
4583echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004584fi
4585
4586
4587 if test -z "$BUILD_CXX"; then
4588 # Extract the first word of "g++", so it can be a program name with args.
4589set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004590{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4592if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4593 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004594else
4595 if test -n "$BUILD_CXX"; then
4596 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4597else
4598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599for as_dir in $PATH
4600do
4601 IFS=$as_save_IFS
4602 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004603 for ac_exec_ext in '' $ac_executable_extensions; do
4604 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 +00004605 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004607 break 2
4608 fi
4609done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004610done
Jim Grosbach673612e2008-10-02 22:56:44 +00004611IFS=$as_save_IFS
4612
4613fi
4614fi
4615BUILD_CXX=$ac_cv_prog_BUILD_CXX
4616if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004617 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4618echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004619else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004620 { echo "$as_me:$LINENO: result: no" >&5
4621echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004622fi
4623
4624
4625 if test -z "$BUILD_CXX"; then
4626 # Extract the first word of "c++", so it can be a program name with args.
4627set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004628{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4629echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4630if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4631 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004632else
4633 if test -n "$BUILD_CXX"; then
4634 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4635else
4636 ac_prog_rejected=no
4637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638for as_dir in $PATH
4639do
4640 IFS=$as_save_IFS
4641 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004642 for ac_exec_ext in '' $ac_executable_extensions; do
4643 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 +00004644 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4645 ac_prog_rejected=yes
4646 continue
4647 fi
4648 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004650 break 2
4651 fi
4652done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004653done
Jim Grosbach673612e2008-10-02 22:56:44 +00004654IFS=$as_save_IFS
4655
4656if test $ac_prog_rejected = yes; then
4657 # We found a bogon in the path, so make sure we never use it.
4658 set dummy $ac_cv_prog_BUILD_CXX
4659 shift
4660 if test $# != 0; then
4661 # We chose a different compiler from the bogus one.
4662 # However, it has the same basename, so the bogon will be chosen
4663 # first if we set BUILD_CXX to just the basename; use the full file name.
4664 shift
4665 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4666 fi
4667fi
4668fi
4669fi
4670BUILD_CXX=$ac_cv_prog_BUILD_CXX
4671if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004672 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4673echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004674else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004675 { echo "$as_me:$LINENO: result: no" >&5
4676echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004677fi
4678
4679
4680 fi
4681 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004682else
4683 LLVM_CROSS_COMPILING=0
4684
4685fi
4686
Dan Gohman56fb5f92010-08-04 16:25:01 +00004687if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004688 cvsbuild="yes"
4689 optimize="no"
4690 CVSBUILD=CVSBUILD=1
4691
4692else
4693 cvsbuild="no"
4694 optimize="yes"
4695fi
4696
4697
4698# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004699if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004700 enableval=$enable_optimized;
4701else
4702 enableval=$optimize
4703fi
4704
4705if test ${enableval} = "no" ; then
4706 ENABLE_OPTIMIZED=
4707
4708else
4709 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4710
4711fi
4712
David Greene2a5a12c2009-04-17 14:50:39 +00004713# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004714if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00004715 enableval=$enable_profiling;
4716else
4717 enableval="no"
4718fi
4719
4720if test ${enableval} = "no" ; then
4721 ENABLE_PROFILING=
4722
4723else
4724 ENABLE_PROFILING=ENABLE_PROFILING=1
4725
4726fi
4727
Reid Spencera773bd52006-08-04 18:18:08 +00004728# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004729if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004730 enableval=$enable_assertions;
4731else
4732 enableval="yes"
4733fi
4734
4735if test ${enableval} = "yes" ; then
4736 DISABLE_ASSERTIONS=
4737
4738else
4739 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4740
4741fi
4742
David Greenea696d242007-06-28 19:36:08 +00004743# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004744if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00004745 enableval=$enable_expensive_checks;
4746else
4747 enableval="no"
4748fi
4749
4750if test ${enableval} = "yes" ; then
4751 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4752
4753 EXPENSIVE_CHECKS=yes
4754
4755else
4756 ENABLE_EXPENSIVE_CHECKS=
4757
4758 EXPENSIVE_CHECKS=no
4759
4760fi
4761
Reid Spencer8b2e1412006-11-17 03:32:33 +00004762# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004763if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00004764 enableval=$enable_debug_runtime;
4765else
4766 enableval=no
4767fi
4768
4769if test ${enableval} = "no" ; then
4770 DEBUG_RUNTIME=
4771
4772else
4773 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4774
4775fi
4776
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004777# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004778if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004779 enableval=$enable_debug_symbols;
4780else
4781 enableval=no
4782fi
4783
4784if test ${enableval} = "no" ; then
4785 DEBUG_SYMBOLS=
4786
4787else
4788 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4789
4790fi
4791
Reid Spencera773bd52006-08-04 18:18:08 +00004792# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004793if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004794 enableval=$enable_jit;
4795else
4796 enableval=default
4797fi
4798
4799if test ${enableval} = "no"
4800then
4801 JIT=
4802
4803else
4804 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004805 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004806 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004807 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004808 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004809 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004810 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004811 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004812 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004813 Alpha) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004814 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00004815 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00004816 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004817 Mips) TARGET_HAS_JIT=0
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004818 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004819 PIC16) TARGET_HAS_JIT=0
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004820 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004821 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00004822 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004823 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004824 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004825 SystemZ) TARGET_HAS_JIT=0
Anton Korobeynikov4403b932009-07-16 13:27:25 +00004826 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004827 Blackfin) TARGET_HAS_JIT=0
4828 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004829 MBlaze) TARGET_HAS_JIT=0
4830 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004831 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004832 ;;
4833 esac
4834fi
4835
4836# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004837if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004838 enableval=$enable_doxygen;
4839else
4840 enableval=default
4841fi
4842
4843case "$enableval" in
4844 yes) ENABLE_DOXYGEN=1
4845 ;;
4846 no) ENABLE_DOXYGEN=0
4847 ;;
4848 default) ENABLE_DOXYGEN=0
4849 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004850 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4851echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4852 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004853esac
4854
4855# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004856if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004857 enableval=$enable_threads;
4858else
Reid Spencer65c5d752006-11-05 17:08:18 +00004859 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004860fi
4861
4862case "$enableval" in
4863 yes) ENABLE_THREADS=1
4864 ;;
4865 no) ENABLE_THREADS=0
4866 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004867 default) ENABLE_THREADS=1
4868 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004869 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4870echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4871 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004872esac
4873
Owen Andersona8603702009-05-19 22:18:56 +00004874cat >>confdefs.h <<_ACEOF
4875#define ENABLE_THREADS $ENABLE_THREADS
4876_ACEOF
4877
4878
Reid Spencer89b0d992006-12-16 22:07:52 +00004879# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004880if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00004881 enableval=$enable_pic;
4882else
4883 enableval=default
4884fi
4885
4886case "$enableval" in
4887 yes) ENABLE_PIC=1
4888 ;;
4889 no) ENABLE_PIC=0
4890 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00004891 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00004892 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004893 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4894echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4895 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00004896esac
4897
4898cat >>confdefs.h <<_ACEOF
4899#define ENABLE_PIC $ENABLE_PIC
4900_ACEOF
4901
4902
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00004903# Check whether --enable-shared was given.
4904if test "${enable_shared+set}" = set; then
4905 enableval=$enable_shared;
4906else
4907 enableval=default
4908fi
4909
4910case "$enableval" in
4911 yes) ENABLE_SHARED=1
4912 ;;
4913 no) ENABLE_SHARED=0
4914 ;;
4915 default) ENABLE_SHARED=0
4916 ;;
4917 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4918echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4919 { (exit 1); exit 1; }; } ;;
4920esac
4921
Daniel Dunbardd464df2010-05-10 20:11:56 +00004922# Check whether --enable-timestamps was given.
4923if test "${enable_timestamps+set}" = set; then
4924 enableval=$enable_timestamps;
4925else
4926 enableval=default
4927fi
4928
4929case "$enableval" in
4930 yes) ENABLE_TIMESTAMPS=1
4931 ;;
4932 no) ENABLE_TIMESTAMPS=0
4933 ;;
4934 default) ENABLE_TIMESTAMPS=1
4935 ;;
4936 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
4937echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
4938 { (exit 1); exit 1; }; } ;;
4939esac
4940
4941cat >>confdefs.h <<_ACEOF
4942#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
4943_ACEOF
4944
4945
Reid Spencera773bd52006-08-04 18:18:08 +00004946TARGETS_TO_BUILD=""
4947# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004948if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004949 enableval=$enable_targets;
4950else
4951 enableval=all
4952fi
4953
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004954if test "$enableval" = host-only ; then
4955 enableval=host
4956fi
Reid Spencera773bd52006-08-04 18:18:08 +00004957case "$enableval" in
Chris Lattner885b6612010-08-28 16:33:36 +00004958 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004959 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4960 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004961 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4962 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4963 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4964 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4965 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4966 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4967 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4968 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4969 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4970 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4971 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4972 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4973 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4974 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004975 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004976 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004977 host) case "$llvm_cv_target_arch" in
4978 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4979 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4980 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4981 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4982 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4983 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4984 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004985 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004986 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4987 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4988 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4989 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Anton Korobeynikov6ca835d2010-01-05 20:45:43 +00004990 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004991 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004992 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4993echo "$as_me: error: Can not set target to build" >&2;}
4994 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004995 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004996 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4997echo "$as_me: error: Unrecognized target $a_target" >&2;}
4998 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004999 esac
5000 done
5001 ;;
5002esac
Reid Spencera773bd52006-08-04 18:18:08 +00005003TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5004
5005
Douglas Gregor0711c302009-06-17 00:43:20 +00005006# Determine whether we are building LLVM support for the native architecture.
5007# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5008for a_target in $TARGETS_TO_BUILD; do
5009 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
Douglas Gregora0162ff2009-06-23 17:22:05 +00005010 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
Douglas Gregor0711c302009-06-17 00:43:20 +00005011
5012cat >>confdefs.h <<_ACEOF
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005013#define LLVM_NATIVE_ARCHNAME $LLVM_NATIVE_ARCH
5014_ACEOF
5015
5016
5017cat >>confdefs.h <<_ACEOF
Douglas Gregora0162ff2009-06-23 17:22:05 +00005018#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
Douglas Gregor0711c302009-06-17 00:43:20 +00005019_ACEOF
5020
5021 fi
5022done
5023
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005024# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5025# target feature def files.
Douglas Gregor1555a232009-06-16 20:12:29 +00005026LLVM_ENUM_TARGETS=""
5027LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005028LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005029LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005030for target_to_build in $TARGETS_TO_BUILD; do
5031 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5032 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5033 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5034 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005035 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5036 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5037 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005038 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5039 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5040 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005041done
5042
5043
5044
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005045
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005046
Reid Spencer65c5d752006-11-05 17:08:18 +00005047# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005048if test "${enable_cbe_printf_a+set}" = set; then
Reid Spencer65c5d752006-11-05 17:08:18 +00005049 enableval=$enable_cbe_printf_a;
5050else
5051 enableval=default
5052fi
5053
5054case "$enableval" in
5055 yes) ENABLE_CBE_PRINTF_A=1
5056 ;;
5057 no) ENABLE_CBE_PRINTF_A=0
5058 ;;
5059 default) ENABLE_CBE_PRINTF_A=1
5060 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005061 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5062echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5063 { (exit 1); exit 1; }; } ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005064esac
5065
5066cat >>confdefs.h <<_ACEOF
5067#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5068_ACEOF
5069
5070
Reid Spencera773bd52006-08-04 18:18:08 +00005071
5072# Check whether --with-llvmgccdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005073if test "${with_llvmgccdir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005074 withval=$with_llvmgccdir;
5075else
5076 withval=default
5077fi
5078
5079case "$withval" in
5080 default) WITH_LLVMGCCDIR=default ;;
5081 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005082 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5083echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5084 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005085esac
5086
5087
Devang Patel5d28b882007-12-04 22:54:47 +00005088# Check whether --with-llvmgcc was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005089if test "${with_llvmgcc+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005090 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5091 WITH_LLVMGCCDIR=""
5092fi
5093
5094
5095
5096# Check whether --with-llvmgxx was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005097if test "${with_llvmgxx+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005098 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5099 WITH_LLVMGCCDIR=""
5100fi
5101
Douglas Gregor01746742009-05-11 18:05:52 +00005102
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00005103if test -n "$LLVMGCC"; then
5104 LLVMGCCCOMMAND="$LLVMGCC"
5105fi
5106
5107if test -n "$LLVMGXX"; then
5108 LLVMGXXCOMMAND="$LLVMGXX"
5109fi
Devang Patel5d28b882007-12-04 22:54:47 +00005110
5111if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005112 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5113echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5114 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005115fi
5116
5117if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005118 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5119echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5120 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005121fi
5122
5123
Daniel Dunbar98515672010-02-23 10:00:49 +00005124# Check whether --with-clang was given.
5125if test "${with_clang+set}" = set; then
5126 withval=$with_clang;
5127else
5128 with_clang=default
5129fi
5130
5131
5132
5133# Check whether --with-built-clang was given.
5134if test "${with_built_clang+set}" = set; then
5135 withval=$with_built_clang;
5136else
5137 with_built_clang=check
5138fi
5139
5140
5141{ echo "$as_me:$LINENO: checking clang compiler" >&5
5142echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5143WITH_CLANGPATH=""
5144WITH_BUILT_CLANG=0
5145if test "$with_clang" != "default"; then
5146 WITH_CLANGPATH="$with_clang"
5147 if ! test -x "$WITH_CLANGPATH"; then
5148 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5149echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5150 { (exit 1); exit 1; }; }
5151 fi
5152elif test "$with_built_clang" = "yes"; then
5153 WITH_BUILT_CLANG=1
5154elif test "$with_built_clang" = "no"; then
5155 WITH_BUILT_CLANG=0
5156else
5157 if test "$with_built_clang" != "check"; then
5158 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5159echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5160 { (exit 1); exit 1; }; }
5161 fi
5162
5163 if test -f ${srcdir}/tools/clang/README.txt; then
5164 WITH_BUILT_CLANG=1
5165 fi
5166fi
5167
5168if ! test -z "$WITH_CLANGPATH"; then
5169 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5170echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5171 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5172elif test "$WITH_BUILT_CLANG" = "1"; then
5173 { echo "$as_me:$LINENO: result: built" >&5
5174echo "${ECHO_T}built" >&6; }
5175else
5176 { echo "$as_me:$LINENO: result: none" >&5
5177echo "${ECHO_T}none" >&6; }
5178fi
5179CLANGPATH=$WITH_CLANGPATH
5180
5181CLANGXXPATH=$WITH_CLANGXXPATH
5182
5183ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5184
5185
5186
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005187# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005188if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005189 withval=$with_optimize_option;
5190else
5191 withval=default
5192fi
5193
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005194{ echo "$as_me:$LINENO: checking optimization flags" >&5
5195echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005196case "$withval" in
5197 default)
5198 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005199 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005200 MingW) optimize_option=-O2 ;;
5201 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005202 esac ;;
5203 *) optimize_option="$withval" ;;
5204esac
5205OPTIMIZE_OPTION=$optimize_option
5206
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005207{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5208echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005209
5210
Reid Spencera773bd52006-08-04 18:18:08 +00005211# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005212if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005213 withval=$with_extra_options;
5214else
5215 withval=default
5216fi
5217
5218case "$withval" in
5219 default) EXTRA_OPTIONS= ;;
5220 *) EXTRA_OPTIONS=$withval ;;
5221esac
5222EXTRA_OPTIONS=$EXTRA_OPTIONS
5223
5224
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005225# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005226if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005227 enableval=$enable_bindings;
5228else
5229 enableval=default
5230fi
5231
5232BINDINGS_TO_BUILD=""
5233case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005234 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005235 all ) BINDINGS_TO_BUILD="ocaml" ;;
5236 none | no) BINDINGS_TO_BUILD="" ;;
5237 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5238 case "$a_binding" in
5239 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005240 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5241echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5242 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005243 esac
5244 done
5245 ;;
5246esac
5247
Reid Spencera773bd52006-08-04 18:18:08 +00005248
Gordon Henriksenf0915682007-10-02 16:42:22 +00005249# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005250if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005251 withval=$with_ocaml_libdir;
5252else
5253 withval=auto
5254fi
5255
5256case "$withval" in
5257 auto) with_ocaml_libdir="$withval" ;;
5258 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005259 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5260echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5261 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005262esac
5263
5264
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005265# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005266if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005267 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005268else
5269 withval=""
5270fi
5271
5272
5273cat >>confdefs.h <<_ACEOF
5274#define C_INCLUDE_DIRS "$withval"
5275_ACEOF
5276
5277
5278
Rafael Espindola420d23c2009-11-16 19:46:55 +00005279# Check whether --with-cxx-include-root was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005280if test "${with_cxx_include_root+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005281 withval=$with_cxx_include_root;
5282else
5283 withval=""
5284fi
5285
5286
5287cat >>confdefs.h <<_ACEOF
5288#define CXX_INCLUDE_ROOT "$withval"
5289_ACEOF
5290
5291
5292
5293# Check whether --with-cxx-include-arch was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005294if test "${with_cxx_include_arch+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005295 withval=$with_cxx_include_arch;
5296else
5297 withval=""
5298fi
5299
5300
5301cat >>confdefs.h <<_ACEOF
5302#define CXX_INCLUDE_ARCH "$withval"
5303_ACEOF
5304
5305
5306
5307# Check whether --with-cxx-include-32bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005308if test "${with_cxx_include_32bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005309 withval=$with_cxx_include_32bit_dir;
5310else
5311 withval=""
5312fi
5313
5314
5315cat >>confdefs.h <<_ACEOF
5316#define CXX_INCLUDE_32BIT_DIR "$withval"
5317_ACEOF
5318
5319
5320
5321# Check whether --with-cxx-include-64bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005322if test "${with_cxx_include_64bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005323 withval=$with_cxx_include_64bit_dir;
5324else
5325 withval=""
5326fi
5327
5328
5329cat >>confdefs.h <<_ACEOF
5330#define CXX_INCLUDE_64BIT_DIR "$withval"
5331_ACEOF
5332
5333
5334
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005335# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005336if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005337 withval=$with_binutils_include;
5338else
5339 withval=default
5340fi
5341
5342case "$withval" in
5343 default) WITH_BINUTILS_INCDIR=default ;;
5344 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005345 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5346echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5347 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005348esac
5349if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5350 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5351
5352 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5353 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005354 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5355echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5356 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005357 fi
5358fi
5359
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005360# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005361if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005362 enableval=$enable_libffi; case "$enableval" in
5363 yes) llvm_cv_enable_libffi="yes" ;;
5364 no) llvm_cv_enable_libffi="no" ;;
5365 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005366echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5367 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005368 esac
5369else
5370 llvm_cv_enable_libffi=no
5371fi
5372
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005373
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005374
Reid Spencera773bd52006-08-04 18:18:08 +00005375ac_ext=c
5376ac_cpp='$CPP $CPPFLAGS'
5377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5379ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005380{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5381echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005382# On Suns, sometimes $CPP names a directory.
5383if test -n "$CPP" && test -d "$CPP"; then
5384 CPP=
5385fi
5386if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005387 if test "${ac_cv_prog_CPP+set}" = set; then
5388 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005389else
5390 # Double quotes because CPP needs to be expanded
5391 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5392 do
5393 ac_preproc_ok=false
5394for ac_c_preproc_warn_flag in '' yes
5395do
5396 # Use a header file that comes with gcc, so configuring glibc
5397 # with a fresh cross-compiler works.
5398 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5399 # <limits.h> exists even on freestanding compilers.
5400 # On the NeXT, cc -E runs the code through the compiler's parser,
5401 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005402 cat >conftest.$ac_ext <<_ACEOF
5403/* confdefs.h. */
5404_ACEOF
5405cat confdefs.h >>conftest.$ac_ext
5406cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005407/* end confdefs.h. */
5408#ifdef __STDC__
5409# include <limits.h>
5410#else
5411# include <assert.h>
5412#endif
5413 Syntax error
5414_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005415if { (ac_try="$ac_cpp conftest.$ac_ext"
5416case "(($ac_try" in
5417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5418 *) ac_try_echo=$ac_try;;
5419esac
5420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5422 ac_status=$?
5423 grep -v '^ *+' conftest.er1 >conftest.err
5424 rm -f conftest.er1
5425 cat conftest.err >&5
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); } >/dev/null; then
5428 if test -s conftest.err; then
5429 ac_cpp_err=$ac_c_preproc_warn_flag
5430 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5431 else
5432 ac_cpp_err=
5433 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005434else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005435 ac_cpp_err=yes
5436fi
5437if test -z "$ac_cpp_err"; then
5438 :
5439else
5440 echo "$as_me: failed program was:" >&5
5441sed 's/^/| /' conftest.$ac_ext >&5
5442
Reid Spencera773bd52006-08-04 18:18:08 +00005443 # Broken: fails on valid input.
5444continue
5445fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005446
Reid Spencera773bd52006-08-04 18:18:08 +00005447rm -f conftest.err conftest.$ac_ext
5448
5449 # OK, works on sane cases. Now check whether nonexistent headers
5450 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005451 cat >conftest.$ac_ext <<_ACEOF
5452/* confdefs.h. */
5453_ACEOF
5454cat confdefs.h >>conftest.$ac_ext
5455cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005456/* end confdefs.h. */
5457#include <ac_nonexistent.h>
5458_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005459if { (ac_try="$ac_cpp conftest.$ac_ext"
5460case "(($ac_try" in
5461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5462 *) ac_try_echo=$ac_try;;
5463esac
5464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5465 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5466 ac_status=$?
5467 grep -v '^ *+' conftest.er1 >conftest.err
5468 rm -f conftest.er1
5469 cat conftest.err >&5
5470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471 (exit $ac_status); } >/dev/null; then
5472 if test -s conftest.err; then
5473 ac_cpp_err=$ac_c_preproc_warn_flag
5474 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5475 else
5476 ac_cpp_err=
5477 fi
5478else
5479 ac_cpp_err=yes
5480fi
5481if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005482 # Broken: success on invalid input.
5483continue
5484else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005485 echo "$as_me: failed program was:" >&5
5486sed 's/^/| /' conftest.$ac_ext >&5
5487
Reid Spencera773bd52006-08-04 18:18:08 +00005488 # Passes both tests.
5489ac_preproc_ok=:
5490break
5491fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005492
Reid Spencera773bd52006-08-04 18:18:08 +00005493rm -f conftest.err conftest.$ac_ext
5494
5495done
5496# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5497rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005498if $ac_preproc_ok; then
Reid Spencera773bd52006-08-04 18:18:08 +00005499 break
5500fi
5501
5502 done
5503 ac_cv_prog_CPP=$CPP
5504
5505fi
5506 CPP=$ac_cv_prog_CPP
5507else
5508 ac_cv_prog_CPP=$CPP
5509fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005510{ echo "$as_me:$LINENO: result: $CPP" >&5
5511echo "${ECHO_T}$CPP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005512ac_preproc_ok=false
5513for ac_c_preproc_warn_flag in '' yes
5514do
5515 # Use a header file that comes with gcc, so configuring glibc
5516 # with a fresh cross-compiler works.
5517 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5518 # <limits.h> exists even on freestanding compilers.
5519 # On the NeXT, cc -E runs the code through the compiler's parser,
5520 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005521 cat >conftest.$ac_ext <<_ACEOF
5522/* confdefs.h. */
5523_ACEOF
5524cat confdefs.h >>conftest.$ac_ext
5525cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005526/* end confdefs.h. */
5527#ifdef __STDC__
5528# include <limits.h>
5529#else
5530# include <assert.h>
5531#endif
5532 Syntax error
5533_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005534if { (ac_try="$ac_cpp conftest.$ac_ext"
5535case "(($ac_try" in
5536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5537 *) ac_try_echo=$ac_try;;
5538esac
5539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5541 ac_status=$?
5542 grep -v '^ *+' conftest.er1 >conftest.err
5543 rm -f conftest.er1
5544 cat conftest.err >&5
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); } >/dev/null; then
5547 if test -s conftest.err; then
5548 ac_cpp_err=$ac_c_preproc_warn_flag
5549 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5550 else
5551 ac_cpp_err=
5552 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005553else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005554 ac_cpp_err=yes
5555fi
5556if test -z "$ac_cpp_err"; then
5557 :
5558else
5559 echo "$as_me: failed program was:" >&5
5560sed 's/^/| /' conftest.$ac_ext >&5
5561
Reid Spencera773bd52006-08-04 18:18:08 +00005562 # Broken: fails on valid input.
5563continue
5564fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005565
Reid Spencera773bd52006-08-04 18:18:08 +00005566rm -f conftest.err conftest.$ac_ext
5567
5568 # OK, works on sane cases. Now check whether nonexistent headers
5569 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005570 cat >conftest.$ac_ext <<_ACEOF
5571/* confdefs.h. */
5572_ACEOF
5573cat confdefs.h >>conftest.$ac_ext
5574cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005575/* end confdefs.h. */
5576#include <ac_nonexistent.h>
5577_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005578if { (ac_try="$ac_cpp conftest.$ac_ext"
5579case "(($ac_try" in
5580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5581 *) ac_try_echo=$ac_try;;
5582esac
5583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5585 ac_status=$?
5586 grep -v '^ *+' conftest.er1 >conftest.err
5587 rm -f conftest.er1
5588 cat conftest.err >&5
5589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590 (exit $ac_status); } >/dev/null; then
5591 if test -s conftest.err; then
5592 ac_cpp_err=$ac_c_preproc_warn_flag
5593 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5594 else
5595 ac_cpp_err=
5596 fi
5597else
5598 ac_cpp_err=yes
5599fi
5600if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005601 # Broken: success on invalid input.
5602continue
5603else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005604 echo "$as_me: failed program was:" >&5
5605sed 's/^/| /' conftest.$ac_ext >&5
5606
Reid Spencera773bd52006-08-04 18:18:08 +00005607 # Passes both tests.
5608ac_preproc_ok=:
5609break
5610fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005611
Reid Spencera773bd52006-08-04 18:18:08 +00005612rm -f conftest.err conftest.$ac_ext
5613
5614done
5615# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5616rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005617if $ac_preproc_ok; then
5618 :
Reid Spencera773bd52006-08-04 18:18:08 +00005619else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005620 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5621See \`config.log' for more details." >&5
5622echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5623See \`config.log' for more details." >&2;}
5624 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005625fi
5626
5627ac_ext=c
5628ac_cpp='$CPP $CPPFLAGS'
5629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5631ac_compiler_gnu=$ac_cv_c_compiler_gnu
5632
5633ac_ext=c
5634ac_cpp='$CPP $CPPFLAGS'
5635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5637ac_compiler_gnu=$ac_cv_c_compiler_gnu
5638if test -n "$ac_tool_prefix"; then
5639 for ac_prog in gcc
5640 do
5641 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5642set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005643{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5645if test "${ac_cv_prog_CC+set}" = set; then
5646 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005647else
5648 if test -n "$CC"; then
5649 ac_cv_prog_CC="$CC" # Let the user override the test.
5650else
5651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5652for as_dir in $PATH
5653do
5654 IFS=$as_save_IFS
5655 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005656 for ac_exec_ext in '' $ac_executable_extensions; do
5657 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 +00005658 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005660 break 2
5661 fi
5662done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005663done
Reid Spencera773bd52006-08-04 18:18:08 +00005664IFS=$as_save_IFS
5665
5666fi
5667fi
5668CC=$ac_cv_prog_CC
5669if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005670 { echo "$as_me:$LINENO: result: $CC" >&5
5671echo "${ECHO_T}$CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005672else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005673 { echo "$as_me:$LINENO: result: no" >&5
5674echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005675fi
5676
5677
5678 test -n "$CC" && break
5679 done
5680fi
5681if test -z "$CC"; then
5682 ac_ct_CC=$CC
5683 for ac_prog in gcc
5684do
5685 # Extract the first word of "$ac_prog", so it can be a program name with args.
5686set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005687{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5688echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5689if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5690 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005691else
5692 if test -n "$ac_ct_CC"; then
5693 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5694else
5695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5696for as_dir in $PATH
5697do
5698 IFS=$as_save_IFS
5699 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005700 for ac_exec_ext in '' $ac_executable_extensions; do
5701 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 +00005702 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005704 break 2
5705 fi
5706done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005707done
Reid Spencera773bd52006-08-04 18:18:08 +00005708IFS=$as_save_IFS
5709
5710fi
5711fi
5712ac_ct_CC=$ac_cv_prog_ac_ct_CC
5713if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005714 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5715echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005716else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005717 { echo "$as_me:$LINENO: result: no" >&5
5718echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005719fi
5720
5721
5722 test -n "$ac_ct_CC" && break
5723done
5724
5725 if test "x$ac_ct_CC" = x; then
5726 CC=""
5727 else
5728 case $cross_compiling:$ac_tool_warned in
5729yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005730{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5731whose name does not start with the host triplet. If you think this
5732configuration is useful to you, please write to autoconf@gnu.org." >&5
5733echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5734whose name does not start with the host triplet. If you think this
5735configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00005736ac_tool_warned=yes ;;
5737esac
5738 CC=$ac_ct_CC
5739 fi
5740fi
5741
5742
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005743test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5744See \`config.log' for more details." >&5
5745echo "$as_me: error: no acceptable C compiler found in \$PATH
5746See \`config.log' for more details." >&2;}
5747 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005748
5749# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005750echo "$as_me:$LINENO: checking for C compiler version" >&5
5751ac_compiler=`set X $ac_compile; echo $2`
5752{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00005753case "(($ac_try" in
5754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5755 *) ac_try_echo=$ac_try;;
5756esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5758 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00005759 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); }
5762{ (ac_try="$ac_compiler -v >&5"
5763case "(($ac_try" in
5764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5765 *) ac_try_echo=$ac_try;;
5766esac
5767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5768 (eval "$ac_compiler -v >&5") 2>&5
5769 ac_status=$?
5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); }
5772{ (ac_try="$ac_compiler -V >&5"
5773case "(($ac_try" in
5774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5775 *) ac_try_echo=$ac_try;;
5776esac
5777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5778 (eval "$ac_compiler -V >&5") 2>&5
5779 ac_status=$?
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00005782
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005783{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5784echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5785if test "${ac_cv_c_compiler_gnu+set}" = set; then
5786 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005787else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005788 cat >conftest.$ac_ext <<_ACEOF
5789/* confdefs.h. */
5790_ACEOF
5791cat confdefs.h >>conftest.$ac_ext
5792cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005793/* end confdefs.h. */
5794
5795int
5796main ()
5797{
5798#ifndef __GNUC__
5799 choke me
5800#endif
5801
5802 ;
5803 return 0;
5804}
5805_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005806rm -f conftest.$ac_objext
5807if { (ac_try="$ac_compile"
5808case "(($ac_try" in
5809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5810 *) ac_try_echo=$ac_try;;
5811esac
5812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5813 (eval "$ac_compile") 2>conftest.er1
5814 ac_status=$?
5815 grep -v '^ *+' conftest.er1 >conftest.err
5816 rm -f conftest.er1
5817 cat conftest.err >&5
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); } &&
5820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5821 { (case "(($ac_try" in
5822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5823 *) ac_try_echo=$ac_try;;
5824esac
5825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5826 (eval "$ac_try") 2>&5
5827 ac_status=$?
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); }; } &&
5830 { ac_try='test -s conftest.$ac_objext'
5831 { (case "(($ac_try" in
5832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5833 *) ac_try_echo=$ac_try;;
5834esac
5835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5836 (eval "$ac_try") 2>&5
5837 ac_status=$?
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005840 ac_compiler_gnu=yes
5841else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005842 echo "$as_me: failed program was:" >&5
5843sed 's/^/| /' conftest.$ac_ext >&5
5844
5845 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00005846fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005847
Reid Spencera773bd52006-08-04 18:18:08 +00005848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5849ac_cv_c_compiler_gnu=$ac_compiler_gnu
5850
5851fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005852{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5853echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5854GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00005855ac_test_CFLAGS=${CFLAGS+set}
5856ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005857{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5858echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5859if test "${ac_cv_prog_cc_g+set}" = set; then
5860 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005861else
5862 ac_save_c_werror_flag=$ac_c_werror_flag
5863 ac_c_werror_flag=yes
5864 ac_cv_prog_cc_g=no
5865 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005866 cat >conftest.$ac_ext <<_ACEOF
5867/* confdefs.h. */
5868_ACEOF
5869cat confdefs.h >>conftest.$ac_ext
5870cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005871/* end confdefs.h. */
5872
5873int
5874main ()
5875{
5876
5877 ;
5878 return 0;
5879}
5880_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005881rm -f conftest.$ac_objext
5882if { (ac_try="$ac_compile"
5883case "(($ac_try" in
5884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5885 *) ac_try_echo=$ac_try;;
5886esac
5887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5888 (eval "$ac_compile") 2>conftest.er1
5889 ac_status=$?
5890 grep -v '^ *+' conftest.er1 >conftest.err
5891 rm -f conftest.er1
5892 cat conftest.err >&5
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894 (exit $ac_status); } &&
5895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5896 { (case "(($ac_try" in
5897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5898 *) ac_try_echo=$ac_try;;
5899esac
5900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5901 (eval "$ac_try") 2>&5
5902 ac_status=$?
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); }; } &&
5905 { ac_try='test -s conftest.$ac_objext'
5906 { (case "(($ac_try" in
5907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5908 *) ac_try_echo=$ac_try;;
5909esac
5910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5911 (eval "$ac_try") 2>&5
5912 ac_status=$?
5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005915 ac_cv_prog_cc_g=yes
5916else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005917 echo "$as_me: failed program was:" >&5
5918sed 's/^/| /' conftest.$ac_ext >&5
5919
5920 CFLAGS=""
5921 cat >conftest.$ac_ext <<_ACEOF
5922/* confdefs.h. */
5923_ACEOF
5924cat confdefs.h >>conftest.$ac_ext
5925cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005926/* end confdefs.h. */
5927
5928int
5929main ()
5930{
5931
5932 ;
5933 return 0;
5934}
5935_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005936rm -f conftest.$ac_objext
5937if { (ac_try="$ac_compile"
5938case "(($ac_try" in
5939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5940 *) ac_try_echo=$ac_try;;
5941esac
5942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5943 (eval "$ac_compile") 2>conftest.er1
5944 ac_status=$?
5945 grep -v '^ *+' conftest.er1 >conftest.err
5946 rm -f conftest.er1
5947 cat conftest.err >&5
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); } &&
5950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5951 { (case "(($ac_try" in
5952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5953 *) ac_try_echo=$ac_try;;
5954esac
5955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5956 (eval "$ac_try") 2>&5
5957 ac_status=$?
5958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 (exit $ac_status); }; } &&
5960 { ac_try='test -s conftest.$ac_objext'
5961 { (case "(($ac_try" in
5962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5963 *) ac_try_echo=$ac_try;;
5964esac
5965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5966 (eval "$ac_try") 2>&5
5967 ac_status=$?
5968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969 (exit $ac_status); }; }; then
5970 :
Torok Edwin871384f2010-01-26 08:50:50 +00005971else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005972 echo "$as_me: failed program was:" >&5
5973sed 's/^/| /' conftest.$ac_ext >&5
5974
5975 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00005976 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005977 cat >conftest.$ac_ext <<_ACEOF
5978/* confdefs.h. */
5979_ACEOF
5980cat confdefs.h >>conftest.$ac_ext
5981cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005982/* end confdefs.h. */
5983
5984int
5985main ()
5986{
5987
5988 ;
5989 return 0;
5990}
5991_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005992rm -f conftest.$ac_objext
5993if { (ac_try="$ac_compile"
5994case "(($ac_try" in
5995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5996 *) ac_try_echo=$ac_try;;
5997esac
5998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5999 (eval "$ac_compile") 2>conftest.er1
6000 ac_status=$?
6001 grep -v '^ *+' conftest.er1 >conftest.err
6002 rm -f conftest.er1
6003 cat conftest.err >&5
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); } &&
6006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6007 { (case "(($ac_try" in
6008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6009 *) ac_try_echo=$ac_try;;
6010esac
6011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6012 (eval "$ac_try") 2>&5
6013 ac_status=$?
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); }; } &&
6016 { ac_try='test -s conftest.$ac_objext'
6017 { (case "(($ac_try" in
6018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6019 *) ac_try_echo=$ac_try;;
6020esac
6021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6022 (eval "$ac_try") 2>&5
6023 ac_status=$?
6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006026 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006027else
6028 echo "$as_me: failed program was:" >&5
6029sed 's/^/| /' conftest.$ac_ext >&5
6030
6031
Reid Spencera773bd52006-08-04 18:18:08 +00006032fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006033
Reid Spencera773bd52006-08-04 18:18:08 +00006034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6035fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006036
Reid Spencera773bd52006-08-04 18:18:08 +00006037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6038fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006039
Reid Spencera773bd52006-08-04 18:18:08 +00006040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6041 ac_c_werror_flag=$ac_save_c_werror_flag
6042fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006043{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6044echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006045if test "$ac_test_CFLAGS" = set; then
6046 CFLAGS=$ac_save_CFLAGS
6047elif test $ac_cv_prog_cc_g = yes; then
6048 if test "$GCC" = yes; then
6049 CFLAGS="-g -O2"
6050 else
6051 CFLAGS="-g"
6052 fi
6053else
6054 if test "$GCC" = yes; then
6055 CFLAGS="-O2"
6056 else
6057 CFLAGS=
6058 fi
6059fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006060{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6061echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6062if test "${ac_cv_prog_cc_c89+set}" = set; then
6063 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006064else
6065 ac_cv_prog_cc_c89=no
6066ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006067cat >conftest.$ac_ext <<_ACEOF
6068/* confdefs.h. */
6069_ACEOF
6070cat confdefs.h >>conftest.$ac_ext
6071cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006072/* end confdefs.h. */
6073#include <stdarg.h>
6074#include <stdio.h>
6075#include <sys/types.h>
6076#include <sys/stat.h>
6077/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6078struct buf { int x; };
6079FILE * (*rcsopen) (struct buf *, struct stat *, int);
6080static char *e (p, i)
6081 char **p;
6082 int i;
6083{
6084 return p[i];
6085}
6086static char *f (char * (*g) (char **, int), char **p, ...)
6087{
6088 char *s;
6089 va_list v;
6090 va_start (v,p);
6091 s = g (p, va_arg (v,int));
6092 va_end (v);
6093 return s;
6094}
6095
6096/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6097 function prototypes and stuff, but not '\xHH' hex character constants.
6098 These don't provoke an error unfortunately, instead are silently treated
6099 as 'x'. The following induces an error, until -std is added to get
6100 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6101 array size at least. It's necessary to write '\x00'==0 to get something
6102 that's true only with -std. */
6103int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6104
6105/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6106 inside strings and character constants. */
6107#define FOO(x) 'x'
6108int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6109
6110int test (int i, double x);
6111struct s1 {int (*f) (int a);};
6112struct s2 {int (*f) (double a);};
6113int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6114int argc;
6115char **argv;
6116int
6117main ()
6118{
6119return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6120 ;
6121 return 0;
6122}
6123_ACEOF
6124for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6125 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6126do
6127 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006128 rm -f conftest.$ac_objext
6129if { (ac_try="$ac_compile"
6130case "(($ac_try" in
6131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6132 *) ac_try_echo=$ac_try;;
6133esac
6134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6135 (eval "$ac_compile") 2>conftest.er1
6136 ac_status=$?
6137 grep -v '^ *+' conftest.er1 >conftest.err
6138 rm -f conftest.er1
6139 cat conftest.err >&5
6140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141 (exit $ac_status); } &&
6142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6143 { (case "(($ac_try" in
6144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6145 *) ac_try_echo=$ac_try;;
6146esac
6147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6148 (eval "$ac_try") 2>&5
6149 ac_status=$?
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); }; } &&
6152 { ac_try='test -s conftest.$ac_objext'
6153 { (case "(($ac_try" in
6154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6155 *) ac_try_echo=$ac_try;;
6156esac
6157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6158 (eval "$ac_try") 2>&5
6159 ac_status=$?
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006162 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006163else
6164 echo "$as_me: failed program was:" >&5
6165sed 's/^/| /' conftest.$ac_ext >&5
6166
6167
Reid Spencera773bd52006-08-04 18:18:08 +00006168fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006169
Reid Spencera773bd52006-08-04 18:18:08 +00006170rm -f core conftest.err conftest.$ac_objext
6171 test "x$ac_cv_prog_cc_c89" != "xno" && break
6172done
6173rm -f conftest.$ac_ext
6174CC=$ac_save_CC
6175
6176fi
6177# AC_CACHE_VAL
6178case "x$ac_cv_prog_cc_c89" in
6179 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006180 { echo "$as_me:$LINENO: result: none needed" >&5
6181echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006182 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006183 { echo "$as_me:$LINENO: result: unsupported" >&5
6184echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006185 *)
6186 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006187 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6188echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006189esac
6190
6191
6192ac_ext=c
6193ac_cpp='$CPP $CPPFLAGS'
6194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6196ac_compiler_gnu=$ac_cv_c_compiler_gnu
6197
6198ac_ext=cpp
6199ac_cpp='$CXXCPP $CPPFLAGS'
6200ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6201ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6202ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6203if test -z "$CXX"; then
6204 if test -n "$CCC"; then
6205 CXX=$CCC
6206 else
6207 if test -n "$ac_tool_prefix"; then
6208 for ac_prog in g++
6209 do
6210 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6211set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006212{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6213echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6214if test "${ac_cv_prog_CXX+set}" = set; then
6215 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006216else
6217 if test -n "$CXX"; then
6218 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6219else
6220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6221for as_dir in $PATH
6222do
6223 IFS=$as_save_IFS
6224 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006225 for ac_exec_ext in '' $ac_executable_extensions; do
6226 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 +00006227 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006229 break 2
6230 fi
6231done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006232done
Reid Spencera773bd52006-08-04 18:18:08 +00006233IFS=$as_save_IFS
6234
6235fi
6236fi
6237CXX=$ac_cv_prog_CXX
6238if test -n "$CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006239 { echo "$as_me:$LINENO: result: $CXX" >&5
6240echo "${ECHO_T}$CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006241else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006242 { echo "$as_me:$LINENO: result: no" >&5
6243echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006244fi
6245
6246
6247 test -n "$CXX" && break
6248 done
6249fi
6250if test -z "$CXX"; then
6251 ac_ct_CXX=$CXX
6252 for ac_prog in g++
6253do
6254 # Extract the first word of "$ac_prog", so it can be a program name with args.
6255set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006256{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6257echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6258if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6259 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006260else
6261 if test -n "$ac_ct_CXX"; then
6262 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6263else
6264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6265for as_dir in $PATH
6266do
6267 IFS=$as_save_IFS
6268 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006269 for ac_exec_ext in '' $ac_executable_extensions; do
6270 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 +00006271 ac_cv_prog_ac_ct_CXX="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006273 break 2
6274 fi
6275done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006276done
Reid Spencera773bd52006-08-04 18:18:08 +00006277IFS=$as_save_IFS
6278
6279fi
6280fi
6281ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6282if test -n "$ac_ct_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006283 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6284echo "${ECHO_T}$ac_ct_CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006285else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006286 { echo "$as_me:$LINENO: result: no" >&5
6287echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006288fi
6289
6290
6291 test -n "$ac_ct_CXX" && break
6292done
6293
6294 if test "x$ac_ct_CXX" = x; then
6295 CXX="g++"
6296 else
6297 case $cross_compiling:$ac_tool_warned in
6298yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006299{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6300whose name does not start with the host triplet. If you think this
6301configuration is useful to you, please write to autoconf@gnu.org." >&5
6302echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6303whose name does not start with the host triplet. If you think this
6304configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006305ac_tool_warned=yes ;;
6306esac
6307 CXX=$ac_ct_CXX
6308 fi
6309fi
6310
6311 fi
6312fi
6313# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006314echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6315ac_compiler=`set X $ac_compile; echo $2`
6316{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00006317case "(($ac_try" in
6318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6319 *) ac_try_echo=$ac_try;;
6320esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6322 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00006323 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325 (exit $ac_status); }
6326{ (ac_try="$ac_compiler -v >&5"
6327case "(($ac_try" in
6328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6329 *) ac_try_echo=$ac_try;;
6330esac
6331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6332 (eval "$ac_compiler -v >&5") 2>&5
6333 ac_status=$?
6334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335 (exit $ac_status); }
6336{ (ac_try="$ac_compiler -V >&5"
6337case "(($ac_try" in
6338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6339 *) ac_try_echo=$ac_try;;
6340esac
6341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6342 (eval "$ac_compiler -V >&5") 2>&5
6343 ac_status=$?
6344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00006346
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006347{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6348echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6349if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6350 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006351else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006352 cat >conftest.$ac_ext <<_ACEOF
6353/* confdefs.h. */
6354_ACEOF
6355cat confdefs.h >>conftest.$ac_ext
6356cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006357/* end confdefs.h. */
6358
6359int
6360main ()
6361{
6362#ifndef __GNUC__
6363 choke me
6364#endif
6365
6366 ;
6367 return 0;
6368}
6369_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006370rm -f conftest.$ac_objext
6371if { (ac_try="$ac_compile"
6372case "(($ac_try" in
6373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6374 *) ac_try_echo=$ac_try;;
6375esac
6376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6377 (eval "$ac_compile") 2>conftest.er1
6378 ac_status=$?
6379 grep -v '^ *+' conftest.er1 >conftest.err
6380 rm -f conftest.er1
6381 cat conftest.err >&5
6382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383 (exit $ac_status); } &&
6384 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6385 { (case "(($ac_try" in
6386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6387 *) ac_try_echo=$ac_try;;
6388esac
6389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6390 (eval "$ac_try") 2>&5
6391 ac_status=$?
6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); }; } &&
6394 { ac_try='test -s conftest.$ac_objext'
6395 { (case "(($ac_try" in
6396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6397 *) ac_try_echo=$ac_try;;
6398esac
6399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6400 (eval "$ac_try") 2>&5
6401 ac_status=$?
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006404 ac_compiler_gnu=yes
6405else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006406 echo "$as_me: failed program was:" >&5
6407sed 's/^/| /' conftest.$ac_ext >&5
6408
6409 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00006410fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006411
Reid Spencera773bd52006-08-04 18:18:08 +00006412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6413ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6414
6415fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006416{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6417echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6418GXX=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00006419ac_test_CXXFLAGS=${CXXFLAGS+set}
6420ac_save_CXXFLAGS=$CXXFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006421{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6422echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6423if test "${ac_cv_prog_cxx_g+set}" = set; then
6424 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006425else
6426 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6427 ac_cxx_werror_flag=yes
6428 ac_cv_prog_cxx_g=no
6429 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006430 cat >conftest.$ac_ext <<_ACEOF
6431/* confdefs.h. */
6432_ACEOF
6433cat confdefs.h >>conftest.$ac_ext
6434cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006435/* end confdefs.h. */
6436
6437int
6438main ()
6439{
6440
6441 ;
6442 return 0;
6443}
6444_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006445rm -f conftest.$ac_objext
6446if { (ac_try="$ac_compile"
6447case "(($ac_try" in
6448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6449 *) ac_try_echo=$ac_try;;
6450esac
6451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6452 (eval "$ac_compile") 2>conftest.er1
6453 ac_status=$?
6454 grep -v '^ *+' conftest.er1 >conftest.err
6455 rm -f conftest.er1
6456 cat conftest.err >&5
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); } &&
6459 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6460 { (case "(($ac_try" in
6461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6462 *) ac_try_echo=$ac_try;;
6463esac
6464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6465 (eval "$ac_try") 2>&5
6466 ac_status=$?
6467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468 (exit $ac_status); }; } &&
6469 { ac_try='test -s conftest.$ac_objext'
6470 { (case "(($ac_try" in
6471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6472 *) ac_try_echo=$ac_try;;
6473esac
6474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6475 (eval "$ac_try") 2>&5
6476 ac_status=$?
6477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006479 ac_cv_prog_cxx_g=yes
6480else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006481 echo "$as_me: failed program was:" >&5
6482sed 's/^/| /' conftest.$ac_ext >&5
6483
6484 CXXFLAGS=""
6485 cat >conftest.$ac_ext <<_ACEOF
6486/* confdefs.h. */
6487_ACEOF
6488cat confdefs.h >>conftest.$ac_ext
6489cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006490/* end confdefs.h. */
6491
6492int
6493main ()
6494{
6495
6496 ;
6497 return 0;
6498}
6499_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006500rm -f conftest.$ac_objext
6501if { (ac_try="$ac_compile"
6502case "(($ac_try" in
6503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6504 *) ac_try_echo=$ac_try;;
6505esac
6506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6507 (eval "$ac_compile") 2>conftest.er1
6508 ac_status=$?
6509 grep -v '^ *+' conftest.er1 >conftest.err
6510 rm -f conftest.er1
6511 cat conftest.err >&5
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); } &&
6514 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6515 { (case "(($ac_try" in
6516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6517 *) ac_try_echo=$ac_try;;
6518esac
6519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6520 (eval "$ac_try") 2>&5
6521 ac_status=$?
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); }; } &&
6524 { ac_try='test -s conftest.$ac_objext'
6525 { (case "(($ac_try" in
6526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6527 *) ac_try_echo=$ac_try;;
6528esac
6529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6530 (eval "$ac_try") 2>&5
6531 ac_status=$?
6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533 (exit $ac_status); }; }; then
6534 :
Torok Edwin871384f2010-01-26 08:50:50 +00006535else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006536 echo "$as_me: failed program was:" >&5
6537sed 's/^/| /' conftest.$ac_ext >&5
6538
6539 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00006540 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006541 cat >conftest.$ac_ext <<_ACEOF
6542/* confdefs.h. */
6543_ACEOF
6544cat confdefs.h >>conftest.$ac_ext
6545cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006546/* end confdefs.h. */
6547
6548int
6549main ()
6550{
6551
6552 ;
6553 return 0;
6554}
6555_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006556rm -f conftest.$ac_objext
6557if { (ac_try="$ac_compile"
6558case "(($ac_try" in
6559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6560 *) ac_try_echo=$ac_try;;
6561esac
6562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6563 (eval "$ac_compile") 2>conftest.er1
6564 ac_status=$?
6565 grep -v '^ *+' conftest.er1 >conftest.err
6566 rm -f conftest.er1
6567 cat conftest.err >&5
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); } &&
6570 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6571 { (case "(($ac_try" in
6572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6573 *) ac_try_echo=$ac_try;;
6574esac
6575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6576 (eval "$ac_try") 2>&5
6577 ac_status=$?
6578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579 (exit $ac_status); }; } &&
6580 { ac_try='test -s conftest.$ac_objext'
6581 { (case "(($ac_try" in
6582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6583 *) ac_try_echo=$ac_try;;
6584esac
6585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6586 (eval "$ac_try") 2>&5
6587 ac_status=$?
6588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006590 ac_cv_prog_cxx_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006591else
6592 echo "$as_me: failed program was:" >&5
6593sed 's/^/| /' conftest.$ac_ext >&5
6594
6595
Reid Spencera773bd52006-08-04 18:18:08 +00006596fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006597
Reid Spencera773bd52006-08-04 18:18:08 +00006598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6599fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006600
Reid Spencera773bd52006-08-04 18:18:08 +00006601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6602fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006603
Reid Spencera773bd52006-08-04 18:18:08 +00006604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6605 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6606fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006607{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6608echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006609if test "$ac_test_CXXFLAGS" = set; then
6610 CXXFLAGS=$ac_save_CXXFLAGS
6611elif test $ac_cv_prog_cxx_g = yes; then
6612 if test "$GXX" = yes; then
6613 CXXFLAGS="-g -O2"
6614 else
6615 CXXFLAGS="-g"
6616 fi
6617else
6618 if test "$GXX" = yes; then
6619 CXXFLAGS="-O2"
6620 else
6621 CXXFLAGS=
6622 fi
6623fi
6624ac_ext=c
6625ac_cpp='$CPP $CPPFLAGS'
6626ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6627ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6628ac_compiler_gnu=$ac_cv_c_compiler_gnu
6629
Reid Spencera773bd52006-08-04 18:18:08 +00006630
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006631{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6632echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6633if test "${lt_cv_path_NM+set}" = set; then
6634 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006635else
6636 if test -n "$NM"; then
6637 # Let the user override the test.
6638 lt_cv_path_NM="$NM"
6639else
6640 lt_nm_to_check="${ac_tool_prefix}nm"
6641 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6642 lt_nm_to_check="$lt_nm_to_check nm"
6643 fi
6644 for lt_tmp_nm in $lt_nm_to_check; do
6645 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6646 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6647 IFS="$lt_save_ifs"
6648 test -z "$ac_dir" && ac_dir=.
6649 tmp_nm="$ac_dir/$lt_tmp_nm"
6650 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6651 # Check to see if the nm accepts a BSD-compat flag.
6652 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6653 # nm: unknown option "B" ignored
6654 # Tru64's nm complains that /dev/null is an invalid object file
6655 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6656 */dev/null* | *'Invalid file or object type'*)
6657 lt_cv_path_NM="$tmp_nm -B"
6658 break
6659 ;;
6660 *)
6661 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6662 */dev/null*)
6663 lt_cv_path_NM="$tmp_nm -p"
6664 break
6665 ;;
6666 *)
6667 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6668 continue # so that we can try to find one that supports BSD flags
6669 ;;
6670 esac
6671 ;;
6672 esac
6673 fi
6674 done
6675 IFS="$lt_save_ifs"
6676 done
6677 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6678fi
6679fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006680{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6681echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006682NM="$lt_cv_path_NM"
6683
6684
6685
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006686{ echo "$as_me:$LINENO: checking for GNU make" >&5
6687echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6688if test "${llvm_cv_gnu_make_command+set}" = set; then
6689 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006690else
6691 llvm_cv_gnu_make_command=''
6692 for a in "$MAKE" make gmake gnumake ; do
6693 if test -z "$a" ; then continue ; fi ;
6694 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6695 then
6696 llvm_cv_gnu_make_command=$a ;
6697 break;
6698 fi
6699 done
6700fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006701{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6702echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006703 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6704 ifGNUmake='' ;
6705 else
6706 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006707 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6708echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00006709 fi
6710
6711
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006712{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6713echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006714LN_S=$as_ln_s
6715if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006716 { echo "$as_me:$LINENO: result: yes" >&5
6717echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006718else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006719 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6720echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006721fi
6722
6723# Extract the first word of "cmp", so it can be a program name with args.
6724set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006725{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6726echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6727if test "${ac_cv_path_CMP+set}" = set; then
6728 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006729else
6730 case $CMP in
6731 [\\/]* | ?:[\\/]*)
6732 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6733 ;;
6734 *)
6735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6736for as_dir in $PATH
6737do
6738 IFS=$as_save_IFS
6739 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006740 for ac_exec_ext in '' $ac_executable_extensions; do
6741 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 +00006742 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006744 break 2
6745 fi
6746done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006747done
Reid Spencera773bd52006-08-04 18:18:08 +00006748IFS=$as_save_IFS
6749
6750 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6751 ;;
6752esac
6753fi
6754CMP=$ac_cv_path_CMP
6755if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006756 { echo "$as_me:$LINENO: result: $CMP" >&5
6757echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006758else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006759 { echo "$as_me:$LINENO: result: no" >&5
6760echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006761fi
6762
6763
6764# Extract the first word of "cp", so it can be a program name with args.
6765set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006766{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6767echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6768if test "${ac_cv_path_CP+set}" = set; then
6769 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006770else
6771 case $CP in
6772 [\\/]* | ?:[\\/]*)
6773 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6774 ;;
6775 *)
6776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6777for as_dir in $PATH
6778do
6779 IFS=$as_save_IFS
6780 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006781 for ac_exec_ext in '' $ac_executable_extensions; do
6782 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 +00006783 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006785 break 2
6786 fi
6787done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006788done
Reid Spencera773bd52006-08-04 18:18:08 +00006789IFS=$as_save_IFS
6790
6791 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6792 ;;
6793esac
6794fi
6795CP=$ac_cv_path_CP
6796if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006797 { echo "$as_me:$LINENO: result: $CP" >&5
6798echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006799else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006800 { echo "$as_me:$LINENO: result: no" >&5
6801echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006802fi
6803
6804
6805# Extract the first word of "date", so it can be a program name with args.
6806set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006807{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6809if test "${ac_cv_path_DATE+set}" = set; then
6810 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006811else
6812 case $DATE in
6813 [\\/]* | ?:[\\/]*)
6814 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6815 ;;
6816 *)
6817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6818for as_dir in $PATH
6819do
6820 IFS=$as_save_IFS
6821 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006822 for ac_exec_ext in '' $ac_executable_extensions; do
6823 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 +00006824 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006826 break 2
6827 fi
6828done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006829done
Reid Spencera773bd52006-08-04 18:18:08 +00006830IFS=$as_save_IFS
6831
6832 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6833 ;;
6834esac
6835fi
6836DATE=$ac_cv_path_DATE
6837if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006838 { echo "$as_me:$LINENO: result: $DATE" >&5
6839echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006840else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006841 { echo "$as_me:$LINENO: result: no" >&5
6842echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006843fi
6844
6845
6846# Extract the first word of "find", so it can be a program name with args.
6847set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006848{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6850if test "${ac_cv_path_FIND+set}" = set; then
6851 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006852else
6853 case $FIND in
6854 [\\/]* | ?:[\\/]*)
6855 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6856 ;;
6857 *)
6858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6859for as_dir in $PATH
6860do
6861 IFS=$as_save_IFS
6862 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006863 for ac_exec_ext in '' $ac_executable_extensions; do
6864 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 +00006865 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006867 break 2
6868 fi
6869done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006870done
Reid Spencera773bd52006-08-04 18:18:08 +00006871IFS=$as_save_IFS
6872
6873 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6874 ;;
6875esac
6876fi
6877FIND=$ac_cv_path_FIND
6878if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006879 { echo "$as_me:$LINENO: result: $FIND" >&5
6880echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006881else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006882 { echo "$as_me:$LINENO: result: no" >&5
6883echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006884fi
6885
6886
6887# Extract the first word of "grep", so it can be a program name with args.
6888set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006889{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6891if test "${ac_cv_path_GREP+set}" = set; then
6892 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006893else
6894 case $GREP in
6895 [\\/]* | ?:[\\/]*)
6896 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6897 ;;
6898 *)
6899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6900for as_dir in $PATH
6901do
6902 IFS=$as_save_IFS
6903 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006904 for ac_exec_ext in '' $ac_executable_extensions; do
6905 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 +00006906 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006908 break 2
6909 fi
6910done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006911done
Reid Spencera773bd52006-08-04 18:18:08 +00006912IFS=$as_save_IFS
6913
6914 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6915 ;;
6916esac
6917fi
6918GREP=$ac_cv_path_GREP
6919if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006920 { echo "$as_me:$LINENO: result: $GREP" >&5
6921echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006922else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006923 { echo "$as_me:$LINENO: result: no" >&5
6924echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006925fi
6926
6927
6928# Extract the first word of "mkdir", so it can be a program name with args.
6929set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006930{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6931echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6932if test "${ac_cv_path_MKDIR+set}" = set; then
6933 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006934else
6935 case $MKDIR in
6936 [\\/]* | ?:[\\/]*)
6937 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6938 ;;
6939 *)
6940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6941for as_dir in $PATH
6942do
6943 IFS=$as_save_IFS
6944 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006945 for ac_exec_ext in '' $ac_executable_extensions; do
6946 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 +00006947 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006949 break 2
6950 fi
6951done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006952done
Reid Spencera773bd52006-08-04 18:18:08 +00006953IFS=$as_save_IFS
6954
6955 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6956 ;;
6957esac
6958fi
6959MKDIR=$ac_cv_path_MKDIR
6960if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006961 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6962echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006963else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006964 { echo "$as_me:$LINENO: result: no" >&5
6965echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006966fi
6967
6968
6969# Extract the first word of "mv", so it can be a program name with args.
6970set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006971{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6972echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6973if test "${ac_cv_path_MV+set}" = set; then
6974 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006975else
6976 case $MV in
6977 [\\/]* | ?:[\\/]*)
6978 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6979 ;;
6980 *)
6981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6982for as_dir in $PATH
6983do
6984 IFS=$as_save_IFS
6985 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006986 for ac_exec_ext in '' $ac_executable_extensions; do
6987 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 +00006988 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006990 break 2
6991 fi
6992done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006993done
Reid Spencera773bd52006-08-04 18:18:08 +00006994IFS=$as_save_IFS
6995
6996 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6997 ;;
6998esac
6999fi
7000MV=$ac_cv_path_MV
7001if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007002 { echo "$as_me:$LINENO: result: $MV" >&5
7003echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007004else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007005 { echo "$as_me:$LINENO: result: no" >&5
7006echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007007fi
7008
7009
7010if test -n "$ac_tool_prefix"; then
7011 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7012set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007013{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7014echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7015if test "${ac_cv_prog_RANLIB+set}" = set; then
7016 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007017else
7018 if test -n "$RANLIB"; then
7019 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7020else
7021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7022for as_dir in $PATH
7023do
7024 IFS=$as_save_IFS
7025 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007026 for ac_exec_ext in '' $ac_executable_extensions; do
7027 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 +00007028 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007030 break 2
7031 fi
7032done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007033done
Reid Spencera773bd52006-08-04 18:18:08 +00007034IFS=$as_save_IFS
7035
7036fi
7037fi
7038RANLIB=$ac_cv_prog_RANLIB
7039if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007040 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7041echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007042else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007043 { echo "$as_me:$LINENO: result: no" >&5
7044echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007045fi
7046
7047
7048fi
7049if test -z "$ac_cv_prog_RANLIB"; then
7050 ac_ct_RANLIB=$RANLIB
7051 # Extract the first word of "ranlib", so it can be a program name with args.
7052set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007053{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7054echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7055if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7056 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007057else
7058 if test -n "$ac_ct_RANLIB"; then
7059 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7060else
7061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7062for as_dir in $PATH
7063do
7064 IFS=$as_save_IFS
7065 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007066 for ac_exec_ext in '' $ac_executable_extensions; do
7067 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 +00007068 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007070 break 2
7071 fi
7072done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007073done
Reid Spencera773bd52006-08-04 18:18:08 +00007074IFS=$as_save_IFS
7075
7076fi
7077fi
7078ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7079if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007080 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7081echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007082else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007083 { echo "$as_me:$LINENO: result: no" >&5
7084echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007085fi
7086
7087 if test "x$ac_ct_RANLIB" = x; then
7088 RANLIB=":"
7089 else
7090 case $cross_compiling:$ac_tool_warned in
7091yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007092{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7093whose name does not start with the host triplet. If you think this
7094configuration is useful to you, please write to autoconf@gnu.org." >&5
7095echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7096whose name does not start with the host triplet. If you think this
7097configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00007098ac_tool_warned=yes ;;
7099esac
7100 RANLIB=$ac_ct_RANLIB
7101 fi
7102else
7103 RANLIB="$ac_cv_prog_RANLIB"
7104fi
7105
Torok Edwin871384f2010-01-26 08:50:50 +00007106if test -n "$ac_tool_prefix"; then
7107 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7108set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007109{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7110echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7111if test "${ac_cv_prog_AR+set}" = set; then
7112 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007113else
7114 if test -n "$AR"; then
7115 ac_cv_prog_AR="$AR" # Let the user override the test.
7116else
7117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118for as_dir in $PATH
7119do
7120 IFS=$as_save_IFS
7121 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007122 for ac_exec_ext in '' $ac_executable_extensions; do
7123 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 +00007124 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007126 break 2
7127 fi
7128done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007129done
Torok Edwin871384f2010-01-26 08:50:50 +00007130IFS=$as_save_IFS
7131
7132fi
7133fi
7134AR=$ac_cv_prog_AR
7135if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007136 { echo "$as_me:$LINENO: result: $AR" >&5
7137echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007138else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007139 { echo "$as_me:$LINENO: result: no" >&5
7140echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007141fi
7142
7143
7144fi
7145if test -z "$ac_cv_prog_AR"; then
7146 ac_ct_AR=$AR
7147 # Extract the first word of "ar", so it can be a program name with args.
7148set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007149{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7150echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7151if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7152 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007153else
7154 if test -n "$ac_ct_AR"; then
7155 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7156else
7157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7158for as_dir in $PATH
7159do
7160 IFS=$as_save_IFS
7161 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007162 for ac_exec_ext in '' $ac_executable_extensions; do
7163 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 +00007164 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007166 break 2
7167 fi
7168done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007169done
Torok Edwin871384f2010-01-26 08:50:50 +00007170IFS=$as_save_IFS
7171
7172fi
7173fi
7174ac_ct_AR=$ac_cv_prog_ac_ct_AR
7175if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007176 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7177echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007178else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007179 { echo "$as_me:$LINENO: result: no" >&5
7180echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007181fi
7182
7183 if test "x$ac_ct_AR" = x; then
7184 AR="false"
7185 else
7186 case $cross_compiling:$ac_tool_warned in
7187yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007188{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7189whose name does not start with the host triplet. If you think this
7190configuration is useful to you, please write to autoconf@gnu.org." >&5
7191echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7192whose name does not start with the host triplet. If you think this
7193configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00007194ac_tool_warned=yes ;;
7195esac
7196 AR=$ac_ct_AR
7197 fi
7198else
7199 AR="$ac_cv_prog_AR"
7200fi
7201
Reid Spencera773bd52006-08-04 18:18:08 +00007202# Extract the first word of "rm", so it can be a program name with args.
7203set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007204{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7206if test "${ac_cv_path_RM+set}" = set; then
7207 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007208else
7209 case $RM in
7210 [\\/]* | ?:[\\/]*)
7211 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7212 ;;
7213 *)
7214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215for as_dir in $PATH
7216do
7217 IFS=$as_save_IFS
7218 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007219 for ac_exec_ext in '' $ac_executable_extensions; do
7220 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 +00007221 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007223 break 2
7224 fi
7225done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007226done
Reid Spencera773bd52006-08-04 18:18:08 +00007227IFS=$as_save_IFS
7228
7229 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7230 ;;
7231esac
7232fi
7233RM=$ac_cv_path_RM
7234if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007235 { echo "$as_me:$LINENO: result: $RM" >&5
7236echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007237else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007238 { echo "$as_me:$LINENO: result: no" >&5
7239echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007240fi
7241
7242
7243# Extract the first word of "sed", so it can be a program name with args.
7244set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007245{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7246echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7247if test "${ac_cv_path_SED+set}" = set; then
7248 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007249else
7250 case $SED in
7251 [\\/]* | ?:[\\/]*)
7252 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7253 ;;
7254 *)
7255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7256for as_dir in $PATH
7257do
7258 IFS=$as_save_IFS
7259 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007260 for ac_exec_ext in '' $ac_executable_extensions; do
7261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007262 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007264 break 2
7265 fi
7266done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007267done
Reid Spencera773bd52006-08-04 18:18:08 +00007268IFS=$as_save_IFS
7269
7270 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7271 ;;
7272esac
7273fi
7274SED=$ac_cv_path_SED
7275if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007276 { echo "$as_me:$LINENO: result: $SED" >&5
7277echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007278else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007279 { echo "$as_me:$LINENO: result: no" >&5
7280echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007281fi
7282
7283
7284# Extract the first word of "tar", so it can be a program name with args.
7285set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007286{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7287echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7288if test "${ac_cv_path_TAR+set}" = set; then
7289 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007290else
7291 case $TAR in
7292 [\\/]* | ?:[\\/]*)
7293 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7294 ;;
7295 *)
7296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7297for as_dir in $PATH
7298do
7299 IFS=$as_save_IFS
7300 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007301 for ac_exec_ext in '' $ac_executable_extensions; do
7302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007303 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007305 break 2
7306 fi
7307done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007308done
Reid Spencera773bd52006-08-04 18:18:08 +00007309IFS=$as_save_IFS
7310
7311 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7312 ;;
7313esac
7314fi
7315TAR=$ac_cv_path_TAR
7316if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007317 { echo "$as_me:$LINENO: result: $TAR" >&5
7318echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007319else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007320 { echo "$as_me:$LINENO: result: no" >&5
7321echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007322fi
7323
7324
7325# Extract the first word of "pwd", so it can be a program name with args.
7326set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007327{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7328echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7329if test "${ac_cv_path_BINPWD+set}" = set; then
7330 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007331else
7332 case $BINPWD in
7333 [\\/]* | ?:[\\/]*)
7334 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7335 ;;
7336 *)
7337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7338for as_dir in $PATH
7339do
7340 IFS=$as_save_IFS
7341 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007342 for ac_exec_ext in '' $ac_executable_extensions; do
7343 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 +00007344 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007346 break 2
7347 fi
7348done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007349done
Reid Spencera773bd52006-08-04 18:18:08 +00007350IFS=$as_save_IFS
7351
7352 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7353 ;;
7354esac
7355fi
7356BINPWD=$ac_cv_path_BINPWD
7357if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007358 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7359echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007360else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007361 { echo "$as_me:$LINENO: result: no" >&5
7362echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007363fi
7364
7365
7366
7367# Extract the first word of "Graphviz", so it can be a program name with args.
7368set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007369{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7370echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7371if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7372 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007373else
7374 case $GRAPHVIZ in
7375 [\\/]* | ?:[\\/]*)
7376 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7377 ;;
7378 *)
7379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7380for as_dir in $PATH
7381do
7382 IFS=$as_save_IFS
7383 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007384 for ac_exec_ext in '' $ac_executable_extensions; do
7385 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 +00007386 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007388 break 2
7389 fi
7390done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007391done
Reid Spencera773bd52006-08-04 18:18:08 +00007392IFS=$as_save_IFS
7393
7394 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7395 ;;
7396esac
7397fi
7398GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7399if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007400 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7401echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007402else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007403 { echo "$as_me:$LINENO: result: no" >&5
7404echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007405fi
7406
7407
7408if test "$GRAPHVIZ" != "echo Graphviz" ; then
7409
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007410cat >>confdefs.h <<\_ACEOF
7411#define HAVE_GRAPHVIZ 1
7412_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007413
Jeff Cohen28783c32007-01-12 18:22:38 +00007414 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007415 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7416 fi
7417
7418cat >>confdefs.h <<_ACEOF
7419#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7420_ACEOF
7421
7422fi
7423# Extract the first word of "dot", so it can be a program name with args.
7424set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007425{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7427if test "${ac_cv_path_DOT+set}" = set; then
7428 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007429else
7430 case $DOT in
7431 [\\/]* | ?:[\\/]*)
7432 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7433 ;;
7434 *)
7435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7436for as_dir in $PATH
7437do
7438 IFS=$as_save_IFS
7439 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007440 for ac_exec_ext in '' $ac_executable_extensions; do
7441 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 +00007442 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007444 break 2
7445 fi
7446done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007447done
Reid Spencera773bd52006-08-04 18:18:08 +00007448IFS=$as_save_IFS
7449
7450 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7451 ;;
7452esac
7453fi
7454DOT=$ac_cv_path_DOT
7455if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007456 { echo "$as_me:$LINENO: result: $DOT" >&5
7457echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007458else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007459 { echo "$as_me:$LINENO: result: no" >&5
7460echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007461fi
7462
7463
7464if test "$DOT" != "echo dot" ; then
7465
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007466cat >>confdefs.h <<\_ACEOF
7467#define HAVE_DOT 1
7468_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007469
Jeff Cohen28783c32007-01-12 18:22:38 +00007470 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007471 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7472 fi
7473
7474cat >>confdefs.h <<_ACEOF
7475#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7476_ACEOF
7477
7478fi
David Greenef0b9eff2009-07-09 17:16:26 +00007479# Extract the first word of "fdp", so it can be a program name with args.
7480set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007481{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7482echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7483if test "${ac_cv_path_FDP+set}" = set; then
7484 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007485else
7486 case $FDP in
7487 [\\/]* | ?:[\\/]*)
7488 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7489 ;;
7490 *)
7491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7492for as_dir in $PATH
7493do
7494 IFS=$as_save_IFS
7495 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007496 for ac_exec_ext in '' $ac_executable_extensions; do
7497 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 +00007498 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007500 break 2
7501 fi
7502done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007503done
David Greenef0b9eff2009-07-09 17:16:26 +00007504IFS=$as_save_IFS
7505
7506 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7507 ;;
7508esac
7509fi
7510FDP=$ac_cv_path_FDP
7511if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007512 { echo "$as_me:$LINENO: result: $FDP" >&5
7513echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007514else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007515 { echo "$as_me:$LINENO: result: no" >&5
7516echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007517fi
7518
7519
7520if test "$FDP" != "echo fdp" ; then
7521
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007522cat >>confdefs.h <<\_ACEOF
7523#define HAVE_FDP 1
7524_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007525
7526 if test "$llvm_cv_os_type" = "MingW" ; then
7527 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7528 fi
7529
7530cat >>confdefs.h <<_ACEOF
7531#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7532_ACEOF
7533
7534fi
7535# Extract the first word of "neato", so it can be a program name with args.
7536set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007537{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7538echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7539if test "${ac_cv_path_NEATO+set}" = set; then
7540 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007541else
7542 case $NEATO in
7543 [\\/]* | ?:[\\/]*)
7544 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7545 ;;
7546 *)
7547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548for as_dir in $PATH
7549do
7550 IFS=$as_save_IFS
7551 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007552 for ac_exec_ext in '' $ac_executable_extensions; do
7553 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 +00007554 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007556 break 2
7557 fi
7558done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007559done
David Greenef0b9eff2009-07-09 17:16:26 +00007560IFS=$as_save_IFS
7561
7562 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7563 ;;
7564esac
7565fi
7566NEATO=$ac_cv_path_NEATO
7567if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007568 { echo "$as_me:$LINENO: result: $NEATO" >&5
7569echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007570else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007571 { echo "$as_me:$LINENO: result: no" >&5
7572echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007573fi
7574
7575
7576if test "$NEATO" != "echo neato" ; then
7577
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007578cat >>confdefs.h <<\_ACEOF
7579#define HAVE_NEATO 1
7580_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007581
7582 if test "$llvm_cv_os_type" = "MingW" ; then
7583 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7584 fi
7585
7586cat >>confdefs.h <<_ACEOF
7587#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7588_ACEOF
7589
7590fi
7591# Extract the first word of "twopi", so it can be a program name with args.
7592set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007593{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7595if test "${ac_cv_path_TWOPI+set}" = set; then
7596 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007597else
7598 case $TWOPI in
7599 [\\/]* | ?:[\\/]*)
7600 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7601 ;;
7602 *)
7603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7604for as_dir in $PATH
7605do
7606 IFS=$as_save_IFS
7607 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007608 for ac_exec_ext in '' $ac_executable_extensions; do
7609 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 +00007610 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007612 break 2
7613 fi
7614done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007615done
David Greenef0b9eff2009-07-09 17:16:26 +00007616IFS=$as_save_IFS
7617
7618 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7619 ;;
7620esac
7621fi
7622TWOPI=$ac_cv_path_TWOPI
7623if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007624 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7625echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007626else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007627 { echo "$as_me:$LINENO: result: no" >&5
7628echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007629fi
7630
7631
7632if test "$TWOPI" != "echo twopi" ; then
7633
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007634cat >>confdefs.h <<\_ACEOF
7635#define HAVE_TWOPI 1
7636_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007637
7638 if test "$llvm_cv_os_type" = "MingW" ; then
7639 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7640 fi
7641
7642cat >>confdefs.h <<_ACEOF
7643#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7644_ACEOF
7645
7646fi
7647# Extract the first word of "circo", so it can be a program name with args.
7648set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007649{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7651if test "${ac_cv_path_CIRCO+set}" = set; then
7652 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007653else
7654 case $CIRCO in
7655 [\\/]* | ?:[\\/]*)
7656 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7657 ;;
7658 *)
7659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7660for as_dir in $PATH
7661do
7662 IFS=$as_save_IFS
7663 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007664 for ac_exec_ext in '' $ac_executable_extensions; do
7665 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 +00007666 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007668 break 2
7669 fi
7670done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007671done
David Greenef0b9eff2009-07-09 17:16:26 +00007672IFS=$as_save_IFS
7673
7674 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7675 ;;
7676esac
7677fi
7678CIRCO=$ac_cv_path_CIRCO
7679if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007680 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7681echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007682else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007683 { echo "$as_me:$LINENO: result: no" >&5
7684echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007685fi
7686
7687
7688if test "$CIRCO" != "echo circo" ; then
7689
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007690cat >>confdefs.h <<\_ACEOF
7691#define HAVE_CIRCO 1
7692_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007693
7694 if test "$llvm_cv_os_type" = "MingW" ; then
7695 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7696 fi
7697
7698cat >>confdefs.h <<_ACEOF
7699#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7700_ACEOF
7701
7702fi
Reid Spencera773bd52006-08-04 18:18:08 +00007703for ac_prog in gv gsview32
7704do
7705 # Extract the first word of "$ac_prog", so it can be a program name with args.
7706set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007707{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7708echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7709if test "${ac_cv_path_GV+set}" = set; then
7710 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007711else
7712 case $GV in
7713 [\\/]* | ?:[\\/]*)
7714 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7715 ;;
7716 *)
7717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7718for as_dir in $PATH
7719do
7720 IFS=$as_save_IFS
7721 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007722 for ac_exec_ext in '' $ac_executable_extensions; do
7723 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 +00007724 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007726 break 2
7727 fi
7728done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007729done
Reid Spencera773bd52006-08-04 18:18:08 +00007730IFS=$as_save_IFS
7731
7732 ;;
7733esac
7734fi
7735GV=$ac_cv_path_GV
7736if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007737 { echo "$as_me:$LINENO: result: $GV" >&5
7738echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007739else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007740 { echo "$as_me:$LINENO: result: no" >&5
7741echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007742fi
7743
7744
7745 test -n "$GV" && break
7746done
7747test -n "$GV" || GV="echo gv"
7748
7749if test "$GV" != "echo gv" ; then
7750
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007751cat >>confdefs.h <<\_ACEOF
7752#define HAVE_GV 1
7753_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007754
Jeff Cohen28783c32007-01-12 18:22:38 +00007755 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007756 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7757 fi
7758
7759cat >>confdefs.h <<_ACEOF
7760#define LLVM_PATH_GV "$GV${EXEEXT}"
7761_ACEOF
7762
7763fi
7764# Extract the first word of "dotty", so it can be a program name with args.
7765set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007766{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7767echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7768if test "${ac_cv_path_DOTTY+set}" = set; then
7769 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007770else
7771 case $DOTTY in
7772 [\\/]* | ?:[\\/]*)
7773 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7774 ;;
7775 *)
7776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7777for as_dir in $PATH
7778do
7779 IFS=$as_save_IFS
7780 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007781 for ac_exec_ext in '' $ac_executable_extensions; do
7782 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 +00007783 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007785 break 2
7786 fi
7787done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007788done
Reid Spencera773bd52006-08-04 18:18:08 +00007789IFS=$as_save_IFS
7790
7791 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7792 ;;
7793esac
7794fi
7795DOTTY=$ac_cv_path_DOTTY
7796if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007797 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7798echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007799else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007800 { echo "$as_me:$LINENO: result: no" >&5
7801echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007802fi
7803
7804
7805if test "$DOTTY" != "echo dotty" ; then
7806
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007807cat >>confdefs.h <<\_ACEOF
7808#define HAVE_DOTTY 1
7809_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007810
Jeff Cohen28783c32007-01-12 18:22:38 +00007811 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007812 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7813 fi
7814
7815cat >>confdefs.h <<_ACEOF
7816#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7817_ACEOF
7818
7819fi
7820
7821
7822# Extract the first word of "perl", so it can be a program name with args.
7823set dummy perl; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007824{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7826if test "${ac_cv_path_PERL+set}" = set; then
7827 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007828else
7829 case $PERL in
7830 [\\/]* | ?:[\\/]*)
7831 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7832 ;;
7833 *)
7834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7835for as_dir in $PATH
7836do
7837 IFS=$as_save_IFS
7838 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007839 for ac_exec_ext in '' $ac_executable_extensions; do
7840 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 +00007841 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007843 break 2
7844 fi
7845done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007846done
Reid Spencera773bd52006-08-04 18:18:08 +00007847IFS=$as_save_IFS
7848
7849 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7850 ;;
7851esac
7852fi
7853PERL=$ac_cv_path_PERL
7854if test -n "$PERL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007855 { echo "$as_me:$LINENO: result: $PERL" >&5
7856echo "${ECHO_T}$PERL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007857else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007858 { echo "$as_me:$LINENO: result: no" >&5
7859echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007860fi
7861
7862
7863if test "$PERL" != "none"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007864 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7865echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007866 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007867 { echo "$as_me:$LINENO: result: yes" >&5
7868echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007869 else
7870 PERL=none
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007871 { echo "$as_me:$LINENO: result: not found" >&5
7872echo "${ECHO_T}not found" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007873 fi
7874fi
7875
7876
7877if test x"$PERL" = xnone; then
7878 HAVE_PERL=0
7879
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007880 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7881echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7882 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007883else
7884 HAVE_PERL=1
7885
7886fi
7887
7888# Find a good install program. We prefer a C program (faster),
7889# so one script is as good as another. But avoid the broken or
7890# incompatible versions:
7891# SysV /etc/install, /usr/sbin/install
7892# SunOS /usr/etc/install
7893# IRIX /sbin/install
7894# AIX /bin/install
7895# AmigaOS /C/install, which installs bootblocks on floppy discs
7896# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7897# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7898# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7899# OS/2's system install, which has a completely different semantic
7900# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007901{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7902echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007903if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007904if test "${ac_cv_path_install+set}" = set; then
7905 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007906else
7907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7908for as_dir in $PATH
7909do
7910 IFS=$as_save_IFS
7911 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007912 # Account for people who put trailing slashes in PATH elements.
7913case $as_dir/ in
7914 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007915 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007916 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007917 /usr/ucb/* ) ;;
7918 *)
7919 # OSF1 and SCO ODT 3.0 have their own names for install.
7920 # Don't use installbsd from OSF since it installs stuff as root
7921 # by default.
7922 for ac_prog in ginstall scoinst install; do
7923 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007924 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 +00007925 if test $ac_prog = install &&
7926 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7927 # AIX install. It has an incompatible calling convention.
7928 :
7929 elif test $ac_prog = install &&
7930 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7931 # program-specific install script used by HP pwplus--don't use.
7932 :
7933 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007934 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7935 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00007936 fi
7937 fi
7938 done
7939 done
7940 ;;
7941esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007942done
Reid Spencera773bd52006-08-04 18:18:08 +00007943IFS=$as_save_IFS
7944
7945
7946fi
7947 if test "${ac_cv_path_install+set}" = set; then
7948 INSTALL=$ac_cv_path_install
7949 else
7950 # As a last resort, use the slow shell script. Don't cache a
7951 # value for INSTALL within a source directory, because that will
7952 # break other packages using the cache if that directory is
7953 # removed, or if the value is a relative name.
7954 INSTALL=$ac_install_sh
7955 fi
7956fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007957{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7958echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007959
7960# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7961# It thinks the first close brace ends the variable substitution.
7962test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7963
7964test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7965
7966test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7967
Eric Christopher2a1a44f2010-07-22 21:13:48 +00007968case "$INSTALL" in
7969 [\\/$]* | ?:[\\/]* ) ;;
7970 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7971esac
Reid Spencera773bd52006-08-04 18:18:08 +00007972
7973# Extract the first word of "bzip2", so it can be a program name with args.
7974set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007975{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7976echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7977if test "${ac_cv_path_BZIP2+set}" = set; then
7978 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007979else
7980 case $BZIP2 in
7981 [\\/]* | ?:[\\/]*)
7982 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7983 ;;
7984 *)
7985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7986for as_dir in $PATH
7987do
7988 IFS=$as_save_IFS
7989 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007990 for ac_exec_ext in '' $ac_executable_extensions; do
7991 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 +00007992 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007994 break 2
7995 fi
7996done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007997done
Reid Spencera773bd52006-08-04 18:18:08 +00007998IFS=$as_save_IFS
7999
Reid Spencera773bd52006-08-04 18:18:08 +00008000 ;;
8001esac
8002fi
8003BZIP2=$ac_cv_path_BZIP2
8004if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008005 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8006echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008007else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008008 { echo "$as_me:$LINENO: result: no" >&5
8009echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008010fi
8011
8012
mike-m68cb3192010-05-06 23:45:43 +00008013# Extract the first word of "cat", so it can be a program name with args.
8014set dummy cat; ac_word=$2
8015{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8016echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8017if test "${ac_cv_path_CAT+set}" = set; then
8018 echo $ECHO_N "(cached) $ECHO_C" >&6
8019else
8020 case $CAT in
8021 [\\/]* | ?:[\\/]*)
8022 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8023 ;;
8024 *)
8025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8026for as_dir in $PATH
8027do
8028 IFS=$as_save_IFS
8029 test -z "$as_dir" && as_dir=.
8030 for ac_exec_ext in '' $ac_executable_extensions; do
8031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8032 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8034 break 2
8035 fi
8036done
8037done
8038IFS=$as_save_IFS
8039
8040 ;;
8041esac
8042fi
8043CAT=$ac_cv_path_CAT
8044if test -n "$CAT"; then
8045 { echo "$as_me:$LINENO: result: $CAT" >&5
8046echo "${ECHO_T}$CAT" >&6; }
8047else
8048 { echo "$as_me:$LINENO: result: no" >&5
8049echo "${ECHO_T}no" >&6; }
8050fi
8051
8052
Reid Spencera773bd52006-08-04 18:18:08 +00008053# Extract the first word of "doxygen", so it can be a program name with args.
8054set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008055{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8056echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8057if test "${ac_cv_path_DOXYGEN+set}" = set; then
8058 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008059else
8060 case $DOXYGEN in
8061 [\\/]* | ?:[\\/]*)
8062 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8063 ;;
8064 *)
8065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8066for as_dir in $PATH
8067do
8068 IFS=$as_save_IFS
8069 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008070 for ac_exec_ext in '' $ac_executable_extensions; do
8071 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 +00008072 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008074 break 2
8075 fi
8076done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008077done
Reid Spencera773bd52006-08-04 18:18:08 +00008078IFS=$as_save_IFS
8079
Reid Spencera773bd52006-08-04 18:18:08 +00008080 ;;
8081esac
8082fi
8083DOXYGEN=$ac_cv_path_DOXYGEN
8084if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008085 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8086echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008087else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008088 { echo "$as_me:$LINENO: result: no" >&5
8089echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008090fi
8091
8092
Reid Spencera773bd52006-08-04 18:18:08 +00008093# Extract the first word of "groff", so it can be a program name with args.
8094set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008095{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8096echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8097if test "${ac_cv_path_GROFF+set}" = set; then
8098 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008099else
8100 case $GROFF in
8101 [\\/]* | ?:[\\/]*)
8102 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8103 ;;
8104 *)
8105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8106for as_dir in $PATH
8107do
8108 IFS=$as_save_IFS
8109 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008110 for ac_exec_ext in '' $ac_executable_extensions; do
8111 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 +00008112 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008114 break 2
8115 fi
8116done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008117done
Reid Spencera773bd52006-08-04 18:18:08 +00008118IFS=$as_save_IFS
8119
Reid Spencera773bd52006-08-04 18:18:08 +00008120 ;;
8121esac
8122fi
8123GROFF=$ac_cv_path_GROFF
8124if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008125 { echo "$as_me:$LINENO: result: $GROFF" >&5
8126echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008127else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008128 { echo "$as_me:$LINENO: result: no" >&5
8129echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008130fi
8131
8132
8133# Extract the first word of "gzip", so it can be a program name with args.
8134set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008135{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8137if test "${ac_cv_path_GZIP+set}" = set; then
8138 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008139else
8140 case $GZIP in
8141 [\\/]* | ?:[\\/]*)
8142 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8143 ;;
8144 *)
8145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8146for as_dir in $PATH
8147do
8148 IFS=$as_save_IFS
8149 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008150 for ac_exec_ext in '' $ac_executable_extensions; do
8151 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 +00008152 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008154 break 2
8155 fi
8156done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008157done
Reid Spencera773bd52006-08-04 18:18:08 +00008158IFS=$as_save_IFS
8159
Reid Spencera773bd52006-08-04 18:18:08 +00008160 ;;
8161esac
8162fi
8163GZIP=$ac_cv_path_GZIP
8164if test -n "$GZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008165 { echo "$as_me:$LINENO: result: $GZIP" >&5
8166echo "${ECHO_T}$GZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008167else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008168 { echo "$as_me:$LINENO: result: no" >&5
8169echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008170fi
8171
8172
8173# Extract the first word of "pod2html", so it can be a program name with args.
8174set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008175{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8177if test "${ac_cv_path_POD2HTML+set}" = set; then
8178 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008179else
8180 case $POD2HTML in
8181 [\\/]* | ?:[\\/]*)
8182 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8183 ;;
8184 *)
8185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8186for as_dir in $PATH
8187do
8188 IFS=$as_save_IFS
8189 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008190 for ac_exec_ext in '' $ac_executable_extensions; do
8191 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 +00008192 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008194 break 2
8195 fi
8196done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008197done
Reid Spencera773bd52006-08-04 18:18:08 +00008198IFS=$as_save_IFS
8199
Reid Spencera773bd52006-08-04 18:18:08 +00008200 ;;
8201esac
8202fi
8203POD2HTML=$ac_cv_path_POD2HTML
8204if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008205 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8206echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008207else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008208 { echo "$as_me:$LINENO: result: no" >&5
8209echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008210fi
8211
8212
8213# Extract the first word of "pod2man", so it can be a program name with args.
8214set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008215{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8216echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8217if test "${ac_cv_path_POD2MAN+set}" = set; then
8218 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008219else
8220 case $POD2MAN in
8221 [\\/]* | ?:[\\/]*)
8222 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8223 ;;
8224 *)
8225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8226for as_dir in $PATH
8227do
8228 IFS=$as_save_IFS
8229 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008230 for ac_exec_ext in '' $ac_executable_extensions; do
8231 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 +00008232 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008234 break 2
8235 fi
8236done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008237done
Reid Spencera773bd52006-08-04 18:18:08 +00008238IFS=$as_save_IFS
8239
Reid Spencera773bd52006-08-04 18:18:08 +00008240 ;;
8241esac
8242fi
8243POD2MAN=$ac_cv_path_POD2MAN
8244if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008245 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8246echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008247else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008248 { echo "$as_me:$LINENO: result: no" >&5
8249echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008250fi
8251
8252
mike-m68cb3192010-05-06 23:45:43 +00008253# Extract the first word of "pdfroff", so it can be a program name with args.
8254set dummy pdfroff; ac_word=$2
8255{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8256echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8257if test "${ac_cv_path_PDFROFF+set}" = set; then
8258 echo $ECHO_N "(cached) $ECHO_C" >&6
8259else
8260 case $PDFROFF in
8261 [\\/]* | ?:[\\/]*)
8262 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8263 ;;
8264 *)
8265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8266for as_dir in $PATH
8267do
8268 IFS=$as_save_IFS
8269 test -z "$as_dir" && as_dir=.
8270 for ac_exec_ext in '' $ac_executable_extensions; do
8271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8272 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8274 break 2
8275 fi
8276done
8277done
8278IFS=$as_save_IFS
8279
8280 ;;
8281esac
8282fi
8283PDFROFF=$ac_cv_path_PDFROFF
8284if test -n "$PDFROFF"; then
8285 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8286echo "${ECHO_T}$PDFROFF" >&6; }
8287else
8288 { echo "$as_me:$LINENO: result: no" >&5
8289echo "${ECHO_T}no" >&6; }
8290fi
8291
8292
Reid Spencera773bd52006-08-04 18:18:08 +00008293# Extract the first word of "runtest", so it can be a program name with args.
8294set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008295{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8296echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8297if test "${ac_cv_path_RUNTEST+set}" = set; then
8298 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008299else
8300 case $RUNTEST in
8301 [\\/]* | ?:[\\/]*)
8302 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8303 ;;
8304 *)
8305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8306for as_dir in $PATH
8307do
8308 IFS=$as_save_IFS
8309 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008310 for ac_exec_ext in '' $ac_executable_extensions; do
8311 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 +00008312 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008314 break 2
8315 fi
8316done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008317done
Reid Spencera773bd52006-08-04 18:18:08 +00008318IFS=$as_save_IFS
8319
Reid Spencera773bd52006-08-04 18:18:08 +00008320 ;;
8321esac
8322fi
8323RUNTEST=$ac_cv_path_RUNTEST
8324if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008325 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8326echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008327else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008328 { echo "$as_me:$LINENO: result: no" >&5
8329echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008330fi
8331
8332
8333
8334no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008335{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8336echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008337
8338# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008339if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008340 withval=$with_tclinclude; with_tclinclude=${withval}
8341else
8342 with_tclinclude=''
8343fi
8344
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008345if test "${ac_cv_path_tclsh+set}" = set; then
8346 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008347else
8348
8349if test x"${with_tclinclude}" != x ; then
8350 if test -f ${with_tclinclude}/tclsh ; then
8351 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8352 elif test -f ${with_tclinclude}/src/tclsh ; then
8353 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8354 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008355 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8356echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8357 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00008358 fi
8359fi
Torok Edwin871384f2010-01-26 08:50:50 +00008360fi
8361
Reid Spencera773bd52006-08-04 18:18:08 +00008362
8363if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008364 { echo "$as_me:$LINENO: result: none" >&5
8365echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008366 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
8367do
8368 # Extract the first word of "$ac_prog", so it can be a program name with args.
8369set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008370{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8371echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8372if test "${ac_cv_path_TCLSH+set}" = set; then
8373 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008374else
8375 case $TCLSH in
8376 [\\/]* | ?:[\\/]*)
8377 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8378 ;;
8379 *)
8380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8381for as_dir in $PATH
8382do
8383 IFS=$as_save_IFS
8384 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008385 for ac_exec_ext in '' $ac_executable_extensions; do
8386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008387 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008389 break 2
8390 fi
8391done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008392done
Reid Spencera773bd52006-08-04 18:18:08 +00008393IFS=$as_save_IFS
8394
8395 ;;
8396esac
8397fi
8398TCLSH=$ac_cv_path_TCLSH
8399if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008400 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8401echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008402else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008403 { echo "$as_me:$LINENO: result: no" >&5
8404echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008405fi
8406
8407
8408 test -n "$TCLSH" && break
8409done
8410
8411 if test x"${TCLSH}" = x ; then
8412 ac_cv_path_tclsh='';
8413 else
8414 ac_cv_path_tclsh="${TCLSH}";
8415 fi
8416else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008417 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8418echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008419 TCLSH="${ac_cv_path_tclsh}"
8420
8421fi
8422
Reid Spencera773bd52006-08-04 18:18:08 +00008423# Extract the first word of "zip", so it can be a program name with args.
8424set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008425{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8427if test "${ac_cv_path_ZIP+set}" = set; then
8428 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008429else
8430 case $ZIP in
8431 [\\/]* | ?:[\\/]*)
8432 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8433 ;;
8434 *)
8435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8436for as_dir in $PATH
8437do
8438 IFS=$as_save_IFS
8439 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008440 for ac_exec_ext in '' $ac_executable_extensions; do
8441 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 +00008442 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008444 break 2
8445 fi
8446done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008447done
Reid Spencera773bd52006-08-04 18:18:08 +00008448IFS=$as_save_IFS
8449
Reid Spencera773bd52006-08-04 18:18:08 +00008450 ;;
8451esac
8452fi
8453ZIP=$ac_cv_path_ZIP
8454if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008455 { echo "$as_me:$LINENO: result: $ZIP" >&5
8456echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008457else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008458 { echo "$as_me:$LINENO: result: no" >&5
8459echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008460fi
8461
8462
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008463for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00008464do
8465 # Extract the first word of "$ac_prog", so it can be a program name with args.
8466set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008467{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8468echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8469if test "${ac_cv_path_OCAMLC+set}" = set; then
8470 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008471else
8472 case $OCAMLC in
8473 [\\/]* | ?:[\\/]*)
8474 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8475 ;;
8476 *)
8477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8478for as_dir in $PATH
8479do
8480 IFS=$as_save_IFS
8481 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008482 for ac_exec_ext in '' $ac_executable_extensions; do
8483 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 +00008484 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008486 break 2
8487 fi
8488done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008489done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008490IFS=$as_save_IFS
8491
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008492 ;;
8493esac
8494fi
8495OCAMLC=$ac_cv_path_OCAMLC
8496if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008497 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8498echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008499else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008500 { echo "$as_me:$LINENO: result: no" >&5
8501echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008502fi
8503
8504
Gordon Henriksene7072162008-03-07 18:20:01 +00008505 test -n "$OCAMLC" && break
8506done
8507
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008508for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00008509do
8510 # Extract the first word of "$ac_prog", so it can be a program name with args.
8511set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008512{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8514if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8515 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008516else
8517 case $OCAMLOPT in
8518 [\\/]* | ?:[\\/]*)
8519 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8520 ;;
8521 *)
8522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8523for as_dir in $PATH
8524do
8525 IFS=$as_save_IFS
8526 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008527 for ac_exec_ext in '' $ac_executable_extensions; do
8528 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 +00008529 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008531 break 2
8532 fi
8533done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008534done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008535IFS=$as_save_IFS
8536
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008537 ;;
8538esac
8539fi
8540OCAMLOPT=$ac_cv_path_OCAMLOPT
8541if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008542 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8543echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008544else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008545 { echo "$as_me:$LINENO: result: no" >&5
8546echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008547fi
8548
8549
Gordon Henriksene7072162008-03-07 18:20:01 +00008550 test -n "$OCAMLOPT" && break
8551done
8552
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008553for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00008554do
8555 # Extract the first word of "$ac_prog", so it can be a program name with args.
8556set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008557{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8558echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8559if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8560 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008561else
8562 case $OCAMLDEP in
8563 [\\/]* | ?:[\\/]*)
8564 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8565 ;;
8566 *)
8567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8568for as_dir in $PATH
8569do
8570 IFS=$as_save_IFS
8571 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008572 for ac_exec_ext in '' $ac_executable_extensions; do
8573 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 +00008574 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008576 break 2
8577 fi
8578done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008579done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008580IFS=$as_save_IFS
8581
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008582 ;;
8583esac
8584fi
8585OCAMLDEP=$ac_cv_path_OCAMLDEP
8586if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008587 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8588echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008589else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008590 { echo "$as_me:$LINENO: result: no" >&5
8591echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008592fi
8593
8594
Gordon Henriksene7072162008-03-07 18:20:01 +00008595 test -n "$OCAMLDEP" && break
8596done
8597
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008598for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008599do
8600 # Extract the first word of "$ac_prog", so it can be a program name with args.
8601set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008602{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8603echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8604if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8605 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008606else
8607 case $OCAMLDOC in
8608 [\\/]* | ?:[\\/]*)
8609 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8610 ;;
8611 *)
8612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8613for as_dir in $PATH
8614do
8615 IFS=$as_save_IFS
8616 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008617 for ac_exec_ext in '' $ac_executable_extensions; do
8618 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 +00008619 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008621 break 2
8622 fi
8623done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008624done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008625IFS=$as_save_IFS
8626
8627 ;;
8628esac
8629fi
8630OCAMLDOC=$ac_cv_path_OCAMLDOC
8631if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008632 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8633echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008634else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008635 { echo "$as_me:$LINENO: result: no" >&5
8636echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008637fi
8638
8639
8640 test -n "$OCAMLDOC" && break
8641done
8642
Torok Edwincc499a42008-10-22 09:56:27 +00008643for ac_prog in gas as
8644do
8645 # Extract the first word of "$ac_prog", so it can be a program name with args.
8646set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008647{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8649if test "${ac_cv_path_GAS+set}" = set; then
8650 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00008651else
8652 case $GAS in
8653 [\\/]* | ?:[\\/]*)
8654 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8655 ;;
8656 *)
8657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8658for as_dir in $PATH
8659do
8660 IFS=$as_save_IFS
8661 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008662 for ac_exec_ext in '' $ac_executable_extensions; do
8663 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 +00008664 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00008666 break 2
8667 fi
8668done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008669done
Torok Edwincc499a42008-10-22 09:56:27 +00008670IFS=$as_save_IFS
8671
8672 ;;
8673esac
8674fi
8675GAS=$ac_cv_path_GAS
8676if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008677 { echo "$as_me:$LINENO: result: $GAS" >&5
8678echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008679else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008680 { echo "$as_me:$LINENO: result: no" >&5
8681echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008682fi
8683
8684
8685 test -n "$GAS" && break
8686done
8687
Reid Spencera773bd52006-08-04 18:18:08 +00008688
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00008689{ echo "$as_me:$LINENO: checking for linker version" >&5
8690echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8691if test "${llvm_cv_link_version+set}" = set; then
8692 echo $ECHO_N "(cached) $ECHO_C" >&6
8693else
8694
8695 version_string="$(ld -v 2>&1 | head -1)"
8696
8697 # Check for ld64.
8698 if (echo "$version_string" | grep -q "ld64"); then
8699 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8700 else
8701 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8702 fi
8703
8704fi
8705{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8706echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8707
8708cat >>confdefs.h <<_ACEOF
8709#define HOST_LINK_VERSION "$llvm_cv_link_version"
8710_ACEOF
8711
8712
8713
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008714{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8715echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8716if test "${llvm_cv_link_use_r+set}" = set; then
8717 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008718else
8719 ac_ext=c
8720ac_cpp='$CPP $CPPFLAGS'
8721ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8722ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8723ac_compiler_gnu=$ac_cv_c_compiler_gnu
8724
8725 oldcflags="$CFLAGS"
8726 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008727 cat >conftest.$ac_ext <<_ACEOF
8728/* confdefs.h. */
8729_ACEOF
8730cat confdefs.h >>conftest.$ac_ext
8731cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008732/* end confdefs.h. */
8733
8734int
8735main ()
8736{
Dan Gohman39ed6782010-04-25 00:12:20 +00008737
Reid Spencera773bd52006-08-04 18:18:08 +00008738 ;
8739 return 0;
8740}
8741_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008742rm -f conftest.$ac_objext conftest$ac_exeext
8743if { (ac_try="$ac_link"
8744case "(($ac_try" in
8745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8746 *) ac_try_echo=$ac_try;;
8747esac
8748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8749 (eval "$ac_link") 2>conftest.er1
8750 ac_status=$?
8751 grep -v '^ *+' conftest.er1 >conftest.err
8752 rm -f conftest.er1
8753 cat conftest.err >&5
8754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755 (exit $ac_status); } &&
8756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8757 { (case "(($ac_try" in
8758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8759 *) ac_try_echo=$ac_try;;
8760esac
8761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8762 (eval "$ac_try") 2>&5
8763 ac_status=$?
8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); }; } &&
8766 { ac_try='test -s conftest$ac_exeext'
8767 { (case "(($ac_try" in
8768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8769 *) ac_try_echo=$ac_try;;
8770esac
8771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8772 (eval "$ac_try") 2>&5
8773 ac_status=$?
8774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008776 llvm_cv_link_use_r=yes
8777else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008778 echo "$as_me: failed program was:" >&5
8779sed 's/^/| /' conftest.$ac_ext >&5
8780
8781 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00008782fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008783
Bill Wendlingebcceee2009-04-18 11:20:33 +00008784rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008785 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008786 CFLAGS="$oldcflags"
8787 ac_ext=c
8788ac_cpp='$CPP $CPPFLAGS'
8789ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8790ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8791ac_compiler_gnu=$ac_cv_c_compiler_gnu
8792
8793
8794fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008795{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8796echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008797if test "$llvm_cv_link_use_r" = yes ; then
8798
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008799cat >>confdefs.h <<\_ACEOF
8800#define HAVE_LINK_R 1
8801_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008802
8803 fi
8804
8805
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008806{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8807echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8808if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8809 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008810else
8811 ac_ext=c
8812ac_cpp='$CPP $CPPFLAGS'
8813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8815ac_compiler_gnu=$ac_cv_c_compiler_gnu
8816
8817 oldcflags="$CFLAGS"
8818 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008819 cat >conftest.$ac_ext <<_ACEOF
8820/* confdefs.h. */
8821_ACEOF
8822cat confdefs.h >>conftest.$ac_ext
8823cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008824/* end confdefs.h. */
8825
8826int
8827main ()
8828{
Dan Gohman39ed6782010-04-25 00:12:20 +00008829
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008830 ;
8831 return 0;
8832}
8833_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008834rm -f conftest.$ac_objext conftest$ac_exeext
8835if { (ac_try="$ac_link"
8836case "(($ac_try" in
8837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8838 *) ac_try_echo=$ac_try;;
8839esac
8840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8841 (eval "$ac_link") 2>conftest.er1
8842 ac_status=$?
8843 grep -v '^ *+' conftest.er1 >conftest.err
8844 rm -f conftest.er1
8845 cat conftest.err >&5
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 (exit $ac_status); } &&
8848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8849 { (case "(($ac_try" in
8850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8851 *) ac_try_echo=$ac_try;;
8852esac
8853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8854 (eval "$ac_try") 2>&5
8855 ac_status=$?
8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857 (exit $ac_status); }; } &&
8858 { ac_try='test -s conftest$ac_exeext'
8859 { (case "(($ac_try" in
8860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8861 *) ac_try_echo=$ac_try;;
8862esac
8863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8864 (eval "$ac_try") 2>&5
8865 ac_status=$?
8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008868 llvm_cv_link_use_export_dynamic=yes
8869else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008870 echo "$as_me: failed program was:" >&5
8871sed 's/^/| /' conftest.$ac_ext >&5
8872
8873 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008874fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008875
Bill Wendlingebcceee2009-04-18 11:20:33 +00008876rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008877 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008878 CFLAGS="$oldcflags"
8879 ac_ext=c
8880ac_cpp='$CPP $CPPFLAGS'
8881ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8882ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8883ac_compiler_gnu=$ac_cv_c_compiler_gnu
8884
8885
8886fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008887{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8888echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008889if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8890
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008891cat >>confdefs.h <<\_ACEOF
8892#define HAVE_LINK_EXPORT_DYNAMIC 1
8893_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008894
8895 fi
8896
8897
Dan Gohmanda612d62010-06-01 14:56:56 +00008898{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8899echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8900if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00008901 echo $ECHO_N "(cached) $ECHO_C" >&6
8902else
8903 ac_ext=c
8904ac_cpp='$CPP $CPPFLAGS'
8905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8907ac_compiler_gnu=$ac_cv_c_compiler_gnu
8908
8909 oldcflags="$CFLAGS"
8910
8911 # The following code is from the autoconf manual,
8912 # "11.13: Limitations of Usual Tools".
8913 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8914 # Use mktemp if possible; otherwise fall back on mkdir,
8915 # with $RANDOM to make collisions less likely.
8916 : ${TMPDIR=/tmp}
8917 {
8918 tmp=`
8919 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8920 ` &&
8921 test -n "$tmp" && test -d "$tmp"
8922 } || {
8923 tmp=$TMPDIR/foo$$-$RANDOM
8924 (umask 077 && mkdir "$tmp")
8925 } || exit $?
8926
Dan Gohmanda612d62010-06-01 14:56:56 +00008927 echo "{" > "$tmp/export.map"
8928 echo " global: main;" >> "$tmp/export.map"
8929 echo " local: *;" >> "$tmp/export.map"
8930 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008931
Dan Gohmanda612d62010-06-01 14:56:56 +00008932 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008933 cat >conftest.$ac_ext <<_ACEOF
8934/* confdefs.h. */
8935_ACEOF
8936cat confdefs.h >>conftest.$ac_ext
8937cat >>conftest.$ac_ext <<_ACEOF
8938/* end confdefs.h. */
8939
8940int
8941main ()
8942{
Dan Gohman39ed6782010-04-25 00:12:20 +00008943
Dan Gohman391569c2010-04-16 22:59:06 +00008944 ;
8945 return 0;
8946}
8947_ACEOF
8948rm -f conftest.$ac_objext conftest$ac_exeext
8949if { (ac_try="$ac_link"
8950case "(($ac_try" in
8951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8952 *) ac_try_echo=$ac_try;;
8953esac
8954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8955 (eval "$ac_link") 2>conftest.er1
8956 ac_status=$?
8957 grep -v '^ *+' conftest.er1 >conftest.err
8958 rm -f conftest.er1
8959 cat conftest.err >&5
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 (exit $ac_status); } &&
8962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8963 { (case "(($ac_try" in
8964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8965 *) ac_try_echo=$ac_try;;
8966esac
8967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8968 (eval "$ac_try") 2>&5
8969 ac_status=$?
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); }; } &&
8972 { ac_try='test -s conftest$ac_exeext'
8973 { (case "(($ac_try" in
8974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8975 *) ac_try_echo=$ac_try;;
8976esac
8977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8978 (eval "$ac_try") 2>&5
8979 ac_status=$?
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00008982 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00008983else
8984 echo "$as_me: failed program was:" >&5
8985sed 's/^/| /' conftest.$ac_ext >&5
8986
Dan Gohman943005e2010-06-01 16:22:27 +00008987 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00008988fi
8989
8990rm -f core conftest.err conftest.$ac_objext \
8991 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00008992 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008993 rmdir "$tmp"
8994 CFLAGS="$oldcflags"
8995 ac_ext=c
8996ac_cpp='$CPP $CPPFLAGS'
8997ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8998ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8999ac_compiler_gnu=$ac_cv_c_compiler_gnu
9000
9001
9002fi
Dan Gohmanda612d62010-06-01 14:56:56 +00009003{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9004echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9005if test "$llvm_cv_link_use_version_script" = yes ; then
9006 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00009007
9008 fi
9009
9010
Reid Spencera773bd52006-08-04 18:18:08 +00009011
9012
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009013{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9014echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9015if test "${ac_cv_c_const+set}" = set; then
9016 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009017else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009018 cat >conftest.$ac_ext <<_ACEOF
9019/* confdefs.h. */
9020_ACEOF
9021cat confdefs.h >>conftest.$ac_ext
9022cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009023/* end confdefs.h. */
9024
9025int
9026main ()
9027{
9028/* FIXME: Include the comments suggested by Paul. */
9029#ifndef __cplusplus
9030 /* Ultrix mips cc rejects this. */
9031 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009032 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00009033 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009034 char const *const *ccp;
9035 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00009036 /* NEC SVR4.0.2 mips cc rejects this. */
9037 struct point {int x, y;};
9038 static struct point const zero = {0,0};
9039 /* AIX XL C 1.02.0.0 rejects this.
9040 It does not let you subtract one const X* pointer from another in
9041 an arm of an if-expression whose if-part is not a constant
9042 expression */
9043 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009044 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00009045 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009046 ++ccp;
9047 p = (char**) ccp;
9048 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00009049 { /* SCO 3.2v4 cc rejects this. */
9050 char *t;
9051 char const *s = 0 ? (char *) 0 : (char const *) 0;
9052
9053 *t++ = 0;
9054 if (s) return 0;
9055 }
9056 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9057 int x[] = {25, 17};
9058 const int *foo = &x[0];
9059 ++foo;
9060 }
9061 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9062 typedef const int *iptr;
9063 iptr p = 0;
9064 ++p;
9065 }
9066 { /* AIX XL C 1.02.0.0 rejects this saying
9067 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9068 struct s { int j; const int *ap[3]; };
9069 struct s *b; b->j = 5;
9070 }
9071 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9072 const int foo = 10;
9073 if (!foo) return 0;
9074 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009075 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00009076#endif
9077
9078 ;
9079 return 0;
9080}
9081_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009082rm -f conftest.$ac_objext
9083if { (ac_try="$ac_compile"
9084case "(($ac_try" in
9085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9086 *) ac_try_echo=$ac_try;;
9087esac
9088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9089 (eval "$ac_compile") 2>conftest.er1
9090 ac_status=$?
9091 grep -v '^ *+' conftest.er1 >conftest.err
9092 rm -f conftest.er1
9093 cat conftest.err >&5
9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 (exit $ac_status); } &&
9096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9097 { (case "(($ac_try" in
9098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9099 *) ac_try_echo=$ac_try;;
9100esac
9101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9102 (eval "$ac_try") 2>&5
9103 ac_status=$?
9104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105 (exit $ac_status); }; } &&
9106 { ac_try='test -s conftest.$ac_objext'
9107 { (case "(($ac_try" in
9108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9109 *) ac_try_echo=$ac_try;;
9110esac
9111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9112 (eval "$ac_try") 2>&5
9113 ac_status=$?
9114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009116 ac_cv_c_const=yes
9117else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009118 echo "$as_me: failed program was:" >&5
9119sed 's/^/| /' conftest.$ac_ext >&5
9120
9121 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00009122fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009123
Reid Spencera773bd52006-08-04 18:18:08 +00009124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9125fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009126{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9127echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009128if test $ac_cv_c_const = no; then
9129
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009130cat >>confdefs.h <<\_ACEOF
9131#define const
9132_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009133
9134fi
9135
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009136
9137
9138
9139
9140
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009141ac_header_dirent=no
9142for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009143 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9144{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9145echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9146if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9147 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009148else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009149 cat >conftest.$ac_ext <<_ACEOF
9150/* confdefs.h. */
9151_ACEOF
9152cat confdefs.h >>conftest.$ac_ext
9153cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009154/* end confdefs.h. */
9155#include <sys/types.h>
9156#include <$ac_hdr>
9157
9158int
9159main ()
9160{
9161if ((DIR *) 0)
9162return 0;
9163 ;
9164 return 0;
9165}
9166_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009167rm -f conftest.$ac_objext
9168if { (ac_try="$ac_compile"
9169case "(($ac_try" in
9170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9171 *) ac_try_echo=$ac_try;;
9172esac
9173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9174 (eval "$ac_compile") 2>conftest.er1
9175 ac_status=$?
9176 grep -v '^ *+' conftest.er1 >conftest.err
9177 rm -f conftest.er1
9178 cat conftest.err >&5
9179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180 (exit $ac_status); } &&
9181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9182 { (case "(($ac_try" in
9183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9184 *) ac_try_echo=$ac_try;;
9185esac
9186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9187 (eval "$ac_try") 2>&5
9188 ac_status=$?
9189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190 (exit $ac_status); }; } &&
9191 { ac_try='test -s conftest.$ac_objext'
9192 { (case "(($ac_try" in
9193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9194 *) ac_try_echo=$ac_try;;
9195esac
9196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9197 (eval "$ac_try") 2>&5
9198 ac_status=$?
9199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009201 eval "$as_ac_Header=yes"
9202else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009203 echo "$as_me: failed program was:" >&5
9204sed 's/^/| /' conftest.$ac_ext >&5
9205
9206 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009207fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009208
Reid Spencera773bd52006-08-04 18:18:08 +00009209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009210fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009211ac_res=`eval echo '${'$as_ac_Header'}'`
9212 { echo "$as_me:$LINENO: result: $ac_res" >&5
9213echo "${ECHO_T}$ac_res" >&6; }
9214if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009215 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009216#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009217_ACEOF
9218
9219ac_header_dirent=$ac_hdr; break
9220fi
9221
9222done
9223# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9224if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009225 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9226echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9227if test "${ac_cv_search_opendir+set}" = set; then
9228 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009229else
9230 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009231cat >conftest.$ac_ext <<_ACEOF
9232/* confdefs.h. */
9233_ACEOF
9234cat confdefs.h >>conftest.$ac_ext
9235cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009236/* end confdefs.h. */
9237
Reid Spencera773bd52006-08-04 18:18:08 +00009238/* Override any GCC internal prototype to avoid an error.
9239 Use char because int might match the return type of a GCC
9240 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009241#ifdef __cplusplus
9242extern "C"
9243#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009244char opendir ();
9245int
9246main ()
9247{
Reid Spencera773bd52006-08-04 18:18:08 +00009248return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009249 ;
9250 return 0;
9251}
9252_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009253for ac_lib in '' dir; do
9254 if test -z "$ac_lib"; then
9255 ac_res="none required"
9256 else
9257 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009258 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00009259 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009260 rm -f conftest.$ac_objext conftest$ac_exeext
9261if { (ac_try="$ac_link"
9262case "(($ac_try" in
9263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9264 *) ac_try_echo=$ac_try;;
9265esac
9266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9267 (eval "$ac_link") 2>conftest.er1
9268 ac_status=$?
9269 grep -v '^ *+' conftest.er1 >conftest.err
9270 rm -f conftest.er1
9271 cat conftest.err >&5
9272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273 (exit $ac_status); } &&
9274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9275 { (case "(($ac_try" in
9276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9277 *) ac_try_echo=$ac_try;;
9278esac
9279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9280 (eval "$ac_try") 2>&5
9281 ac_status=$?
9282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283 (exit $ac_status); }; } &&
9284 { ac_try='test -s conftest$ac_exeext'
9285 { (case "(($ac_try" in
9286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9287 *) ac_try_echo=$ac_try;;
9288esac
9289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9290 (eval "$ac_try") 2>&5
9291 ac_status=$?
9292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009294 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009295else
9296 echo "$as_me: failed program was:" >&5
9297sed 's/^/| /' conftest.$ac_ext >&5
9298
9299
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009300fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009301
Bill Wendlingebcceee2009-04-18 11:20:33 +00009302rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009303 conftest$ac_exeext
9304 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009305 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009306fi
John Criswell7a73b802003-06-30 21:59:07 +00009307done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009308if test "${ac_cv_search_opendir+set}" = set; then
9309 :
Reid Spencera773bd52006-08-04 18:18:08 +00009310else
9311 ac_cv_search_opendir=no
9312fi
9313rm conftest.$ac_ext
9314LIBS=$ac_func_search_save_LIBS
9315fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009316{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9317echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009318ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009319if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009320 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00009321
Reid Spencera773bd52006-08-04 18:18:08 +00009322fi
9323
9324else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009325 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9326echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9327if test "${ac_cv_search_opendir+set}" = set; then
9328 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009329else
9330 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009331cat >conftest.$ac_ext <<_ACEOF
9332/* confdefs.h. */
9333_ACEOF
9334cat confdefs.h >>conftest.$ac_ext
9335cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009336/* end confdefs.h. */
9337
9338/* Override any GCC internal prototype to avoid an error.
9339 Use char because int might match the return type of a GCC
9340 builtin and then its argument prototype would still apply. */
9341#ifdef __cplusplus
9342extern "C"
9343#endif
9344char opendir ();
9345int
9346main ()
9347{
9348return opendir ();
9349 ;
9350 return 0;
9351}
9352_ACEOF
9353for ac_lib in '' x; do
9354 if test -z "$ac_lib"; then
9355 ac_res="none required"
9356 else
9357 ac_res=-l$ac_lib
9358 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9359 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009360 rm -f conftest.$ac_objext conftest$ac_exeext
9361if { (ac_try="$ac_link"
9362case "(($ac_try" in
9363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9364 *) ac_try_echo=$ac_try;;
9365esac
9366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9367 (eval "$ac_link") 2>conftest.er1
9368 ac_status=$?
9369 grep -v '^ *+' conftest.er1 >conftest.err
9370 rm -f conftest.er1
9371 cat conftest.err >&5
9372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373 (exit $ac_status); } &&
9374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9375 { (case "(($ac_try" in
9376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9377 *) ac_try_echo=$ac_try;;
9378esac
9379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9380 (eval "$ac_try") 2>&5
9381 ac_status=$?
9382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383 (exit $ac_status); }; } &&
9384 { ac_try='test -s conftest$ac_exeext'
9385 { (case "(($ac_try" in
9386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9387 *) ac_try_echo=$ac_try;;
9388esac
9389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9390 (eval "$ac_try") 2>&5
9391 ac_status=$?
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009394 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009395else
9396 echo "$as_me: failed program was:" >&5
9397sed 's/^/| /' conftest.$ac_ext >&5
9398
9399
Reid Spencera773bd52006-08-04 18:18:08 +00009400fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009401
Bill Wendlingebcceee2009-04-18 11:20:33 +00009402rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009403 conftest$ac_exeext
9404 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009405 break
9406fi
9407done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009408if test "${ac_cv_search_opendir+set}" = set; then
9409 :
Reid Spencera773bd52006-08-04 18:18:08 +00009410else
9411 ac_cv_search_opendir=no
9412fi
9413rm conftest.$ac_ext
9414LIBS=$ac_func_search_save_LIBS
9415fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009416{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9417echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009418ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009419if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009420 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9421
9422fi
9423
9424fi
John Criswell7a73b802003-06-30 21:59:07 +00009425
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009426
John Criswell7a73b802003-06-30 21:59:07 +00009427for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009428do
9429as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9430if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9431 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9432echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9433if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9434 echo $ECHO_N "(cached) $ECHO_C" >&6
9435fi
9436ac_res=`eval echo '${'$as_ac_Header'}'`
9437 { echo "$as_me:$LINENO: result: $ac_res" >&5
9438echo "${ECHO_T}$ac_res" >&6; }
9439else
9440 # Is the header compilable?
9441{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9442echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9443cat >conftest.$ac_ext <<_ACEOF
9444/* confdefs.h. */
9445_ACEOF
9446cat confdefs.h >>conftest.$ac_ext
9447cat >>conftest.$ac_ext <<_ACEOF
9448/* end confdefs.h. */
9449$ac_includes_default
9450#include <$ac_header>
9451_ACEOF
9452rm -f conftest.$ac_objext
9453if { (ac_try="$ac_compile"
9454case "(($ac_try" in
9455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9456 *) ac_try_echo=$ac_try;;
9457esac
9458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9459 (eval "$ac_compile") 2>conftest.er1
9460 ac_status=$?
9461 grep -v '^ *+' conftest.er1 >conftest.err
9462 rm -f conftest.er1
9463 cat conftest.err >&5
9464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465 (exit $ac_status); } &&
9466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9467 { (case "(($ac_try" in
9468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9469 *) ac_try_echo=$ac_try;;
9470esac
9471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9472 (eval "$ac_try") 2>&5
9473 ac_status=$?
9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475 (exit $ac_status); }; } &&
9476 { ac_try='test -s conftest.$ac_objext'
9477 { (case "(($ac_try" in
9478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9479 *) ac_try_echo=$ac_try;;
9480esac
9481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9482 (eval "$ac_try") 2>&5
9483 ac_status=$?
9484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485 (exit $ac_status); }; }; then
9486 ac_header_compiler=yes
9487else
9488 echo "$as_me: failed program was:" >&5
9489sed 's/^/| /' conftest.$ac_ext >&5
9490
9491 ac_header_compiler=no
9492fi
9493
9494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9495{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9496echo "${ECHO_T}$ac_header_compiler" >&6; }
9497
9498# Is the header present?
9499{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9500echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9501cat >conftest.$ac_ext <<_ACEOF
9502/* confdefs.h. */
9503_ACEOF
9504cat confdefs.h >>conftest.$ac_ext
9505cat >>conftest.$ac_ext <<_ACEOF
9506/* end confdefs.h. */
9507#include <$ac_header>
9508_ACEOF
9509if { (ac_try="$ac_cpp conftest.$ac_ext"
9510case "(($ac_try" in
9511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9512 *) ac_try_echo=$ac_try;;
9513esac
9514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9515 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9516 ac_status=$?
9517 grep -v '^ *+' conftest.er1 >conftest.err
9518 rm -f conftest.er1
9519 cat conftest.err >&5
9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 (exit $ac_status); } >/dev/null; then
9522 if test -s conftest.err; then
9523 ac_cpp_err=$ac_c_preproc_warn_flag
9524 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9525 else
9526 ac_cpp_err=
9527 fi
9528else
9529 ac_cpp_err=yes
9530fi
9531if test -z "$ac_cpp_err"; then
9532 ac_header_preproc=yes
9533else
9534 echo "$as_me: failed program was:" >&5
9535sed 's/^/| /' conftest.$ac_ext >&5
9536
9537 ac_header_preproc=no
9538fi
9539
9540rm -f conftest.err conftest.$ac_ext
9541{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9542echo "${ECHO_T}$ac_header_preproc" >&6; }
9543
9544# So? What about this header?
9545case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9546 yes:no: )
9547 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9548echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9550echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9551 ac_header_preproc=yes
9552 ;;
9553 no:yes:* )
9554 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9555echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9556 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9557echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9558 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9559echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9560 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9561echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9562 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9563echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9564 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9565echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9566 ( cat <<\_ASBOX
9567## ----------------------------------- ##
9568## Report this to llvmbugs@cs.uiuc.edu ##
9569## ----------------------------------- ##
9570_ASBOX
9571 ) | sed "s/^/$as_me: WARNING: /" >&2
9572 ;;
9573esac
9574{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9575echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9576if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9577 echo $ECHO_N "(cached) $ECHO_C" >&6
9578else
9579 eval "$as_ac_Header=\$ac_header_preproc"
9580fi
9581ac_res=`eval echo '${'$as_ac_Header'}'`
9582 { echo "$as_me:$LINENO: result: $ac_res" >&5
9583echo "${ECHO_T}$ac_res" >&6; }
9584
9585fi
9586if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00009587 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009588#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00009589_ACEOF
9590
9591fi
9592
9593done
9594
Reid Spencera773bd52006-08-04 18:18:08 +00009595# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009596if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009597 enableval=$enable_ltdl_install;
9598fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009599
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009600
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009601
9602
9603if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009604 INSTALL_LTDL_TRUE=
9605 INSTALL_LTDL_FALSE='#'
9606else
9607 INSTALL_LTDL_TRUE='#'
9608 INSTALL_LTDL_FALSE=
9609fi
9610
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009611
9612
9613if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009614 CONVENIENCE_LTDL_TRUE=
9615 CONVENIENCE_LTDL_FALSE='#'
9616else
9617 CONVENIENCE_LTDL_TRUE='#'
9618 CONVENIENCE_LTDL_FALSE=
9619fi
9620
9621
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009622{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9623echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009624library_names_spec=
9625libname_spec='lib$name'
9626soname_spec=
9627shrext_cmds=".so"
9628postinstall_cmds=
9629postuninstall_cmds=
9630finish_cmds=
9631finish_eval=
9632shlibpath_var=
9633shlibpath_overrides_runpath=unknown
9634version_type=none
9635dynamic_linker="$host_os ld.so"
9636sys_lib_dlsearch_path_spec="/lib /usr/lib"
9637if test "$GCC" = yes; then
9638 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9639 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9640 # if the path contains ";" then we assume it to be the separator
9641 # otherwise default to the standard path separator (i.e. ":") - it is
9642 # assumed that no part of a normal pathname contains ";" but that should
9643 # okay in the real world where ";" in dirpaths is itself problematic.
9644 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9645 else
9646 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9647 fi
9648else
9649 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9650fi
9651need_lib_prefix=unknown
9652hardcode_into_libs=no
9653
9654# when you set need_version to no, make sure it does not cause -set_version
9655# flags to be left without arguments
9656need_version=unknown
9657
9658case $host_os in
9659aix3*)
9660 version_type=linux
9661 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9662 shlibpath_var=LIBPATH
9663
9664 # AIX 3 has no versioning support, so we append a major version to the name.
9665 soname_spec='${libname}${release}${shared_ext}$major'
9666 ;;
9667
9668aix4* | aix5*)
9669 version_type=linux
9670 need_lib_prefix=no
9671 need_version=no
9672 hardcode_into_libs=yes
9673 if test "$host_cpu" = ia64; then
9674 # AIX 5 supports IA64
9675 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9676 shlibpath_var=LD_LIBRARY_PATH
9677 else
9678 # With GCC up to 2.95.x, collect2 would create an import file
9679 # for dependence libraries. The import file would start with
9680 # the line `#! .'. This would cause the generated library to
9681 # depend on `.', always an invalid library. This was fixed in
9682 # development snapshots of GCC prior to 3.0.
9683 case $host_os in
9684 aix4 | aix4.[01] | aix4.[01].*)
9685 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9686 echo ' yes '
9687 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9688 :
9689 else
9690 can_build_shared=no
9691 fi
9692 ;;
9693 esac
9694 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9695 # soname into executable. Probably we can add versioning support to
9696 # collect2, so additional links can be useful in future.
9697 if test "$aix_use_runtimelinking" = yes; then
9698 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9699 # instead of lib<name>.a to let people know that these are not
9700 # typical AIX shared libraries.
9701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9702 else
9703 # We preserve .a as extension for shared libraries through AIX4.2
9704 # and later when we are not doing run time linking.
9705 library_names_spec='${libname}${release}.a $libname.a'
9706 soname_spec='${libname}${release}${shared_ext}$major'
9707 fi
9708 shlibpath_var=LIBPATH
9709 fi
9710 ;;
9711
9712amigaos*)
9713 library_names_spec='$libname.ixlibrary $libname.a'
9714 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9715 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'
9716 ;;
9717
9718beos*)
9719 library_names_spec='${libname}${shared_ext}'
9720 dynamic_linker="$host_os ld.so"
9721 shlibpath_var=LIBRARY_PATH
9722 ;;
9723
9724bsdi[45]*)
9725 version_type=linux
9726 need_version=no
9727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9728 soname_spec='${libname}${release}${shared_ext}$major'
9729 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9730 shlibpath_var=LD_LIBRARY_PATH
9731 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9732 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9733 # the default ld.so.conf also contains /usr/contrib/lib and
9734 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9735 # libtool to hard-code these into programs
9736 ;;
9737
9738cygwin* | mingw* | pw32*)
9739 version_type=windows
9740 shrext_cmds=".dll"
9741 need_version=no
9742 need_lib_prefix=no
9743
9744 case $GCC,$host_os in
9745 yes,cygwin* | yes,mingw* | yes,pw32*)
9746 library_names_spec='$libname.dll.a'
9747 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9748 postinstall_cmds='base_file=`basename \${file}`~
9749 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9750 dldir=$destdir/`dirname \$dlpath`~
9751 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009752 $install_prog $dir/$dlname \$dldir/$dlname~
9753 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009754 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9755 dlpath=$dir/\$dldll~
9756 $rm \$dlpath'
9757 shlibpath_overrides_runpath=yes
9758
9759 case $host_os in
9760 cygwin*)
9761 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9762 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9763 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9764 ;;
9765 mingw*)
9766 # MinGW DLLs use traditional 'lib' prefix
9767 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9768 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9769 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9770 # It is most probably a Windows format PATH printed by
9771 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9772 # path with ; separators, and with drive letters. We can handle the
9773 # drive letters (cygwin fileutils understands them), so leave them,
9774 # especially as we might pass files found there to a mingw objdump,
9775 # which wouldn't understand a cygwinified path. Ahh.
9776 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9777 else
9778 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9779 fi
9780 ;;
9781 pw32*)
9782 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009783 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 +00009784 ;;
9785 esac
9786 ;;
9787
9788 *)
9789 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9790 ;;
9791 esac
9792 dynamic_linker='Win32 ld.exe'
9793 # FIXME: first we should search . and the directory the executable is in
9794 shlibpath_var=PATH
9795 ;;
9796
9797darwin* | rhapsody*)
9798 dynamic_linker="$host_os dyld"
9799 version_type=darwin
9800 need_lib_prefix=no
9801 need_version=no
9802 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9803 soname_spec='${libname}${release}${major}$shared_ext'
9804 shlibpath_overrides_runpath=yes
9805 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009806 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009807 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9808 if test "$GCC" = yes; then
9809 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"`
9810 else
9811 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9812 fi
9813 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9814 ;;
9815
9816dgux*)
9817 version_type=linux
9818 need_lib_prefix=no
9819 need_version=no
9820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9821 soname_spec='${libname}${release}${shared_ext}$major'
9822 shlibpath_var=LD_LIBRARY_PATH
9823 ;;
9824
9825freebsd1*)
9826 dynamic_linker=no
9827 ;;
9828
9829kfreebsd*-gnu)
9830 version_type=linux
9831 need_lib_prefix=no
9832 need_version=no
9833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9834 soname_spec='${libname}${release}${shared_ext}$major'
9835 shlibpath_var=LD_LIBRARY_PATH
9836 shlibpath_overrides_runpath=no
9837 hardcode_into_libs=yes
9838 dynamic_linker='GNU ld.so'
9839 ;;
9840
Reid Spencera773bd52006-08-04 18:18:08 +00009841freebsd* | dragonfly*)
9842 # DragonFly does not have aout. When/if they implement a new
9843 # versioning mechanism, adjust this.
9844 if test -x /usr/bin/objformat; then
9845 objformat=`/usr/bin/objformat`
9846 else
9847 case $host_os in
9848 freebsd[123]*) objformat=aout ;;
9849 *) objformat=elf ;;
9850 esac
9851 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009852 version_type=freebsd-$objformat
9853 case $version_type in
9854 freebsd-elf*)
9855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9856 need_version=no
9857 need_lib_prefix=no
9858 ;;
9859 freebsd-*)
9860 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9861 need_version=yes
9862 ;;
9863 esac
9864 shlibpath_var=LD_LIBRARY_PATH
9865 case $host_os in
9866 freebsd2*)
9867 shlibpath_overrides_runpath=yes
9868 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009869 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009870 shlibpath_overrides_runpath=yes
9871 hardcode_into_libs=yes
9872 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009873 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9874 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009875 shlibpath_overrides_runpath=no
9876 hardcode_into_libs=yes
9877 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009878 freebsd*) # from 4.6 on
9879 shlibpath_overrides_runpath=yes
9880 hardcode_into_libs=yes
9881 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009882 esac
9883 ;;
9884
9885gnu*)
9886 version_type=linux
9887 need_lib_prefix=no
9888 need_version=no
9889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9890 soname_spec='${libname}${release}${shared_ext}$major'
9891 shlibpath_var=LD_LIBRARY_PATH
9892 hardcode_into_libs=yes
9893 ;;
9894
9895hpux9* | hpux10* | hpux11*)
9896 # Give a soname corresponding to the major version so that dld.sl refuses to
9897 # link against other versions.
9898 version_type=sunos
9899 need_lib_prefix=no
9900 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009901 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009902 ia64*)
9903 shrext_cmds='.so'
9904 hardcode_into_libs=yes
9905 dynamic_linker="$host_os dld.so"
9906 shlibpath_var=LD_LIBRARY_PATH
9907 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9909 soname_spec='${libname}${release}${shared_ext}$major'
9910 if test "X$HPUX_IA64_MODE" = X32; then
9911 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9912 else
9913 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9914 fi
9915 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9916 ;;
9917 hppa*64*)
9918 shrext_cmds='.sl'
9919 hardcode_into_libs=yes
9920 dynamic_linker="$host_os dld.sl"
9921 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9922 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9924 soname_spec='${libname}${release}${shared_ext}$major'
9925 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9926 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9927 ;;
9928 *)
9929 shrext_cmds='.sl'
9930 dynamic_linker="$host_os dld.sl"
9931 shlibpath_var=SHLIB_PATH
9932 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9934 soname_spec='${libname}${release}${shared_ext}$major'
9935 ;;
9936 esac
9937 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9938 postinstall_cmds='chmod 555 $lib'
9939 ;;
9940
Reid Spencera773bd52006-08-04 18:18:08 +00009941interix3*)
9942 version_type=linux
9943 need_lib_prefix=no
9944 need_version=no
9945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9946 soname_spec='${libname}${release}${shared_ext}$major'
9947 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9948 shlibpath_var=LD_LIBRARY_PATH
9949 shlibpath_overrides_runpath=no
9950 hardcode_into_libs=yes
9951 ;;
9952
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009953irix5* | irix6* | nonstopux*)
9954 case $host_os in
9955 nonstopux*) version_type=nonstopux ;;
9956 *)
9957 if test "$lt_cv_prog_gnu_ld" = yes; then
9958 version_type=linux
9959 else
9960 version_type=irix
9961 fi ;;
9962 esac
9963 need_lib_prefix=no
9964 need_version=no
9965 soname_spec='${libname}${release}${shared_ext}$major'
9966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9967 case $host_os in
9968 irix5* | nonstopux*)
9969 libsuff= shlibsuff=
9970 ;;
9971 *)
9972 case $LD in # libtool.m4 will add one of these switches to LD
9973 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9974 libsuff= shlibsuff= libmagic=32-bit;;
9975 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9976 libsuff=32 shlibsuff=N32 libmagic=N32;;
9977 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9978 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9979 *) libsuff= shlibsuff= libmagic=never-match;;
9980 esac
9981 ;;
9982 esac
9983 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9984 shlibpath_overrides_runpath=no
9985 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9986 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9987 hardcode_into_libs=yes
9988 ;;
9989
9990# No shared lib support for Linux oldld, aout, or coff.
9991linux*oldld* | linux*aout* | linux*coff*)
9992 dynamic_linker=no
9993 ;;
9994
9995# This must be Linux ELF.
9996linux*)
9997 version_type=linux
9998 need_lib_prefix=no
9999 need_version=no
10000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10001 soname_spec='${libname}${release}${shared_ext}$major'
10002 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10003 shlibpath_var=LD_LIBRARY_PATH
10004 shlibpath_overrides_runpath=no
10005 # This implies no fast_install, which is unacceptable.
10006 # Some rework will be needed to allow for fast_install
10007 # before this can be enabled.
10008 hardcode_into_libs=yes
10009
10010 # Append ld.so.conf contents to the search path
10011 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000010012 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 +000010013 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10014 fi
10015
10016 # We used to test for /lib/ld.so.1 and disable shared libraries on
10017 # powerpc, because MkLinux only supported shared libraries with the
10018 # GNU dynamic linker. Since this was broken with cross compilers,
10019 # most powerpc-linux boxes support dynamic linking these days and
10020 # people can always --disable-shared, the test was removed, and we
10021 # assume the GNU/Linux dynamic linker is in use.
10022 dynamic_linker='GNU/Linux ld.so'
10023 ;;
10024
10025knetbsd*-gnu)
10026 version_type=linux
10027 need_lib_prefix=no
10028 need_version=no
10029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10030 soname_spec='${libname}${release}${shared_ext}$major'
10031 shlibpath_var=LD_LIBRARY_PATH
10032 shlibpath_overrides_runpath=no
10033 hardcode_into_libs=yes
10034 dynamic_linker='GNU ld.so'
10035 ;;
10036
10037netbsd*)
10038 version_type=sunos
10039 need_lib_prefix=no
10040 need_version=no
10041 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10043 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10044 dynamic_linker='NetBSD (a.out) ld.so'
10045 else
10046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10047 soname_spec='${libname}${release}${shared_ext}$major'
10048 dynamic_linker='NetBSD ld.elf_so'
10049 fi
10050 shlibpath_var=LD_LIBRARY_PATH
10051 shlibpath_overrides_runpath=yes
10052 hardcode_into_libs=yes
10053 ;;
10054
10055newsos6)
10056 version_type=linux
10057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10058 shlibpath_var=LD_LIBRARY_PATH
10059 shlibpath_overrides_runpath=yes
10060 ;;
10061
10062nto-qnx*)
10063 version_type=linux
10064 need_lib_prefix=no
10065 need_version=no
10066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10067 soname_spec='${libname}${release}${shared_ext}$major'
10068 shlibpath_var=LD_LIBRARY_PATH
10069 shlibpath_overrides_runpath=yes
10070 ;;
10071
10072openbsd*)
10073 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000010074 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010075 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000010076 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10077 case $host_os in
10078 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10079 *) need_version=no ;;
10080 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10082 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10083 shlibpath_var=LD_LIBRARY_PATH
10084 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10085 case $host_os in
10086 openbsd2.[89] | openbsd2.[89].*)
10087 shlibpath_overrides_runpath=no
10088 ;;
10089 *)
10090 shlibpath_overrides_runpath=yes
10091 ;;
10092 esac
10093 else
10094 shlibpath_overrides_runpath=yes
10095 fi
10096 ;;
10097
10098os2*)
10099 libname_spec='$name'
10100 shrext_cmds=".dll"
10101 need_lib_prefix=no
10102 library_names_spec='$libname${shared_ext} $libname.a'
10103 dynamic_linker='OS/2 ld.exe'
10104 shlibpath_var=LIBPATH
10105 ;;
10106
10107osf3* | osf4* | osf5*)
10108 version_type=osf
10109 need_lib_prefix=no
10110 need_version=no
10111 soname_spec='${libname}${release}${shared_ext}$major'
10112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10113 shlibpath_var=LD_LIBRARY_PATH
10114 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10115 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10116 ;;
10117
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010118solaris*)
10119 version_type=linux
10120 need_lib_prefix=no
10121 need_version=no
10122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10123 soname_spec='${libname}${release}${shared_ext}$major'
10124 shlibpath_var=LD_LIBRARY_PATH
10125 shlibpath_overrides_runpath=yes
10126 hardcode_into_libs=yes
10127 # ldd complains unless libraries are executable
10128 postinstall_cmds='chmod +x $lib'
10129 ;;
10130
10131sunos4*)
10132 version_type=sunos
10133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10134 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10135 shlibpath_var=LD_LIBRARY_PATH
10136 shlibpath_overrides_runpath=yes
10137 if test "$with_gnu_ld" = yes; then
10138 need_lib_prefix=no
10139 fi
10140 need_version=yes
10141 ;;
10142
Reid Spencera773bd52006-08-04 18:18:08 +000010143sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010144 version_type=linux
10145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10146 soname_spec='${libname}${release}${shared_ext}$major'
10147 shlibpath_var=LD_LIBRARY_PATH
10148 case $host_vendor in
10149 sni)
10150 shlibpath_overrides_runpath=no
10151 need_lib_prefix=no
10152 export_dynamic_flag_spec='${wl}-Blargedynsym'
10153 runpath_var=LD_RUN_PATH
10154 ;;
10155 siemens)
10156 need_lib_prefix=no
10157 ;;
10158 motorola)
10159 need_lib_prefix=no
10160 need_version=no
10161 shlibpath_overrides_runpath=no
10162 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10163 ;;
10164 esac
10165 ;;
10166
10167sysv4*MP*)
10168 if test -d /usr/nec ;then
10169 version_type=linux
10170 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10171 soname_spec='$libname${shared_ext}.$major'
10172 shlibpath_var=LD_LIBRARY_PATH
10173 fi
10174 ;;
10175
Reid Spencera773bd52006-08-04 18:18:08 +000010176sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10177 version_type=freebsd-elf
10178 need_lib_prefix=no
10179 need_version=no
10180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10181 soname_spec='${libname}${release}${shared_ext}$major'
10182 shlibpath_var=LD_LIBRARY_PATH
10183 hardcode_into_libs=yes
10184 if test "$with_gnu_ld" = yes; then
10185 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10186 shlibpath_overrides_runpath=no
10187 else
10188 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10189 shlibpath_overrides_runpath=yes
10190 case $host_os in
10191 sco3.2v5*)
10192 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10193 ;;
10194 esac
10195 fi
10196 sys_lib_dlsearch_path_spec='/usr/lib'
10197 ;;
10198
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010199uts4*)
10200 version_type=linux
10201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10202 soname_spec='${libname}${release}${shared_ext}$major'
10203 shlibpath_var=LD_LIBRARY_PATH
10204 ;;
10205
10206*)
10207 dynamic_linker=no
10208 ;;
10209esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010210{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10211echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010212test "$dynamic_linker" = no && can_build_shared=no
10213
Reid Spencera773bd52006-08-04 18:18:08 +000010214variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10215if test "$GCC" = yes; then
10216 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10217fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010218
Reid Spencera773bd52006-08-04 18:18:08 +000010219
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010220{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10221echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10222if test "${libltdl_cv_shlibext+set}" = set; then
10223 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010224else
10225
10226module=yes
10227eval libltdl_cv_shlibext=$shrext_cmds
10228
10229fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010230{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10231echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010232if test -n "$libltdl_cv_shlibext"; then
10233
10234cat >>confdefs.h <<_ACEOF
10235#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10236_ACEOF
10237
10238fi
10239
10240
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010241{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10242echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10243if test "${libltdl_cv_shlibpath_var+set}" = set; then
10244 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010245else
10246 libltdl_cv_shlibpath_var="$shlibpath_var"
10247fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010248{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10249echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010250if test -n "$libltdl_cv_shlibpath_var"; then
10251
10252cat >>confdefs.h <<_ACEOF
10253#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10254_ACEOF
10255
10256fi
10257
10258
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010259{ echo "$as_me:$LINENO: checking for the default library search path" >&5
10260echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10261if test "${libltdl_cv_sys_search_path+set}" = set; then
10262 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010263else
10264 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10265fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010266{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10267echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010268if test -n "$libltdl_cv_sys_search_path"; then
10269 sys_search_path=
10270 for dir in $libltdl_cv_sys_search_path; do
10271 if test -z "$sys_search_path"; then
10272 sys_search_path="$dir"
10273 else
10274 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10275 fi
10276 done
10277
10278cat >>confdefs.h <<_ACEOF
10279#define LTDL_SYSSEARCHPATH "$sys_search_path"
10280_ACEOF
10281
10282fi
10283
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010284{ echo "$as_me:$LINENO: checking for objdir" >&5
10285echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10286if test "${libltdl_cv_objdir+set}" = set; then
10287 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010288else
10289 libltdl_cv_objdir="$objdir"
10290 if test -n "$objdir"; then
10291 :
10292 else
10293 rm -f .libs 2>/dev/null
10294 mkdir .libs 2>/dev/null
10295 if test -d .libs; then
10296 libltdl_cv_objdir=.libs
10297 else
10298 # MS-DOS does not allow filenames that begin with a dot.
10299 libltdl_cv_objdir=_libs
10300 fi
10301 rmdir .libs 2>/dev/null
10302 fi
10303
10304fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010305{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10306echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010307
10308cat >>confdefs.h <<_ACEOF
10309#define LTDL_OBJDIR "$libltdl_cv_objdir/"
10310_ACEOF
10311
10312
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010313
10314
10315
10316
10317# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010318{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10319echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10320if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10321 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010322else
10323
10324# These are sane defaults that work on at least a few old systems.
10325# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10326
10327# Character class describing NM global symbol codes.
10328symcode='[BCDEGRST]'
10329
10330# Regexp to match symbols that can be accessed directly from C.
10331sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10332
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010333# Transform an extracted symbol line into a proper C declaration
10334lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10335
10336# Transform an extracted symbol line into symbol name and symbol address
10337lt_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'"
10338
10339# Define system-specific variables.
10340case $host_os in
10341aix*)
10342 symcode='[BCDT]'
10343 ;;
10344cygwin* | mingw* | pw32*)
10345 symcode='[ABCDGISTW]'
10346 ;;
10347hpux*) # Its linker distinguishes data from code symbols
10348 if test "$host_cpu" = ia64; then
10349 symcode='[ABCDEGRST]'
10350 fi
10351 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10352 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'"
10353 ;;
10354linux*)
10355 if test "$host_cpu" = ia64; then
10356 symcode='[ABCDGIRSTW]'
10357 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10358 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'"
10359 fi
10360 ;;
10361irix* | nonstopux*)
10362 symcode='[BCDEGRST]'
10363 ;;
10364osf*)
10365 symcode='[BCDEGQRST]'
10366 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010367solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010368 symcode='[BDRT]'
10369 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010370sco3.2v5*)
10371 symcode='[DT]'
10372 ;;
10373sysv4.2uw2*)
10374 symcode='[DT]'
10375 ;;
10376sysv5* | sco5v6* | unixware* | OpenUNIX*)
10377 symcode='[ABDT]'
10378 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010379sysv4)
10380 symcode='[DFNSTU]'
10381 ;;
10382esac
10383
10384# Handle CRLF in mingw tool chain
10385opt_cr=
10386case $build_os in
10387mingw*)
10388 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10389 ;;
10390esac
10391
10392# If we're using GNU nm, then use its standard symbol codes.
10393case `$NM -V 2>&1` in
10394*GNU* | *'with BFD'*)
10395 symcode='[ABCDGIRSTW]' ;;
10396esac
10397
10398# Try without a prefix undercore, then with it.
10399for ac_symprfx in "" "_"; do
10400
Reid Spencera773bd52006-08-04 18:18:08 +000010401 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10402 symxfrm="\\1 $ac_symprfx\\2 \\2"
10403
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010404 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000010405 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 +000010406
10407 # Check to see that the pipe works correctly.
10408 pipe_works=no
10409
10410 rm -f conftest*
10411 cat > conftest.$ac_ext <<EOF
10412#ifdef __cplusplus
10413extern "C" {
10414#endif
10415char nm_test_var;
10416void nm_test_func(){}
10417#ifdef __cplusplus
10418}
10419#endif
10420int main(){nm_test_var='a';nm_test_func();return(0);}
10421EOF
10422
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010424 (eval $ac_compile) 2>&5
10425 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010428 # Now try to grab the symbols.
10429 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010430 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 +000010431 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10432 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010435 # Try sorting and uniquifying the output.
10436 if sort "$nlist" | uniq > "$nlist"T; then
10437 mv -f "$nlist"T "$nlist"
10438 else
10439 rm -f "$nlist"T
10440 fi
10441
10442 # Make sure that we snagged all the symbols we need.
10443 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10444 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10445 cat <<EOF > conftest.$ac_ext
10446#ifdef __cplusplus
10447extern "C" {
10448#endif
10449
10450EOF
10451 # Now generate the symbol file.
10452 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10453
10454 cat <<EOF >> conftest.$ac_ext
10455#if defined (__STDC__) && __STDC__
10456# define lt_ptr_t void *
10457#else
10458# define lt_ptr_t char *
10459# define const
10460#endif
10461
10462/* The mapping between symbol names and symbols. */
10463const struct {
10464 const char *name;
10465 lt_ptr_t address;
10466}
10467lt_preloaded_symbols[] =
10468{
10469EOF
10470 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10471 cat <<\EOF >> conftest.$ac_ext
10472 {0, (lt_ptr_t) 0}
10473};
10474
10475#ifdef __cplusplus
10476}
10477#endif
10478EOF
10479 # Now try linking the two files.
10480 mv conftest.$ac_objext conftstm.$ac_objext
10481 lt_save_LIBS="$LIBS"
10482 lt_save_CFLAGS="$CFLAGS"
10483 LIBS="conftstm.$ac_objext"
10484 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010486 (eval $ac_link) 2>&5
10487 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010490 pipe_works=yes
10491 fi
10492 LIBS="$lt_save_LIBS"
10493 CFLAGS="$lt_save_CFLAGS"
10494 else
10495 echo "cannot find nm_test_func in $nlist" >&5
10496 fi
10497 else
10498 echo "cannot find nm_test_var in $nlist" >&5
10499 fi
10500 else
10501 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10502 fi
10503 else
10504 echo "$progname: failed program was:" >&5
10505 cat conftest.$ac_ext >&5
10506 fi
10507 rm -f conftest* conftst*
10508
10509 # Do not use the global_symbol_pipe unless it works.
10510 if test "$pipe_works" = yes; then
10511 break
10512 else
10513 lt_cv_sys_global_symbol_pipe=
10514 fi
10515done
10516
10517fi
10518
10519if test -z "$lt_cv_sys_global_symbol_pipe"; then
10520 lt_cv_sys_global_symbol_to_cdecl=
10521fi
10522if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010523 { echo "$as_me:$LINENO: result: failed" >&5
10524echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010525else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010526 { echo "$as_me:$LINENO: result: ok" >&5
10527echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010528fi
10529
10530
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010531{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10532echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10533if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10534 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010535else
10536 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10537 libltdl_cv_preloaded_symbols=yes
10538 else
10539 libltdl_cv_preloaded_symbols=no
10540 fi
10541
10542fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010543{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10544echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010545if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10546
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010547cat >>confdefs.h <<\_ACEOF
10548#define HAVE_PRELOADED_SYMBOLS 1
10549_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010550
10551fi
10552
10553LIBADD_DL=
10554
10555ac_ext=c
10556ac_cpp='$CPP $CPPFLAGS'
10557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10559ac_compiler_gnu=$ac_cv_c_compiler_gnu
10560
10561
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010562{ echo "$as_me:$LINENO: checking for shl_load" >&5
10563echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10564if test "${ac_cv_func_shl_load+set}" = set; then
10565 echo $ECHO_N "(cached) $ECHO_C" >&6
10566else
10567 cat >conftest.$ac_ext <<_ACEOF
10568/* confdefs.h. */
10569_ACEOF
10570cat confdefs.h >>conftest.$ac_ext
10571cat >>conftest.$ac_ext <<_ACEOF
10572/* end confdefs.h. */
10573/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10574 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10575#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010576
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010577/* System header to define __stub macros and hopefully few prototypes,
10578 which can conflict with char shl_load (); below.
10579 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10580 <limits.h> exists even on freestanding compilers. */
10581
10582#ifdef __STDC__
10583# include <limits.h>
10584#else
10585# include <assert.h>
10586#endif
10587
10588#undef shl_load
10589
10590/* Override any GCC internal prototype to avoid an error.
10591 Use char because int might match the return type of a GCC
10592 builtin and then its argument prototype would still apply. */
10593#ifdef __cplusplus
10594extern "C"
10595#endif
10596char shl_load ();
10597/* The GNU C library defines this for functions which it implements
10598 to always fail with ENOSYS. Some functions are actually named
10599 something starting with __ and the normal name is an alias. */
10600#if defined __stub_shl_load || defined __stub___shl_load
10601choke me
10602#endif
10603
10604int
10605main ()
10606{
10607return shl_load ();
10608 ;
10609 return 0;
10610}
10611_ACEOF
10612rm -f conftest.$ac_objext conftest$ac_exeext
10613if { (ac_try="$ac_link"
10614case "(($ac_try" in
10615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10616 *) ac_try_echo=$ac_try;;
10617esac
10618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10619 (eval "$ac_link") 2>conftest.er1
10620 ac_status=$?
10621 grep -v '^ *+' conftest.er1 >conftest.err
10622 rm -f conftest.er1
10623 cat conftest.err >&5
10624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625 (exit $ac_status); } &&
10626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10627 { (case "(($ac_try" in
10628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10629 *) ac_try_echo=$ac_try;;
10630esac
10631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10632 (eval "$ac_try") 2>&5
10633 ac_status=$?
10634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635 (exit $ac_status); }; } &&
10636 { ac_try='test -s conftest$ac_exeext'
10637 { (case "(($ac_try" in
10638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10639 *) ac_try_echo=$ac_try;;
10640esac
10641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10642 (eval "$ac_try") 2>&5
10643 ac_status=$?
10644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645 (exit $ac_status); }; }; then
10646 ac_cv_func_shl_load=yes
10647else
10648 echo "$as_me: failed program was:" >&5
10649sed 's/^/| /' conftest.$ac_ext >&5
10650
10651 ac_cv_func_shl_load=no
10652fi
10653
10654rm -f core conftest.err conftest.$ac_objext \
10655 conftest$ac_exeext conftest.$ac_ext
10656fi
10657{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10658echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10659if test $ac_cv_func_shl_load = yes; then
10660
10661cat >>confdefs.h <<\_ACEOF
10662#define HAVE_SHL_LOAD 1
10663_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010664
10665else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010666 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10667echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10668if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10669 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010670else
10671 ac_check_lib_save_LIBS=$LIBS
10672LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010673cat >conftest.$ac_ext <<_ACEOF
10674/* confdefs.h. */
10675_ACEOF
10676cat confdefs.h >>conftest.$ac_ext
10677cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010678/* end confdefs.h. */
10679
Reid Spencera773bd52006-08-04 18:18:08 +000010680/* Override any GCC internal prototype to avoid an error.
10681 Use char because int might match the return type of a GCC
10682 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010683#ifdef __cplusplus
10684extern "C"
10685#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010686char shl_load ();
10687int
10688main ()
10689{
Reid Spencera773bd52006-08-04 18:18:08 +000010690return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010691 ;
10692 return 0;
10693}
10694_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010695rm -f conftest.$ac_objext conftest$ac_exeext
10696if { (ac_try="$ac_link"
10697case "(($ac_try" in
10698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10699 *) ac_try_echo=$ac_try;;
10700esac
10701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10702 (eval "$ac_link") 2>conftest.er1
10703 ac_status=$?
10704 grep -v '^ *+' conftest.er1 >conftest.err
10705 rm -f conftest.er1
10706 cat conftest.err >&5
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); } &&
10709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10710 { (case "(($ac_try" in
10711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10712 *) ac_try_echo=$ac_try;;
10713esac
10714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10715 (eval "$ac_try") 2>&5
10716 ac_status=$?
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); }; } &&
10719 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010729 ac_cv_lib_dld_shl_load=yes
10730else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010731 echo "$as_me: failed program was:" >&5
10732sed 's/^/| /' conftest.$ac_ext >&5
10733
10734 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010735fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010736
Bill Wendlingebcceee2009-04-18 11:20:33 +000010737rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010738 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010739LIBS=$ac_check_lib_save_LIBS
10740fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010741{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10742echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10743if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010744
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010745cat >>confdefs.h <<\_ACEOF
10746#define HAVE_SHL_LOAD 1
10747_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010748
10749 LIBADD_DL="$LIBADD_DL -ldld"
10750else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010751 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10752echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10753if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10754 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010755else
10756 ac_check_lib_save_LIBS=$LIBS
10757LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010758cat >conftest.$ac_ext <<_ACEOF
10759/* confdefs.h. */
10760_ACEOF
10761cat confdefs.h >>conftest.$ac_ext
10762cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010763/* end confdefs.h. */
10764
Reid Spencera773bd52006-08-04 18:18:08 +000010765/* Override any GCC internal prototype to avoid an error.
10766 Use char because int might match the return type of a GCC
10767 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010768#ifdef __cplusplus
10769extern "C"
10770#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010771char dlopen ();
10772int
10773main ()
10774{
Reid Spencera773bd52006-08-04 18:18:08 +000010775return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010776 ;
10777 return 0;
10778}
10779_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010780rm -f conftest.$ac_objext conftest$ac_exeext
10781if { (ac_try="$ac_link"
10782case "(($ac_try" in
10783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10784 *) ac_try_echo=$ac_try;;
10785esac
10786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10787 (eval "$ac_link") 2>conftest.er1
10788 ac_status=$?
10789 grep -v '^ *+' conftest.er1 >conftest.err
10790 rm -f conftest.er1
10791 cat conftest.err >&5
10792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793 (exit $ac_status); } &&
10794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10795 { (case "(($ac_try" in
10796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10797 *) ac_try_echo=$ac_try;;
10798esac
10799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10800 (eval "$ac_try") 2>&5
10801 ac_status=$?
10802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803 (exit $ac_status); }; } &&
10804 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010814 ac_cv_lib_dl_dlopen=yes
10815else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010816 echo "$as_me: failed program was:" >&5
10817sed 's/^/| /' conftest.$ac_ext >&5
10818
10819 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010820fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010821
Bill Wendlingebcceee2009-04-18 11:20:33 +000010822rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010823 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010824LIBS=$ac_check_lib_save_LIBS
10825fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010826{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10827echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10828if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010829
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010830cat >>confdefs.h <<\_ACEOF
10831#define HAVE_LIBDL 1
10832_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010833
10834 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10835else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010836 cat >conftest.$ac_ext <<_ACEOF
10837/* confdefs.h. */
10838_ACEOF
10839cat confdefs.h >>conftest.$ac_ext
10840cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010841/* end confdefs.h. */
10842#if HAVE_DLFCN_H
10843# include <dlfcn.h>
10844#endif
10845
10846int
10847main ()
10848{
10849dlopen(0, 0);
10850 ;
10851 return 0;
10852}
10853_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010854rm -f conftest.$ac_objext conftest$ac_exeext
10855if { (ac_try="$ac_link"
10856case "(($ac_try" in
10857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10858 *) ac_try_echo=$ac_try;;
10859esac
10860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10861 (eval "$ac_link") 2>conftest.er1
10862 ac_status=$?
10863 grep -v '^ *+' conftest.er1 >conftest.err
10864 rm -f conftest.er1
10865 cat conftest.err >&5
10866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867 (exit $ac_status); } &&
10868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10869 { (case "(($ac_try" in
10870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10871 *) ac_try_echo=$ac_try;;
10872esac
10873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10874 (eval "$ac_try") 2>&5
10875 ac_status=$?
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); }; } &&
10878 { ac_try='test -s conftest$ac_exeext'
10879 { (case "(($ac_try" in
10880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10881 *) ac_try_echo=$ac_try;;
10882esac
10883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10884 (eval "$ac_try") 2>&5
10885 ac_status=$?
10886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010888
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010889cat >>confdefs.h <<\_ACEOF
10890#define HAVE_LIBDL 1
10891_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010892 libltdl_cv_func_dlopen="yes"
10893else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010894 echo "$as_me: failed program was:" >&5
10895sed 's/^/| /' conftest.$ac_ext >&5
10896
10897 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10898echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10899if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10900 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010901else
10902 ac_check_lib_save_LIBS=$LIBS
10903LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010904cat >conftest.$ac_ext <<_ACEOF
10905/* confdefs.h. */
10906_ACEOF
10907cat confdefs.h >>conftest.$ac_ext
10908cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010909/* end confdefs.h. */
10910
Reid Spencera773bd52006-08-04 18:18:08 +000010911/* Override any GCC internal prototype to avoid an error.
10912 Use char because int might match the return type of a GCC
10913 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010914#ifdef __cplusplus
10915extern "C"
10916#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010917char dlopen ();
10918int
10919main ()
10920{
Reid Spencera773bd52006-08-04 18:18:08 +000010921return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010922 ;
10923 return 0;
10924}
10925_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010926rm -f conftest.$ac_objext conftest$ac_exeext
10927if { (ac_try="$ac_link"
10928case "(($ac_try" in
10929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10930 *) ac_try_echo=$ac_try;;
10931esac
10932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10933 (eval "$ac_link") 2>conftest.er1
10934 ac_status=$?
10935 grep -v '^ *+' conftest.er1 >conftest.err
10936 rm -f conftest.er1
10937 cat conftest.err >&5
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); } &&
10940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10941 { (case "(($ac_try" in
10942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10943 *) ac_try_echo=$ac_try;;
10944esac
10945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10946 (eval "$ac_try") 2>&5
10947 ac_status=$?
10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); }; } &&
10950 { ac_try='test -s conftest$ac_exeext'
10951 { (case "(($ac_try" in
10952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10953 *) ac_try_echo=$ac_try;;
10954esac
10955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10956 (eval "$ac_try") 2>&5
10957 ac_status=$?
10958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010960 ac_cv_lib_svld_dlopen=yes
10961else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010962 echo "$as_me: failed program was:" >&5
10963sed 's/^/| /' conftest.$ac_ext >&5
10964
10965 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010966fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010967
Bill Wendlingebcceee2009-04-18 11:20:33 +000010968rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010969 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010970LIBS=$ac_check_lib_save_LIBS
10971fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010972{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10973echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10974if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010975
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010976cat >>confdefs.h <<\_ACEOF
10977#define HAVE_LIBDL 1
10978_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010979
10980 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10981else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010982 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10983echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10984if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10985 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010986else
10987 ac_check_lib_save_LIBS=$LIBS
10988LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010989cat >conftest.$ac_ext <<_ACEOF
10990/* confdefs.h. */
10991_ACEOF
10992cat confdefs.h >>conftest.$ac_ext
10993cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010994/* end confdefs.h. */
10995
Reid Spencera773bd52006-08-04 18:18:08 +000010996/* Override any GCC internal prototype to avoid an error.
10997 Use char because int might match the return type of a GCC
10998 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010999#ifdef __cplusplus
11000extern "C"
11001#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011002char dld_link ();
11003int
11004main ()
11005{
Reid Spencera773bd52006-08-04 18:18:08 +000011006return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011007 ;
11008 return 0;
11009}
11010_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011011rm -f conftest.$ac_objext conftest$ac_exeext
11012if { (ac_try="$ac_link"
11013case "(($ac_try" in
11014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11015 *) ac_try_echo=$ac_try;;
11016esac
11017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11018 (eval "$ac_link") 2>conftest.er1
11019 ac_status=$?
11020 grep -v '^ *+' conftest.er1 >conftest.err
11021 rm -f conftest.er1
11022 cat conftest.err >&5
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); } &&
11025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11026 { (case "(($ac_try" in
11027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11028 *) ac_try_echo=$ac_try;;
11029esac
11030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11031 (eval "$ac_try") 2>&5
11032 ac_status=$?
11033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034 (exit $ac_status); }; } &&
11035 { ac_try='test -s conftest$ac_exeext'
11036 { (case "(($ac_try" in
11037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11038 *) ac_try_echo=$ac_try;;
11039esac
11040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11041 (eval "$ac_try") 2>&5
11042 ac_status=$?
11043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011045 ac_cv_lib_dld_dld_link=yes
11046else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011047 echo "$as_me: failed program was:" >&5
11048sed 's/^/| /' conftest.$ac_ext >&5
11049
11050 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011051fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011052
Bill Wendlingebcceee2009-04-18 11:20:33 +000011053rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011054 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011055LIBS=$ac_check_lib_save_LIBS
11056fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011057{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11058echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11059if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011060
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011061cat >>confdefs.h <<\_ACEOF
11062#define HAVE_DLD 1
11063_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011064
11065 LIBADD_DL="$LIBADD_DL -ldld"
11066else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011067 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11068echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11069if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11070 echo $ECHO_N "(cached) $ECHO_C" >&6
11071else
11072 cat >conftest.$ac_ext <<_ACEOF
11073/* confdefs.h. */
11074_ACEOF
11075cat confdefs.h >>conftest.$ac_ext
11076cat >>conftest.$ac_ext <<_ACEOF
11077/* end confdefs.h. */
11078/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11080#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011081
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011082/* System header to define __stub macros and hopefully few prototypes,
11083 which can conflict with char _dyld_func_lookup (); below.
11084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11085 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011086
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011087#ifdef __STDC__
11088# include <limits.h>
11089#else
11090# include <assert.h>
11091#endif
11092
11093#undef _dyld_func_lookup
11094
11095/* Override any GCC internal prototype to avoid an error.
11096 Use char because int might match the return type of a GCC
11097 builtin and then its argument prototype would still apply. */
11098#ifdef __cplusplus
11099extern "C"
11100#endif
11101char _dyld_func_lookup ();
11102/* The GNU C library defines this for functions which it implements
11103 to always fail with ENOSYS. Some functions are actually named
11104 something starting with __ and the normal name is an alias. */
11105#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11106choke me
11107#endif
11108
11109int
11110main ()
11111{
11112return _dyld_func_lookup ();
11113 ;
11114 return 0;
11115}
11116_ACEOF
11117rm -f conftest.$ac_objext conftest$ac_exeext
11118if { (ac_try="$ac_link"
11119case "(($ac_try" in
11120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11121 *) ac_try_echo=$ac_try;;
11122esac
11123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11124 (eval "$ac_link") 2>conftest.er1
11125 ac_status=$?
11126 grep -v '^ *+' conftest.er1 >conftest.err
11127 rm -f conftest.er1
11128 cat conftest.err >&5
11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 (exit $ac_status); } &&
11131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11132 { (case "(($ac_try" in
11133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11134 *) ac_try_echo=$ac_try;;
11135esac
11136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11137 (eval "$ac_try") 2>&5
11138 ac_status=$?
11139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140 (exit $ac_status); }; } &&
11141 { ac_try='test -s conftest$ac_exeext'
11142 { (case "(($ac_try" in
11143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11144 *) ac_try_echo=$ac_try;;
11145esac
11146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11147 (eval "$ac_try") 2>&5
11148 ac_status=$?
11149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150 (exit $ac_status); }; }; then
11151 ac_cv_func__dyld_func_lookup=yes
11152else
11153 echo "$as_me: failed program was:" >&5
11154sed 's/^/| /' conftest.$ac_ext >&5
11155
11156 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011157fi
Reid Spencera773bd52006-08-04 18:18:08 +000011158
Bill Wendlingebcceee2009-04-18 11:20:33 +000011159rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011160 conftest$ac_exeext conftest.$ac_ext
11161fi
11162{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11163echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11164if test $ac_cv_func__dyld_func_lookup = yes; then
11165
11166cat >>confdefs.h <<\_ACEOF
11167#define HAVE_DYLD 1
11168_ACEOF
11169
11170fi
11171
11172
11173fi
11174
11175
11176fi
11177
11178
11179fi
11180
11181rm -f core conftest.err conftest.$ac_objext \
11182 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011183
11184fi
11185
11186
11187fi
11188
11189
11190fi
11191
11192
11193if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11194then
11195 lt_save_LIBS="$LIBS"
11196 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011197
11198for ac_func in dlerror
11199do
11200as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11201{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11202echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11203if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11204 echo $ECHO_N "(cached) $ECHO_C" >&6
11205else
11206 cat >conftest.$ac_ext <<_ACEOF
11207/* confdefs.h. */
11208_ACEOF
11209cat confdefs.h >>conftest.$ac_ext
11210cat >>conftest.$ac_ext <<_ACEOF
11211/* end confdefs.h. */
11212/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11213 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11214#define $ac_func innocuous_$ac_func
11215
11216/* System header to define __stub macros and hopefully few prototypes,
11217 which can conflict with char $ac_func (); below.
11218 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11219 <limits.h> exists even on freestanding compilers. */
11220
11221#ifdef __STDC__
11222# include <limits.h>
11223#else
11224# include <assert.h>
11225#endif
11226
11227#undef $ac_func
11228
11229/* Override any GCC internal prototype to avoid an error.
11230 Use char because int might match the return type of a GCC
11231 builtin and then its argument prototype would still apply. */
11232#ifdef __cplusplus
11233extern "C"
11234#endif
11235char $ac_func ();
11236/* The GNU C library defines this for functions which it implements
11237 to always fail with ENOSYS. Some functions are actually named
11238 something starting with __ and the normal name is an alias. */
11239#if defined __stub_$ac_func || defined __stub___$ac_func
11240choke me
11241#endif
11242
11243int
11244main ()
11245{
11246return $ac_func ();
11247 ;
11248 return 0;
11249}
11250_ACEOF
11251rm -f conftest.$ac_objext conftest$ac_exeext
11252if { (ac_try="$ac_link"
11253case "(($ac_try" in
11254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11255 *) ac_try_echo=$ac_try;;
11256esac
11257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11258 (eval "$ac_link") 2>conftest.er1
11259 ac_status=$?
11260 grep -v '^ *+' conftest.er1 >conftest.err
11261 rm -f conftest.er1
11262 cat conftest.err >&5
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); } &&
11265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11266 { (case "(($ac_try" in
11267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11268 *) ac_try_echo=$ac_try;;
11269esac
11270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11271 (eval "$ac_try") 2>&5
11272 ac_status=$?
11273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274 (exit $ac_status); }; } &&
11275 { ac_try='test -s conftest$ac_exeext'
11276 { (case "(($ac_try" in
11277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11278 *) ac_try_echo=$ac_try;;
11279esac
11280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11281 (eval "$ac_try") 2>&5
11282 ac_status=$?
11283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284 (exit $ac_status); }; }; then
11285 eval "$as_ac_var=yes"
11286else
11287 echo "$as_me: failed program was:" >&5
11288sed 's/^/| /' conftest.$ac_ext >&5
11289
11290 eval "$as_ac_var=no"
11291fi
11292
11293rm -f core conftest.err conftest.$ac_objext \
11294 conftest$ac_exeext conftest.$ac_ext
11295fi
11296ac_res=`eval echo '${'$as_ac_var'}'`
11297 { echo "$as_me:$LINENO: result: $ac_res" >&5
11298echo "${ECHO_T}$ac_res" >&6; }
11299if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011300 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011301#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011302_ACEOF
11303
11304fi
11305done
11306
11307 LIBS="$lt_save_LIBS"
11308fi
11309ac_ext=c
11310ac_cpp='$CPP $CPPFLAGS'
11311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11313ac_compiler_gnu=$ac_cv_c_compiler_gnu
11314
11315
11316
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011317{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11318echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11319if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11320 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011321else
11322 ac_cv_sys_symbol_underscore=no
11323 cat > conftest.$ac_ext <<EOF
11324void nm_test_func(){}
11325int main(){nm_test_func;return 0;}
11326EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011328 (eval $ac_compile) 2>&5
11329 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011332 # Now try to grab the symbols.
11333 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011334 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 +000011335 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11336 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011339 # See whether the symbols have a leading underscore.
11340 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11341 ac_cv_sys_symbol_underscore=yes
11342 else
11343 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11344 :
11345 else
11346 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11347 fi
11348 fi
11349 else
11350 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11351 fi
11352 else
11353 echo "configure: failed program was:" >&5
11354 cat conftest.c >&5
11355 fi
11356 rm -rf conftest*
11357
11358fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011359{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11360echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011361
11362
11363if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11364 if test x"$libltdl_cv_func_dlopen" = xyes ||
11365 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011366 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11367echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11368if test "${libltdl_cv_need_uscore+set}" = set; then
11369 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011370else
11371 libltdl_cv_need_uscore=unknown
11372 save_LIBS="$LIBS"
11373 LIBS="$LIBS $LIBADD_DL"
11374 if test "$cross_compiling" = yes; then :
11375 libltdl_cv_need_uscore=cross
11376else
11377 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11378 lt_status=$lt_dlunknown
11379 cat > conftest.$ac_ext <<EOF
Mikhail Glushenkov4b643c02010-08-15 07:07:17 +000011380#line 11381 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011381#include "confdefs.h"
11382
11383#if HAVE_DLFCN_H
11384#include <dlfcn.h>
11385#endif
11386
11387#include <stdio.h>
11388
11389#ifdef RTLD_GLOBAL
11390# define LT_DLGLOBAL RTLD_GLOBAL
11391#else
11392# ifdef DL_GLOBAL
11393# define LT_DLGLOBAL DL_GLOBAL
11394# else
11395# define LT_DLGLOBAL 0
11396# endif
11397#endif
11398
11399/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11400 find out it does not work in some platform. */
11401#ifndef LT_DLLAZY_OR_NOW
11402# ifdef RTLD_LAZY
11403# define LT_DLLAZY_OR_NOW RTLD_LAZY
11404# else
11405# ifdef DL_LAZY
11406# define LT_DLLAZY_OR_NOW DL_LAZY
11407# else
11408# ifdef RTLD_NOW
11409# define LT_DLLAZY_OR_NOW RTLD_NOW
11410# else
11411# ifdef DL_NOW
11412# define LT_DLLAZY_OR_NOW DL_NOW
11413# else
11414# define LT_DLLAZY_OR_NOW 0
11415# endif
11416# endif
11417# endif
11418# endif
11419#endif
11420
11421#ifdef __cplusplus
11422extern "C" void exit (int);
11423#endif
11424
11425void fnord() { int i=42;}
11426int main ()
11427{
11428 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11429 int status = $lt_dlunknown;
11430
11431 if (self)
11432 {
11433 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11434 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11435 /* dlclose (self); */
11436 }
Reid Spencera773bd52006-08-04 18:18:08 +000011437 else
11438 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011439
11440 exit (status);
11441}
11442EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011444 (eval $ac_link) 2>&5
11445 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000011448 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011449 lt_status=$?
11450 case x$lt_status in
11451 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11452 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011453 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011454 esac
11455 else :
11456 # compilation failed
11457
11458 fi
11459fi
11460rm -fr conftest*
11461
11462 LIBS="$save_LIBS"
11463
11464fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011465{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11466echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011467 fi
11468fi
11469
11470if test x"$libltdl_cv_need_uscore" = xyes; then
11471
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011472cat >>confdefs.h <<\_ACEOF
11473#define NEED_USCORE 1
11474_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011475
11476fi
11477
11478
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011479{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11480echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11481if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11482 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011483else
11484 # PORTME does your system automatically load deplibs for dlopen?
11485 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11486 # For now, we just catch OSes we know something about -- in the
11487 # future, we'll try test this programmatically.
11488 libltdl_cv_sys_dlopen_deplibs=unknown
11489 case "$host_os" in
11490 aix3*|aix4.1.*|aix4.2.*)
11491 # Unknown whether this is true for these versions of AIX, but
11492 # we want this `case' here to explicitly catch those versions.
11493 libltdl_cv_sys_dlopen_deplibs=unknown
11494 ;;
11495 aix[45]*)
11496 libltdl_cv_sys_dlopen_deplibs=yes
11497 ;;
11498 darwin*)
11499 # Assuming the user has installed a libdl from somewhere, this is true
11500 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11501 libltdl_cv_sys_dlopen_deplibs=yes
11502 ;;
11503 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11504 # GNU and its variants, using gnu ld.so (Glibc)
11505 libltdl_cv_sys_dlopen_deplibs=yes
11506 ;;
11507 hpux10*|hpux11*)
11508 libltdl_cv_sys_dlopen_deplibs=yes
11509 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011510 interix*)
11511 libltdl_cv_sys_dlopen_deplibs=yes
11512 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011513 irix[12345]*|irix6.[01]*)
11514 # Catch all versions of IRIX before 6.2, and indicate that we don't
11515 # know how it worked for any of those versions.
11516 libltdl_cv_sys_dlopen_deplibs=unknown
11517 ;;
11518 irix*)
11519 # The case above catches anything before 6.2, and it's known that
11520 # at 6.2 and later dlopen does load deplibs.
11521 libltdl_cv_sys_dlopen_deplibs=yes
11522 ;;
11523 netbsd*)
11524 libltdl_cv_sys_dlopen_deplibs=yes
11525 ;;
11526 openbsd*)
11527 libltdl_cv_sys_dlopen_deplibs=yes
11528 ;;
11529 osf[1234]*)
11530 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11531 # it did *not* use an RPATH in a shared library to find objects the
11532 # library depends on, so we explictly say `no'.
11533 libltdl_cv_sys_dlopen_deplibs=no
11534 ;;
11535 osf5.0|osf5.0a|osf5.1)
11536 # dlopen *does* load deplibs and with the right loader patch applied
11537 # it even uses RPATH in a shared library to search for shared objects
11538 # that the library depends on, but there's no easy way to know if that
11539 # patch is installed. Since this is the case, all we can really
11540 # say is unknown -- it depends on the patch being installed. If
11541 # it is, this changes to `yes'. Without it, it would be `no'.
11542 libltdl_cv_sys_dlopen_deplibs=unknown
11543 ;;
11544 osf*)
11545 # the two cases above should catch all versions of osf <= 5.1. Read
11546 # the comments above for what we know about them.
11547 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11548 # is used to find them so we can finally say `yes'.
11549 libltdl_cv_sys_dlopen_deplibs=yes
11550 ;;
11551 solaris*)
11552 libltdl_cv_sys_dlopen_deplibs=yes
11553 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011554 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11555 libltdl_cv_sys_dlopen_deplibs=yes
11556 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011557 esac
11558
11559fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011560{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11561echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011562if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11563
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011564cat >>confdefs.h <<\_ACEOF
11565#define LTDL_DLOPEN_DEPLIBS 1
11566_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011567
11568fi
11569
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011570
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011571for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011572do
11573as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11574if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11575 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11576echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11577if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11578 echo $ECHO_N "(cached) $ECHO_C" >&6
11579fi
11580ac_res=`eval echo '${'$as_ac_Header'}'`
11581 { echo "$as_me:$LINENO: result: $ac_res" >&5
11582echo "${ECHO_T}$ac_res" >&6; }
11583else
11584 # Is the header compilable?
11585{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11586echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11587cat >conftest.$ac_ext <<_ACEOF
11588/* confdefs.h. */
11589_ACEOF
11590cat confdefs.h >>conftest.$ac_ext
11591cat >>conftest.$ac_ext <<_ACEOF
11592/* end confdefs.h. */
11593$ac_includes_default
11594#include <$ac_header>
11595_ACEOF
11596rm -f conftest.$ac_objext
11597if { (ac_try="$ac_compile"
11598case "(($ac_try" in
11599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11600 *) ac_try_echo=$ac_try;;
11601esac
11602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11603 (eval "$ac_compile") 2>conftest.er1
11604 ac_status=$?
11605 grep -v '^ *+' conftest.er1 >conftest.err
11606 rm -f conftest.er1
11607 cat conftest.err >&5
11608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609 (exit $ac_status); } &&
11610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11611 { (case "(($ac_try" in
11612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11613 *) ac_try_echo=$ac_try;;
11614esac
11615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11616 (eval "$ac_try") 2>&5
11617 ac_status=$?
11618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619 (exit $ac_status); }; } &&
11620 { ac_try='test -s conftest.$ac_objext'
11621 { (case "(($ac_try" in
11622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11623 *) ac_try_echo=$ac_try;;
11624esac
11625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11626 (eval "$ac_try") 2>&5
11627 ac_status=$?
11628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629 (exit $ac_status); }; }; then
11630 ac_header_compiler=yes
11631else
11632 echo "$as_me: failed program was:" >&5
11633sed 's/^/| /' conftest.$ac_ext >&5
11634
11635 ac_header_compiler=no
11636fi
11637
11638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11639{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11640echo "${ECHO_T}$ac_header_compiler" >&6; }
11641
11642# Is the header present?
11643{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11644echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11645cat >conftest.$ac_ext <<_ACEOF
11646/* confdefs.h. */
11647_ACEOF
11648cat confdefs.h >>conftest.$ac_ext
11649cat >>conftest.$ac_ext <<_ACEOF
11650/* end confdefs.h. */
11651#include <$ac_header>
11652_ACEOF
11653if { (ac_try="$ac_cpp conftest.$ac_ext"
11654case "(($ac_try" in
11655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11656 *) ac_try_echo=$ac_try;;
11657esac
11658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11659 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11660 ac_status=$?
11661 grep -v '^ *+' conftest.er1 >conftest.err
11662 rm -f conftest.er1
11663 cat conftest.err >&5
11664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665 (exit $ac_status); } >/dev/null; then
11666 if test -s conftest.err; then
11667 ac_cpp_err=$ac_c_preproc_warn_flag
11668 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11669 else
11670 ac_cpp_err=
11671 fi
11672else
11673 ac_cpp_err=yes
11674fi
11675if test -z "$ac_cpp_err"; then
11676 ac_header_preproc=yes
11677else
11678 echo "$as_me: failed program was:" >&5
11679sed 's/^/| /' conftest.$ac_ext >&5
11680
11681 ac_header_preproc=no
11682fi
11683
11684rm -f conftest.err conftest.$ac_ext
11685{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11686echo "${ECHO_T}$ac_header_preproc" >&6; }
11687
11688# So? What about this header?
11689case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11690 yes:no: )
11691 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11692echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11694echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11695 ac_header_preproc=yes
11696 ;;
11697 no:yes:* )
11698 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11699echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11700 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11701echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11702 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11703echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11704 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11705echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11706 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11707echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11708 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11709echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11710 ( cat <<\_ASBOX
11711## ----------------------------------- ##
11712## Report this to llvmbugs@cs.uiuc.edu ##
11713## ----------------------------------- ##
11714_ASBOX
11715 ) | sed "s/^/$as_me: WARNING: /" >&2
11716 ;;
11717esac
11718{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11719echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11720if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11721 echo $ECHO_N "(cached) $ECHO_C" >&6
11722else
11723 eval "$as_ac_Header=\$ac_header_preproc"
11724fi
11725ac_res=`eval echo '${'$as_ac_Header'}'`
11726 { echo "$as_me:$LINENO: result: $ac_res" >&5
11727echo "${ECHO_T}$ac_res" >&6; }
11728
11729fi
11730if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011731 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011732#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011733_ACEOF
11734
11735fi
11736
11737done
11738
11739
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011740{ echo "$as_me:$LINENO: checking for error_t" >&5
11741echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11742if test "${ac_cv_type_error_t+set}" = set; then
11743 echo $ECHO_N "(cached) $ECHO_C" >&6
11744else
11745 cat >conftest.$ac_ext <<_ACEOF
11746/* confdefs.h. */
11747_ACEOF
11748cat confdefs.h >>conftest.$ac_ext
11749cat >>conftest.$ac_ext <<_ACEOF
11750/* end confdefs.h. */
11751#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011752# include <argz.h>
11753#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011754
11755typedef error_t ac__type_new_;
11756int
11757main ()
11758{
11759if ((ac__type_new_ *) 0)
11760 return 0;
11761if (sizeof (ac__type_new_))
11762 return 0;
11763 ;
11764 return 0;
11765}
11766_ACEOF
11767rm -f conftest.$ac_objext
11768if { (ac_try="$ac_compile"
11769case "(($ac_try" in
11770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11771 *) ac_try_echo=$ac_try;;
11772esac
11773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11774 (eval "$ac_compile") 2>conftest.er1
11775 ac_status=$?
11776 grep -v '^ *+' conftest.er1 >conftest.err
11777 rm -f conftest.er1
11778 cat conftest.err >&5
11779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780 (exit $ac_status); } &&
11781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11782 { (case "(($ac_try" in
11783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11784 *) ac_try_echo=$ac_try;;
11785esac
11786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11787 (eval "$ac_try") 2>&5
11788 ac_status=$?
11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); }; } &&
11791 { ac_try='test -s conftest.$ac_objext'
11792 { (case "(($ac_try" in
11793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11794 *) ac_try_echo=$ac_try;;
11795esac
11796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11797 (eval "$ac_try") 2>&5
11798 ac_status=$?
11799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800 (exit $ac_status); }; }; then
11801 ac_cv_type_error_t=yes
11802else
11803 echo "$as_me: failed program was:" >&5
11804sed 's/^/| /' conftest.$ac_ext >&5
11805
11806 ac_cv_type_error_t=no
11807fi
11808
11809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11810fi
11811{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11812echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11813if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011814
11815cat >>confdefs.h <<_ACEOF
11816#define HAVE_ERROR_T 1
11817_ACEOF
11818
11819
11820else
11821
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011822cat >>confdefs.h <<\_ACEOF
11823#define error_t int
11824_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011825
11826fi
11827
11828
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011829
11830
11831
11832
11833
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011834for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011835do
11836as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11837{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11838echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11839if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11840 echo $ECHO_N "(cached) $ECHO_C" >&6
11841else
11842 cat >conftest.$ac_ext <<_ACEOF
11843/* confdefs.h. */
11844_ACEOF
11845cat confdefs.h >>conftest.$ac_ext
11846cat >>conftest.$ac_ext <<_ACEOF
11847/* end confdefs.h. */
11848/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11850#define $ac_func innocuous_$ac_func
11851
11852/* System header to define __stub macros and hopefully few prototypes,
11853 which can conflict with char $ac_func (); below.
11854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11855 <limits.h> exists even on freestanding compilers. */
11856
11857#ifdef __STDC__
11858# include <limits.h>
11859#else
11860# include <assert.h>
11861#endif
11862
11863#undef $ac_func
11864
11865/* Override any GCC internal prototype to avoid an error.
11866 Use char because int might match the return type of a GCC
11867 builtin and then its argument prototype would still apply. */
11868#ifdef __cplusplus
11869extern "C"
11870#endif
11871char $ac_func ();
11872/* The GNU C library defines this for functions which it implements
11873 to always fail with ENOSYS. Some functions are actually named
11874 something starting with __ and the normal name is an alias. */
11875#if defined __stub_$ac_func || defined __stub___$ac_func
11876choke me
11877#endif
11878
11879int
11880main ()
11881{
11882return $ac_func ();
11883 ;
11884 return 0;
11885}
11886_ACEOF
11887rm -f conftest.$ac_objext conftest$ac_exeext
11888if { (ac_try="$ac_link"
11889case "(($ac_try" in
11890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11891 *) ac_try_echo=$ac_try;;
11892esac
11893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11894 (eval "$ac_link") 2>conftest.er1
11895 ac_status=$?
11896 grep -v '^ *+' conftest.er1 >conftest.err
11897 rm -f conftest.er1
11898 cat conftest.err >&5
11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); } &&
11901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11902 { (case "(($ac_try" in
11903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11904 *) ac_try_echo=$ac_try;;
11905esac
11906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11907 (eval "$ac_try") 2>&5
11908 ac_status=$?
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); }; } &&
11911 { ac_try='test -s conftest$ac_exeext'
11912 { (case "(($ac_try" in
11913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11914 *) ac_try_echo=$ac_try;;
11915esac
11916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11917 (eval "$ac_try") 2>&5
11918 ac_status=$?
11919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920 (exit $ac_status); }; }; then
11921 eval "$as_ac_var=yes"
11922else
11923 echo "$as_me: failed program was:" >&5
11924sed 's/^/| /' conftest.$ac_ext >&5
11925
11926 eval "$as_ac_var=no"
11927fi
11928
11929rm -f core conftest.err conftest.$ac_objext \
11930 conftest$ac_exeext conftest.$ac_ext
11931fi
11932ac_res=`eval echo '${'$as_ac_var'}'`
11933 { echo "$as_me:$LINENO: result: $ac_res" >&5
11934echo "${ECHO_T}$ac_res" >&6; }
11935if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011936 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011937#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011938_ACEOF
11939
11940fi
11941done
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011962
11963
11964
11965
11966
11967
11968
11969
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011970for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11971 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011972do
11973as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11974if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11975 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11976echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11977if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11978 echo $ECHO_N "(cached) $ECHO_C" >&6
11979fi
11980ac_res=`eval echo '${'$as_ac_Header'}'`
11981 { echo "$as_me:$LINENO: result: $ac_res" >&5
11982echo "${ECHO_T}$ac_res" >&6; }
11983else
11984 # Is the header compilable?
11985{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11986echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11987cat >conftest.$ac_ext <<_ACEOF
11988/* confdefs.h. */
11989_ACEOF
11990cat confdefs.h >>conftest.$ac_ext
11991cat >>conftest.$ac_ext <<_ACEOF
11992/* end confdefs.h. */
11993$ac_includes_default
11994#include <$ac_header>
11995_ACEOF
11996rm -f conftest.$ac_objext
11997if { (ac_try="$ac_compile"
11998case "(($ac_try" in
11999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12000 *) ac_try_echo=$ac_try;;
12001esac
12002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12003 (eval "$ac_compile") 2>conftest.er1
12004 ac_status=$?
12005 grep -v '^ *+' conftest.er1 >conftest.err
12006 rm -f conftest.er1
12007 cat conftest.err >&5
12008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009 (exit $ac_status); } &&
12010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12011 { (case "(($ac_try" in
12012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12013 *) ac_try_echo=$ac_try;;
12014esac
12015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12016 (eval "$ac_try") 2>&5
12017 ac_status=$?
12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019 (exit $ac_status); }; } &&
12020 { ac_try='test -s conftest.$ac_objext'
12021 { (case "(($ac_try" in
12022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12023 *) ac_try_echo=$ac_try;;
12024esac
12025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12026 (eval "$ac_try") 2>&5
12027 ac_status=$?
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); }; }; then
12030 ac_header_compiler=yes
12031else
12032 echo "$as_me: failed program was:" >&5
12033sed 's/^/| /' conftest.$ac_ext >&5
12034
12035 ac_header_compiler=no
12036fi
12037
12038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12039{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12040echo "${ECHO_T}$ac_header_compiler" >&6; }
12041
12042# Is the header present?
12043{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12044echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12045cat >conftest.$ac_ext <<_ACEOF
12046/* confdefs.h. */
12047_ACEOF
12048cat confdefs.h >>conftest.$ac_ext
12049cat >>conftest.$ac_ext <<_ACEOF
12050/* end confdefs.h. */
12051#include <$ac_header>
12052_ACEOF
12053if { (ac_try="$ac_cpp conftest.$ac_ext"
12054case "(($ac_try" in
12055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12056 *) ac_try_echo=$ac_try;;
12057esac
12058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12059 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12060 ac_status=$?
12061 grep -v '^ *+' conftest.er1 >conftest.err
12062 rm -f conftest.er1
12063 cat conftest.err >&5
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); } >/dev/null; then
12066 if test -s conftest.err; then
12067 ac_cpp_err=$ac_c_preproc_warn_flag
12068 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12069 else
12070 ac_cpp_err=
12071 fi
12072else
12073 ac_cpp_err=yes
12074fi
12075if test -z "$ac_cpp_err"; then
12076 ac_header_preproc=yes
12077else
12078 echo "$as_me: failed program was:" >&5
12079sed 's/^/| /' conftest.$ac_ext >&5
12080
12081 ac_header_preproc=no
12082fi
12083
12084rm -f conftest.err conftest.$ac_ext
12085{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12086echo "${ECHO_T}$ac_header_preproc" >&6; }
12087
12088# So? What about this header?
12089case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12090 yes:no: )
12091 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12092echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12093 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12094echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12095 ac_header_preproc=yes
12096 ;;
12097 no:yes:* )
12098 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12099echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12100 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12101echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12102 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12103echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12104 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12105echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12106 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12107echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12108 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12109echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12110 ( cat <<\_ASBOX
12111## ----------------------------------- ##
12112## Report this to llvmbugs@cs.uiuc.edu ##
12113## ----------------------------------- ##
12114_ASBOX
12115 ) | sed "s/^/$as_me: WARNING: /" >&2
12116 ;;
12117esac
12118{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12119echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12120if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12121 echo $ECHO_N "(cached) $ECHO_C" >&6
12122else
12123 eval "$as_ac_Header=\$ac_header_preproc"
12124fi
12125ac_res=`eval echo '${'$as_ac_Header'}'`
12126 { echo "$as_me:$LINENO: result: $ac_res" >&5
12127echo "${ECHO_T}$ac_res" >&6; }
12128
12129fi
12130if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012131 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012132#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012133_ACEOF
12134
12135fi
12136
12137done
12138
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012139
12140
12141
12142
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012143for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012144do
12145as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12146if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12147 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12148echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12149if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12150 echo $ECHO_N "(cached) $ECHO_C" >&6
12151fi
12152ac_res=`eval echo '${'$as_ac_Header'}'`
12153 { echo "$as_me:$LINENO: result: $ac_res" >&5
12154echo "${ECHO_T}$ac_res" >&6; }
12155else
12156 # Is the header compilable?
12157{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12158echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12159cat >conftest.$ac_ext <<_ACEOF
12160/* confdefs.h. */
12161_ACEOF
12162cat confdefs.h >>conftest.$ac_ext
12163cat >>conftest.$ac_ext <<_ACEOF
12164/* end confdefs.h. */
12165$ac_includes_default
12166#include <$ac_header>
12167_ACEOF
12168rm -f conftest.$ac_objext
12169if { (ac_try="$ac_compile"
12170case "(($ac_try" in
12171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12172 *) ac_try_echo=$ac_try;;
12173esac
12174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12175 (eval "$ac_compile") 2>conftest.er1
12176 ac_status=$?
12177 grep -v '^ *+' conftest.er1 >conftest.err
12178 rm -f conftest.er1
12179 cat conftest.err >&5
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); } &&
12182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12183 { (case "(($ac_try" in
12184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12185 *) ac_try_echo=$ac_try;;
12186esac
12187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12188 (eval "$ac_try") 2>&5
12189 ac_status=$?
12190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191 (exit $ac_status); }; } &&
12192 { ac_try='test -s conftest.$ac_objext'
12193 { (case "(($ac_try" in
12194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12195 *) ac_try_echo=$ac_try;;
12196esac
12197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12198 (eval "$ac_try") 2>&5
12199 ac_status=$?
12200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201 (exit $ac_status); }; }; then
12202 ac_header_compiler=yes
12203else
12204 echo "$as_me: failed program was:" >&5
12205sed 's/^/| /' conftest.$ac_ext >&5
12206
12207 ac_header_compiler=no
12208fi
12209
12210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12211{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12212echo "${ECHO_T}$ac_header_compiler" >&6; }
12213
12214# Is the header present?
12215{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12216echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12217cat >conftest.$ac_ext <<_ACEOF
12218/* confdefs.h. */
12219_ACEOF
12220cat confdefs.h >>conftest.$ac_ext
12221cat >>conftest.$ac_ext <<_ACEOF
12222/* end confdefs.h. */
12223#include <$ac_header>
12224_ACEOF
12225if { (ac_try="$ac_cpp conftest.$ac_ext"
12226case "(($ac_try" in
12227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12228 *) ac_try_echo=$ac_try;;
12229esac
12230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12231 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12232 ac_status=$?
12233 grep -v '^ *+' conftest.er1 >conftest.err
12234 rm -f conftest.er1
12235 cat conftest.err >&5
12236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237 (exit $ac_status); } >/dev/null; then
12238 if test -s conftest.err; then
12239 ac_cpp_err=$ac_c_preproc_warn_flag
12240 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12241 else
12242 ac_cpp_err=
12243 fi
12244else
12245 ac_cpp_err=yes
12246fi
12247if test -z "$ac_cpp_err"; then
12248 ac_header_preproc=yes
12249else
12250 echo "$as_me: failed program was:" >&5
12251sed 's/^/| /' conftest.$ac_ext >&5
12252
12253 ac_header_preproc=no
12254fi
12255
12256rm -f conftest.err conftest.$ac_ext
12257{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12258echo "${ECHO_T}$ac_header_preproc" >&6; }
12259
12260# So? What about this header?
12261case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12262 yes:no: )
12263 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12264echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12266echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12267 ac_header_preproc=yes
12268 ;;
12269 no:yes:* )
12270 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12271echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12272 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12273echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12274 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12275echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12276 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12277echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12279echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12280 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12281echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12282 ( cat <<\_ASBOX
12283## ----------------------------------- ##
12284## Report this to llvmbugs@cs.uiuc.edu ##
12285## ----------------------------------- ##
12286_ASBOX
12287 ) | sed "s/^/$as_me: WARNING: /" >&2
12288 ;;
12289esac
12290{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12291echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12292if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12293 echo $ECHO_N "(cached) $ECHO_C" >&6
12294else
12295 eval "$as_ac_Header=\$ac_header_preproc"
12296fi
12297ac_res=`eval echo '${'$as_ac_Header'}'`
12298 { echo "$as_me:$LINENO: result: $ac_res" >&5
12299echo "${ECHO_T}$ac_res" >&6; }
12300
12301fi
12302if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012303 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012304#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012305_ACEOF
12306
12307fi
12308
12309done
12310
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012311
12312
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012313for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012314do
12315as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12316if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12317 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12318echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12319if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12320 echo $ECHO_N "(cached) $ECHO_C" >&6
12321fi
12322ac_res=`eval echo '${'$as_ac_Header'}'`
12323 { echo "$as_me:$LINENO: result: $ac_res" >&5
12324echo "${ECHO_T}$ac_res" >&6; }
12325else
12326 # Is the header compilable?
12327{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12328echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12329cat >conftest.$ac_ext <<_ACEOF
12330/* confdefs.h. */
12331_ACEOF
12332cat confdefs.h >>conftest.$ac_ext
12333cat >>conftest.$ac_ext <<_ACEOF
12334/* end confdefs.h. */
12335$ac_includes_default
12336#include <$ac_header>
12337_ACEOF
12338rm -f conftest.$ac_objext
12339if { (ac_try="$ac_compile"
12340case "(($ac_try" in
12341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12342 *) ac_try_echo=$ac_try;;
12343esac
12344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12345 (eval "$ac_compile") 2>conftest.er1
12346 ac_status=$?
12347 grep -v '^ *+' conftest.er1 >conftest.err
12348 rm -f conftest.er1
12349 cat conftest.err >&5
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); } &&
12352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12353 { (case "(($ac_try" in
12354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12355 *) ac_try_echo=$ac_try;;
12356esac
12357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12358 (eval "$ac_try") 2>&5
12359 ac_status=$?
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); }; } &&
12362 { ac_try='test -s conftest.$ac_objext'
12363 { (case "(($ac_try" in
12364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12365 *) ac_try_echo=$ac_try;;
12366esac
12367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12368 (eval "$ac_try") 2>&5
12369 ac_status=$?
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); }; }; then
12372 ac_header_compiler=yes
12373else
12374 echo "$as_me: failed program was:" >&5
12375sed 's/^/| /' conftest.$ac_ext >&5
12376
12377 ac_header_compiler=no
12378fi
12379
12380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12381{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12382echo "${ECHO_T}$ac_header_compiler" >&6; }
12383
12384# Is the header present?
12385{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12386echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12387cat >conftest.$ac_ext <<_ACEOF
12388/* confdefs.h. */
12389_ACEOF
12390cat confdefs.h >>conftest.$ac_ext
12391cat >>conftest.$ac_ext <<_ACEOF
12392/* end confdefs.h. */
12393#include <$ac_header>
12394_ACEOF
12395if { (ac_try="$ac_cpp conftest.$ac_ext"
12396case "(($ac_try" in
12397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12398 *) ac_try_echo=$ac_try;;
12399esac
12400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12401 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12402 ac_status=$?
12403 grep -v '^ *+' conftest.er1 >conftest.err
12404 rm -f conftest.er1
12405 cat conftest.err >&5
12406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); } >/dev/null; then
12408 if test -s conftest.err; then
12409 ac_cpp_err=$ac_c_preproc_warn_flag
12410 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12411 else
12412 ac_cpp_err=
12413 fi
12414else
12415 ac_cpp_err=yes
12416fi
12417if test -z "$ac_cpp_err"; then
12418 ac_header_preproc=yes
12419else
12420 echo "$as_me: failed program was:" >&5
12421sed 's/^/| /' conftest.$ac_ext >&5
12422
12423 ac_header_preproc=no
12424fi
12425
12426rm -f conftest.err conftest.$ac_ext
12427{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12428echo "${ECHO_T}$ac_header_preproc" >&6; }
12429
12430# So? What about this header?
12431case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12432 yes:no: )
12433 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12434echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12436echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12437 ac_header_preproc=yes
12438 ;;
12439 no:yes:* )
12440 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12441echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12442 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12443echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12444 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12445echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12446 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12447echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12449echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12450 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12451echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12452 ( cat <<\_ASBOX
12453## ----------------------------------- ##
12454## Report this to llvmbugs@cs.uiuc.edu ##
12455## ----------------------------------- ##
12456_ASBOX
12457 ) | sed "s/^/$as_me: WARNING: /" >&2
12458 ;;
12459esac
12460{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12461echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12462if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12463 echo $ECHO_N "(cached) $ECHO_C" >&6
12464else
12465 eval "$as_ac_Header=\$ac_header_preproc"
12466fi
12467ac_res=`eval echo '${'$as_ac_Header'}'`
12468 { echo "$as_me:$LINENO: result: $ac_res" >&5
12469echo "${ECHO_T}$ac_res" >&6; }
12470
12471fi
12472if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012473 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012474#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012475_ACEOF
12476 break
12477fi
12478
12479done
12480
12481
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012482
12483
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012484for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012485do
12486as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12487{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12488echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12489if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12490 echo $ECHO_N "(cached) $ECHO_C" >&6
12491else
12492 cat >conftest.$ac_ext <<_ACEOF
12493/* confdefs.h. */
12494_ACEOF
12495cat confdefs.h >>conftest.$ac_ext
12496cat >>conftest.$ac_ext <<_ACEOF
12497/* end confdefs.h. */
12498/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12499 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12500#define $ac_func innocuous_$ac_func
12501
12502/* System header to define __stub macros and hopefully few prototypes,
12503 which can conflict with char $ac_func (); below.
12504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12505 <limits.h> exists even on freestanding compilers. */
12506
12507#ifdef __STDC__
12508# include <limits.h>
12509#else
12510# include <assert.h>
12511#endif
12512
12513#undef $ac_func
12514
12515/* Override any GCC internal prototype to avoid an error.
12516 Use char because int might match the return type of a GCC
12517 builtin and then its argument prototype would still apply. */
12518#ifdef __cplusplus
12519extern "C"
12520#endif
12521char $ac_func ();
12522/* The GNU C library defines this for functions which it implements
12523 to always fail with ENOSYS. Some functions are actually named
12524 something starting with __ and the normal name is an alias. */
12525#if defined __stub_$ac_func || defined __stub___$ac_func
12526choke me
12527#endif
12528
12529int
12530main ()
12531{
12532return $ac_func ();
12533 ;
12534 return 0;
12535}
12536_ACEOF
12537rm -f conftest.$ac_objext conftest$ac_exeext
12538if { (ac_try="$ac_link"
12539case "(($ac_try" in
12540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12541 *) ac_try_echo=$ac_try;;
12542esac
12543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12544 (eval "$ac_link") 2>conftest.er1
12545 ac_status=$?
12546 grep -v '^ *+' conftest.er1 >conftest.err
12547 rm -f conftest.er1
12548 cat conftest.err >&5
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); } &&
12551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12552 { (case "(($ac_try" in
12553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12554 *) ac_try_echo=$ac_try;;
12555esac
12556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12557 (eval "$ac_try") 2>&5
12558 ac_status=$?
12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 (exit $ac_status); }; } &&
12561 { ac_try='test -s conftest$ac_exeext'
12562 { (case "(($ac_try" in
12563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12564 *) ac_try_echo=$ac_try;;
12565esac
12566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12567 (eval "$ac_try") 2>&5
12568 ac_status=$?
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); }; }; then
12571 eval "$as_ac_var=yes"
12572else
12573 echo "$as_me: failed program was:" >&5
12574sed 's/^/| /' conftest.$ac_ext >&5
12575
12576 eval "$as_ac_var=no"
12577fi
12578
12579rm -f core conftest.err conftest.$ac_objext \
12580 conftest$ac_exeext conftest.$ac_ext
12581fi
12582ac_res=`eval echo '${'$as_ac_var'}'`
12583 { echo "$as_me:$LINENO: result: $ac_res" >&5
12584echo "${ECHO_T}$ac_res" >&6; }
12585if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012586 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012587#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012588_ACEOF
12589 break
12590fi
12591done
12592
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012593
12594
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012595for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012596do
12597as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12598{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12599echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12600if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12601 echo $ECHO_N "(cached) $ECHO_C" >&6
12602else
12603 cat >conftest.$ac_ext <<_ACEOF
12604/* confdefs.h. */
12605_ACEOF
12606cat confdefs.h >>conftest.$ac_ext
12607cat >>conftest.$ac_ext <<_ACEOF
12608/* end confdefs.h. */
12609/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12610 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12611#define $ac_func innocuous_$ac_func
12612
12613/* System header to define __stub macros and hopefully few prototypes,
12614 which can conflict with char $ac_func (); below.
12615 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12616 <limits.h> exists even on freestanding compilers. */
12617
12618#ifdef __STDC__
12619# include <limits.h>
12620#else
12621# include <assert.h>
12622#endif
12623
12624#undef $ac_func
12625
12626/* Override any GCC internal prototype to avoid an error.
12627 Use char because int might match the return type of a GCC
12628 builtin and then its argument prototype would still apply. */
12629#ifdef __cplusplus
12630extern "C"
12631#endif
12632char $ac_func ();
12633/* The GNU C library defines this for functions which it implements
12634 to always fail with ENOSYS. Some functions are actually named
12635 something starting with __ and the normal name is an alias. */
12636#if defined __stub_$ac_func || defined __stub___$ac_func
12637choke me
12638#endif
12639
12640int
12641main ()
12642{
12643return $ac_func ();
12644 ;
12645 return 0;
12646}
12647_ACEOF
12648rm -f conftest.$ac_objext conftest$ac_exeext
12649if { (ac_try="$ac_link"
12650case "(($ac_try" in
12651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12652 *) ac_try_echo=$ac_try;;
12653esac
12654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12655 (eval "$ac_link") 2>conftest.er1
12656 ac_status=$?
12657 grep -v '^ *+' conftest.er1 >conftest.err
12658 rm -f conftest.er1
12659 cat conftest.err >&5
12660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661 (exit $ac_status); } &&
12662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12663 { (case "(($ac_try" in
12664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12665 *) ac_try_echo=$ac_try;;
12666esac
12667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12668 (eval "$ac_try") 2>&5
12669 ac_status=$?
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); }; } &&
12672 { ac_try='test -s conftest$ac_exeext'
12673 { (case "(($ac_try" in
12674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12675 *) ac_try_echo=$ac_try;;
12676esac
12677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12678 (eval "$ac_try") 2>&5
12679 ac_status=$?
12680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681 (exit $ac_status); }; }; then
12682 eval "$as_ac_var=yes"
12683else
12684 echo "$as_me: failed program was:" >&5
12685sed 's/^/| /' conftest.$ac_ext >&5
12686
12687 eval "$as_ac_var=no"
12688fi
12689
12690rm -f core conftest.err conftest.$ac_objext \
12691 conftest$ac_exeext conftest.$ac_ext
12692fi
12693ac_res=`eval echo '${'$as_ac_var'}'`
12694 { echo "$as_me:$LINENO: result: $ac_res" >&5
12695echo "${ECHO_T}$ac_res" >&6; }
12696if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012697 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012698#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012699_ACEOF
12700 break
12701fi
12702done
12703
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012704
12705
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012706for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012707do
12708as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12709{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12710echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12711if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12712 echo $ECHO_N "(cached) $ECHO_C" >&6
12713else
12714 cat >conftest.$ac_ext <<_ACEOF
12715/* confdefs.h. */
12716_ACEOF
12717cat confdefs.h >>conftest.$ac_ext
12718cat >>conftest.$ac_ext <<_ACEOF
12719/* end confdefs.h. */
12720/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12722#define $ac_func innocuous_$ac_func
12723
12724/* System header to define __stub macros and hopefully few prototypes,
12725 which can conflict with char $ac_func (); below.
12726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12727 <limits.h> exists even on freestanding compilers. */
12728
12729#ifdef __STDC__
12730# include <limits.h>
12731#else
12732# include <assert.h>
12733#endif
12734
12735#undef $ac_func
12736
12737/* Override any GCC internal prototype to avoid an error.
12738 Use char because int might match the return type of a GCC
12739 builtin and then its argument prototype would still apply. */
12740#ifdef __cplusplus
12741extern "C"
12742#endif
12743char $ac_func ();
12744/* The GNU C library defines this for functions which it implements
12745 to always fail with ENOSYS. Some functions are actually named
12746 something starting with __ and the normal name is an alias. */
12747#if defined __stub_$ac_func || defined __stub___$ac_func
12748choke me
12749#endif
12750
12751int
12752main ()
12753{
12754return $ac_func ();
12755 ;
12756 return 0;
12757}
12758_ACEOF
12759rm -f conftest.$ac_objext conftest$ac_exeext
12760if { (ac_try="$ac_link"
12761case "(($ac_try" in
12762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12763 *) ac_try_echo=$ac_try;;
12764esac
12765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12766 (eval "$ac_link") 2>conftest.er1
12767 ac_status=$?
12768 grep -v '^ *+' conftest.er1 >conftest.err
12769 rm -f conftest.er1
12770 cat conftest.err >&5
12771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772 (exit $ac_status); } &&
12773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12774 { (case "(($ac_try" in
12775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12776 *) ac_try_echo=$ac_try;;
12777esac
12778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12779 (eval "$ac_try") 2>&5
12780 ac_status=$?
12781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782 (exit $ac_status); }; } &&
12783 { ac_try='test -s conftest$ac_exeext'
12784 { (case "(($ac_try" in
12785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12786 *) ac_try_echo=$ac_try;;
12787esac
12788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12789 (eval "$ac_try") 2>&5
12790 ac_status=$?
12791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 (exit $ac_status); }; }; then
12793 eval "$as_ac_var=yes"
12794else
12795 echo "$as_me: failed program was:" >&5
12796sed 's/^/| /' conftest.$ac_ext >&5
12797
12798 eval "$as_ac_var=no"
12799fi
12800
12801rm -f core conftest.err conftest.$ac_objext \
12802 conftest$ac_exeext conftest.$ac_ext
12803fi
12804ac_res=`eval echo '${'$as_ac_var'}'`
12805 { echo "$as_me:$LINENO: result: $ac_res" >&5
12806echo "${ECHO_T}$ac_res" >&6; }
12807if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012808 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012809#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012810_ACEOF
12811 break
12812fi
12813done
12814
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012815
12816
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012817for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012818do
12819as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12820{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12821echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12822if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12823 echo $ECHO_N "(cached) $ECHO_C" >&6
12824else
12825 cat >conftest.$ac_ext <<_ACEOF
12826/* confdefs.h. */
12827_ACEOF
12828cat confdefs.h >>conftest.$ac_ext
12829cat >>conftest.$ac_ext <<_ACEOF
12830/* end confdefs.h. */
12831/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12833#define $ac_func innocuous_$ac_func
12834
12835/* System header to define __stub macros and hopefully few prototypes,
12836 which can conflict with char $ac_func (); below.
12837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12838 <limits.h> exists even on freestanding compilers. */
12839
12840#ifdef __STDC__
12841# include <limits.h>
12842#else
12843# include <assert.h>
12844#endif
12845
12846#undef $ac_func
12847
12848/* Override any GCC internal prototype to avoid an error.
12849 Use char because int might match the return type of a GCC
12850 builtin and then its argument prototype would still apply. */
12851#ifdef __cplusplus
12852extern "C"
12853#endif
12854char $ac_func ();
12855/* The GNU C library defines this for functions which it implements
12856 to always fail with ENOSYS. Some functions are actually named
12857 something starting with __ and the normal name is an alias. */
12858#if defined __stub_$ac_func || defined __stub___$ac_func
12859choke me
12860#endif
12861
12862int
12863main ()
12864{
12865return $ac_func ();
12866 ;
12867 return 0;
12868}
12869_ACEOF
12870rm -f conftest.$ac_objext conftest$ac_exeext
12871if { (ac_try="$ac_link"
12872case "(($ac_try" in
12873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12874 *) ac_try_echo=$ac_try;;
12875esac
12876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12877 (eval "$ac_link") 2>conftest.er1
12878 ac_status=$?
12879 grep -v '^ *+' conftest.er1 >conftest.err
12880 rm -f conftest.er1
12881 cat conftest.err >&5
12882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 (exit $ac_status); } &&
12884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12885 { (case "(($ac_try" in
12886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12887 *) ac_try_echo=$ac_try;;
12888esac
12889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12890 (eval "$ac_try") 2>&5
12891 ac_status=$?
12892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893 (exit $ac_status); }; } &&
12894 { ac_try='test -s conftest$ac_exeext'
12895 { (case "(($ac_try" in
12896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12897 *) ac_try_echo=$ac_try;;
12898esac
12899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12900 (eval "$ac_try") 2>&5
12901 ac_status=$?
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); }; }; then
12904 eval "$as_ac_var=yes"
12905else
12906 echo "$as_me: failed program was:" >&5
12907sed 's/^/| /' conftest.$ac_ext >&5
12908
12909 eval "$as_ac_var=no"
12910fi
12911
12912rm -f core conftest.err conftest.$ac_objext \
12913 conftest$ac_exeext conftest.$ac_ext
12914fi
12915ac_res=`eval echo '${'$as_ac_var'}'`
12916 { echo "$as_me:$LINENO: result: $ac_res" >&5
12917echo "${ECHO_T}$ac_res" >&6; }
12918if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012919 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012920#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012921_ACEOF
12922
12923fi
12924done
12925
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012926
12927
12928
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012929for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012930do
12931as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12932{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12933echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12934if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12935 echo $ECHO_N "(cached) $ECHO_C" >&6
12936else
12937 cat >conftest.$ac_ext <<_ACEOF
12938/* confdefs.h. */
12939_ACEOF
12940cat confdefs.h >>conftest.$ac_ext
12941cat >>conftest.$ac_ext <<_ACEOF
12942/* end confdefs.h. */
12943/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12945#define $ac_func innocuous_$ac_func
12946
12947/* System header to define __stub macros and hopefully few prototypes,
12948 which can conflict with char $ac_func (); below.
12949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12950 <limits.h> exists even on freestanding compilers. */
12951
12952#ifdef __STDC__
12953# include <limits.h>
12954#else
12955# include <assert.h>
12956#endif
12957
12958#undef $ac_func
12959
12960/* Override any GCC internal prototype to avoid an error.
12961 Use char because int might match the return type of a GCC
12962 builtin and then its argument prototype would still apply. */
12963#ifdef __cplusplus
12964extern "C"
12965#endif
12966char $ac_func ();
12967/* The GNU C library defines this for functions which it implements
12968 to always fail with ENOSYS. Some functions are actually named
12969 something starting with __ and the normal name is an alias. */
12970#if defined __stub_$ac_func || defined __stub___$ac_func
12971choke me
12972#endif
12973
12974int
12975main ()
12976{
12977return $ac_func ();
12978 ;
12979 return 0;
12980}
12981_ACEOF
12982rm -f conftest.$ac_objext conftest$ac_exeext
12983if { (ac_try="$ac_link"
12984case "(($ac_try" in
12985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12986 *) ac_try_echo=$ac_try;;
12987esac
12988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12989 (eval "$ac_link") 2>conftest.er1
12990 ac_status=$?
12991 grep -v '^ *+' conftest.er1 >conftest.err
12992 rm -f conftest.er1
12993 cat conftest.err >&5
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); } &&
12996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12997 { (case "(($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_try") 2>&5
13003 ac_status=$?
13004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005 (exit $ac_status); }; } &&
13006 { ac_try='test -s conftest$ac_exeext'
13007 { (case "(($ac_try" in
13008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13009 *) ac_try_echo=$ac_try;;
13010esac
13011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13012 (eval "$ac_try") 2>&5
13013 ac_status=$?
13014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13015 (exit $ac_status); }; }; then
13016 eval "$as_ac_var=yes"
13017else
13018 echo "$as_me: failed program was:" >&5
13019sed 's/^/| /' conftest.$ac_ext >&5
13020
13021 eval "$as_ac_var=no"
13022fi
13023
13024rm -f core conftest.err conftest.$ac_objext \
13025 conftest$ac_exeext conftest.$ac_ext
13026fi
13027ac_res=`eval echo '${'$as_ac_var'}'`
13028 { echo "$as_me:$LINENO: result: $ac_res" >&5
13029echo "${ECHO_T}$ac_res" >&6; }
13030if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013031 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013032#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013033_ACEOF
13034
13035fi
13036done
13037
13038
Douglas Gregor01746742009-05-11 18:05:52 +000013039
Reid Spencer7931a782004-12-27 06:15:02 +000013040if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000013041 LLVMGCC="llvm-gcc${EXEEXT}"
13042 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013043 LLVMGCCCOMMAND="$LLVMGCC"
13044 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013045 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13046
13047 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13048
Reid Spencerc84492c2005-06-02 22:34:49 +000013049 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13050set dummy $LLVMGCC; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013051{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13052echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13053if test "${ac_cv_path_LLVMGCC+set}" = set; then
13054 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013055else
13056 case $LLVMGCC in
13057 [\\/]* | ?:[\\/]*)
13058 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13059 ;;
13060 *)
13061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13062for as_dir in $PATH
13063do
13064 IFS=$as_save_IFS
13065 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013066 for ac_exec_ext in '' $ac_executable_extensions; do
13067 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 +000013068 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000013070 break 2
13071 fi
13072done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013073done
Reid Spencera773bd52006-08-04 18:18:08 +000013074IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000013075
Reid Spencer59473af2004-12-25 07:31:29 +000013076 ;;
13077esac
13078fi
13079LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000013080if test -n "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013081 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13082echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013083else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013084 { echo "$as_me:$LINENO: result: no" >&5
13085echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013086fi
13087
Reid Spencera773bd52006-08-04 18:18:08 +000013088
Reid Spencerc84492c2005-06-02 22:34:49 +000013089 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13090set dummy $LLVMGXX; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013091{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13093if test "${ac_cv_path_LLVMGXX+set}" = set; then
13094 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013095else
13096 case $LLVMGXX in
13097 [\\/]* | ?:[\\/]*)
13098 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13099 ;;
13100 *)
13101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13102for as_dir in $PATH
13103do
13104 IFS=$as_save_IFS
13105 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013106 for ac_exec_ext in '' $ac_executable_extensions; do
13107 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 +000013108 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000013110 break 2
13111 fi
13112done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013113done
Reid Spencera773bd52006-08-04 18:18:08 +000013114IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000013115
Reid Spencer59473af2004-12-25 07:31:29 +000013116 ;;
13117esac
13118fi
13119LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000013120if test -n "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013121 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13122echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013123else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013124 { echo "$as_me:$LINENO: result: no" >&5
13125echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013126fi
13127
Reid Spencera773bd52006-08-04 18:18:08 +000013128
Reid Spencer59473af2004-12-25 07:31:29 +000013129else
Devang Patel5d28b882007-12-04 22:54:47 +000013130 if test -z "$LLVMGCC"; then
13131 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013132 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000013133 fi
13134 if test -z "$LLVMGXX"; then
13135 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013136 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000013137 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013138
Reid Spencer59473af2004-12-25 07:31:29 +000013139 LLVMGCC=$LLVMGCC
13140
13141 LLVMGXX=$LLVMGXX
13142
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013143 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13144
13145 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13146
Reid Spencer59473af2004-12-25 07:31:29 +000013147fi
13148
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013149
Daniel Dunbar98515672010-02-23 10:00:49 +000013150# Check whether --with-llvmcc was given.
13151if test "${with_llvmcc+set}" = set; then
13152 withval=$with_llvmcc;
13153else
13154 with_llvmcc=check
13155fi
13156
13157{ echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13158echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13159if test "$with_llvmcc" != "check"; then
13160 if (test "$with_llvmcc" != "llvm-gcc" &&
13161 test "$with_llvmcc" != "clang" &&
13162 test "$with_llvmcc" != "none"); then
13163 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13164echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13165 { (exit 1); exit 1; }; }
13166 fi
13167 WITH_LLVMCC="$with_llvmcc"
13168elif test -n "$LLVMGCC"; then
13169 WITH_LLVMCC=llvm-gcc
13170elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13171 WITH_LLVMCC=clang
13172else
13173 WITH_LLVMCC=none
13174fi
13175{ echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13176echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13177LLVMCC_OPTION=$WITH_LLVMCC
13178
13179
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013180{ echo "$as_me:$LINENO: checking tool compatibility" >&5
13181echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013182
Reid Spencer86901802004-12-08 23:07:27 +000013183ICC=no
13184IXX=no
13185case $CC in
13186 icc*|icpc*)
13187 ICC=yes
13188 IXX=yes
13189 ;;
13190 *)
13191 ;;
13192esac
13193
Duraid Madina937c60a2006-02-15 07:57:42 +000013194if test "$GCC" != "yes" && test "$ICC" != "yes"
13195then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013196 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13197echo "$as_me: error: gcc|icc required but not found" >&2;}
13198 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000013199fi
13200
13201if test "$GXX" != "yes" && test "$IXX" != "yes"
13202then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013203 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
13204echo "$as_me: error: g++|icc required but not found" >&2;}
13205 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000013206fi
13207
Reid Spencer86901802004-12-08 23:07:27 +000013208if test "$GCC" = "yes"
13209then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013210 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000013211#if !defined(__GNUC__) || __GNUC__ < 3
13212#error Unsupported GCC version
13213#endif
13214
13215_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013216rm -f conftest.$ac_objext
13217if { (ac_try="$ac_compile"
13218case "(($ac_try" in
13219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13220 *) ac_try_echo=$ac_try;;
13221esac
13222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13223 (eval "$ac_compile") 2>conftest.er1
13224 ac_status=$?
13225 grep -v '^ *+' conftest.er1 >conftest.err
13226 rm -f conftest.er1
13227 cat conftest.err >&5
13228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229 (exit $ac_status); } &&
13230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13231 { (case "(($ac_try" in
13232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13233 *) ac_try_echo=$ac_try;;
13234esac
13235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13236 (eval "$ac_try") 2>&5
13237 ac_status=$?
13238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239 (exit $ac_status); }; } &&
13240 { ac_try='test -s conftest.$ac_objext'
13241 { (case "(($ac_try" in
13242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13243 *) ac_try_echo=$ac_try;;
13244esac
13245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13246 (eval "$ac_try") 2>&5
13247 ac_status=$?
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); }; }; then
13250 :
Chris Lattner399c7c72008-02-05 19:43:53 +000013251else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013252 echo "$as_me: failed program was:" >&5
13253sed 's/^/| /' conftest.$ac_ext >&5
13254
13255 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13256echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13257 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000013258fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013259
Chris Lattner399c7c72008-02-05 19:43:53 +000013260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013261fi
13262
13263if test -z "$llvm_cv_gnu_make_command"
13264then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013265 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13266echo "$as_me: error: GNU Make required but not found" >&2;}
13267 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013268fi
13269
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013270{ echo "$as_me:$LINENO: result: ok" >&5
13271echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013272
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013273{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
13274echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013275NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13276
13277NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13278
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013279{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13280echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013281
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000013282
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013283
13284{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
13285echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13286if test "${ac_cv_lib_m_sin+set}" = set; then
13287 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000013288else
13289 ac_check_lib_save_LIBS=$LIBS
13290LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013291cat >conftest.$ac_ext <<_ACEOF
13292/* confdefs.h. */
13293_ACEOF
13294cat confdefs.h >>conftest.$ac_ext
13295cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000013296/* end confdefs.h. */
13297
Reid Spencera773bd52006-08-04 18:18:08 +000013298/* Override any GCC internal prototype to avoid an error.
13299 Use char because int might match the return type of a GCC
13300 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000013301#ifdef __cplusplus
13302extern "C"
13303#endif
Reid Spencer3484a992006-01-19 08:31:08 +000013304char sin ();
13305int
13306main ()
13307{
Reid Spencera773bd52006-08-04 18:18:08 +000013308return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000013309 ;
13310 return 0;
13311}
13312_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013313rm -f conftest.$ac_objext conftest$ac_exeext
13314if { (ac_try="$ac_link"
13315case "(($ac_try" in
13316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13317 *) ac_try_echo=$ac_try;;
13318esac
13319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13320 (eval "$ac_link") 2>conftest.er1
13321 ac_status=$?
13322 grep -v '^ *+' conftest.er1 >conftest.err
13323 rm -f conftest.er1
13324 cat conftest.err >&5
13325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326 (exit $ac_status); } &&
13327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13328 { (case "(($ac_try" in
13329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13330 *) ac_try_echo=$ac_try;;
13331esac
13332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13333 (eval "$ac_try") 2>&5
13334 ac_status=$?
13335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336 (exit $ac_status); }; } &&
13337 { ac_try='test -s conftest$ac_exeext'
13338 { (case "(($ac_try" in
13339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13340 *) ac_try_echo=$ac_try;;
13341esac
13342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13343 (eval "$ac_try") 2>&5
13344 ac_status=$?
13345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000013347 ac_cv_lib_m_sin=yes
13348else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013349 echo "$as_me: failed program was:" >&5
13350sed 's/^/| /' conftest.$ac_ext >&5
13351
13352 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000013353fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013354
Bill Wendlingebcceee2009-04-18 11:20:33 +000013355rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013356 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000013357LIBS=$ac_check_lib_save_LIBS
13358fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013359{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13360echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13361if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000013362 cat >>confdefs.h <<_ACEOF
13363#define HAVE_LIBM 1
13364_ACEOF
13365
13366 LIBS="-lm $LIBS"
13367
13368fi
13369
Jeff Cohen28783c32007-01-12 18:22:38 +000013370if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013371
13372{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13373echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13374if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13375 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013376else
13377 ac_check_lib_save_LIBS=$LIBS
13378LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013379cat >conftest.$ac_ext <<_ACEOF
13380/* confdefs.h. */
13381_ACEOF
13382cat confdefs.h >>conftest.$ac_ext
13383cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013384/* end confdefs.h. */
13385
Reid Spencer48fdf912006-06-01 19:03:21 +000013386
Reid Spencer484fc8e2006-06-01 16:55:59 +000013387int
13388main ()
13389{
Reid Spencera773bd52006-08-04 18:18:08 +000013390return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013391 ;
13392 return 0;
13393}
13394_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013395rm -f conftest.$ac_objext conftest$ac_exeext
13396if { (ac_try="$ac_link"
13397case "(($ac_try" in
13398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13399 *) ac_try_echo=$ac_try;;
13400esac
13401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13402 (eval "$ac_link") 2>conftest.er1
13403 ac_status=$?
13404 grep -v '^ *+' conftest.er1 >conftest.err
13405 rm -f conftest.er1
13406 cat conftest.err >&5
13407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408 (exit $ac_status); } &&
13409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13410 { (case "(($ac_try" in
13411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13412 *) ac_try_echo=$ac_try;;
13413esac
13414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13415 (eval "$ac_try") 2>&5
13416 ac_status=$?
13417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418 (exit $ac_status); }; } &&
13419 { ac_try='test -s conftest$ac_exeext'
13420 { (case "(($ac_try" in
13421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13422 *) ac_try_echo=$ac_try;;
13423esac
13424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13425 (eval "$ac_try") 2>&5
13426 ac_status=$?
13427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013429 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013430else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013431 echo "$as_me: failed program was:" >&5
13432sed 's/^/| /' conftest.$ac_ext >&5
13433
13434 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013435fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013436
Bill Wendlingebcceee2009-04-18 11:20:33 +000013437rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013438 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013439LIBS=$ac_check_lib_save_LIBS
13440fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013441{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13442echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13443if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013444 cat >>confdefs.h <<_ACEOF
13445#define HAVE_LIBIMAGEHLP 1
13446_ACEOF
13447
13448 LIBS="-limagehlp $LIBS"
13449
13450fi
13451
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013452
13453{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13454echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13455if test "${ac_cv_lib_psapi_main+set}" = set; then
13456 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013457else
13458 ac_check_lib_save_LIBS=$LIBS
13459LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013460cat >conftest.$ac_ext <<_ACEOF
13461/* confdefs.h. */
13462_ACEOF
13463cat confdefs.h >>conftest.$ac_ext
13464cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013465/* end confdefs.h. */
13466
Reid Spencer48fdf912006-06-01 19:03:21 +000013467
Reid Spencer484fc8e2006-06-01 16:55:59 +000013468int
13469main ()
13470{
Reid Spencera773bd52006-08-04 18:18:08 +000013471return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013472 ;
13473 return 0;
13474}
13475_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013476rm -f conftest.$ac_objext conftest$ac_exeext
13477if { (ac_try="$ac_link"
13478case "(($ac_try" in
13479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13480 *) ac_try_echo=$ac_try;;
13481esac
13482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13483 (eval "$ac_link") 2>conftest.er1
13484 ac_status=$?
13485 grep -v '^ *+' conftest.er1 >conftest.err
13486 rm -f conftest.er1
13487 cat conftest.err >&5
13488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489 (exit $ac_status); } &&
13490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13491 { (case "(($ac_try" in
13492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13493 *) ac_try_echo=$ac_try;;
13494esac
13495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13496 (eval "$ac_try") 2>&5
13497 ac_status=$?
13498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499 (exit $ac_status); }; } &&
13500 { ac_try='test -s conftest$ac_exeext'
13501 { (case "(($ac_try" in
13502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13503 *) ac_try_echo=$ac_try;;
13504esac
13505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13506 (eval "$ac_try") 2>&5
13507 ac_status=$?
13508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013510 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013511else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013512 echo "$as_me: failed program was:" >&5
13513sed 's/^/| /' conftest.$ac_ext >&5
13514
13515 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013516fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013517
Bill Wendlingebcceee2009-04-18 11:20:33 +000013518rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013519 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013520LIBS=$ac_check_lib_save_LIBS
13521fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013522{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13523echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13524if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013525 cat >>confdefs.h <<_ACEOF
13526#define HAVE_LIBPSAPI 1
13527_ACEOF
13528
13529 LIBS="-lpsapi $LIBS"
13530
13531fi
13532
13533fi
Reid Spencer22177fe2005-07-12 15:24:20 +000013534
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013535{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13536echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13537if test "${ac_cv_search_dlopen+set}" = set; then
13538 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013539else
13540 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013541cat >conftest.$ac_ext <<_ACEOF
13542/* confdefs.h. */
13543_ACEOF
13544cat confdefs.h >>conftest.$ac_ext
13545cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013546/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013547
Reid Spencera773bd52006-08-04 18:18:08 +000013548/* Override any GCC internal prototype to avoid an error.
13549 Use char because int might match the return type of a GCC
13550 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013551#ifdef __cplusplus
13552extern "C"
13553#endif
John Criswell7a73b802003-06-30 21:59:07 +000013554char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013555int
13556main ()
13557{
Reid Spencera773bd52006-08-04 18:18:08 +000013558return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013559 ;
13560 return 0;
13561}
13562_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013563for ac_lib in '' dl; do
13564 if test -z "$ac_lib"; then
13565 ac_res="none required"
13566 else
13567 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013568 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013569 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013570 rm -f conftest.$ac_objext conftest$ac_exeext
13571if { (ac_try="$ac_link"
13572case "(($ac_try" in
13573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13574 *) ac_try_echo=$ac_try;;
13575esac
13576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13577 (eval "$ac_link") 2>conftest.er1
13578 ac_status=$?
13579 grep -v '^ *+' conftest.er1 >conftest.err
13580 rm -f conftest.er1
13581 cat conftest.err >&5
13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); } &&
13584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13585 { (case "(($ac_try" in
13586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13587 *) ac_try_echo=$ac_try;;
13588esac
13589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13590 (eval "$ac_try") 2>&5
13591 ac_status=$?
13592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13593 (exit $ac_status); }; } &&
13594 { ac_try='test -s conftest$ac_exeext'
13595 { (case "(($ac_try" in
13596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13597 *) ac_try_echo=$ac_try;;
13598esac
13599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13600 (eval "$ac_try") 2>&5
13601 ac_status=$?
13602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13603 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013604 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013605else
13606 echo "$as_me: failed program was:" >&5
13607sed 's/^/| /' conftest.$ac_ext >&5
13608
13609
John Criswell7a73b802003-06-30 21:59:07 +000013610fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013611
Bill Wendlingebcceee2009-04-18 11:20:33 +000013612rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013613 conftest$ac_exeext
13614 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013615 break
John Criswell7a73b802003-06-30 21:59:07 +000013616fi
Reid Spencera773bd52006-08-04 18:18:08 +000013617done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013618if test "${ac_cv_search_dlopen+set}" = set; then
13619 :
Reid Spencera773bd52006-08-04 18:18:08 +000013620else
13621 ac_cv_search_dlopen=no
13622fi
13623rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013624LIBS=$ac_func_search_save_LIBS
13625fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013626{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13627echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013628ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013629if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013630 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013631
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013632cat >>confdefs.h <<\_ACEOF
13633#define HAVE_DLOPEN 1
13634_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013635
13636else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013637 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13638echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000013639fi
13640
13641
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013642if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013643 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13644echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13645if test "${ac_cv_search_ffi_call+set}" = set; then
13646 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013647else
Nick Lewycky267fddb2009-04-13 04:26:27 +000013648 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013649cat >conftest.$ac_ext <<_ACEOF
13650/* confdefs.h. */
13651_ACEOF
13652cat confdefs.h >>conftest.$ac_ext
13653cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013654/* end confdefs.h. */
13655
13656/* Override any GCC internal prototype to avoid an error.
13657 Use char because int might match the return type of a GCC
13658 builtin and then its argument prototype would still apply. */
13659#ifdef __cplusplus
13660extern "C"
13661#endif
13662char ffi_call ();
13663int
13664main ()
13665{
13666return ffi_call ();
13667 ;
13668 return 0;
13669}
13670_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013671for ac_lib in '' ffi; do
13672 if test -z "$ac_lib"; then
13673 ac_res="none required"
13674 else
13675 ac_res=-l$ac_lib
13676 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13677 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013678 rm -f conftest.$ac_objext conftest$ac_exeext
13679if { (ac_try="$ac_link"
13680case "(($ac_try" in
13681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13682 *) ac_try_echo=$ac_try;;
13683esac
13684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13685 (eval "$ac_link") 2>conftest.er1
13686 ac_status=$?
13687 grep -v '^ *+' conftest.er1 >conftest.err
13688 rm -f conftest.er1
13689 cat conftest.err >&5
13690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13691 (exit $ac_status); } &&
13692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13693 { (case "(($ac_try" in
13694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13695 *) ac_try_echo=$ac_try;;
13696esac
13697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13698 (eval "$ac_try") 2>&5
13699 ac_status=$?
13700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13701 (exit $ac_status); }; } &&
13702 { ac_try='test -s conftest$ac_exeext'
13703 { (case "(($ac_try" in
13704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13705 *) ac_try_echo=$ac_try;;
13706esac
13707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13708 (eval "$ac_try") 2>&5
13709 ac_status=$?
13710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013712 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013713else
13714 echo "$as_me: failed program was:" >&5
13715sed 's/^/| /' conftest.$ac_ext >&5
13716
13717
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013718fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013719
Bill Wendlingebcceee2009-04-18 11:20:33 +000013720rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013721 conftest$ac_exeext
13722 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013723 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013724fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000013725done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013726if test "${ac_cv_search_ffi_call+set}" = set; then
13727 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000013728else
13729 ac_cv_search_ffi_call=no
13730fi
13731rm conftest.$ac_ext
13732LIBS=$ac_func_search_save_LIBS
13733fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013734{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13735echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000013736ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013737if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013738 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13739
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013740cat >>confdefs.h <<\_ACEOF
13741#define HAVE_FFI_CALL 1
13742_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013743
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013744else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000013745 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13746echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13747 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013748fi
13749
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013750fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013751
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013752{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13753echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13754if test "${ac_cv_search_mallinfo+set}" = set; then
13755 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013756else
13757 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013758cat >conftest.$ac_ext <<_ACEOF
13759/* confdefs.h. */
13760_ACEOF
13761cat confdefs.h >>conftest.$ac_ext
13762cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013763/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013764
Reid Spencera773bd52006-08-04 18:18:08 +000013765/* Override any GCC internal prototype to avoid an error.
13766 Use char because int might match the return type of a GCC
13767 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013768#ifdef __cplusplus
13769extern "C"
13770#endif
John Criswell7a73b802003-06-30 21:59:07 +000013771char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013772int
13773main ()
13774{
Reid Spencera773bd52006-08-04 18:18:08 +000013775return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013776 ;
13777 return 0;
13778}
13779_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013780for ac_lib in '' malloc; do
13781 if test -z "$ac_lib"; then
13782 ac_res="none required"
13783 else
13784 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013785 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013786 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013787 rm -f conftest.$ac_objext conftest$ac_exeext
13788if { (ac_try="$ac_link"
13789case "(($ac_try" in
13790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13791 *) ac_try_echo=$ac_try;;
13792esac
13793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13794 (eval "$ac_link") 2>conftest.er1
13795 ac_status=$?
13796 grep -v '^ *+' conftest.er1 >conftest.err
13797 rm -f conftest.er1
13798 cat conftest.err >&5
13799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800 (exit $ac_status); } &&
13801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13802 { (case "(($ac_try" in
13803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13804 *) ac_try_echo=$ac_try;;
13805esac
13806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13807 (eval "$ac_try") 2>&5
13808 ac_status=$?
13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810 (exit $ac_status); }; } &&
13811 { ac_try='test -s conftest$ac_exeext'
13812 { (case "(($ac_try" in
13813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13814 *) ac_try_echo=$ac_try;;
13815esac
13816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13817 (eval "$ac_try") 2>&5
13818 ac_status=$?
13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013821 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013822else
13823 echo "$as_me: failed program was:" >&5
13824sed 's/^/| /' conftest.$ac_ext >&5
13825
13826
John Criswell7a73b802003-06-30 21:59:07 +000013827fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013828
Bill Wendlingebcceee2009-04-18 11:20:33 +000013829rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013830 conftest$ac_exeext
13831 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013832 break
John Criswell7a73b802003-06-30 21:59:07 +000013833fi
Reid Spencera773bd52006-08-04 18:18:08 +000013834done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013835if test "${ac_cv_search_mallinfo+set}" = set; then
13836 :
Reid Spencera773bd52006-08-04 18:18:08 +000013837else
13838 ac_cv_search_mallinfo=no
13839fi
13840rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013841LIBS=$ac_func_search_save_LIBS
13842fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013843{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13844echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013845ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013846if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013847 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013848
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013849cat >>confdefs.h <<\_ACEOF
13850#define HAVE_MALLINFO 1
13851_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013852
13853fi
13854
13855
Reid Spencer0a262ba2005-08-24 10:07:20 +000013856if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013857
13858{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13859echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13860if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13861 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000013862else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013863 ac_check_lib_save_LIBS=$LIBS
13864LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013865cat >conftest.$ac_ext <<_ACEOF
13866/* confdefs.h. */
13867_ACEOF
13868cat confdefs.h >>conftest.$ac_ext
13869cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000013870/* end confdefs.h. */
13871
Reid Spencera773bd52006-08-04 18:18:08 +000013872/* Override any GCC internal prototype to avoid an error.
13873 Use char because int might match the return type of a GCC
13874 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000013875#ifdef __cplusplus
13876extern "C"
13877#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000013878char pthread_mutex_init ();
13879int
13880main ()
13881{
Reid Spencera773bd52006-08-04 18:18:08 +000013882return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000013883 ;
13884 return 0;
13885}
13886_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013887rm -f conftest.$ac_objext conftest$ac_exeext
13888if { (ac_try="$ac_link"
13889case "(($ac_try" in
13890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13891 *) ac_try_echo=$ac_try;;
13892esac
13893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13894 (eval "$ac_link") 2>conftest.er1
13895 ac_status=$?
13896 grep -v '^ *+' conftest.er1 >conftest.err
13897 rm -f conftest.er1
13898 cat conftest.err >&5
13899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900 (exit $ac_status); } &&
13901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13902 { (case "(($ac_try" in
13903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13904 *) ac_try_echo=$ac_try;;
13905esac
13906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13907 (eval "$ac_try") 2>&5
13908 ac_status=$?
13909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910 (exit $ac_status); }; } &&
13911 { ac_try='test -s conftest$ac_exeext'
13912 { (case "(($ac_try" in
13913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13914 *) ac_try_echo=$ac_try;;
13915esac
13916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13917 (eval "$ac_try") 2>&5
13918 ac_status=$?
13919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13920 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013921 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000013922else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013923 echo "$as_me: failed program was:" >&5
13924sed 's/^/| /' conftest.$ac_ext >&5
13925
13926 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000013927fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013928
Bill Wendlingebcceee2009-04-18 11:20:33 +000013929rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013930 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013931LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000013932fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013933{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13934echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13935if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013936 cat >>confdefs.h <<_ACEOF
13937#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000013938_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000013939
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013940 LIBS="-lpthread $LIBS"
13941
Reid Spencer22177fe2005-07-12 15:24:20 +000013942fi
13943
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013944 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13945echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13946if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13947 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000013948else
13949 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013950cat >conftest.$ac_ext <<_ACEOF
13951/* confdefs.h. */
13952_ACEOF
13953cat confdefs.h >>conftest.$ac_ext
13954cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000013955/* end confdefs.h. */
13956
Reid Spencera773bd52006-08-04 18:18:08 +000013957/* Override any GCC internal prototype to avoid an error.
13958 Use char because int might match the return type of a GCC
13959 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000013960#ifdef __cplusplus
13961extern "C"
13962#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000013963char pthread_mutex_lock ();
13964int
13965main ()
13966{
Reid Spencera773bd52006-08-04 18:18:08 +000013967return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000013968 ;
13969 return 0;
13970}
13971_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013972for ac_lib in '' pthread; do
13973 if test -z "$ac_lib"; then
13974 ac_res="none required"
13975 else
13976 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000013977 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013978 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013979 rm -f conftest.$ac_objext conftest$ac_exeext
13980if { (ac_try="$ac_link"
13981case "(($ac_try" in
13982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13983 *) ac_try_echo=$ac_try;;
13984esac
13985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13986 (eval "$ac_link") 2>conftest.er1
13987 ac_status=$?
13988 grep -v '^ *+' conftest.er1 >conftest.err
13989 rm -f conftest.er1
13990 cat conftest.err >&5
13991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992 (exit $ac_status); } &&
13993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13994 { (case "(($ac_try" in
13995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13996 *) ac_try_echo=$ac_try;;
13997esac
13998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13999 (eval "$ac_try") 2>&5
14000 ac_status=$?
14001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); }; } &&
14003 { ac_try='test -s conftest$ac_exeext'
14004 { (case "(($ac_try" in
14005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14006 *) ac_try_echo=$ac_try;;
14007esac
14008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14009 (eval "$ac_try") 2>&5
14010 ac_status=$?
14011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014013 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014014else
14015 echo "$as_me: failed program was:" >&5
14016sed 's/^/| /' conftest.$ac_ext >&5
14017
14018
Brian Gaeke5f268f72003-12-05 19:29:01 +000014019fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014020
Bill Wendlingebcceee2009-04-18 11:20:33 +000014021rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014022 conftest$ac_exeext
14023 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014024 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000014025fi
Reid Spencera773bd52006-08-04 18:18:08 +000014026done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014027if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14028 :
Reid Spencera773bd52006-08-04 18:18:08 +000014029else
14030 ac_cv_search_pthread_mutex_lock=no
14031fi
14032rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000014033LIBS=$ac_func_search_save_LIBS
14034fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014035{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14036echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014037ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014038if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014039 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000014040
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014041cat >>confdefs.h <<\_ACEOF
14042#define HAVE_PTHREAD_MUTEX_LOCK 1
14043_ACEOF
John Criswell40468462004-09-24 21:19:06 +000014044
14045fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000014046
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014047 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14048echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14049if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14050 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000014051else
14052 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014053cat >conftest.$ac_ext <<_ACEOF
14054/* confdefs.h. */
14055_ACEOF
14056cat confdefs.h >>conftest.$ac_ext
14057cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000014058/* end confdefs.h. */
14059
14060/* Override any GCC internal prototype to avoid an error.
14061 Use char because int might match the return type of a GCC
14062 builtin and then its argument prototype would still apply. */
14063#ifdef __cplusplus
14064extern "C"
14065#endif
14066char pthread_rwlock_init ();
14067int
14068main ()
14069{
14070return pthread_rwlock_init ();
14071 ;
14072 return 0;
14073}
14074_ACEOF
14075for ac_lib in '' pthread; do
14076 if test -z "$ac_lib"; then
14077 ac_res="none required"
14078 else
14079 ac_res=-l$ac_lib
14080 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14081 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014082 rm -f conftest.$ac_objext conftest$ac_exeext
14083if { (ac_try="$ac_link"
14084case "(($ac_try" in
14085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14086 *) ac_try_echo=$ac_try;;
14087esac
14088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14089 (eval "$ac_link") 2>conftest.er1
14090 ac_status=$?
14091 grep -v '^ *+' conftest.er1 >conftest.err
14092 rm -f conftest.er1
14093 cat conftest.err >&5
14094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095 (exit $ac_status); } &&
14096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14097 { (case "(($ac_try" in
14098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14099 *) ac_try_echo=$ac_try;;
14100esac
14101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14102 (eval "$ac_try") 2>&5
14103 ac_status=$?
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); }; } &&
14106 { ac_try='test -s conftest$ac_exeext'
14107 { (case "(($ac_try" in
14108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14109 *) ac_try_echo=$ac_try;;
14110esac
14111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14112 (eval "$ac_try") 2>&5
14113 ac_status=$?
14114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014116 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014117else
14118 echo "$as_me: failed program was:" >&5
14119sed 's/^/| /' conftest.$ac_ext >&5
14120
14121
Owen Andersonde8aed22009-06-16 18:20:20 +000014122fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014123
Owen Andersonde8aed22009-06-16 18:20:20 +000014124rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014125 conftest$ac_exeext
14126 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014127 break
14128fi
14129done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014130if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14131 :
Owen Andersonde8aed22009-06-16 18:20:20 +000014132else
14133 ac_cv_search_pthread_rwlock_init=no
14134fi
14135rm conftest.$ac_ext
14136LIBS=$ac_func_search_save_LIBS
14137fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014138{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14139echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000014140ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014141if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014142 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14143
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014144cat >>confdefs.h <<\_ACEOF
14145#define HAVE_PTHREAD_RWLOCK_INIT 1
14146_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000014147
14148fi
14149
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014150 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14151echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14152if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14153 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000014154else
14155 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014156cat >conftest.$ac_ext <<_ACEOF
14157/* confdefs.h. */
14158_ACEOF
14159cat confdefs.h >>conftest.$ac_ext
14160cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014161/* end confdefs.h. */
14162
14163/* Override any GCC internal prototype to avoid an error.
14164 Use char because int might match the return type of a GCC
14165 builtin and then its argument prototype would still apply. */
14166#ifdef __cplusplus
14167extern "C"
14168#endif
14169char pthread_getspecific ();
14170int
14171main ()
14172{
14173return pthread_getspecific ();
14174 ;
14175 return 0;
14176}
14177_ACEOF
14178for ac_lib in '' pthread; do
14179 if test -z "$ac_lib"; then
14180 ac_res="none required"
14181 else
14182 ac_res=-l$ac_lib
14183 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14184 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014185 rm -f conftest.$ac_objext conftest$ac_exeext
14186if { (ac_try="$ac_link"
14187case "(($ac_try" in
14188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14189 *) ac_try_echo=$ac_try;;
14190esac
14191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14192 (eval "$ac_link") 2>conftest.er1
14193 ac_status=$?
14194 grep -v '^ *+' conftest.er1 >conftest.err
14195 rm -f conftest.er1
14196 cat conftest.err >&5
14197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198 (exit $ac_status); } &&
14199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14200 { (case "(($ac_try" in
14201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14202 *) ac_try_echo=$ac_try;;
14203esac
14204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14205 (eval "$ac_try") 2>&5
14206 ac_status=$?
14207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208 (exit $ac_status); }; } &&
14209 { ac_try='test -s conftest$ac_exeext'
14210 { (case "(($ac_try" in
14211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14212 *) ac_try_echo=$ac_try;;
14213esac
14214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14215 (eval "$ac_try") 2>&5
14216 ac_status=$?
14217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014219 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014220else
14221 echo "$as_me: failed program was:" >&5
14222sed 's/^/| /' conftest.$ac_ext >&5
14223
14224
Owen Anderson27fcfe12009-06-25 23:10:26 +000014225fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014226
Owen Anderson27fcfe12009-06-25 23:10:26 +000014227rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014228 conftest$ac_exeext
14229 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014230 break
14231fi
14232done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014233if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14234 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000014235else
14236 ac_cv_search_pthread_getspecific=no
14237fi
14238rm conftest.$ac_ext
14239LIBS=$ac_func_search_save_LIBS
14240fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014241{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14242echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000014243ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014244if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014245 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14246
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014247cat >>confdefs.h <<\_ACEOF
14248#define HAVE_PTHREAD_GETSPECIFIC 1
14249_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014250
14251fi
14252
Reid Spencer0a262ba2005-08-24 10:07:20 +000014253fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000014254
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014255
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014256# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014257if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014258 withval=$with_udis86;
14259 USE_UDIS86=1
14260
14261 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000014262 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014263 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14264 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014265
14266{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14267echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14268if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14269 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014270else
14271 ac_check_lib_save_LIBS=$LIBS
14272LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014273cat >conftest.$ac_ext <<_ACEOF
14274/* confdefs.h. */
14275_ACEOF
14276cat confdefs.h >>conftest.$ac_ext
14277cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014278/* end confdefs.h. */
14279
14280/* Override any GCC internal prototype to avoid an error.
14281 Use char because int might match the return type of a GCC
14282 builtin and then its argument prototype would still apply. */
14283#ifdef __cplusplus
14284extern "C"
14285#endif
14286char ud_init ();
14287int
14288main ()
14289{
14290return ud_init ();
14291 ;
14292 return 0;
14293}
14294_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014295rm -f conftest.$ac_objext conftest$ac_exeext
14296if { (ac_try="$ac_link"
14297case "(($ac_try" in
14298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14299 *) ac_try_echo=$ac_try;;
14300esac
14301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14302 (eval "$ac_link") 2>conftest.er1
14303 ac_status=$?
14304 grep -v '^ *+' conftest.er1 >conftest.err
14305 rm -f conftest.er1
14306 cat conftest.err >&5
14307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308 (exit $ac_status); } &&
14309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14310 { (case "(($ac_try" in
14311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14312 *) ac_try_echo=$ac_try;;
14313esac
14314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14315 (eval "$ac_try") 2>&5
14316 ac_status=$?
14317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318 (exit $ac_status); }; } &&
14319 { ac_try='test -s conftest$ac_exeext'
14320 { (case "(($ac_try" in
14321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14322 *) ac_try_echo=$ac_try;;
14323esac
14324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14325 (eval "$ac_try") 2>&5
14326 ac_status=$?
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014329 ac_cv_lib_udis86_ud_init=yes
14330else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014331 echo "$as_me: failed program was:" >&5
14332sed 's/^/| /' conftest.$ac_ext >&5
14333
14334 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014335fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014336
Bill Wendlingebcceee2009-04-18 11:20:33 +000014337rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014338 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014339LIBS=$ac_check_lib_save_LIBS
14340fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014341{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14342echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14343if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014344 cat >>confdefs.h <<_ACEOF
14345#define HAVE_LIBUDIS86 1
14346_ACEOF
14347
14348 LIBS="-ludis86 $LIBS"
14349
14350else
14351
14352 echo "Error! You need to have libudis86 around."
14353 exit -1
14354
14355fi
14356
14357
14358else
14359 USE_UDIS86=0
14360
14361fi
14362
14363
14364cat >>confdefs.h <<_ACEOF
14365#define USE_UDIS86 $USE_UDIS86
14366_ACEOF
14367
14368
14369
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014370# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014371if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014372 withval=$with_oprofile;
14373 USE_OPROFILE=1
14374
14375 case "$withval" in
14376 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014377 no) llvm_cv_oppath=
14378 USE_OPROFILE=0
14379 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014380 *) llvm_cv_oppath="${withval}/lib/oprofile"
14381 CPPFLAGS="-I${withval}/include";;
14382 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014383 if test -n "$llvm_cv_oppath" ; then
14384 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014385 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14386echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14387if test "${ac_cv_search_bfd_init+set}" = set; then
14388 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014389else
14390 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014391cat >conftest.$ac_ext <<_ACEOF
14392/* confdefs.h. */
14393_ACEOF
14394cat confdefs.h >>conftest.$ac_ext
14395cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014396/* end confdefs.h. */
14397
14398/* Override any GCC internal prototype to avoid an error.
14399 Use char because int might match the return type of a GCC
14400 builtin and then its argument prototype would still apply. */
14401#ifdef __cplusplus
14402extern "C"
14403#endif
14404char bfd_init ();
14405int
14406main ()
14407{
14408return bfd_init ();
14409 ;
14410 return 0;
14411}
14412_ACEOF
14413for ac_lib in '' bfd; do
14414 if test -z "$ac_lib"; then
14415 ac_res="none required"
14416 else
14417 ac_res=-l$ac_lib
14418 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14419 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014420 rm -f conftest.$ac_objext conftest$ac_exeext
14421if { (ac_try="$ac_link"
14422case "(($ac_try" in
14423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14424 *) ac_try_echo=$ac_try;;
14425esac
14426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14427 (eval "$ac_link") 2>conftest.er1
14428 ac_status=$?
14429 grep -v '^ *+' conftest.er1 >conftest.err
14430 rm -f conftest.er1
14431 cat conftest.err >&5
14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); } &&
14434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14435 { (case "(($ac_try" in
14436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14437 *) ac_try_echo=$ac_try;;
14438esac
14439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14440 (eval "$ac_try") 2>&5
14441 ac_status=$?
14442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443 (exit $ac_status); }; } &&
14444 { ac_try='test -s conftest$ac_exeext'
14445 { (case "(($ac_try" in
14446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14447 *) ac_try_echo=$ac_try;;
14448esac
14449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14450 (eval "$ac_try") 2>&5
14451 ac_status=$?
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014454 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014455else
14456 echo "$as_me: failed program was:" >&5
14457sed 's/^/| /' conftest.$ac_ext >&5
14458
14459
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014460fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014461
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014462rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014463 conftest$ac_exeext
14464 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014465 break
14466fi
14467done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014468if test "${ac_cv_search_bfd_init+set}" = set; then
14469 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014470else
14471 ac_cv_search_bfd_init=no
14472fi
14473rm conftest.$ac_ext
14474LIBS=$ac_func_search_save_LIBS
14475fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014476{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14477echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014478ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014479if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014480 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14481
14482fi
14483
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014484 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14485echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14486if test "${ac_cv_search_op_open_agent+set}" = set; then
14487 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014488else
14489 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014490cat >conftest.$ac_ext <<_ACEOF
14491/* confdefs.h. */
14492_ACEOF
14493cat confdefs.h >>conftest.$ac_ext
14494cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014495/* end confdefs.h. */
14496
14497/* Override any GCC internal prototype to avoid an error.
14498 Use char because int might match the return type of a GCC
14499 builtin and then its argument prototype would still apply. */
14500#ifdef __cplusplus
14501extern "C"
14502#endif
14503char op_open_agent ();
14504int
14505main ()
14506{
14507return op_open_agent ();
14508 ;
14509 return 0;
14510}
14511_ACEOF
14512for ac_lib in '' opagent; do
14513 if test -z "$ac_lib"; then
14514 ac_res="none required"
14515 else
14516 ac_res=-l$ac_lib
14517 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14518 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014519 rm -f conftest.$ac_objext conftest$ac_exeext
14520if { (ac_try="$ac_link"
14521case "(($ac_try" in
14522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14523 *) ac_try_echo=$ac_try;;
14524esac
14525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14526 (eval "$ac_link") 2>conftest.er1
14527 ac_status=$?
14528 grep -v '^ *+' conftest.er1 >conftest.err
14529 rm -f conftest.er1
14530 cat conftest.err >&5
14531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532 (exit $ac_status); } &&
14533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14534 { (case "(($ac_try" in
14535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14536 *) ac_try_echo=$ac_try;;
14537esac
14538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14539 (eval "$ac_try") 2>&5
14540 ac_status=$?
14541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542 (exit $ac_status); }; } &&
14543 { ac_try='test -s conftest$ac_exeext'
14544 { (case "(($ac_try" in
14545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14546 *) ac_try_echo=$ac_try;;
14547esac
14548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14549 (eval "$ac_try") 2>&5
14550 ac_status=$?
14551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014553 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014554else
14555 echo "$as_me: failed program was:" >&5
14556sed 's/^/| /' conftest.$ac_ext >&5
14557
14558
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014559fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014560
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014561rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014562 conftest$ac_exeext
14563 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014564 break
14565fi
14566done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014567if test "${ac_cv_search_op_open_agent+set}" = set; then
14568 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014569else
14570 ac_cv_search_op_open_agent=no
14571fi
14572rm conftest.$ac_ext
14573LIBS=$ac_func_search_save_LIBS
14574fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014575{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14576echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014577ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014578if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014579 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14580
14581else
14582
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014583 echo "Error! You need to have libopagent around."
14584 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014585
14586fi
14587
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014588 if test "${ac_cv_header_opagent_h+set}" = set; then
14589 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14590echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14591if test "${ac_cv_header_opagent_h+set}" = set; then
14592 echo $ECHO_N "(cached) $ECHO_C" >&6
14593fi
14594{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14595echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14596else
14597 # Is the header compilable?
14598{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
14599echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14600cat >conftest.$ac_ext <<_ACEOF
14601/* confdefs.h. */
14602_ACEOF
14603cat confdefs.h >>conftest.$ac_ext
14604cat >>conftest.$ac_ext <<_ACEOF
14605/* end confdefs.h. */
14606$ac_includes_default
14607#include <opagent.h>
14608_ACEOF
14609rm -f conftest.$ac_objext
14610if { (ac_try="$ac_compile"
14611case "(($ac_try" in
14612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14613 *) ac_try_echo=$ac_try;;
14614esac
14615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14616 (eval "$ac_compile") 2>conftest.er1
14617 ac_status=$?
14618 grep -v '^ *+' conftest.er1 >conftest.err
14619 rm -f conftest.er1
14620 cat conftest.err >&5
14621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622 (exit $ac_status); } &&
14623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14624 { (case "(($ac_try" in
14625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14626 *) ac_try_echo=$ac_try;;
14627esac
14628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14629 (eval "$ac_try") 2>&5
14630 ac_status=$?
14631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14632 (exit $ac_status); }; } &&
14633 { ac_try='test -s conftest.$ac_objext'
14634 { (case "(($ac_try" in
14635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14636 *) ac_try_echo=$ac_try;;
14637esac
14638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14639 (eval "$ac_try") 2>&5
14640 ac_status=$?
14641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642 (exit $ac_status); }; }; then
14643 ac_header_compiler=yes
14644else
14645 echo "$as_me: failed program was:" >&5
14646sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014647
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014648 ac_header_compiler=no
14649fi
14650
14651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14652{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14653echo "${ECHO_T}$ac_header_compiler" >&6; }
14654
14655# Is the header present?
14656{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
14657echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14658cat >conftest.$ac_ext <<_ACEOF
14659/* confdefs.h. */
14660_ACEOF
14661cat confdefs.h >>conftest.$ac_ext
14662cat >>conftest.$ac_ext <<_ACEOF
14663/* end confdefs.h. */
14664#include <opagent.h>
14665_ACEOF
14666if { (ac_try="$ac_cpp conftest.$ac_ext"
14667case "(($ac_try" in
14668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14669 *) ac_try_echo=$ac_try;;
14670esac
14671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14673 ac_status=$?
14674 grep -v '^ *+' conftest.er1 >conftest.err
14675 rm -f conftest.er1
14676 cat conftest.err >&5
14677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678 (exit $ac_status); } >/dev/null; then
14679 if test -s conftest.err; then
14680 ac_cpp_err=$ac_c_preproc_warn_flag
14681 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14682 else
14683 ac_cpp_err=
14684 fi
14685else
14686 ac_cpp_err=yes
14687fi
14688if test -z "$ac_cpp_err"; then
14689 ac_header_preproc=yes
14690else
14691 echo "$as_me: failed program was:" >&5
14692sed 's/^/| /' conftest.$ac_ext >&5
14693
14694 ac_header_preproc=no
14695fi
14696
14697rm -f conftest.err conftest.$ac_ext
14698{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14699echo "${ECHO_T}$ac_header_preproc" >&6; }
14700
14701# So? What about this header?
14702case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14703 yes:no: )
14704 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14705echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14706 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14707echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14708 ac_header_preproc=yes
14709 ;;
14710 no:yes:* )
14711 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14712echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14713 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14714echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14715 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14716echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14717 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14718echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14719 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14720echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14721 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14722echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14723 ( cat <<\_ASBOX
14724## ----------------------------------- ##
14725## Report this to llvmbugs@cs.uiuc.edu ##
14726## ----------------------------------- ##
14727_ASBOX
14728 ) | sed "s/^/$as_me: WARNING: /" >&2
14729 ;;
14730esac
14731{ echo "$as_me:$LINENO: checking for opagent.h" >&5
14732echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14733if test "${ac_cv_header_opagent_h+set}" = set; then
14734 echo $ECHO_N "(cached) $ECHO_C" >&6
14735else
14736 ac_cv_header_opagent_h=$ac_header_preproc
14737fi
14738{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14739echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14740
14741fi
14742if test $ac_cv_header_opagent_h = yes; then
14743 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014744else
14745
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014746 echo "Error! You need to have opagent.h around."
14747 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014748
14749fi
14750
14751
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014752 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014753
14754else
14755
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014756 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014757
14758
14759fi
14760
14761
14762cat >>confdefs.h <<_ACEOF
14763#define USE_OPROFILE $USE_OPROFILE
14764_ACEOF
14765
14766
14767
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014768
14769
14770
14771
14772
Reid Spencer59473af2004-12-25 07:31:29 +000014773ac_header_dirent=no
14774for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014775 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14776{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14777echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14778if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14779 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014780else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014781 cat >conftest.$ac_ext <<_ACEOF
14782/* confdefs.h. */
14783_ACEOF
14784cat confdefs.h >>conftest.$ac_ext
14785cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014786/* end confdefs.h. */
14787#include <sys/types.h>
14788#include <$ac_hdr>
14789
14790int
14791main ()
14792{
14793if ((DIR *) 0)
14794return 0;
14795 ;
14796 return 0;
14797}
14798_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014799rm -f conftest.$ac_objext
14800if { (ac_try="$ac_compile"
14801case "(($ac_try" in
14802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14803 *) ac_try_echo=$ac_try;;
14804esac
14805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14806 (eval "$ac_compile") 2>conftest.er1
14807 ac_status=$?
14808 grep -v '^ *+' conftest.er1 >conftest.err
14809 rm -f conftest.er1
14810 cat conftest.err >&5
14811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812 (exit $ac_status); } &&
14813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14814 { (case "(($ac_try" in
14815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14816 *) ac_try_echo=$ac_try;;
14817esac
14818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14819 (eval "$ac_try") 2>&5
14820 ac_status=$?
14821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822 (exit $ac_status); }; } &&
14823 { ac_try='test -s conftest.$ac_objext'
14824 { (case "(($ac_try" in
14825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14826 *) ac_try_echo=$ac_try;;
14827esac
14828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14829 (eval "$ac_try") 2>&5
14830 ac_status=$?
14831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014833 eval "$as_ac_Header=yes"
14834else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014835 echo "$as_me: failed program was:" >&5
14836sed 's/^/| /' conftest.$ac_ext >&5
14837
14838 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000014839fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014840
Reid Spencera773bd52006-08-04 18:18:08 +000014841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014842fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014843ac_res=`eval echo '${'$as_ac_Header'}'`
14844 { echo "$as_me:$LINENO: result: $ac_res" >&5
14845echo "${ECHO_T}$ac_res" >&6; }
14846if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014847 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014848#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014849_ACEOF
14850
14851ac_header_dirent=$ac_hdr; break
14852fi
14853
14854done
14855# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14856if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014857 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14858echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14859if test "${ac_cv_search_opendir+set}" = set; then
14860 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014861else
14862 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014863cat >conftest.$ac_ext <<_ACEOF
14864/* confdefs.h. */
14865_ACEOF
14866cat confdefs.h >>conftest.$ac_ext
14867cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014868/* end confdefs.h. */
14869
Reid Spencera773bd52006-08-04 18:18:08 +000014870/* Override any GCC internal prototype to avoid an error.
14871 Use char because int might match the return type of a GCC
14872 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014873#ifdef __cplusplus
14874extern "C"
14875#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014876char opendir ();
14877int
14878main ()
14879{
Reid Spencera773bd52006-08-04 18:18:08 +000014880return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014881 ;
14882 return 0;
14883}
14884_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014885for ac_lib in '' dir; do
14886 if test -z "$ac_lib"; then
14887 ac_res="none required"
14888 else
14889 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014890 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014891 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014892 rm -f conftest.$ac_objext conftest$ac_exeext
14893if { (ac_try="$ac_link"
14894case "(($ac_try" in
14895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14896 *) ac_try_echo=$ac_try;;
14897esac
14898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14899 (eval "$ac_link") 2>conftest.er1
14900 ac_status=$?
14901 grep -v '^ *+' conftest.er1 >conftest.err
14902 rm -f conftest.er1
14903 cat conftest.err >&5
14904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905 (exit $ac_status); } &&
14906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14907 { (case "(($ac_try" in
14908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14909 *) ac_try_echo=$ac_try;;
14910esac
14911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14912 (eval "$ac_try") 2>&5
14913 ac_status=$?
14914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915 (exit $ac_status); }; } &&
14916 { ac_try='test -s conftest$ac_exeext'
14917 { (case "(($ac_try" in
14918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14919 *) ac_try_echo=$ac_try;;
14920esac
14921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14922 (eval "$ac_try") 2>&5
14923 ac_status=$?
14924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14925 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014926 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014927else
14928 echo "$as_me: failed program was:" >&5
14929sed 's/^/| /' conftest.$ac_ext >&5
14930
14931
Reid Spencer59473af2004-12-25 07:31:29 +000014932fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014933
Bill Wendlingebcceee2009-04-18 11:20:33 +000014934rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014935 conftest$ac_exeext
14936 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014937 break
Reid Spencer59473af2004-12-25 07:31:29 +000014938fi
Reid Spencera773bd52006-08-04 18:18:08 +000014939done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014940if test "${ac_cv_search_opendir+set}" = set; then
14941 :
Reid Spencera773bd52006-08-04 18:18:08 +000014942else
14943 ac_cv_search_opendir=no
14944fi
14945rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014946LIBS=$ac_func_search_save_LIBS
14947fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014948{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14949echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014950ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014951if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014952 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014953
14954fi
14955
14956else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014957 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14958echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14959if test "${ac_cv_search_opendir+set}" = set; then
14960 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014961else
14962 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014963cat >conftest.$ac_ext <<_ACEOF
14964/* confdefs.h. */
14965_ACEOF
14966cat confdefs.h >>conftest.$ac_ext
14967cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014968/* end confdefs.h. */
14969
Reid Spencera773bd52006-08-04 18:18:08 +000014970/* Override any GCC internal prototype to avoid an error.
14971 Use char because int might match the return type of a GCC
14972 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014973#ifdef __cplusplus
14974extern "C"
14975#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014976char opendir ();
14977int
14978main ()
14979{
Reid Spencera773bd52006-08-04 18:18:08 +000014980return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014981 ;
14982 return 0;
14983}
14984_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014985for ac_lib in '' x; do
14986 if test -z "$ac_lib"; then
14987 ac_res="none required"
14988 else
14989 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014990 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014991 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014992 rm -f conftest.$ac_objext conftest$ac_exeext
14993if { (ac_try="$ac_link"
14994case "(($ac_try" in
14995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14996 *) ac_try_echo=$ac_try;;
14997esac
14998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14999 (eval "$ac_link") 2>conftest.er1
15000 ac_status=$?
15001 grep -v '^ *+' conftest.er1 >conftest.err
15002 rm -f conftest.er1
15003 cat conftest.err >&5
15004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005 (exit $ac_status); } &&
15006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15007 { (case "(($ac_try" in
15008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15009 *) ac_try_echo=$ac_try;;
15010esac
15011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15012 (eval "$ac_try") 2>&5
15013 ac_status=$?
15014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015 (exit $ac_status); }; } &&
15016 { ac_try='test -s conftest$ac_exeext'
15017 { (case "(($ac_try" in
15018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15019 *) ac_try_echo=$ac_try;;
15020esac
15021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15022 (eval "$ac_try") 2>&5
15023 ac_status=$?
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000015026 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015027else
15028 echo "$as_me: failed program was:" >&5
15029sed 's/^/| /' conftest.$ac_ext >&5
15030
15031
Reid Spencer59473af2004-12-25 07:31:29 +000015032fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015033
Bill Wendlingebcceee2009-04-18 11:20:33 +000015034rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015035 conftest$ac_exeext
15036 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000015037 break
Reid Spencer59473af2004-12-25 07:31:29 +000015038fi
Reid Spencera773bd52006-08-04 18:18:08 +000015039done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015040if test "${ac_cv_search_opendir+set}" = set; then
15041 :
Reid Spencera773bd52006-08-04 18:18:08 +000015042else
15043 ac_cv_search_opendir=no
15044fi
15045rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015046LIBS=$ac_func_search_save_LIBS
15047fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015048{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15049echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000015050ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015051if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015052 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000015053
15054fi
15055
15056fi
15057
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015058{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15059echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15060if test "${ac_cv_header_mmap_anon+set}" = set; then
15061 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015062else
15063 ac_ext=c
15064ac_cpp='$CPP $CPPFLAGS'
15065ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15066ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15067ac_compiler_gnu=$ac_cv_c_compiler_gnu
15068
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015069 cat >conftest.$ac_ext <<_ACEOF
15070/* confdefs.h. */
15071_ACEOF
15072cat confdefs.h >>conftest.$ac_ext
15073cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015074/* end confdefs.h. */
15075#include <sys/mman.h>
15076#include <unistd.h>
15077#include <fcntl.h>
15078int
15079main ()
15080{
15081mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15082 ;
15083 return 0;
15084}
15085_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015086rm -f conftest.$ac_objext
15087if { (ac_try="$ac_compile"
15088case "(($ac_try" in
15089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15090 *) ac_try_echo=$ac_try;;
15091esac
15092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15093 (eval "$ac_compile") 2>conftest.er1
15094 ac_status=$?
15095 grep -v '^ *+' conftest.er1 >conftest.err
15096 rm -f conftest.er1
15097 cat conftest.err >&5
15098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); } &&
15100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15101 { (case "(($ac_try" in
15102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15103 *) ac_try_echo=$ac_try;;
15104esac
15105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15106 (eval "$ac_try") 2>&5
15107 ac_status=$?
15108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109 (exit $ac_status); }; } &&
15110 { ac_try='test -s conftest.$ac_objext'
15111 { (case "(($ac_try" in
15112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15113 *) ac_try_echo=$ac_try;;
15114esac
15115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15116 (eval "$ac_try") 2>&5
15117 ac_status=$?
15118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15119 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000015120 ac_cv_header_mmap_anon=yes
15121else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015122 echo "$as_me: failed program was:" >&5
15123sed 's/^/| /' conftest.$ac_ext >&5
15124
15125 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000015126fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015127
Reid Spencera773bd52006-08-04 18:18:08 +000015128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015129 ac_ext=c
15130ac_cpp='$CPP $CPPFLAGS'
15131ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15132ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15133ac_compiler_gnu=$ac_cv_c_compiler_gnu
15134
15135
15136fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015137{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15138echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000015139if test "$ac_cv_header_mmap_anon" = yes; then
15140
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015141cat >>confdefs.h <<\_ACEOF
15142#define HAVE_MMAP_ANONYMOUS 1
15143_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015144
15145fi
15146
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015147{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15148echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15149if test "${ac_cv_header_stat_broken+set}" = set; then
15150 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015151else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015152 cat >conftest.$ac_ext <<_ACEOF
15153/* confdefs.h. */
15154_ACEOF
15155cat confdefs.h >>conftest.$ac_ext
15156cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015157/* end confdefs.h. */
15158#include <sys/types.h>
15159#include <sys/stat.h>
15160
Reid Spencera773bd52006-08-04 18:18:08 +000015161#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015162# if S_ISBLK (S_IFDIR)
15163You lose.
15164# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015165#endif
15166
Reid Spencera773bd52006-08-04 18:18:08 +000015167#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015168# if S_ISBLK (S_IFCHR)
15169You lose.
15170# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015171#endif
15172
Reid Spencera773bd52006-08-04 18:18:08 +000015173#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015174# if S_ISLNK (S_IFREG)
15175You lose.
15176# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015177#endif
15178
Reid Spencera773bd52006-08-04 18:18:08 +000015179#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015180# if S_ISSOCK (S_IFREG)
15181You lose.
15182# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015183#endif
15184
15185_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015186if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15187 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000015188 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015189else
15190 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000015191fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015192rm -f conftest*
15193
Reid Spencer59473af2004-12-25 07:31:29 +000015194fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015195{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15196echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000015197if test $ac_cv_header_stat_broken = yes; then
15198
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015199cat >>confdefs.h <<\_ACEOF
15200#define STAT_MACROS_BROKEN 1
15201_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015202
15203fi
15204
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015205{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15206echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15207if test "${ac_cv_header_stdc+set}" = set; then
15208 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015209else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015210 cat >conftest.$ac_ext <<_ACEOF
15211/* confdefs.h. */
15212_ACEOF
15213cat confdefs.h >>conftest.$ac_ext
15214cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015215/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015216#include <stdlib.h>
15217#include <stdarg.h>
15218#include <string.h>
15219#include <float.h>
15220
John Criswell0c38eaf2003-09-10 15:17:25 +000015221int
15222main ()
15223{
15224
15225 ;
15226 return 0;
15227}
John Criswell7a73b802003-06-30 21:59:07 +000015228_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015229rm -f conftest.$ac_objext
15230if { (ac_try="$ac_compile"
15231case "(($ac_try" in
15232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15233 *) ac_try_echo=$ac_try;;
15234esac
15235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15236 (eval "$ac_compile") 2>conftest.er1
15237 ac_status=$?
15238 grep -v '^ *+' conftest.er1 >conftest.err
15239 rm -f conftest.er1
15240 cat conftest.err >&5
15241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242 (exit $ac_status); } &&
15243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15244 { (case "(($ac_try" in
15245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15246 *) ac_try_echo=$ac_try;;
15247esac
15248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15249 (eval "$ac_try") 2>&5
15250 ac_status=$?
15251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252 (exit $ac_status); }; } &&
15253 { ac_try='test -s conftest.$ac_objext'
15254 { (case "(($ac_try" in
15255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15256 *) ac_try_echo=$ac_try;;
15257esac
15258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15259 (eval "$ac_try") 2>&5
15260 ac_status=$?
15261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015263 ac_cv_header_stdc=yes
15264else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015265 echo "$as_me: failed program was:" >&5
15266sed 's/^/| /' conftest.$ac_ext >&5
15267
15268 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015269fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015270
Reid Spencera773bd52006-08-04 18:18:08 +000015271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015272
15273if test $ac_cv_header_stdc = yes; then
15274 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015275 cat >conftest.$ac_ext <<_ACEOF
15276/* confdefs.h. */
15277_ACEOF
15278cat confdefs.h >>conftest.$ac_ext
15279cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015280/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015281#include <string.h>
15282
15283_ACEOF
15284if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015285 $EGREP "memchr" >/dev/null 2>&1; then
15286 :
John Criswell7a73b802003-06-30 21:59:07 +000015287else
15288 ac_cv_header_stdc=no
15289fi
15290rm -f conftest*
15291
15292fi
15293
15294if test $ac_cv_header_stdc = yes; then
15295 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015296 cat >conftest.$ac_ext <<_ACEOF
15297/* confdefs.h. */
15298_ACEOF
15299cat confdefs.h >>conftest.$ac_ext
15300cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015301/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015302#include <stdlib.h>
15303
15304_ACEOF
15305if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015306 $EGREP "free" >/dev/null 2>&1; then
15307 :
John Criswell7a73b802003-06-30 21:59:07 +000015308else
15309 ac_cv_header_stdc=no
15310fi
15311rm -f conftest*
15312
15313fi
15314
15315if test $ac_cv_header_stdc = yes; then
15316 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015317 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000015318 :
15319else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015320 cat >conftest.$ac_ext <<_ACEOF
15321/* confdefs.h. */
15322_ACEOF
15323cat confdefs.h >>conftest.$ac_ext
15324cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015325/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015326#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000015327#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000015328#if ((' ' & 0x0FF) == 0x020)
15329# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15330# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15331#else
John Criswell0c38eaf2003-09-10 15:17:25 +000015332# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015333 (('a' <= (c) && (c) <= 'i') \
15334 || ('j' <= (c) && (c) <= 'r') \
15335 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000015336# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15337#endif
15338
15339#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15340int
15341main ()
15342{
15343 int i;
15344 for (i = 0; i < 256; i++)
15345 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000015346 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000015347 return 2;
15348 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000015349}
15350_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015351rm -f conftest$ac_exeext
15352if { (ac_try="$ac_link"
15353case "(($ac_try" in
15354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15355 *) ac_try_echo=$ac_try;;
15356esac
15357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15358 (eval "$ac_link") 2>&5
15359 ac_status=$?
15360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15362 { (case "(($ac_try" in
15363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15364 *) ac_try_echo=$ac_try;;
15365esac
15366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15367 (eval "$ac_try") 2>&5
15368 ac_status=$?
15369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15370 (exit $ac_status); }; }; then
15371 :
John Criswell7a73b802003-06-30 21:59:07 +000015372else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015373 echo "$as_me: program exited with status $ac_status" >&5
15374echo "$as_me: failed program was:" >&5
15375sed 's/^/| /' conftest.$ac_ext >&5
15376
15377( exit $ac_status )
15378ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015379fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015380rm -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 +000015381fi
15382
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015383
John Criswell7a73b802003-06-30 21:59:07 +000015384fi
15385fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015386{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15387echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015388if test $ac_cv_header_stdc = yes; then
15389
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015390cat >>confdefs.h <<\_ACEOF
15391#define STDC_HEADERS 1
15392_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015393
15394fi
15395
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015396{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15397echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15398if test "${ac_cv_header_sys_wait_h+set}" = set; then
15399 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015400else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015401 cat >conftest.$ac_ext <<_ACEOF
15402/* confdefs.h. */
15403_ACEOF
15404cat confdefs.h >>conftest.$ac_ext
15405cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015406/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015407#include <sys/types.h>
15408#include <sys/wait.h>
15409#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000015410# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000015411#endif
15412#ifndef WIFEXITED
15413# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15414#endif
15415
John Criswell7a73b802003-06-30 21:59:07 +000015416int
15417main ()
15418{
15419 int s;
15420 wait (&s);
15421 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15422 ;
15423 return 0;
15424}
15425_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015426rm -f conftest.$ac_objext
15427if { (ac_try="$ac_compile"
15428case "(($ac_try" in
15429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15430 *) ac_try_echo=$ac_try;;
15431esac
15432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15433 (eval "$ac_compile") 2>conftest.er1
15434 ac_status=$?
15435 grep -v '^ *+' conftest.er1 >conftest.err
15436 rm -f conftest.er1
15437 cat conftest.err >&5
15438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439 (exit $ac_status); } &&
15440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15441 { (case "(($ac_try" in
15442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15443 *) ac_try_echo=$ac_try;;
15444esac
15445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15446 (eval "$ac_try") 2>&5
15447 ac_status=$?
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); }; } &&
15450 { ac_try='test -s conftest.$ac_objext'
15451 { (case "(($ac_try" in
15452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15453 *) ac_try_echo=$ac_try;;
15454esac
15455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15456 (eval "$ac_try") 2>&5
15457 ac_status=$?
15458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015460 ac_cv_header_sys_wait_h=yes
15461else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015462 echo "$as_me: failed program was:" >&5
15463sed 's/^/| /' conftest.$ac_ext >&5
15464
15465 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000015466fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015467
Reid Spencera773bd52006-08-04 18:18:08 +000015468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015469fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015470{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15471echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015472if test $ac_cv_header_sys_wait_h = yes; then
15473
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015474cat >>confdefs.h <<\_ACEOF
15475#define HAVE_SYS_WAIT_H 1
15476_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015477
15478fi
15479
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015480{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15481echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15482if test "${ac_cv_header_time+set}" = set; then
15483 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015484else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015485 cat >conftest.$ac_ext <<_ACEOF
15486/* confdefs.h. */
15487_ACEOF
15488cat confdefs.h >>conftest.$ac_ext
15489cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015490/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015491#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015492#include <sys/time.h>
15493#include <time.h>
15494
15495int
15496main ()
15497{
15498if ((struct tm *) 0)
15499return 0;
15500 ;
15501 return 0;
15502}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015503_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015504rm -f conftest.$ac_objext
15505if { (ac_try="$ac_compile"
15506case "(($ac_try" in
15507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15508 *) ac_try_echo=$ac_try;;
15509esac
15510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15511 (eval "$ac_compile") 2>conftest.er1
15512 ac_status=$?
15513 grep -v '^ *+' conftest.er1 >conftest.err
15514 rm -f conftest.er1
15515 cat conftest.err >&5
15516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517 (exit $ac_status); } &&
15518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15519 { (case "(($ac_try" in
15520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15521 *) ac_try_echo=$ac_try;;
15522esac
15523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15524 (eval "$ac_try") 2>&5
15525 ac_status=$?
15526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527 (exit $ac_status); }; } &&
15528 { ac_try='test -s conftest.$ac_objext'
15529 { (case "(($ac_try" in
15530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15531 *) ac_try_echo=$ac_try;;
15532esac
15533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15534 (eval "$ac_try") 2>&5
15535 ac_status=$?
15536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015538 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015539else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015540 echo "$as_me: failed program was:" >&5
15541sed 's/^/| /' conftest.$ac_ext >&5
15542
15543 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015544fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015545
Reid Spencera773bd52006-08-04 18:18:08 +000015546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015547fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015548{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15549echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015550if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015551
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015552cat >>confdefs.h <<\_ACEOF
15553#define TIME_WITH_SYS_TIME 1
15554_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015555
15556fi
15557
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015558
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015559
15560
15561
15562
15563
15564
Reid Spencer59473af2004-12-25 07:31:29 +000015565for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015566do
15567as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15568if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15569 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15570echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15571if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15572 echo $ECHO_N "(cached) $ECHO_C" >&6
15573fi
15574ac_res=`eval echo '${'$as_ac_Header'}'`
15575 { echo "$as_me:$LINENO: result: $ac_res" >&5
15576echo "${ECHO_T}$ac_res" >&6; }
15577else
15578 # Is the header compilable?
15579{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15580echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15581cat >conftest.$ac_ext <<_ACEOF
15582/* confdefs.h. */
15583_ACEOF
15584cat confdefs.h >>conftest.$ac_ext
15585cat >>conftest.$ac_ext <<_ACEOF
15586/* end confdefs.h. */
15587$ac_includes_default
15588#include <$ac_header>
15589_ACEOF
15590rm -f conftest.$ac_objext
15591if { (ac_try="$ac_compile"
15592case "(($ac_try" in
15593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15594 *) ac_try_echo=$ac_try;;
15595esac
15596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15597 (eval "$ac_compile") 2>conftest.er1
15598 ac_status=$?
15599 grep -v '^ *+' conftest.er1 >conftest.err
15600 rm -f conftest.er1
15601 cat conftest.err >&5
15602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603 (exit $ac_status); } &&
15604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15605 { (case "(($ac_try" in
15606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15607 *) ac_try_echo=$ac_try;;
15608esac
15609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15610 (eval "$ac_try") 2>&5
15611 ac_status=$?
15612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15613 (exit $ac_status); }; } &&
15614 { ac_try='test -s conftest.$ac_objext'
15615 { (case "(($ac_try" in
15616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15617 *) ac_try_echo=$ac_try;;
15618esac
15619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15620 (eval "$ac_try") 2>&5
15621 ac_status=$?
15622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623 (exit $ac_status); }; }; then
15624 ac_header_compiler=yes
15625else
15626 echo "$as_me: failed program was:" >&5
15627sed 's/^/| /' conftest.$ac_ext >&5
15628
15629 ac_header_compiler=no
15630fi
15631
15632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15633{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15634echo "${ECHO_T}$ac_header_compiler" >&6; }
15635
15636# Is the header present?
15637{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15638echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15639cat >conftest.$ac_ext <<_ACEOF
15640/* confdefs.h. */
15641_ACEOF
15642cat confdefs.h >>conftest.$ac_ext
15643cat >>conftest.$ac_ext <<_ACEOF
15644/* end confdefs.h. */
15645#include <$ac_header>
15646_ACEOF
15647if { (ac_try="$ac_cpp conftest.$ac_ext"
15648case "(($ac_try" in
15649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15650 *) ac_try_echo=$ac_try;;
15651esac
15652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15653 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15654 ac_status=$?
15655 grep -v '^ *+' conftest.er1 >conftest.err
15656 rm -f conftest.er1
15657 cat conftest.err >&5
15658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659 (exit $ac_status); } >/dev/null; then
15660 if test -s conftest.err; then
15661 ac_cpp_err=$ac_c_preproc_warn_flag
15662 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15663 else
15664 ac_cpp_err=
15665 fi
15666else
15667 ac_cpp_err=yes
15668fi
15669if test -z "$ac_cpp_err"; then
15670 ac_header_preproc=yes
15671else
15672 echo "$as_me: failed program was:" >&5
15673sed 's/^/| /' conftest.$ac_ext >&5
15674
15675 ac_header_preproc=no
15676fi
15677
15678rm -f conftest.err conftest.$ac_ext
15679{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15680echo "${ECHO_T}$ac_header_preproc" >&6; }
15681
15682# So? What about this header?
15683case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15684 yes:no: )
15685 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15686echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15688echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15689 ac_header_preproc=yes
15690 ;;
15691 no:yes:* )
15692 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15693echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15694 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15695echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15696 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15697echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15698 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15699echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15701echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15702 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15703echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15704 ( cat <<\_ASBOX
15705## ----------------------------------- ##
15706## Report this to llvmbugs@cs.uiuc.edu ##
15707## ----------------------------------- ##
15708_ASBOX
15709 ) | sed "s/^/$as_me: WARNING: /" >&2
15710 ;;
15711esac
15712{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15713echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15714if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15715 echo $ECHO_N "(cached) $ECHO_C" >&6
15716else
15717 eval "$as_ac_Header=\$ac_header_preproc"
15718fi
15719ac_res=`eval echo '${'$as_ac_Header'}'`
15720 { echo "$as_me:$LINENO: result: $ac_res" >&5
15721echo "${ECHO_T}$ac_res" >&6; }
15722
15723fi
15724if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015725 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015726#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015727_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015728
15729fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015730
Reid Spencer59473af2004-12-25 07:31:29 +000015731done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015732
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015733
15734
15735
15736
15737
15738
Douglas Gregor071d73d2009-05-18 17:21:34 +000015739for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015740do
15741as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15742if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15743 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15744echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15745if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15746 echo $ECHO_N "(cached) $ECHO_C" >&6
15747fi
15748ac_res=`eval echo '${'$as_ac_Header'}'`
15749 { echo "$as_me:$LINENO: result: $ac_res" >&5
15750echo "${ECHO_T}$ac_res" >&6; }
15751else
15752 # Is the header compilable?
15753{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15754echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15755cat >conftest.$ac_ext <<_ACEOF
15756/* confdefs.h. */
15757_ACEOF
15758cat confdefs.h >>conftest.$ac_ext
15759cat >>conftest.$ac_ext <<_ACEOF
15760/* end confdefs.h. */
15761$ac_includes_default
15762#include <$ac_header>
15763_ACEOF
15764rm -f conftest.$ac_objext
15765if { (ac_try="$ac_compile"
15766case "(($ac_try" in
15767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15768 *) ac_try_echo=$ac_try;;
15769esac
15770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15771 (eval "$ac_compile") 2>conftest.er1
15772 ac_status=$?
15773 grep -v '^ *+' conftest.er1 >conftest.err
15774 rm -f conftest.er1
15775 cat conftest.err >&5
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); } &&
15778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15779 { (case "(($ac_try" in
15780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15781 *) ac_try_echo=$ac_try;;
15782esac
15783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15784 (eval "$ac_try") 2>&5
15785 ac_status=$?
15786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787 (exit $ac_status); }; } &&
15788 { ac_try='test -s conftest.$ac_objext'
15789 { (case "(($ac_try" in
15790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15791 *) ac_try_echo=$ac_try;;
15792esac
15793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15794 (eval "$ac_try") 2>&5
15795 ac_status=$?
15796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797 (exit $ac_status); }; }; then
15798 ac_header_compiler=yes
15799else
15800 echo "$as_me: failed program was:" >&5
15801sed 's/^/| /' conftest.$ac_ext >&5
15802
15803 ac_header_compiler=no
15804fi
15805
15806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15807{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15808echo "${ECHO_T}$ac_header_compiler" >&6; }
15809
15810# Is the header present?
15811{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15812echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15813cat >conftest.$ac_ext <<_ACEOF
15814/* confdefs.h. */
15815_ACEOF
15816cat confdefs.h >>conftest.$ac_ext
15817cat >>conftest.$ac_ext <<_ACEOF
15818/* end confdefs.h. */
15819#include <$ac_header>
15820_ACEOF
15821if { (ac_try="$ac_cpp conftest.$ac_ext"
15822case "(($ac_try" in
15823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15824 *) ac_try_echo=$ac_try;;
15825esac
15826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15828 ac_status=$?
15829 grep -v '^ *+' conftest.er1 >conftest.err
15830 rm -f conftest.er1
15831 cat conftest.err >&5
15832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833 (exit $ac_status); } >/dev/null; then
15834 if test -s conftest.err; then
15835 ac_cpp_err=$ac_c_preproc_warn_flag
15836 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15837 else
15838 ac_cpp_err=
15839 fi
15840else
15841 ac_cpp_err=yes
15842fi
15843if test -z "$ac_cpp_err"; then
15844 ac_header_preproc=yes
15845else
15846 echo "$as_me: failed program was:" >&5
15847sed 's/^/| /' conftest.$ac_ext >&5
15848
15849 ac_header_preproc=no
15850fi
15851
15852rm -f conftest.err conftest.$ac_ext
15853{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15854echo "${ECHO_T}$ac_header_preproc" >&6; }
15855
15856# So? What about this header?
15857case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15858 yes:no: )
15859 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15860echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15862echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15863 ac_header_preproc=yes
15864 ;;
15865 no:yes:* )
15866 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15867echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15868 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15869echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15870 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15871echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15872 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15873echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15875echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15876 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15877echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15878 ( cat <<\_ASBOX
15879## ----------------------------------- ##
15880## Report this to llvmbugs@cs.uiuc.edu ##
15881## ----------------------------------- ##
15882_ASBOX
15883 ) | sed "s/^/$as_me: WARNING: /" >&2
15884 ;;
15885esac
15886{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15887echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15888if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15889 echo $ECHO_N "(cached) $ECHO_C" >&6
15890else
15891 eval "$as_ac_Header=\$ac_header_preproc"
15892fi
15893ac_res=`eval echo '${'$as_ac_Header'}'`
15894 { echo "$as_me:$LINENO: result: $ac_res" >&5
15895echo "${ECHO_T}$ac_res" >&6; }
15896
15897fi
15898if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015899 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015900#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000015901_ACEOF
15902
15903fi
15904
15905done
15906
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015907
15908
Douglas Gregor071d73d2009-05-18 17:21:34 +000015909for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015910do
15911as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15912if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15913 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15914echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15915if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15916 echo $ECHO_N "(cached) $ECHO_C" >&6
15917fi
15918ac_res=`eval echo '${'$as_ac_Header'}'`
15919 { echo "$as_me:$LINENO: result: $ac_res" >&5
15920echo "${ECHO_T}$ac_res" >&6; }
15921else
15922 # Is the header compilable?
15923{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15924echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15925cat >conftest.$ac_ext <<_ACEOF
15926/* confdefs.h. */
15927_ACEOF
15928cat confdefs.h >>conftest.$ac_ext
15929cat >>conftest.$ac_ext <<_ACEOF
15930/* end confdefs.h. */
15931$ac_includes_default
15932#include <$ac_header>
15933_ACEOF
15934rm -f conftest.$ac_objext
15935if { (ac_try="$ac_compile"
15936case "(($ac_try" in
15937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15938 *) ac_try_echo=$ac_try;;
15939esac
15940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15941 (eval "$ac_compile") 2>conftest.er1
15942 ac_status=$?
15943 grep -v '^ *+' conftest.er1 >conftest.err
15944 rm -f conftest.er1
15945 cat conftest.err >&5
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); } &&
15948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15949 { (case "(($ac_try" in
15950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15951 *) ac_try_echo=$ac_try;;
15952esac
15953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15954 (eval "$ac_try") 2>&5
15955 ac_status=$?
15956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957 (exit $ac_status); }; } &&
15958 { ac_try='test -s conftest.$ac_objext'
15959 { (case "(($ac_try" in
15960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15961 *) ac_try_echo=$ac_try;;
15962esac
15963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15964 (eval "$ac_try") 2>&5
15965 ac_status=$?
15966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967 (exit $ac_status); }; }; then
15968 ac_header_compiler=yes
15969else
15970 echo "$as_me: failed program was:" >&5
15971sed 's/^/| /' conftest.$ac_ext >&5
15972
15973 ac_header_compiler=no
15974fi
15975
15976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15977{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15978echo "${ECHO_T}$ac_header_compiler" >&6; }
15979
15980# Is the header present?
15981{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15982echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15983cat >conftest.$ac_ext <<_ACEOF
15984/* confdefs.h. */
15985_ACEOF
15986cat confdefs.h >>conftest.$ac_ext
15987cat >>conftest.$ac_ext <<_ACEOF
15988/* end confdefs.h. */
15989#include <$ac_header>
15990_ACEOF
15991if { (ac_try="$ac_cpp conftest.$ac_ext"
15992case "(($ac_try" in
15993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15994 *) ac_try_echo=$ac_try;;
15995esac
15996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15997 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15998 ac_status=$?
15999 grep -v '^ *+' conftest.er1 >conftest.err
16000 rm -f conftest.er1
16001 cat conftest.err >&5
16002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003 (exit $ac_status); } >/dev/null; then
16004 if test -s conftest.err; then
16005 ac_cpp_err=$ac_c_preproc_warn_flag
16006 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16007 else
16008 ac_cpp_err=
16009 fi
16010else
16011 ac_cpp_err=yes
16012fi
16013if test -z "$ac_cpp_err"; then
16014 ac_header_preproc=yes
16015else
16016 echo "$as_me: failed program was:" >&5
16017sed 's/^/| /' conftest.$ac_ext >&5
16018
16019 ac_header_preproc=no
16020fi
16021
16022rm -f conftest.err conftest.$ac_ext
16023{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16024echo "${ECHO_T}$ac_header_preproc" >&6; }
16025
16026# So? What about this header?
16027case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16028 yes:no: )
16029 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16030echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16032echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16033 ac_header_preproc=yes
16034 ;;
16035 no:yes:* )
16036 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16037echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16038 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16039echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16040 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16041echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16042 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16043echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16045echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16046 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16047echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16048 ( cat <<\_ASBOX
16049## ----------------------------------- ##
16050## Report this to llvmbugs@cs.uiuc.edu ##
16051## ----------------------------------- ##
16052_ASBOX
16053 ) | sed "s/^/$as_me: WARNING: /" >&2
16054 ;;
16055esac
16056{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16057echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16058if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16059 echo $ECHO_N "(cached) $ECHO_C" >&6
16060else
16061 eval "$as_ac_Header=\$ac_header_preproc"
16062fi
16063ac_res=`eval echo '${'$as_ac_Header'}'`
16064 { echo "$as_me:$LINENO: result: $ac_res" >&5
16065echo "${ECHO_T}$ac_res" >&6; }
16066
16067fi
16068if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000016069 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016070#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000016071_ACEOF
16072
16073fi
16074
16075done
Reid Spencer59473af2004-12-25 07:31:29 +000016076
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016077
16078
16079
16080
Reid Spencerbe3e4192007-08-17 05:45:26 +000016081for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016082do
16083as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16084if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16085 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16086echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16087if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16088 echo $ECHO_N "(cached) $ECHO_C" >&6
16089fi
16090ac_res=`eval echo '${'$as_ac_Header'}'`
16091 { echo "$as_me:$LINENO: result: $ac_res" >&5
16092echo "${ECHO_T}$ac_res" >&6; }
16093else
16094 # Is the header compilable?
16095{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16096echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16097cat >conftest.$ac_ext <<_ACEOF
16098/* confdefs.h. */
16099_ACEOF
16100cat confdefs.h >>conftest.$ac_ext
16101cat >>conftest.$ac_ext <<_ACEOF
16102/* end confdefs.h. */
16103$ac_includes_default
16104#include <$ac_header>
16105_ACEOF
16106rm -f conftest.$ac_objext
16107if { (ac_try="$ac_compile"
16108case "(($ac_try" in
16109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16110 *) ac_try_echo=$ac_try;;
16111esac
16112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16113 (eval "$ac_compile") 2>conftest.er1
16114 ac_status=$?
16115 grep -v '^ *+' conftest.er1 >conftest.err
16116 rm -f conftest.er1
16117 cat conftest.err >&5
16118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119 (exit $ac_status); } &&
16120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16121 { (case "(($ac_try" in
16122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16123 *) ac_try_echo=$ac_try;;
16124esac
16125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16126 (eval "$ac_try") 2>&5
16127 ac_status=$?
16128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129 (exit $ac_status); }; } &&
16130 { ac_try='test -s conftest.$ac_objext'
16131 { (case "(($ac_try" in
16132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16133 *) ac_try_echo=$ac_try;;
16134esac
16135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16136 (eval "$ac_try") 2>&5
16137 ac_status=$?
16138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16139 (exit $ac_status); }; }; then
16140 ac_header_compiler=yes
16141else
16142 echo "$as_me: failed program was:" >&5
16143sed 's/^/| /' conftest.$ac_ext >&5
16144
16145 ac_header_compiler=no
16146fi
16147
16148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16149{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16150echo "${ECHO_T}$ac_header_compiler" >&6; }
16151
16152# Is the header present?
16153{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16154echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16155cat >conftest.$ac_ext <<_ACEOF
16156/* confdefs.h. */
16157_ACEOF
16158cat confdefs.h >>conftest.$ac_ext
16159cat >>conftest.$ac_ext <<_ACEOF
16160/* end confdefs.h. */
16161#include <$ac_header>
16162_ACEOF
16163if { (ac_try="$ac_cpp conftest.$ac_ext"
16164case "(($ac_try" in
16165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16166 *) ac_try_echo=$ac_try;;
16167esac
16168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16169 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16170 ac_status=$?
16171 grep -v '^ *+' conftest.er1 >conftest.err
16172 rm -f conftest.er1
16173 cat conftest.err >&5
16174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16175 (exit $ac_status); } >/dev/null; then
16176 if test -s conftest.err; then
16177 ac_cpp_err=$ac_c_preproc_warn_flag
16178 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16179 else
16180 ac_cpp_err=
16181 fi
16182else
16183 ac_cpp_err=yes
16184fi
16185if test -z "$ac_cpp_err"; then
16186 ac_header_preproc=yes
16187else
16188 echo "$as_me: failed program was:" >&5
16189sed 's/^/| /' conftest.$ac_ext >&5
16190
16191 ac_header_preproc=no
16192fi
16193
16194rm -f conftest.err conftest.$ac_ext
16195{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16196echo "${ECHO_T}$ac_header_preproc" >&6; }
16197
16198# So? What about this header?
16199case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16200 yes:no: )
16201 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16202echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16204echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16205 ac_header_preproc=yes
16206 ;;
16207 no:yes:* )
16208 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16209echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16210 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16211echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16212 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16213echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16214 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16215echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16217echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16218 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16219echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16220 ( cat <<\_ASBOX
16221## ----------------------------------- ##
16222## Report this to llvmbugs@cs.uiuc.edu ##
16223## ----------------------------------- ##
16224_ASBOX
16225 ) | sed "s/^/$as_me: WARNING: /" >&2
16226 ;;
16227esac
16228{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16229echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16230if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16231 echo $ECHO_N "(cached) $ECHO_C" >&6
16232else
16233 eval "$as_ac_Header=\$ac_header_preproc"
16234fi
16235ac_res=`eval echo '${'$as_ac_Header'}'`
16236 { echo "$as_me:$LINENO: result: $ac_res" >&5
16237echo "${ECHO_T}$ac_res" >&6; }
16238
16239fi
16240if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016241 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016242#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000016243_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000016244
16245fi
John Criswell7ed43ad2004-07-19 16:12:29 +000016246
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016247done
16248
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016249
16250
16251
16252
Douglas Gregor01746742009-05-11 18:05:52 +000016253for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016254do
16255as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16256if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16257 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16258echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16259if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16260 echo $ECHO_N "(cached) $ECHO_C" >&6
16261fi
16262ac_res=`eval echo '${'$as_ac_Header'}'`
16263 { echo "$as_me:$LINENO: result: $ac_res" >&5
16264echo "${ECHO_T}$ac_res" >&6; }
16265else
16266 # Is the header compilable?
16267{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16268echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16269cat >conftest.$ac_ext <<_ACEOF
16270/* confdefs.h. */
16271_ACEOF
16272cat confdefs.h >>conftest.$ac_ext
16273cat >>conftest.$ac_ext <<_ACEOF
16274/* end confdefs.h. */
16275$ac_includes_default
16276#include <$ac_header>
16277_ACEOF
16278rm -f conftest.$ac_objext
16279if { (ac_try="$ac_compile"
16280case "(($ac_try" in
16281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16282 *) ac_try_echo=$ac_try;;
16283esac
16284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16285 (eval "$ac_compile") 2>conftest.er1
16286 ac_status=$?
16287 grep -v '^ *+' conftest.er1 >conftest.err
16288 rm -f conftest.er1
16289 cat conftest.err >&5
16290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291 (exit $ac_status); } &&
16292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16293 { (case "(($ac_try" in
16294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16295 *) ac_try_echo=$ac_try;;
16296esac
16297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16298 (eval "$ac_try") 2>&5
16299 ac_status=$?
16300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16301 (exit $ac_status); }; } &&
16302 { ac_try='test -s conftest.$ac_objext'
16303 { (case "(($ac_try" in
16304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16305 *) ac_try_echo=$ac_try;;
16306esac
16307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16308 (eval "$ac_try") 2>&5
16309 ac_status=$?
16310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311 (exit $ac_status); }; }; then
16312 ac_header_compiler=yes
16313else
16314 echo "$as_me: failed program was:" >&5
16315sed 's/^/| /' conftest.$ac_ext >&5
16316
16317 ac_header_compiler=no
16318fi
16319
16320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16321{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16322echo "${ECHO_T}$ac_header_compiler" >&6; }
16323
16324# Is the header present?
16325{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16326echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16327cat >conftest.$ac_ext <<_ACEOF
16328/* confdefs.h. */
16329_ACEOF
16330cat confdefs.h >>conftest.$ac_ext
16331cat >>conftest.$ac_ext <<_ACEOF
16332/* end confdefs.h. */
16333#include <$ac_header>
16334_ACEOF
16335if { (ac_try="$ac_cpp conftest.$ac_ext"
16336case "(($ac_try" in
16337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16338 *) ac_try_echo=$ac_try;;
16339esac
16340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16341 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16342 ac_status=$?
16343 grep -v '^ *+' conftest.er1 >conftest.err
16344 rm -f conftest.er1
16345 cat conftest.err >&5
16346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347 (exit $ac_status); } >/dev/null; then
16348 if test -s conftest.err; then
16349 ac_cpp_err=$ac_c_preproc_warn_flag
16350 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16351 else
16352 ac_cpp_err=
16353 fi
16354else
16355 ac_cpp_err=yes
16356fi
16357if test -z "$ac_cpp_err"; then
16358 ac_header_preproc=yes
16359else
16360 echo "$as_me: failed program was:" >&5
16361sed 's/^/| /' conftest.$ac_ext >&5
16362
16363 ac_header_preproc=no
16364fi
16365
16366rm -f conftest.err conftest.$ac_ext
16367{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16368echo "${ECHO_T}$ac_header_preproc" >&6; }
16369
16370# So? What about this header?
16371case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16372 yes:no: )
16373 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16374echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16376echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16377 ac_header_preproc=yes
16378 ;;
16379 no:yes:* )
16380 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16381echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16382 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16383echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16384 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16385echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16386 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16387echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16389echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16390 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16391echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16392 ( cat <<\_ASBOX
16393## ----------------------------------- ##
16394## Report this to llvmbugs@cs.uiuc.edu ##
16395## ----------------------------------- ##
16396_ASBOX
16397 ) | sed "s/^/$as_me: WARNING: /" >&2
16398 ;;
16399esac
16400{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16401echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16402if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16403 echo $ECHO_N "(cached) $ECHO_C" >&6
16404else
16405 eval "$as_ac_Header=\$ac_header_preproc"
16406fi
16407ac_res=`eval echo '${'$as_ac_Header'}'`
16408 { echo "$as_me:$LINENO: result: $ac_res" >&5
16409echo "${ECHO_T}$ac_res" >&6; }
16410
16411fi
16412if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000016413 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016414#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000016415_ACEOF
16416
16417fi
16418
16419done
16420
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000016421
16422for ac_header in valgrind/valgrind.h
16423do
16424as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16425if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16426 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16427echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16428if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16429 echo $ECHO_N "(cached) $ECHO_C" >&6
16430fi
16431ac_res=`eval echo '${'$as_ac_Header'}'`
16432 { echo "$as_me:$LINENO: result: $ac_res" >&5
16433echo "${ECHO_T}$ac_res" >&6; }
16434else
16435 # Is the header compilable?
16436{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16437echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16438cat >conftest.$ac_ext <<_ACEOF
16439/* confdefs.h. */
16440_ACEOF
16441cat confdefs.h >>conftest.$ac_ext
16442cat >>conftest.$ac_ext <<_ACEOF
16443/* end confdefs.h. */
16444$ac_includes_default
16445#include <$ac_header>
16446_ACEOF
16447rm -f conftest.$ac_objext
16448if { (ac_try="$ac_compile"
16449case "(($ac_try" in
16450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16451 *) ac_try_echo=$ac_try;;
16452esac
16453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16454 (eval "$ac_compile") 2>conftest.er1
16455 ac_status=$?
16456 grep -v '^ *+' conftest.er1 >conftest.err
16457 rm -f conftest.er1
16458 cat conftest.err >&5
16459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460 (exit $ac_status); } &&
16461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16462 { (case "(($ac_try" in
16463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16464 *) ac_try_echo=$ac_try;;
16465esac
16466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16467 (eval "$ac_try") 2>&5
16468 ac_status=$?
16469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16470 (exit $ac_status); }; } &&
16471 { ac_try='test -s conftest.$ac_objext'
16472 { (case "(($ac_try" in
16473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16474 *) ac_try_echo=$ac_try;;
16475esac
16476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16477 (eval "$ac_try") 2>&5
16478 ac_status=$?
16479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480 (exit $ac_status); }; }; then
16481 ac_header_compiler=yes
16482else
16483 echo "$as_me: failed program was:" >&5
16484sed 's/^/| /' conftest.$ac_ext >&5
16485
16486 ac_header_compiler=no
16487fi
16488
16489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16490{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16491echo "${ECHO_T}$ac_header_compiler" >&6; }
16492
16493# Is the header present?
16494{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16495echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16496cat >conftest.$ac_ext <<_ACEOF
16497/* confdefs.h. */
16498_ACEOF
16499cat confdefs.h >>conftest.$ac_ext
16500cat >>conftest.$ac_ext <<_ACEOF
16501/* end confdefs.h. */
16502#include <$ac_header>
16503_ACEOF
16504if { (ac_try="$ac_cpp conftest.$ac_ext"
16505case "(($ac_try" in
16506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16507 *) ac_try_echo=$ac_try;;
16508esac
16509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16510 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16511 ac_status=$?
16512 grep -v '^ *+' conftest.er1 >conftest.err
16513 rm -f conftest.er1
16514 cat conftest.err >&5
16515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516 (exit $ac_status); } >/dev/null; then
16517 if test -s conftest.err; then
16518 ac_cpp_err=$ac_c_preproc_warn_flag
16519 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16520 else
16521 ac_cpp_err=
16522 fi
16523else
16524 ac_cpp_err=yes
16525fi
16526if test -z "$ac_cpp_err"; then
16527 ac_header_preproc=yes
16528else
16529 echo "$as_me: failed program was:" >&5
16530sed 's/^/| /' conftest.$ac_ext >&5
16531
16532 ac_header_preproc=no
16533fi
16534
16535rm -f conftest.err conftest.$ac_ext
16536{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16537echo "${ECHO_T}$ac_header_preproc" >&6; }
16538
16539# So? What about this header?
16540case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16541 yes:no: )
16542 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16543echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16544 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16545echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16546 ac_header_preproc=yes
16547 ;;
16548 no:yes:* )
16549 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16550echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16551 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16552echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16553 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16554echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16555 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16556echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16558echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16559 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16560echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16561 ( cat <<\_ASBOX
16562## ----------------------------------- ##
16563## Report this to llvmbugs@cs.uiuc.edu ##
16564## ----------------------------------- ##
16565_ASBOX
16566 ) | sed "s/^/$as_me: WARNING: /" >&2
16567 ;;
16568esac
16569{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16570echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16571if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16572 echo $ECHO_N "(cached) $ECHO_C" >&6
16573else
16574 eval "$as_ac_Header=\$ac_header_preproc"
16575fi
16576ac_res=`eval echo '${'$as_ac_Header'}'`
16577 { echo "$as_me:$LINENO: result: $ac_res" >&5
16578echo "${ECHO_T}$ac_res" >&6; }
16579
16580fi
16581if test `eval echo '${'$as_ac_Header'}'` = yes; then
16582 cat >>confdefs.h <<_ACEOF
16583#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16584_ACEOF
16585
16586fi
16587
16588done
16589
Reid Spencer0a262ba2005-08-24 10:07:20 +000016590if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016591
16592for ac_header in pthread.h
16593do
16594as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16595if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16596 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16597echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16598if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16599 echo $ECHO_N "(cached) $ECHO_C" >&6
16600fi
16601ac_res=`eval echo '${'$as_ac_Header'}'`
16602 { echo "$as_me:$LINENO: result: $ac_res" >&5
16603echo "${ECHO_T}$ac_res" >&6; }
16604else
16605 # Is the header compilable?
16606{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16607echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16608cat >conftest.$ac_ext <<_ACEOF
16609/* confdefs.h. */
16610_ACEOF
16611cat confdefs.h >>conftest.$ac_ext
16612cat >>conftest.$ac_ext <<_ACEOF
16613/* end confdefs.h. */
16614$ac_includes_default
16615#include <$ac_header>
16616_ACEOF
16617rm -f conftest.$ac_objext
16618if { (ac_try="$ac_compile"
16619case "(($ac_try" in
16620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16621 *) ac_try_echo=$ac_try;;
16622esac
16623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16624 (eval "$ac_compile") 2>conftest.er1
16625 ac_status=$?
16626 grep -v '^ *+' conftest.er1 >conftest.err
16627 rm -f conftest.er1
16628 cat conftest.err >&5
16629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16630 (exit $ac_status); } &&
16631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16632 { (case "(($ac_try" in
16633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16634 *) ac_try_echo=$ac_try;;
16635esac
16636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16637 (eval "$ac_try") 2>&5
16638 ac_status=$?
16639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16640 (exit $ac_status); }; } &&
16641 { ac_try='test -s conftest.$ac_objext'
16642 { (case "(($ac_try" in
16643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16644 *) ac_try_echo=$ac_try;;
16645esac
16646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16647 (eval "$ac_try") 2>&5
16648 ac_status=$?
16649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650 (exit $ac_status); }; }; then
16651 ac_header_compiler=yes
16652else
16653 echo "$as_me: failed program was:" >&5
16654sed 's/^/| /' conftest.$ac_ext >&5
16655
16656 ac_header_compiler=no
16657fi
16658
16659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16660{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16661echo "${ECHO_T}$ac_header_compiler" >&6; }
16662
16663# Is the header present?
16664{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16665echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16666cat >conftest.$ac_ext <<_ACEOF
16667/* confdefs.h. */
16668_ACEOF
16669cat confdefs.h >>conftest.$ac_ext
16670cat >>conftest.$ac_ext <<_ACEOF
16671/* end confdefs.h. */
16672#include <$ac_header>
16673_ACEOF
16674if { (ac_try="$ac_cpp conftest.$ac_ext"
16675case "(($ac_try" in
16676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16677 *) ac_try_echo=$ac_try;;
16678esac
16679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16680 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16681 ac_status=$?
16682 grep -v '^ *+' conftest.er1 >conftest.err
16683 rm -f conftest.er1
16684 cat conftest.err >&5
16685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16686 (exit $ac_status); } >/dev/null; then
16687 if test -s conftest.err; then
16688 ac_cpp_err=$ac_c_preproc_warn_flag
16689 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16690 else
16691 ac_cpp_err=
16692 fi
16693else
16694 ac_cpp_err=yes
16695fi
16696if test -z "$ac_cpp_err"; then
16697 ac_header_preproc=yes
16698else
16699 echo "$as_me: failed program was:" >&5
16700sed 's/^/| /' conftest.$ac_ext >&5
16701
16702 ac_header_preproc=no
16703fi
16704
16705rm -f conftest.err conftest.$ac_ext
16706{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16707echo "${ECHO_T}$ac_header_preproc" >&6; }
16708
16709# So? What about this header?
16710case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16711 yes:no: )
16712 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16713echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16715echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16716 ac_header_preproc=yes
16717 ;;
16718 no:yes:* )
16719 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16720echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16721 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16722echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16723 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16724echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16725 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16726echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16728echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16729 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16730echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16731 ( cat <<\_ASBOX
16732## ----------------------------------- ##
16733## Report this to llvmbugs@cs.uiuc.edu ##
16734## ----------------------------------- ##
16735_ASBOX
16736 ) | sed "s/^/$as_me: WARNING: /" >&2
16737 ;;
16738esac
16739{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16740echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16741if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16742 echo $ECHO_N "(cached) $ECHO_C" >&6
16743else
16744 eval "$as_ac_Header=\$ac_header_preproc"
16745fi
16746ac_res=`eval echo '${'$as_ac_Header'}'`
16747 { echo "$as_me:$LINENO: result: $ac_res" >&5
16748echo "${ECHO_T}$ac_res" >&6; }
16749
16750fi
16751if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000016752 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016753#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000016754_ACEOF
16755 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000016756
16757else
16758 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000016759
16760fi
16761
Reid Spencerbe3e4192007-08-17 05:45:26 +000016762done
Reid Spencer1000b732006-12-01 00:37:14 +000016763
16764else
16765 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000016766
16767fi
Reid Spencer8085cff2005-01-16 02:58:39 +000016768
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016769if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016770
16771
16772for ac_header in ffi.h ffi/ffi.h
16773do
16774as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16775if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16776 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16777echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16778if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16779 echo $ECHO_N "(cached) $ECHO_C" >&6
16780fi
16781ac_res=`eval echo '${'$as_ac_Header'}'`
16782 { echo "$as_me:$LINENO: result: $ac_res" >&5
16783echo "${ECHO_T}$ac_res" >&6; }
16784else
16785 # Is the header compilable?
16786{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16787echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16788cat >conftest.$ac_ext <<_ACEOF
16789/* confdefs.h. */
16790_ACEOF
16791cat confdefs.h >>conftest.$ac_ext
16792cat >>conftest.$ac_ext <<_ACEOF
16793/* end confdefs.h. */
16794$ac_includes_default
16795#include <$ac_header>
16796_ACEOF
16797rm -f conftest.$ac_objext
16798if { (ac_try="$ac_compile"
16799case "(($ac_try" in
16800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16801 *) ac_try_echo=$ac_try;;
16802esac
16803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16804 (eval "$ac_compile") 2>conftest.er1
16805 ac_status=$?
16806 grep -v '^ *+' conftest.er1 >conftest.err
16807 rm -f conftest.er1
16808 cat conftest.err >&5
16809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810 (exit $ac_status); } &&
16811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16812 { (case "(($ac_try" in
16813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16814 *) ac_try_echo=$ac_try;;
16815esac
16816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16817 (eval "$ac_try") 2>&5
16818 ac_status=$?
16819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820 (exit $ac_status); }; } &&
16821 { ac_try='test -s conftest.$ac_objext'
16822 { (case "(($ac_try" in
16823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16824 *) ac_try_echo=$ac_try;;
16825esac
16826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16827 (eval "$ac_try") 2>&5
16828 ac_status=$?
16829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16830 (exit $ac_status); }; }; then
16831 ac_header_compiler=yes
16832else
16833 echo "$as_me: failed program was:" >&5
16834sed 's/^/| /' conftest.$ac_ext >&5
16835
16836 ac_header_compiler=no
16837fi
16838
16839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16840{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16841echo "${ECHO_T}$ac_header_compiler" >&6; }
16842
16843# Is the header present?
16844{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16845echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16846cat >conftest.$ac_ext <<_ACEOF
16847/* confdefs.h. */
16848_ACEOF
16849cat confdefs.h >>conftest.$ac_ext
16850cat >>conftest.$ac_ext <<_ACEOF
16851/* end confdefs.h. */
16852#include <$ac_header>
16853_ACEOF
16854if { (ac_try="$ac_cpp conftest.$ac_ext"
16855case "(($ac_try" in
16856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16857 *) ac_try_echo=$ac_try;;
16858esac
16859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16860 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16861 ac_status=$?
16862 grep -v '^ *+' conftest.er1 >conftest.err
16863 rm -f conftest.er1
16864 cat conftest.err >&5
16865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866 (exit $ac_status); } >/dev/null; then
16867 if test -s conftest.err; then
16868 ac_cpp_err=$ac_c_preproc_warn_flag
16869 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16870 else
16871 ac_cpp_err=
16872 fi
16873else
16874 ac_cpp_err=yes
16875fi
16876if test -z "$ac_cpp_err"; then
16877 ac_header_preproc=yes
16878else
16879 echo "$as_me: failed program was:" >&5
16880sed 's/^/| /' conftest.$ac_ext >&5
16881
16882 ac_header_preproc=no
16883fi
16884
16885rm -f conftest.err conftest.$ac_ext
16886{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16887echo "${ECHO_T}$ac_header_preproc" >&6; }
16888
16889# So? What about this header?
16890case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16891 yes:no: )
16892 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16893echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16895echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16896 ac_header_preproc=yes
16897 ;;
16898 no:yes:* )
16899 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16900echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16901 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16902echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16903 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16904echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16905 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16906echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16908echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16909 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16910echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16911 ( cat <<\_ASBOX
16912## ----------------------------------- ##
16913## Report this to llvmbugs@cs.uiuc.edu ##
16914## ----------------------------------- ##
16915_ASBOX
16916 ) | sed "s/^/$as_me: WARNING: /" >&2
16917 ;;
16918esac
16919{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16920echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16921if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16922 echo $ECHO_N "(cached) $ECHO_C" >&6
16923else
16924 eval "$as_ac_Header=\$ac_header_preproc"
16925fi
16926ac_res=`eval echo '${'$as_ac_Header'}'`
16927 { echo "$as_me:$LINENO: result: $ac_res" >&5
16928echo "${ECHO_T}$ac_res" >&6; }
16929
16930fi
16931if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016932 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016933#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016934_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016935
16936fi
16937
16938done
16939
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016940fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016941
Nick Lewycky2ab1d862009-01-20 00:52:24 +000016942
Eric Christopher654dee42010-06-22 21:01:04 +000016943for ac_header in CrashReporterClient.h
16944do
16945as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16946if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16947 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16948echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16949if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16950 echo $ECHO_N "(cached) $ECHO_C" >&6
16951fi
16952ac_res=`eval echo '${'$as_ac_Header'}'`
16953 { echo "$as_me:$LINENO: result: $ac_res" >&5
16954echo "${ECHO_T}$ac_res" >&6; }
16955else
16956 # Is the header compilable?
16957{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16958echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16959cat >conftest.$ac_ext <<_ACEOF
16960/* confdefs.h. */
16961_ACEOF
16962cat confdefs.h >>conftest.$ac_ext
16963cat >>conftest.$ac_ext <<_ACEOF
16964/* end confdefs.h. */
16965$ac_includes_default
16966#include <$ac_header>
16967_ACEOF
16968rm -f conftest.$ac_objext
16969if { (ac_try="$ac_compile"
16970case "(($ac_try" in
16971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16972 *) ac_try_echo=$ac_try;;
16973esac
16974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16975 (eval "$ac_compile") 2>conftest.er1
16976 ac_status=$?
16977 grep -v '^ *+' conftest.er1 >conftest.err
16978 rm -f conftest.er1
16979 cat conftest.err >&5
16980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16981 (exit $ac_status); } &&
16982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16983 { (case "(($ac_try" in
16984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16985 *) ac_try_echo=$ac_try;;
16986esac
16987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16988 (eval "$ac_try") 2>&5
16989 ac_status=$?
16990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16991 (exit $ac_status); }; } &&
16992 { ac_try='test -s conftest.$ac_objext'
16993 { (case "(($ac_try" in
16994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16995 *) ac_try_echo=$ac_try;;
16996esac
16997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16998 (eval "$ac_try") 2>&5
16999 ac_status=$?
17000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17001 (exit $ac_status); }; }; then
17002 ac_header_compiler=yes
17003else
17004 echo "$as_me: failed program was:" >&5
17005sed 's/^/| /' conftest.$ac_ext >&5
17006
17007 ac_header_compiler=no
17008fi
17009
17010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17011{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17012echo "${ECHO_T}$ac_header_compiler" >&6; }
17013
17014# Is the header present?
17015{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17016echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17017cat >conftest.$ac_ext <<_ACEOF
17018/* confdefs.h. */
17019_ACEOF
17020cat confdefs.h >>conftest.$ac_ext
17021cat >>conftest.$ac_ext <<_ACEOF
17022/* end confdefs.h. */
17023#include <$ac_header>
17024_ACEOF
17025if { (ac_try="$ac_cpp conftest.$ac_ext"
17026case "(($ac_try" in
17027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17028 *) ac_try_echo=$ac_try;;
17029esac
17030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17031 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17032 ac_status=$?
17033 grep -v '^ *+' conftest.er1 >conftest.err
17034 rm -f conftest.er1
17035 cat conftest.err >&5
17036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037 (exit $ac_status); } >/dev/null; then
17038 if test -s conftest.err; then
17039 ac_cpp_err=$ac_c_preproc_warn_flag
17040 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17041 else
17042 ac_cpp_err=
17043 fi
17044else
17045 ac_cpp_err=yes
17046fi
17047if test -z "$ac_cpp_err"; then
17048 ac_header_preproc=yes
17049else
17050 echo "$as_me: failed program was:" >&5
17051sed 's/^/| /' conftest.$ac_ext >&5
17052
17053 ac_header_preproc=no
17054fi
17055
17056rm -f conftest.err conftest.$ac_ext
17057{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17058echo "${ECHO_T}$ac_header_preproc" >&6; }
17059
17060# So? What about this header?
17061case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17062 yes:no: )
17063 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17064echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17066echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17067 ac_header_preproc=yes
17068 ;;
17069 no:yes:* )
17070 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17071echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17072 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17073echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17074 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17075echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17076 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17077echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17079echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17080 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17081echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17082 ( cat <<\_ASBOX
17083## ----------------------------------- ##
17084## Report this to llvmbugs@cs.uiuc.edu ##
17085## ----------------------------------- ##
17086_ASBOX
17087 ) | sed "s/^/$as_me: WARNING: /" >&2
17088 ;;
17089esac
17090{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17091echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17092if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17093 echo $ECHO_N "(cached) $ECHO_C" >&6
17094else
17095 eval "$as_ac_Header=\$ac_header_preproc"
17096fi
17097ac_res=`eval echo '${'$as_ac_Header'}'`
17098 { echo "$as_me:$LINENO: result: $ac_res" >&5
17099echo "${ECHO_T}$ac_res" >&6; }
17100
17101fi
17102if test `eval echo '${'$as_ac_Header'}'` = yes; then
17103 cat >>confdefs.h <<_ACEOF
17104#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17105_ACEOF
17106
17107fi
17108
17109done
17110
17111
17112
Reid Spencer8085cff2005-01-16 02:58:39 +000017113
Torok Edwin871384f2010-01-26 08:50:50 +000017114
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017115 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17116echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17117if test "${ac_cv_huge_val_sanity+set}" = set; then
17118 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000017119else
17120
Reid Spencer6a7c0b72006-11-03 19:49:16 +000017121 ac_ext=cpp
17122ac_cpp='$CXXCPP $CPPFLAGS'
17123ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17124ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17125ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000017126
Eric Christopherc7718502010-03-02 05:06:54 +000017127 ac_save_CXXFLAGS=$CXXFLAGS
Reid Spencer6a7c0b72006-11-03 19:49:16 +000017128 CXXFLAGS=-pedantic
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017129 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000017130 ac_cv_huge_val_sanity=yes
17131else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017132 cat >conftest.$ac_ext <<_ACEOF
17133/* confdefs.h. */
17134_ACEOF
17135cat confdefs.h >>conftest.$ac_ext
17136cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000017137/* end confdefs.h. */
17138#include <math.h>
17139int
17140main ()
17141{
17142double x = HUGE_VAL; return x != x;
17143 ;
17144 return 0;
17145}
17146_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017147rm -f conftest$ac_exeext
17148if { (ac_try="$ac_link"
17149case "(($ac_try" in
17150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17151 *) ac_try_echo=$ac_try;;
17152esac
17153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17154 (eval "$ac_link") 2>&5
17155 ac_status=$?
17156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17158 { (case "(($ac_try" in
17159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17160 *) ac_try_echo=$ac_try;;
17161esac
17162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17163 (eval "$ac_try") 2>&5
17164 ac_status=$?
17165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000017167 ac_cv_huge_val_sanity=yes
17168else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017169 echo "$as_me: program exited with status $ac_status" >&5
17170echo "$as_me: failed program was:" >&5
17171sed 's/^/| /' conftest.$ac_ext >&5
17172
17173( exit $ac_status )
17174ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000017175fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017176rm -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 +000017177fi
17178
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017179
Eric Christopherc7718502010-03-02 05:06:54 +000017180 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000017181 ac_ext=c
17182ac_cpp='$CPP $CPPFLAGS'
17183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17185ac_compiler_gnu=$ac_cv_c_compiler_gnu
17186
17187
17188fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017189{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17190echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000017191 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17192
17193
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017194{ echo "$as_me:$LINENO: checking for pid_t" >&5
17195echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17196if test "${ac_cv_type_pid_t+set}" = set; then
17197 echo $ECHO_N "(cached) $ECHO_C" >&6
17198else
17199 cat >conftest.$ac_ext <<_ACEOF
17200/* confdefs.h. */
17201_ACEOF
17202cat confdefs.h >>conftest.$ac_ext
17203cat >>conftest.$ac_ext <<_ACEOF
17204/* end confdefs.h. */
17205$ac_includes_default
17206typedef pid_t ac__type_new_;
17207int
17208main ()
17209{
17210if ((ac__type_new_ *) 0)
17211 return 0;
17212if (sizeof (ac__type_new_))
17213 return 0;
17214 ;
17215 return 0;
17216}
17217_ACEOF
17218rm -f conftest.$ac_objext
17219if { (ac_try="$ac_compile"
17220case "(($ac_try" in
17221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17222 *) ac_try_echo=$ac_try;;
17223esac
17224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17225 (eval "$ac_compile") 2>conftest.er1
17226 ac_status=$?
17227 grep -v '^ *+' conftest.er1 >conftest.err
17228 rm -f conftest.er1
17229 cat conftest.err >&5
17230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231 (exit $ac_status); } &&
17232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17233 { (case "(($ac_try" in
17234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17235 *) ac_try_echo=$ac_try;;
17236esac
17237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17238 (eval "$ac_try") 2>&5
17239 ac_status=$?
17240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241 (exit $ac_status); }; } &&
17242 { ac_try='test -s conftest.$ac_objext'
17243 { (case "(($ac_try" in
17244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17245 *) ac_try_echo=$ac_try;;
17246esac
17247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17248 (eval "$ac_try") 2>&5
17249 ac_status=$?
17250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251 (exit $ac_status); }; }; then
17252 ac_cv_type_pid_t=yes
17253else
17254 echo "$as_me: failed program was:" >&5
17255sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017256
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017257 ac_cv_type_pid_t=no
17258fi
17259
17260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17261fi
17262{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17263echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17264if test $ac_cv_type_pid_t = yes; then
17265 :
John Criswell7a73b802003-06-30 21:59:07 +000017266else
17267
17268cat >>confdefs.h <<_ACEOF
17269#define pid_t int
17270_ACEOF
17271
17272fi
17273
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017274{ echo "$as_me:$LINENO: checking for size_t" >&5
17275echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17276if test "${ac_cv_type_size_t+set}" = set; then
17277 echo $ECHO_N "(cached) $ECHO_C" >&6
17278else
17279 cat >conftest.$ac_ext <<_ACEOF
17280/* confdefs.h. */
17281_ACEOF
17282cat confdefs.h >>conftest.$ac_ext
17283cat >>conftest.$ac_ext <<_ACEOF
17284/* end confdefs.h. */
17285$ac_includes_default
17286typedef size_t ac__type_new_;
17287int
17288main ()
17289{
17290if ((ac__type_new_ *) 0)
17291 return 0;
17292if (sizeof (ac__type_new_))
17293 return 0;
17294 ;
17295 return 0;
17296}
17297_ACEOF
17298rm -f conftest.$ac_objext
17299if { (ac_try="$ac_compile"
17300case "(($ac_try" in
17301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17302 *) ac_try_echo=$ac_try;;
17303esac
17304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17305 (eval "$ac_compile") 2>conftest.er1
17306 ac_status=$?
17307 grep -v '^ *+' conftest.er1 >conftest.err
17308 rm -f conftest.er1
17309 cat conftest.err >&5
17310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311 (exit $ac_status); } &&
17312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17313 { (case "(($ac_try" in
17314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17315 *) ac_try_echo=$ac_try;;
17316esac
17317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17318 (eval "$ac_try") 2>&5
17319 ac_status=$?
17320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321 (exit $ac_status); }; } &&
17322 { ac_try='test -s conftest.$ac_objext'
17323 { (case "(($ac_try" in
17324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17325 *) ac_try_echo=$ac_try;;
17326esac
17327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17328 (eval "$ac_try") 2>&5
17329 ac_status=$?
17330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331 (exit $ac_status); }; }; then
17332 ac_cv_type_size_t=yes
17333else
17334 echo "$as_me: failed program was:" >&5
17335sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017336
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017337 ac_cv_type_size_t=no
17338fi
17339
17340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17341fi
17342{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17343echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17344if test $ac_cv_type_size_t = yes; then
17345 :
John Criswell7a73b802003-06-30 21:59:07 +000017346else
17347
17348cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000017349#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000017350_ACEOF
17351
17352fi
17353
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017354
17355cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000017356#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017357_ACEOF
17358
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017359{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17360echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17361if test "${ac_cv_struct_tm+set}" = set; then
17362 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017363else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017364 cat >conftest.$ac_ext <<_ACEOF
17365/* confdefs.h. */
17366_ACEOF
17367cat confdefs.h >>conftest.$ac_ext
17368cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017369/* end confdefs.h. */
17370#include <sys/types.h>
17371#include <time.h>
17372
17373int
17374main ()
17375{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017376struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017377 ;
17378 return 0;
17379}
17380_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017381rm -f conftest.$ac_objext
17382if { (ac_try="$ac_compile"
17383case "(($ac_try" in
17384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17385 *) ac_try_echo=$ac_try;;
17386esac
17387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17388 (eval "$ac_compile") 2>conftest.er1
17389 ac_status=$?
17390 grep -v '^ *+' conftest.er1 >conftest.err
17391 rm -f conftest.er1
17392 cat conftest.err >&5
17393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394 (exit $ac_status); } &&
17395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17396 { (case "(($ac_try" in
17397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17398 *) ac_try_echo=$ac_try;;
17399esac
17400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17401 (eval "$ac_try") 2>&5
17402 ac_status=$?
17403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404 (exit $ac_status); }; } &&
17405 { ac_try='test -s conftest.$ac_objext'
17406 { (case "(($ac_try" in
17407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17408 *) ac_try_echo=$ac_try;;
17409esac
17410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17411 (eval "$ac_try") 2>&5
17412 ac_status=$?
17413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017415 ac_cv_struct_tm=time.h
17416else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017417 echo "$as_me: failed program was:" >&5
17418sed 's/^/| /' conftest.$ac_ext >&5
17419
17420 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017421fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017422
Reid Spencera773bd52006-08-04 18:18:08 +000017423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017424fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017425{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17426echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017427if test $ac_cv_struct_tm = sys/time.h; then
17428
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017429cat >>confdefs.h <<\_ACEOF
17430#define TM_IN_SYS_TIME 1
17431_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017432
17433fi
17434
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017435{ echo "$as_me:$LINENO: checking for int64_t" >&5
17436echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17437if test "${ac_cv_type_int64_t+set}" = set; then
17438 echo $ECHO_N "(cached) $ECHO_C" >&6
17439else
17440 cat >conftest.$ac_ext <<_ACEOF
17441/* confdefs.h. */
17442_ACEOF
17443cat confdefs.h >>conftest.$ac_ext
17444cat >>conftest.$ac_ext <<_ACEOF
17445/* end confdefs.h. */
17446$ac_includes_default
17447typedef int64_t ac__type_new_;
17448int
17449main ()
17450{
17451if ((ac__type_new_ *) 0)
17452 return 0;
17453if (sizeof (ac__type_new_))
17454 return 0;
17455 ;
17456 return 0;
17457}
17458_ACEOF
17459rm -f conftest.$ac_objext
17460if { (ac_try="$ac_compile"
17461case "(($ac_try" in
17462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17463 *) ac_try_echo=$ac_try;;
17464esac
17465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17466 (eval "$ac_compile") 2>conftest.er1
17467 ac_status=$?
17468 grep -v '^ *+' conftest.er1 >conftest.err
17469 rm -f conftest.er1
17470 cat conftest.err >&5
17471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472 (exit $ac_status); } &&
17473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17474 { (case "(($ac_try" in
17475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17476 *) ac_try_echo=$ac_try;;
17477esac
17478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17479 (eval "$ac_try") 2>&5
17480 ac_status=$?
17481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482 (exit $ac_status); }; } &&
17483 { ac_try='test -s conftest.$ac_objext'
17484 { (case "(($ac_try" in
17485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17486 *) ac_try_echo=$ac_try;;
17487esac
17488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17489 (eval "$ac_try") 2>&5
17490 ac_status=$?
17491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492 (exit $ac_status); }; }; then
17493 ac_cv_type_int64_t=yes
17494else
17495 echo "$as_me: failed program was:" >&5
17496sed 's/^/| /' conftest.$ac_ext >&5
17497
17498 ac_cv_type_int64_t=no
17499fi
17500
17501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17502fi
17503{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17504echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17505if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017506
17507cat >>confdefs.h <<_ACEOF
17508#define HAVE_INT64_T 1
17509_ACEOF
17510
17511
17512else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017513 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17514echo "$as_me: error: Type int64_t required but not found" >&2;}
17515 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000017516fi
17517
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017518{ echo "$as_me:$LINENO: checking for uint64_t" >&5
17519echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17520if test "${ac_cv_type_uint64_t+set}" = set; then
17521 echo $ECHO_N "(cached) $ECHO_C" >&6
17522else
17523 cat >conftest.$ac_ext <<_ACEOF
17524/* confdefs.h. */
17525_ACEOF
17526cat confdefs.h >>conftest.$ac_ext
17527cat >>conftest.$ac_ext <<_ACEOF
17528/* end confdefs.h. */
17529$ac_includes_default
17530typedef uint64_t ac__type_new_;
17531int
17532main ()
17533{
17534if ((ac__type_new_ *) 0)
17535 return 0;
17536if (sizeof (ac__type_new_))
17537 return 0;
17538 ;
17539 return 0;
17540}
17541_ACEOF
17542rm -f conftest.$ac_objext
17543if { (ac_try="$ac_compile"
17544case "(($ac_try" in
17545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17546 *) ac_try_echo=$ac_try;;
17547esac
17548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17549 (eval "$ac_compile") 2>conftest.er1
17550 ac_status=$?
17551 grep -v '^ *+' conftest.er1 >conftest.err
17552 rm -f conftest.er1
17553 cat conftest.err >&5
17554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555 (exit $ac_status); } &&
17556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17557 { (case "(($ac_try" in
17558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17559 *) ac_try_echo=$ac_try;;
17560esac
17561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17562 (eval "$ac_try") 2>&5
17563 ac_status=$?
17564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17565 (exit $ac_status); }; } &&
17566 { ac_try='test -s conftest.$ac_objext'
17567 { (case "(($ac_try" in
17568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17569 *) ac_try_echo=$ac_try;;
17570esac
17571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17572 (eval "$ac_try") 2>&5
17573 ac_status=$?
17574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575 (exit $ac_status); }; }; then
17576 ac_cv_type_uint64_t=yes
17577else
17578 echo "$as_me: failed program was:" >&5
17579sed 's/^/| /' conftest.$ac_ext >&5
17580
17581 ac_cv_type_uint64_t=no
17582fi
17583
17584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17585fi
17586{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17587echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17588if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017589
17590cat >>confdefs.h <<_ACEOF
17591#define HAVE_UINT64_T 1
17592_ACEOF
17593
17594
17595else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017596 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17597echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17598if test "${ac_cv_type_u_int64_t+set}" = set; then
17599 echo $ECHO_N "(cached) $ECHO_C" >&6
17600else
17601 cat >conftest.$ac_ext <<_ACEOF
17602/* confdefs.h. */
17603_ACEOF
17604cat confdefs.h >>conftest.$ac_ext
17605cat >>conftest.$ac_ext <<_ACEOF
17606/* end confdefs.h. */
17607$ac_includes_default
17608typedef u_int64_t ac__type_new_;
17609int
17610main ()
17611{
17612if ((ac__type_new_ *) 0)
17613 return 0;
17614if (sizeof (ac__type_new_))
17615 return 0;
17616 ;
17617 return 0;
17618}
17619_ACEOF
17620rm -f conftest.$ac_objext
17621if { (ac_try="$ac_compile"
17622case "(($ac_try" in
17623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17624 *) ac_try_echo=$ac_try;;
17625esac
17626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17627 (eval "$ac_compile") 2>conftest.er1
17628 ac_status=$?
17629 grep -v '^ *+' conftest.er1 >conftest.err
17630 rm -f conftest.er1
17631 cat conftest.err >&5
17632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633 (exit $ac_status); } &&
17634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17635 { (case "(($ac_try" in
17636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17637 *) ac_try_echo=$ac_try;;
17638esac
17639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17640 (eval "$ac_try") 2>&5
17641 ac_status=$?
17642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643 (exit $ac_status); }; } &&
17644 { ac_try='test -s conftest.$ac_objext'
17645 { (case "(($ac_try" in
17646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17647 *) ac_try_echo=$ac_try;;
17648esac
17649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17650 (eval "$ac_try") 2>&5
17651 ac_status=$?
17652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653 (exit $ac_status); }; }; then
17654 ac_cv_type_u_int64_t=yes
17655else
17656 echo "$as_me: failed program was:" >&5
17657sed 's/^/| /' conftest.$ac_ext >&5
17658
17659 ac_cv_type_u_int64_t=no
17660fi
17661
17662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17663fi
17664{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17665echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17666if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000017667
17668cat >>confdefs.h <<_ACEOF
17669#define HAVE_U_INT64_T 1
17670_ACEOF
17671
17672
Misha Brukmanceca9042004-09-02 23:02:30 +000017673else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017674 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17675echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17676 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000017677fi
17678
John Criswell679ff312004-09-02 18:44:44 +000017679fi
17680
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017681
17682
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017683
17684
17685
17686
17687
17688
17689
Reid Spencerdf3be822006-01-23 08:15:53 +000017690for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017691do
17692as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17693{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17694echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17695if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17696 echo $ECHO_N "(cached) $ECHO_C" >&6
17697else
17698 cat >conftest.$ac_ext <<_ACEOF
17699/* confdefs.h. */
17700_ACEOF
17701cat confdefs.h >>conftest.$ac_ext
17702cat >>conftest.$ac_ext <<_ACEOF
17703/* end confdefs.h. */
17704/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17705 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17706#define $ac_func innocuous_$ac_func
17707
17708/* System header to define __stub macros and hopefully few prototypes,
17709 which can conflict with char $ac_func (); below.
17710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17711 <limits.h> exists even on freestanding compilers. */
17712
17713#ifdef __STDC__
17714# include <limits.h>
17715#else
17716# include <assert.h>
17717#endif
17718
17719#undef $ac_func
17720
17721/* Override any GCC internal prototype to avoid an error.
17722 Use char because int might match the return type of a GCC
17723 builtin and then its argument prototype would still apply. */
17724#ifdef __cplusplus
17725extern "C"
17726#endif
17727char $ac_func ();
17728/* The GNU C library defines this for functions which it implements
17729 to always fail with ENOSYS. Some functions are actually named
17730 something starting with __ and the normal name is an alias. */
17731#if defined __stub_$ac_func || defined __stub___$ac_func
17732choke me
17733#endif
17734
17735int
17736main ()
17737{
17738return $ac_func ();
17739 ;
17740 return 0;
17741}
17742_ACEOF
17743rm -f conftest.$ac_objext conftest$ac_exeext
17744if { (ac_try="$ac_link"
17745case "(($ac_try" in
17746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17747 *) ac_try_echo=$ac_try;;
17748esac
17749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17750 (eval "$ac_link") 2>conftest.er1
17751 ac_status=$?
17752 grep -v '^ *+' conftest.er1 >conftest.err
17753 rm -f conftest.er1
17754 cat conftest.err >&5
17755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756 (exit $ac_status); } &&
17757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17758 { (case "(($ac_try" in
17759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17760 *) ac_try_echo=$ac_try;;
17761esac
17762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17763 (eval "$ac_try") 2>&5
17764 ac_status=$?
17765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766 (exit $ac_status); }; } &&
17767 { ac_try='test -s conftest$ac_exeext'
17768 { (case "(($ac_try" in
17769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17770 *) ac_try_echo=$ac_try;;
17771esac
17772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17773 (eval "$ac_try") 2>&5
17774 ac_status=$?
17775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776 (exit $ac_status); }; }; then
17777 eval "$as_ac_var=yes"
17778else
17779 echo "$as_me: failed program was:" >&5
17780sed 's/^/| /' conftest.$ac_ext >&5
17781
17782 eval "$as_ac_var=no"
17783fi
17784
17785rm -f core conftest.err conftest.$ac_objext \
17786 conftest$ac_exeext conftest.$ac_ext
17787fi
17788ac_res=`eval echo '${'$as_ac_var'}'`
17789 { echo "$as_me:$LINENO: result: $ac_res" >&5
17790echo "${ECHO_T}$ac_res" >&6; }
17791if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017792 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017793#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017794_ACEOF
17795
17796fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017797done
John Criswell7a73b802003-06-30 21:59:07 +000017798
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017799
17800
17801
17802
Reid Spencer96cf5872007-07-13 10:05:30 +000017803for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017804do
17805as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17806{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17807echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17808if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17809 echo $ECHO_N "(cached) $ECHO_C" >&6
17810else
17811 cat >conftest.$ac_ext <<_ACEOF
17812/* confdefs.h. */
17813_ACEOF
17814cat confdefs.h >>conftest.$ac_ext
17815cat >>conftest.$ac_ext <<_ACEOF
17816/* end confdefs.h. */
17817/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17819#define $ac_func innocuous_$ac_func
17820
17821/* System header to define __stub macros and hopefully few prototypes,
17822 which can conflict with char $ac_func (); below.
17823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17824 <limits.h> exists even on freestanding compilers. */
17825
17826#ifdef __STDC__
17827# include <limits.h>
17828#else
17829# include <assert.h>
17830#endif
17831
17832#undef $ac_func
17833
17834/* Override any GCC internal prototype to avoid an error.
17835 Use char because int might match the return type of a GCC
17836 builtin and then its argument prototype would still apply. */
17837#ifdef __cplusplus
17838extern "C"
17839#endif
17840char $ac_func ();
17841/* The GNU C library defines this for functions which it implements
17842 to always fail with ENOSYS. Some functions are actually named
17843 something starting with __ and the normal name is an alias. */
17844#if defined __stub_$ac_func || defined __stub___$ac_func
17845choke me
17846#endif
17847
17848int
17849main ()
17850{
17851return $ac_func ();
17852 ;
17853 return 0;
17854}
17855_ACEOF
17856rm -f conftest.$ac_objext conftest$ac_exeext
17857if { (ac_try="$ac_link"
17858case "(($ac_try" in
17859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17860 *) ac_try_echo=$ac_try;;
17861esac
17862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17863 (eval "$ac_link") 2>conftest.er1
17864 ac_status=$?
17865 grep -v '^ *+' conftest.er1 >conftest.err
17866 rm -f conftest.er1
17867 cat conftest.err >&5
17868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869 (exit $ac_status); } &&
17870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17871 { (case "(($ac_try" in
17872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17873 *) ac_try_echo=$ac_try;;
17874esac
17875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17876 (eval "$ac_try") 2>&5
17877 ac_status=$?
17878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17879 (exit $ac_status); }; } &&
17880 { ac_try='test -s conftest$ac_exeext'
17881 { (case "(($ac_try" in
17882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17883 *) ac_try_echo=$ac_try;;
17884esac
17885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17886 (eval "$ac_try") 2>&5
17887 ac_status=$?
17888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889 (exit $ac_status); }; }; then
17890 eval "$as_ac_var=yes"
17891else
17892 echo "$as_me: failed program was:" >&5
17893sed 's/^/| /' conftest.$ac_ext >&5
17894
17895 eval "$as_ac_var=no"
17896fi
17897
17898rm -f core conftest.err conftest.$ac_objext \
17899 conftest$ac_exeext conftest.$ac_ext
17900fi
17901ac_res=`eval echo '${'$as_ac_var'}'`
17902 { echo "$as_me:$LINENO: result: $ac_res" >&5
17903echo "${ECHO_T}$ac_res" >&6; }
17904if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000017905 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017906#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000017907_ACEOF
17908
17909fi
17910done
17911
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017912
17913
17914
17915
17916
Reid Spencerb90645c2007-02-16 19:17:20 +000017917for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017918do
17919as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17920{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17921echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17922if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17923 echo $ECHO_N "(cached) $ECHO_C" >&6
17924else
17925 cat >conftest.$ac_ext <<_ACEOF
17926/* confdefs.h. */
17927_ACEOF
17928cat confdefs.h >>conftest.$ac_ext
17929cat >>conftest.$ac_ext <<_ACEOF
17930/* end confdefs.h. */
17931/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17933#define $ac_func innocuous_$ac_func
17934
17935/* System header to define __stub macros and hopefully few prototypes,
17936 which can conflict with char $ac_func (); below.
17937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17938 <limits.h> exists even on freestanding compilers. */
17939
17940#ifdef __STDC__
17941# include <limits.h>
17942#else
17943# include <assert.h>
17944#endif
17945
17946#undef $ac_func
17947
17948/* Override any GCC internal prototype to avoid an error.
17949 Use char because int might match the return type of a GCC
17950 builtin and then its argument prototype would still apply. */
17951#ifdef __cplusplus
17952extern "C"
17953#endif
17954char $ac_func ();
17955/* The GNU C library defines this for functions which it implements
17956 to always fail with ENOSYS. Some functions are actually named
17957 something starting with __ and the normal name is an alias. */
17958#if defined __stub_$ac_func || defined __stub___$ac_func
17959choke me
17960#endif
17961
17962int
17963main ()
17964{
17965return $ac_func ();
17966 ;
17967 return 0;
17968}
17969_ACEOF
17970rm -f conftest.$ac_objext conftest$ac_exeext
17971if { (ac_try="$ac_link"
17972case "(($ac_try" in
17973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17974 *) ac_try_echo=$ac_try;;
17975esac
17976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17977 (eval "$ac_link") 2>conftest.er1
17978 ac_status=$?
17979 grep -v '^ *+' conftest.er1 >conftest.err
17980 rm -f conftest.er1
17981 cat conftest.err >&5
17982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17983 (exit $ac_status); } &&
17984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17985 { (case "(($ac_try" in
17986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17987 *) ac_try_echo=$ac_try;;
17988esac
17989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17990 (eval "$ac_try") 2>&5
17991 ac_status=$?
17992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993 (exit $ac_status); }; } &&
17994 { ac_try='test -s conftest$ac_exeext'
17995 { (case "(($ac_try" in
17996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17997 *) ac_try_echo=$ac_try;;
17998esac
17999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18000 (eval "$ac_try") 2>&5
18001 ac_status=$?
18002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18003 (exit $ac_status); }; }; then
18004 eval "$as_ac_var=yes"
18005else
18006 echo "$as_me: failed program was:" >&5
18007sed 's/^/| /' conftest.$ac_ext >&5
18008
18009 eval "$as_ac_var=no"
18010fi
18011
18012rm -f core conftest.err conftest.$ac_objext \
18013 conftest$ac_exeext conftest.$ac_ext
18014fi
18015ac_res=`eval echo '${'$as_ac_var'}'`
18016 { echo "$as_me:$LINENO: result: $ac_res" >&5
18017echo "${ECHO_T}$ac_res" >&6; }
18018if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000018019 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018020#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000018021_ACEOF
18022
18023fi
18024done
18025
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018026
18027
18028
Reid Spencerb90645c2007-02-16 19:17:20 +000018029for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018030do
18031as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18032{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18033echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18034if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18035 echo $ECHO_N "(cached) $ECHO_C" >&6
18036else
18037 cat >conftest.$ac_ext <<_ACEOF
18038/* confdefs.h. */
18039_ACEOF
18040cat confdefs.h >>conftest.$ac_ext
18041cat >>conftest.$ac_ext <<_ACEOF
18042/* end confdefs.h. */
18043/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18045#define $ac_func innocuous_$ac_func
18046
18047/* System header to define __stub macros and hopefully few prototypes,
18048 which can conflict with char $ac_func (); below.
18049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18050 <limits.h> exists even on freestanding compilers. */
18051
18052#ifdef __STDC__
18053# include <limits.h>
18054#else
18055# include <assert.h>
18056#endif
18057
18058#undef $ac_func
18059
18060/* Override any GCC internal prototype to avoid an error.
18061 Use char because int might match the return type of a GCC
18062 builtin and then its argument prototype would still apply. */
18063#ifdef __cplusplus
18064extern "C"
18065#endif
18066char $ac_func ();
18067/* The GNU C library defines this for functions which it implements
18068 to always fail with ENOSYS. Some functions are actually named
18069 something starting with __ and the normal name is an alias. */
18070#if defined __stub_$ac_func || defined __stub___$ac_func
18071choke me
18072#endif
18073
18074int
18075main ()
18076{
18077return $ac_func ();
18078 ;
18079 return 0;
18080}
18081_ACEOF
18082rm -f conftest.$ac_objext conftest$ac_exeext
18083if { (ac_try="$ac_link"
18084case "(($ac_try" in
18085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18086 *) ac_try_echo=$ac_try;;
18087esac
18088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18089 (eval "$ac_link") 2>conftest.er1
18090 ac_status=$?
18091 grep -v '^ *+' conftest.er1 >conftest.err
18092 rm -f conftest.er1
18093 cat conftest.err >&5
18094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095 (exit $ac_status); } &&
18096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18097 { (case "(($ac_try" in
18098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18099 *) ac_try_echo=$ac_try;;
18100esac
18101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18102 (eval "$ac_try") 2>&5
18103 ac_status=$?
18104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18105 (exit $ac_status); }; } &&
18106 { ac_try='test -s conftest$ac_exeext'
18107 { (case "(($ac_try" in
18108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18109 *) ac_try_echo=$ac_try;;
18110esac
18111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18112 (eval "$ac_try") 2>&5
18113 ac_status=$?
18114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115 (exit $ac_status); }; }; then
18116 eval "$as_ac_var=yes"
18117else
18118 echo "$as_me: failed program was:" >&5
18119sed 's/^/| /' conftest.$ac_ext >&5
18120
18121 eval "$as_ac_var=no"
18122fi
18123
18124rm -f core conftest.err conftest.$ac_objext \
18125 conftest$ac_exeext conftest.$ac_ext
18126fi
18127ac_res=`eval echo '${'$as_ac_var'}'`
18128 { echo "$as_me:$LINENO: result: $ac_res" >&5
18129echo "${ECHO_T}$ac_res" >&6; }
18130if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000018131 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018132#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000018133_ACEOF
18134
18135fi
18136done
18137
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018138
18139
18140
18141
18142
Eric Christophere4291822010-04-16 05:14:21 +000018143
18144for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018145do
18146as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18147{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18148echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18149if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18150 echo $ECHO_N "(cached) $ECHO_C" >&6
18151else
18152 cat >conftest.$ac_ext <<_ACEOF
18153/* confdefs.h. */
18154_ACEOF
18155cat confdefs.h >>conftest.$ac_ext
18156cat >>conftest.$ac_ext <<_ACEOF
18157/* end confdefs.h. */
18158/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18159 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18160#define $ac_func innocuous_$ac_func
18161
18162/* System header to define __stub macros and hopefully few prototypes,
18163 which can conflict with char $ac_func (); below.
18164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18165 <limits.h> exists even on freestanding compilers. */
18166
18167#ifdef __STDC__
18168# include <limits.h>
18169#else
18170# include <assert.h>
18171#endif
18172
18173#undef $ac_func
18174
18175/* Override any GCC internal prototype to avoid an error.
18176 Use char because int might match the return type of a GCC
18177 builtin and then its argument prototype would still apply. */
18178#ifdef __cplusplus
18179extern "C"
18180#endif
18181char $ac_func ();
18182/* The GNU C library defines this for functions which it implements
18183 to always fail with ENOSYS. Some functions are actually named
18184 something starting with __ and the normal name is an alias. */
18185#if defined __stub_$ac_func || defined __stub___$ac_func
18186choke me
18187#endif
18188
18189int
18190main ()
18191{
18192return $ac_func ();
18193 ;
18194 return 0;
18195}
18196_ACEOF
18197rm -f conftest.$ac_objext conftest$ac_exeext
18198if { (ac_try="$ac_link"
18199case "(($ac_try" in
18200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18201 *) ac_try_echo=$ac_try;;
18202esac
18203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18204 (eval "$ac_link") 2>conftest.er1
18205 ac_status=$?
18206 grep -v '^ *+' conftest.er1 >conftest.err
18207 rm -f conftest.er1
18208 cat conftest.err >&5
18209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210 (exit $ac_status); } &&
18211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18212 { (case "(($ac_try" in
18213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18214 *) ac_try_echo=$ac_try;;
18215esac
18216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18217 (eval "$ac_try") 2>&5
18218 ac_status=$?
18219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220 (exit $ac_status); }; } &&
18221 { ac_try='test -s conftest$ac_exeext'
18222 { (case "(($ac_try" in
18223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18224 *) ac_try_echo=$ac_try;;
18225esac
18226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18227 (eval "$ac_try") 2>&5
18228 ac_status=$?
18229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230 (exit $ac_status); }; }; then
18231 eval "$as_ac_var=yes"
18232else
18233 echo "$as_me: failed program was:" >&5
18234sed 's/^/| /' conftest.$ac_ext >&5
18235
18236 eval "$as_ac_var=no"
18237fi
18238
18239rm -f core conftest.err conftest.$ac_objext \
18240 conftest$ac_exeext conftest.$ac_ext
18241fi
18242ac_res=`eval echo '${'$as_ac_var'}'`
18243 { echo "$as_me:$LINENO: result: $ac_res" >&5
18244echo "${ECHO_T}$ac_res" >&6; }
18245if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000018246 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018247#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000018248_ACEOF
18249
18250fi
18251done
Reid Spencerdf3be822006-01-23 08:15:53 +000018252
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018253
18254
18255
18256
Jeffrey Yasskinb7a8d402009-09-25 21:07:20 +000018257for ac_func in strerror strerror_r strerror_s setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018258do
18259as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18260{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18261echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18262if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18263 echo $ECHO_N "(cached) $ECHO_C" >&6
18264else
18265 cat >conftest.$ac_ext <<_ACEOF
18266/* confdefs.h. */
18267_ACEOF
18268cat confdefs.h >>conftest.$ac_ext
18269cat >>conftest.$ac_ext <<_ACEOF
18270/* end confdefs.h. */
18271/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18272 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18273#define $ac_func innocuous_$ac_func
18274
18275/* System header to define __stub macros and hopefully few prototypes,
18276 which can conflict with char $ac_func (); below.
18277 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18278 <limits.h> exists even on freestanding compilers. */
18279
18280#ifdef __STDC__
18281# include <limits.h>
18282#else
18283# include <assert.h>
18284#endif
18285
18286#undef $ac_func
18287
18288/* Override any GCC internal prototype to avoid an error.
18289 Use char because int might match the return type of a GCC
18290 builtin and then its argument prototype would still apply. */
18291#ifdef __cplusplus
18292extern "C"
18293#endif
18294char $ac_func ();
18295/* The GNU C library defines this for functions which it implements
18296 to always fail with ENOSYS. Some functions are actually named
18297 something starting with __ and the normal name is an alias. */
18298#if defined __stub_$ac_func || defined __stub___$ac_func
18299choke me
18300#endif
18301
18302int
18303main ()
18304{
18305return $ac_func ();
18306 ;
18307 return 0;
18308}
18309_ACEOF
18310rm -f conftest.$ac_objext conftest$ac_exeext
18311if { (ac_try="$ac_link"
18312case "(($ac_try" in
18313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18314 *) ac_try_echo=$ac_try;;
18315esac
18316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18317 (eval "$ac_link") 2>conftest.er1
18318 ac_status=$?
18319 grep -v '^ *+' conftest.er1 >conftest.err
18320 rm -f conftest.er1
18321 cat conftest.err >&5
18322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18323 (exit $ac_status); } &&
18324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18325 { (case "(($ac_try" in
18326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18327 *) ac_try_echo=$ac_try;;
18328esac
18329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18330 (eval "$ac_try") 2>&5
18331 ac_status=$?
18332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18333 (exit $ac_status); }; } &&
18334 { ac_try='test -s conftest$ac_exeext'
18335 { (case "(($ac_try" in
18336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18337 *) ac_try_echo=$ac_try;;
18338esac
18339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18340 (eval "$ac_try") 2>&5
18341 ac_status=$?
18342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18343 (exit $ac_status); }; }; then
18344 eval "$as_ac_var=yes"
18345else
18346 echo "$as_me: failed program was:" >&5
18347sed 's/^/| /' conftest.$ac_ext >&5
18348
18349 eval "$as_ac_var=no"
18350fi
18351
18352rm -f core conftest.err conftest.$ac_objext \
18353 conftest$ac_exeext conftest.$ac_ext
18354fi
18355ac_res=`eval echo '${'$as_ac_var'}'`
18356 { echo "$as_me:$LINENO: result: $ac_res" >&5
18357echo "${ECHO_T}$ac_res" >&6; }
18358if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000018359 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018360#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000018361_ACEOF
18362
18363fi
18364done
18365
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018366
18367
18368
18369
Chris Lattner511f11d2005-11-14 07:25:50 +000018370for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018371do
18372as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18373{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18374echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18375if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18376 echo $ECHO_N "(cached) $ECHO_C" >&6
18377else
18378 cat >conftest.$ac_ext <<_ACEOF
18379/* confdefs.h. */
18380_ACEOF
18381cat confdefs.h >>conftest.$ac_ext
18382cat >>conftest.$ac_ext <<_ACEOF
18383/* end confdefs.h. */
18384/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18386#define $ac_func innocuous_$ac_func
18387
18388/* System header to define __stub macros and hopefully few prototypes,
18389 which can conflict with char $ac_func (); below.
18390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18391 <limits.h> exists even on freestanding compilers. */
18392
18393#ifdef __STDC__
18394# include <limits.h>
18395#else
18396# include <assert.h>
18397#endif
18398
18399#undef $ac_func
18400
18401/* Override any GCC internal prototype to avoid an error.
18402 Use char because int might match the return type of a GCC
18403 builtin and then its argument prototype would still apply. */
18404#ifdef __cplusplus
18405extern "C"
18406#endif
18407char $ac_func ();
18408/* The GNU C library defines this for functions which it implements
18409 to always fail with ENOSYS. Some functions are actually named
18410 something starting with __ and the normal name is an alias. */
18411#if defined __stub_$ac_func || defined __stub___$ac_func
18412choke me
18413#endif
18414
18415int
18416main ()
18417{
18418return $ac_func ();
18419 ;
18420 return 0;
18421}
18422_ACEOF
18423rm -f conftest.$ac_objext conftest$ac_exeext
18424if { (ac_try="$ac_link"
18425case "(($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_link") 2>conftest.er1
18431 ac_status=$?
18432 grep -v '^ *+' conftest.er1 >conftest.err
18433 rm -f conftest.er1
18434 cat conftest.err >&5
18435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436 (exit $ac_status); } &&
18437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18438 { (case "(($ac_try" in
18439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18440 *) ac_try_echo=$ac_try;;
18441esac
18442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18443 (eval "$ac_try") 2>&5
18444 ac_status=$?
18445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446 (exit $ac_status); }; } &&
18447 { ac_try='test -s conftest$ac_exeext'
18448 { (case "(($ac_try" in
18449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18450 *) ac_try_echo=$ac_try;;
18451esac
18452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18453 (eval "$ac_try") 2>&5
18454 ac_status=$?
18455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456 (exit $ac_status); }; }; then
18457 eval "$as_ac_var=yes"
18458else
18459 echo "$as_me: failed program was:" >&5
18460sed 's/^/| /' conftest.$ac_ext >&5
18461
18462 eval "$as_ac_var=no"
18463fi
18464
18465rm -f core conftest.err conftest.$ac_objext \
18466 conftest$ac_exeext conftest.$ac_ext
18467fi
18468ac_res=`eval echo '${'$as_ac_var'}'`
18469 { echo "$as_me:$LINENO: result: $ac_res" >&5
18470echo "${ECHO_T}$ac_res" >&6; }
18471if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018472 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018473#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018474_ACEOF
18475
18476fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018477done
John Criswell7a73b802003-06-30 21:59:07 +000018478
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018479
18480
18481
18482
Reid Spencerafa22e22006-12-10 23:29:19 +000018483for ac_func in setjmp longjmp sigsetjmp siglongjmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018484do
18485as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18486{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18487echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18488if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18489 echo $ECHO_N "(cached) $ECHO_C" >&6
18490else
18491 cat >conftest.$ac_ext <<_ACEOF
18492/* confdefs.h. */
18493_ACEOF
18494cat confdefs.h >>conftest.$ac_ext
18495cat >>conftest.$ac_ext <<_ACEOF
18496/* end confdefs.h. */
18497/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18498 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18499#define $ac_func innocuous_$ac_func
18500
18501/* System header to define __stub macros and hopefully few prototypes,
18502 which can conflict with char $ac_func (); below.
18503 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18504 <limits.h> exists even on freestanding compilers. */
18505
18506#ifdef __STDC__
18507# include <limits.h>
18508#else
18509# include <assert.h>
18510#endif
18511
18512#undef $ac_func
18513
18514/* Override any GCC internal prototype to avoid an error.
18515 Use char because int might match the return type of a GCC
18516 builtin and then its argument prototype would still apply. */
18517#ifdef __cplusplus
18518extern "C"
18519#endif
18520char $ac_func ();
18521/* The GNU C library defines this for functions which it implements
18522 to always fail with ENOSYS. Some functions are actually named
18523 something starting with __ and the normal name is an alias. */
18524#if defined __stub_$ac_func || defined __stub___$ac_func
18525choke me
18526#endif
18527
18528int
18529main ()
18530{
18531return $ac_func ();
18532 ;
18533 return 0;
18534}
18535_ACEOF
18536rm -f conftest.$ac_objext conftest$ac_exeext
18537if { (ac_try="$ac_link"
18538case "(($ac_try" in
18539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18540 *) ac_try_echo=$ac_try;;
18541esac
18542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18543 (eval "$ac_link") 2>conftest.er1
18544 ac_status=$?
18545 grep -v '^ *+' conftest.er1 >conftest.err
18546 rm -f conftest.er1
18547 cat conftest.err >&5
18548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18549 (exit $ac_status); } &&
18550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18551 { (case "(($ac_try" in
18552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18553 *) ac_try_echo=$ac_try;;
18554esac
18555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18556 (eval "$ac_try") 2>&5
18557 ac_status=$?
18558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18559 (exit $ac_status); }; } &&
18560 { ac_try='test -s conftest$ac_exeext'
18561 { (case "(($ac_try" in
18562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18563 *) ac_try_echo=$ac_try;;
18564esac
18565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18566 (eval "$ac_try") 2>&5
18567 ac_status=$?
18568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18569 (exit $ac_status); }; }; then
18570 eval "$as_ac_var=yes"
18571else
18572 echo "$as_me: failed program was:" >&5
18573sed 's/^/| /' conftest.$ac_ext >&5
18574
18575 eval "$as_ac_var=no"
18576fi
18577
18578rm -f core conftest.err conftest.$ac_objext \
18579 conftest$ac_exeext conftest.$ac_ext
18580fi
18581ac_res=`eval echo '${'$as_ac_var'}'`
18582 { echo "$as_me:$LINENO: result: $ac_res" >&5
18583echo "${ECHO_T}$ac_res" >&6; }
18584if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000018585 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018586#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000018587_ACEOF
18588
18589fi
18590done
18591
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018592{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18593echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18594if test "${llvm_cv_c_printf_a+set}" = set; then
18595 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018596else
Reid Spencer2706f8c2004-09-19 23:53:36 +000018597 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000018598ac_cpp='$CPP $CPPFLAGS'
18599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18601ac_compiler_gnu=$ac_cv_c_compiler_gnu
18602
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018603 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000018604 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000018605else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018606 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000018607
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018608 /* confdefs.h. */
18609_ACEOF
18610cat confdefs.h >>conftest.$ac_ext
18611cat >>conftest.$ac_ext <<_ACEOF
18612/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000018613
John Criswella0137d32003-10-13 16:22:01 +000018614#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000018615#include <stdlib.h>
18616
John Criswella0137d32003-10-13 16:22:01 +000018617int
18618main ()
18619{
18620
Reid Spencer2706f8c2004-09-19 23:53:36 +000018621volatile double A, B;
18622char Buffer[100];
18623A = 1;
18624A /= 10.0;
18625sprintf(Buffer, "%a", A);
18626B = atof(Buffer);
18627if (A != B)
18628 return (1);
18629if (A != 0x1.999999999999ap-4)
18630 return (1);
18631return (0);
John Criswella0137d32003-10-13 16:22:01 +000018632 ;
18633 return 0;
18634}
18635_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018636rm -f conftest$ac_exeext
18637if { (ac_try="$ac_link"
18638case "(($ac_try" in
18639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18640 *) ac_try_echo=$ac_try;;
18641esac
18642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18643 (eval "$ac_link") 2>&5
18644 ac_status=$?
18645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18646 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18647 { (case "(($ac_try" in
18648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18649 *) ac_try_echo=$ac_try;;
18650esac
18651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18652 (eval "$ac_try") 2>&5
18653 ac_status=$?
18654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18655 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000018656 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000018657else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018658 echo "$as_me: program exited with status $ac_status" >&5
18659echo "$as_me: failed program was:" >&5
18660sed 's/^/| /' conftest.$ac_ext >&5
18661
18662( exit $ac_status )
18663llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000018664fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018665rm -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 +000018666fi
Reid Spencera773bd52006-08-04 18:18:08 +000018667
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018668
Reid Spencer2706f8c2004-09-19 23:53:36 +000018669 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000018670ac_cpp='$CPP $CPPFLAGS'
18671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18673ac_compiler_gnu=$ac_cv_c_compiler_gnu
18674
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018675fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018676{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18677echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000018678 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000018679
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018680cat >>confdefs.h <<\_ACEOF
18681#define HAVE_PRINTF_A 1
18682_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000018683
Reid Spencer2706f8c2004-09-19 23:53:36 +000018684 fi
John Criswella0137d32003-10-13 16:22:01 +000018685
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018686
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018687{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18688echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18689if test "${ac_cv_func_rand48+set}" = set; then
18690 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018691else
Reid Spencera773bd52006-08-04 18:18:08 +000018692 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018693ac_cpp='$CXXCPP $CPPFLAGS'
18694ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18695ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18696ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18697
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018698 cat >conftest.$ac_ext <<_ACEOF
18699/* confdefs.h. */
18700_ACEOF
18701cat confdefs.h >>conftest.$ac_ext
18702cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018703/* end confdefs.h. */
18704#include <stdlib.h>
18705int
18706main ()
18707{
18708srand48(0);lrand48();drand48();
18709 ;
18710 return 0;
18711}
18712_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018713rm -f conftest.$ac_objext
18714if { (ac_try="$ac_compile"
18715case "(($ac_try" in
18716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18717 *) ac_try_echo=$ac_try;;
18718esac
18719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18720 (eval "$ac_compile") 2>conftest.er1
18721 ac_status=$?
18722 grep -v '^ *+' conftest.er1 >conftest.err
18723 rm -f conftest.er1
18724 cat conftest.err >&5
18725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726 (exit $ac_status); } &&
18727 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18728 { (case "(($ac_try" in
18729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18730 *) ac_try_echo=$ac_try;;
18731esac
18732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18733 (eval "$ac_try") 2>&5
18734 ac_status=$?
18735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18736 (exit $ac_status); }; } &&
18737 { ac_try='test -s conftest.$ac_objext'
18738 { (case "(($ac_try" in
18739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18740 *) ac_try_echo=$ac_try;;
18741esac
18742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18743 (eval "$ac_try") 2>&5
18744 ac_status=$?
18745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18746 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018747 ac_cv_func_rand48=yes
18748else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018749 echo "$as_me: failed program was:" >&5
18750sed 's/^/| /' conftest.$ac_ext >&5
18751
18752 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018753fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018754
Reid Spencera773bd52006-08-04 18:18:08 +000018755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018756 ac_ext=c
18757ac_cpp='$CPP $CPPFLAGS'
18758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18760ac_compiler_gnu=$ac_cv_c_compiler_gnu
18761
18762fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018763{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18764echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018765
18766if test "$ac_cv_func_rand48" = "yes" ; then
18767
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018768cat >>confdefs.h <<\_ACEOF
18769#define HAVE_RAND48 1
18770_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018771
18772fi
John Criswell0021c312004-02-13 21:57:29 +000018773
18774
Torok Edwin871384f2010-01-26 08:50:50 +000018775
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018776{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18777echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18778if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18779 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000018780else
Reid Spencera773bd52006-08-04 18:18:08 +000018781 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000018782ac_cpp='$CXXCPP $CPPFLAGS'
18783ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18784ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18785ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18786
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018787 cat >conftest.$ac_ext <<_ACEOF
18788/* confdefs.h. */
18789_ACEOF
18790cat confdefs.h >>conftest.$ac_ext
18791cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018792/* end confdefs.h. */
18793#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000018794int
18795main ()
18796{
18797float f; isnan(f);
18798 ;
18799 return 0;
18800}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018801_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018802rm -f conftest.$ac_objext
18803if { (ac_try="$ac_compile"
18804case "(($ac_try" in
18805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18806 *) ac_try_echo=$ac_try;;
18807esac
18808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18809 (eval "$ac_compile") 2>conftest.er1
18810 ac_status=$?
18811 grep -v '^ *+' conftest.er1 >conftest.err
18812 rm -f conftest.er1
18813 cat conftest.err >&5
18814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18815 (exit $ac_status); } &&
18816 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18817 { (case "(($ac_try" in
18818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18819 *) ac_try_echo=$ac_try;;
18820esac
18821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18822 (eval "$ac_try") 2>&5
18823 ac_status=$?
18824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825 (exit $ac_status); }; } &&
18826 { ac_try='test -s conftest.$ac_objext'
18827 { (case "(($ac_try" in
18828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18829 *) ac_try_echo=$ac_try;;
18830esac
18831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18832 (eval "$ac_try") 2>&5
18833 ac_status=$?
18834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018836 ac_cv_func_isnan_in_math_h=yes
18837else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018838 echo "$as_me: failed program was:" >&5
18839sed 's/^/| /' conftest.$ac_ext >&5
18840
18841 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018842fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018843
Reid Spencera773bd52006-08-04 18:18:08 +000018844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018845 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018846ac_cpp='$CPP $CPPFLAGS'
18847ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18848ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18849ac_compiler_gnu=$ac_cv_c_compiler_gnu
18850
18851fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018852{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
18853echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018854
18855
18856if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018857
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018858cat >>confdefs.h <<\_ACEOF
18859#define HAVE_ISNAN_IN_MATH_H 1
18860_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018861
Reid Spencerabec8f92004-10-27 23:03:44 +000018862fi
18863
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018864{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
18865echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
18866if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
18867 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018868else
Reid Spencera773bd52006-08-04 18:18:08 +000018869 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018870ac_cpp='$CXXCPP $CPPFLAGS'
18871ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18872ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18873ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18874
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018875 cat >conftest.$ac_ext <<_ACEOF
18876/* confdefs.h. */
18877_ACEOF
18878cat confdefs.h >>conftest.$ac_ext
18879cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018880/* end confdefs.h. */
18881#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000018882int
18883main ()
18884{
18885float f; isnan(f);
18886 ;
18887 return 0;
18888}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018889_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018890rm -f conftest.$ac_objext
18891if { (ac_try="$ac_compile"
18892case "(($ac_try" in
18893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18894 *) ac_try_echo=$ac_try;;
18895esac
18896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18897 (eval "$ac_compile") 2>conftest.er1
18898 ac_status=$?
18899 grep -v '^ *+' conftest.er1 >conftest.err
18900 rm -f conftest.er1
18901 cat conftest.err >&5
18902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903 (exit $ac_status); } &&
18904 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18905 { (case "(($ac_try" in
18906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18907 *) ac_try_echo=$ac_try;;
18908esac
18909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18910 (eval "$ac_try") 2>&5
18911 ac_status=$?
18912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913 (exit $ac_status); }; } &&
18914 { ac_try='test -s conftest.$ac_objext'
18915 { (case "(($ac_try" in
18916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18917 *) ac_try_echo=$ac_try;;
18918esac
18919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18920 (eval "$ac_try") 2>&5
18921 ac_status=$?
18922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018924 ac_cv_func_isnan_in_cmath=yes
18925else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018926 echo "$as_me: failed program was:" >&5
18927sed 's/^/| /' conftest.$ac_ext >&5
18928
18929 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018930fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018931
Reid Spencera773bd52006-08-04 18:18:08 +000018932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018933 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018934ac_cpp='$CPP $CPPFLAGS'
18935ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18936ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18937ac_compiler_gnu=$ac_cv_c_compiler_gnu
18938
18939fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018940{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
18941echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018942
18943if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018944
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018945cat >>confdefs.h <<\_ACEOF
18946#define HAVE_ISNAN_IN_CMATH 1
18947_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018948
Reid Spencerabec8f92004-10-27 23:03:44 +000018949fi
18950
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018951{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
18952echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
18953if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
18954 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018955else
Reid Spencera773bd52006-08-04 18:18:08 +000018956 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018957ac_cpp='$CXXCPP $CPPFLAGS'
18958ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18959ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18960ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18961
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018962 cat >conftest.$ac_ext <<_ACEOF
18963/* confdefs.h. */
18964_ACEOF
18965cat confdefs.h >>conftest.$ac_ext
18966cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018967/* end confdefs.h. */
18968#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000018969int
18970main ()
18971{
18972float f; std::isnan(f);
18973 ;
18974 return 0;
18975}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018976_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018977rm -f conftest.$ac_objext
18978if { (ac_try="$ac_compile"
18979case "(($ac_try" in
18980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18981 *) ac_try_echo=$ac_try;;
18982esac
18983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18984 (eval "$ac_compile") 2>conftest.er1
18985 ac_status=$?
18986 grep -v '^ *+' conftest.er1 >conftest.err
18987 rm -f conftest.er1
18988 cat conftest.err >&5
18989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18990 (exit $ac_status); } &&
18991 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18992 { (case "(($ac_try" in
18993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18994 *) ac_try_echo=$ac_try;;
18995esac
18996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18997 (eval "$ac_try") 2>&5
18998 ac_status=$?
18999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000 (exit $ac_status); }; } &&
19001 { ac_try='test -s conftest.$ac_objext'
19002 { (case "(($ac_try" in
19003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19004 *) ac_try_echo=$ac_try;;
19005esac
19006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19007 (eval "$ac_try") 2>&5
19008 ac_status=$?
19009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019011 ac_cv_func_std_isnan_in_cmath=yes
19012else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019013 echo "$as_me: failed program was:" >&5
19014sed 's/^/| /' conftest.$ac_ext >&5
19015
19016 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019017fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019018
Reid Spencera773bd52006-08-04 18:18:08 +000019019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019020 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019021ac_cpp='$CPP $CPPFLAGS'
19022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19024ac_compiler_gnu=$ac_cv_c_compiler_gnu
19025
19026fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019027{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19028echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019029
19030if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019031
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019032cat >>confdefs.h <<\_ACEOF
19033#define HAVE_STD_ISNAN_IN_CMATH 1
19034_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019035
Reid Spencerabec8f92004-10-27 23:03:44 +000019036fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019037
19038
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019039{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19040echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19041if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19042 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019043else
Reid Spencera773bd52006-08-04 18:18:08 +000019044 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019045ac_cpp='$CXXCPP $CPPFLAGS'
19046ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19047ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19048ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19049
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019050 cat >conftest.$ac_ext <<_ACEOF
19051/* confdefs.h. */
19052_ACEOF
19053cat confdefs.h >>conftest.$ac_ext
19054cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019055/* end confdefs.h. */
19056#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019057int
19058main ()
19059{
19060float f; isinf(f);
19061 ;
19062 return 0;
19063}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019064_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019065rm -f conftest.$ac_objext
19066if { (ac_try="$ac_compile"
19067case "(($ac_try" in
19068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19069 *) ac_try_echo=$ac_try;;
19070esac
19071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19072 (eval "$ac_compile") 2>conftest.er1
19073 ac_status=$?
19074 grep -v '^ *+' conftest.er1 >conftest.err
19075 rm -f conftest.er1
19076 cat conftest.err >&5
19077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078 (exit $ac_status); } &&
19079 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19080 { (case "(($ac_try" in
19081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19082 *) ac_try_echo=$ac_try;;
19083esac
19084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19085 (eval "$ac_try") 2>&5
19086 ac_status=$?
19087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19088 (exit $ac_status); }; } &&
19089 { ac_try='test -s conftest.$ac_objext'
19090 { (case "(($ac_try" in
19091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19092 *) ac_try_echo=$ac_try;;
19093esac
19094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19095 (eval "$ac_try") 2>&5
19096 ac_status=$?
19097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019099 ac_cv_func_isinf_in_math_h=yes
19100else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019101 echo "$as_me: failed program was:" >&5
19102sed 's/^/| /' conftest.$ac_ext >&5
19103
19104 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019105fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019106
Reid Spencera773bd52006-08-04 18:18:08 +000019107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019108 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019109ac_cpp='$CPP $CPPFLAGS'
19110ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19111ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19112ac_compiler_gnu=$ac_cv_c_compiler_gnu
19113
19114fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019115{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19116echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019117
19118if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019119
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019120cat >>confdefs.h <<\_ACEOF
19121#define HAVE_ISINF_IN_MATH_H 1
19122_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019123
Reid Spencerabec8f92004-10-27 23:03:44 +000019124fi
19125
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019126{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19127echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19128if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19129 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019130else
Reid Spencera773bd52006-08-04 18:18:08 +000019131 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019132ac_cpp='$CXXCPP $CPPFLAGS'
19133ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19134ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19135ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19136
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019137 cat >conftest.$ac_ext <<_ACEOF
19138/* confdefs.h. */
19139_ACEOF
19140cat confdefs.h >>conftest.$ac_ext
19141cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019142/* end confdefs.h. */
19143#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019144int
19145main ()
19146{
19147float f; isinf(f);
19148 ;
19149 return 0;
19150}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019151_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019152rm -f conftest.$ac_objext
19153if { (ac_try="$ac_compile"
19154case "(($ac_try" in
19155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19156 *) ac_try_echo=$ac_try;;
19157esac
19158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19159 (eval "$ac_compile") 2>conftest.er1
19160 ac_status=$?
19161 grep -v '^ *+' conftest.er1 >conftest.err
19162 rm -f conftest.er1
19163 cat conftest.err >&5
19164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165 (exit $ac_status); } &&
19166 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19167 { (case "(($ac_try" in
19168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19169 *) ac_try_echo=$ac_try;;
19170esac
19171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19172 (eval "$ac_try") 2>&5
19173 ac_status=$?
19174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175 (exit $ac_status); }; } &&
19176 { ac_try='test -s conftest.$ac_objext'
19177 { (case "(($ac_try" in
19178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19179 *) ac_try_echo=$ac_try;;
19180esac
19181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19182 (eval "$ac_try") 2>&5
19183 ac_status=$?
19184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19185 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019186 ac_cv_func_isinf_in_cmath=yes
19187else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019188 echo "$as_me: failed program was:" >&5
19189sed 's/^/| /' conftest.$ac_ext >&5
19190
19191 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019192fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019193
Reid Spencera773bd52006-08-04 18:18:08 +000019194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019195 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019196ac_cpp='$CPP $CPPFLAGS'
19197ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19198ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19199ac_compiler_gnu=$ac_cv_c_compiler_gnu
19200
19201fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019202{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19203echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019204
19205if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019206
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019207cat >>confdefs.h <<\_ACEOF
19208#define HAVE_ISINF_IN_CMATH 1
19209_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019210
Reid Spencerabec8f92004-10-27 23:03:44 +000019211fi
19212
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019213{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19214echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19215if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19216 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019217else
Reid Spencera773bd52006-08-04 18:18:08 +000019218 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019219ac_cpp='$CXXCPP $CPPFLAGS'
19220ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19221ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19222ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19223
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019224 cat >conftest.$ac_ext <<_ACEOF
19225/* confdefs.h. */
19226_ACEOF
19227cat confdefs.h >>conftest.$ac_ext
19228cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019229/* end confdefs.h. */
19230#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019231int
19232main ()
19233{
19234float f; std::isinf(f)}
19235 ;
19236 return 0;
19237}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019238_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019239rm -f conftest.$ac_objext
19240if { (ac_try="$ac_compile"
19241case "(($ac_try" in
19242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19243 *) ac_try_echo=$ac_try;;
19244esac
19245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19246 (eval "$ac_compile") 2>conftest.er1
19247 ac_status=$?
19248 grep -v '^ *+' conftest.er1 >conftest.err
19249 rm -f conftest.er1
19250 cat conftest.err >&5
19251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252 (exit $ac_status); } &&
19253 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19254 { (case "(($ac_try" in
19255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19256 *) ac_try_echo=$ac_try;;
19257esac
19258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19259 (eval "$ac_try") 2>&5
19260 ac_status=$?
19261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19262 (exit $ac_status); }; } &&
19263 { ac_try='test -s conftest.$ac_objext'
19264 { (case "(($ac_try" in
19265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19266 *) ac_try_echo=$ac_try;;
19267esac
19268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19269 (eval "$ac_try") 2>&5
19270 ac_status=$?
19271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019273 ac_cv_func_std_isinf_in_cmath=yes
19274else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019275 echo "$as_me: failed program was:" >&5
19276sed 's/^/| /' conftest.$ac_ext >&5
19277
19278 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019279fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019280
Reid Spencera773bd52006-08-04 18:18:08 +000019281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019282 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019283ac_cpp='$CPP $CPPFLAGS'
19284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19286ac_compiler_gnu=$ac_cv_c_compiler_gnu
19287
19288fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019289{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19290echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019291
19292if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019293
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019294cat >>confdefs.h <<\_ACEOF
19295#define HAVE_STD_ISINF_IN_CMATH 1
19296_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019297
Reid Spencerabec8f92004-10-27 23:03:44 +000019298fi
19299
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019300{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19301echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19302if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19303 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000019304else
Reid Spencera773bd52006-08-04 18:18:08 +000019305 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000019306ac_cpp='$CXXCPP $CPPFLAGS'
19307ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19308ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19309ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19310
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019311 cat >conftest.$ac_ext <<_ACEOF
19312/* confdefs.h. */
19313_ACEOF
19314cat confdefs.h >>conftest.$ac_ext
19315cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019316/* end confdefs.h. */
19317#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019318int
19319main ()
19320{
19321float f; finite(f);
19322 ;
19323 return 0;
19324}
Brian Gaeked59a6472004-07-21 03:33:58 +000019325_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019326rm -f conftest.$ac_objext
19327if { (ac_try="$ac_compile"
19328case "(($ac_try" in
19329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19330 *) ac_try_echo=$ac_try;;
19331esac
19332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19333 (eval "$ac_compile") 2>conftest.er1
19334 ac_status=$?
19335 grep -v '^ *+' conftest.er1 >conftest.err
19336 rm -f conftest.er1
19337 cat conftest.err >&5
19338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339 (exit $ac_status); } &&
19340 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19341 { (case "(($ac_try" in
19342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19343 *) ac_try_echo=$ac_try;;
19344esac
19345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19346 (eval "$ac_try") 2>&5
19347 ac_status=$?
19348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19349 (exit $ac_status); }; } &&
19350 { ac_try='test -s conftest.$ac_objext'
19351 { (case "(($ac_try" in
19352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19353 *) ac_try_echo=$ac_try;;
19354esac
19355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19356 (eval "$ac_try") 2>&5
19357 ac_status=$?
19358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19359 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019360 ac_cv_func_finite_in_ieeefp_h=yes
19361else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019362 echo "$as_me: failed program was:" >&5
19363sed 's/^/| /' conftest.$ac_ext >&5
19364
19365 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000019366fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019367
Reid Spencera773bd52006-08-04 18:18:08 +000019368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019369 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000019370ac_cpp='$CPP $CPPFLAGS'
19371ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19372ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19373ac_compiler_gnu=$ac_cv_c_compiler_gnu
19374
19375fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019376{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19377echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019378
Brian Gaeke6802b552004-10-28 05:06:45 +000019379if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019380
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019381cat >>confdefs.h <<\_ACEOF
19382#define HAVE_FINITE_IN_IEEEFP_H 1
19383_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019384
Reid Spencerabec8f92004-10-27 23:03:44 +000019385fi
19386
19387
19388
Reid Spencer30fe5262007-01-20 07:48:49 +000019389if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000019390
19391
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019392for ac_header in stdlib.h unistd.h
19393do
19394as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19395if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19396 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19397echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19398if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19399 echo $ECHO_N "(cached) $ECHO_C" >&6
19400fi
19401ac_res=`eval echo '${'$as_ac_Header'}'`
19402 { echo "$as_me:$LINENO: result: $ac_res" >&5
19403echo "${ECHO_T}$ac_res" >&6; }
19404else
19405 # Is the header compilable?
19406{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19407echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19408cat >conftest.$ac_ext <<_ACEOF
19409/* confdefs.h. */
19410_ACEOF
19411cat confdefs.h >>conftest.$ac_ext
19412cat >>conftest.$ac_ext <<_ACEOF
19413/* end confdefs.h. */
19414$ac_includes_default
19415#include <$ac_header>
19416_ACEOF
19417rm -f conftest.$ac_objext
19418if { (ac_try="$ac_compile"
19419case "(($ac_try" in
19420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19421 *) ac_try_echo=$ac_try;;
19422esac
19423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19424 (eval "$ac_compile") 2>conftest.er1
19425 ac_status=$?
19426 grep -v '^ *+' conftest.er1 >conftest.err
19427 rm -f conftest.er1
19428 cat conftest.err >&5
19429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430 (exit $ac_status); } &&
19431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19432 { (case "(($ac_try" in
19433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19434 *) ac_try_echo=$ac_try;;
19435esac
19436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19437 (eval "$ac_try") 2>&5
19438 ac_status=$?
19439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440 (exit $ac_status); }; } &&
19441 { ac_try='test -s conftest.$ac_objext'
19442 { (case "(($ac_try" in
19443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19444 *) ac_try_echo=$ac_try;;
19445esac
19446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19447 (eval "$ac_try") 2>&5
19448 ac_status=$?
19449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19450 (exit $ac_status); }; }; then
19451 ac_header_compiler=yes
19452else
19453 echo "$as_me: failed program was:" >&5
19454sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019455
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019456 ac_header_compiler=no
19457fi
19458
19459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19460{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19461echo "${ECHO_T}$ac_header_compiler" >&6; }
19462
19463# Is the header present?
19464{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19465echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19466cat >conftest.$ac_ext <<_ACEOF
19467/* confdefs.h. */
19468_ACEOF
19469cat confdefs.h >>conftest.$ac_ext
19470cat >>conftest.$ac_ext <<_ACEOF
19471/* end confdefs.h. */
19472#include <$ac_header>
19473_ACEOF
19474if { (ac_try="$ac_cpp conftest.$ac_ext"
19475case "(($ac_try" in
19476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19477 *) ac_try_echo=$ac_try;;
19478esac
19479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19480 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19481 ac_status=$?
19482 grep -v '^ *+' conftest.er1 >conftest.err
19483 rm -f conftest.er1
19484 cat conftest.err >&5
19485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19486 (exit $ac_status); } >/dev/null; then
19487 if test -s conftest.err; then
19488 ac_cpp_err=$ac_c_preproc_warn_flag
19489 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19490 else
19491 ac_cpp_err=
19492 fi
19493else
19494 ac_cpp_err=yes
19495fi
19496if test -z "$ac_cpp_err"; then
19497 ac_header_preproc=yes
19498else
19499 echo "$as_me: failed program was:" >&5
19500sed 's/^/| /' conftest.$ac_ext >&5
19501
19502 ac_header_preproc=no
19503fi
19504
19505rm -f conftest.err conftest.$ac_ext
19506{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19507echo "${ECHO_T}$ac_header_preproc" >&6; }
19508
19509# So? What about this header?
19510case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19511 yes:no: )
19512 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19513echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19514 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19515echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19516 ac_header_preproc=yes
19517 ;;
19518 no:yes:* )
19519 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19520echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19521 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19522echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19523 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19524echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19525 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19526echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19528echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19529 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19530echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19531 ( cat <<\_ASBOX
19532## ----------------------------------- ##
19533## Report this to llvmbugs@cs.uiuc.edu ##
19534## ----------------------------------- ##
19535_ASBOX
19536 ) | sed "s/^/$as_me: WARNING: /" >&2
19537 ;;
19538esac
19539{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19540echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19541if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19542 echo $ECHO_N "(cached) $ECHO_C" >&6
19543else
19544 eval "$as_ac_Header=\$ac_header_preproc"
19545fi
19546ac_res=`eval echo '${'$as_ac_Header'}'`
19547 { echo "$as_me:$LINENO: result: $ac_res" >&5
19548echo "${ECHO_T}$ac_res" >&6; }
19549
19550fi
19551if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019552 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019553#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000019554_ACEOF
19555
19556fi
19557
19558done
19559
19560
19561for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019562do
19563as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19564{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19565echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19566if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19567 echo $ECHO_N "(cached) $ECHO_C" >&6
19568else
19569 cat >conftest.$ac_ext <<_ACEOF
19570/* confdefs.h. */
19571_ACEOF
19572cat confdefs.h >>conftest.$ac_ext
19573cat >>conftest.$ac_ext <<_ACEOF
19574/* end confdefs.h. */
19575/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19576 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19577#define $ac_func innocuous_$ac_func
19578
19579/* System header to define __stub macros and hopefully few prototypes,
19580 which can conflict with char $ac_func (); below.
19581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19582 <limits.h> exists even on freestanding compilers. */
19583
19584#ifdef __STDC__
19585# include <limits.h>
19586#else
19587# include <assert.h>
19588#endif
19589
19590#undef $ac_func
19591
19592/* Override any GCC internal prototype to avoid an error.
19593 Use char because int might match the return type of a GCC
19594 builtin and then its argument prototype would still apply. */
19595#ifdef __cplusplus
19596extern "C"
19597#endif
19598char $ac_func ();
19599/* The GNU C library defines this for functions which it implements
19600 to always fail with ENOSYS. Some functions are actually named
19601 something starting with __ and the normal name is an alias. */
19602#if defined __stub_$ac_func || defined __stub___$ac_func
19603choke me
19604#endif
19605
19606int
19607main ()
19608{
19609return $ac_func ();
19610 ;
19611 return 0;
19612}
19613_ACEOF
19614rm -f conftest.$ac_objext conftest$ac_exeext
19615if { (ac_try="$ac_link"
19616case "(($ac_try" in
19617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19618 *) ac_try_echo=$ac_try;;
19619esac
19620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19621 (eval "$ac_link") 2>conftest.er1
19622 ac_status=$?
19623 grep -v '^ *+' conftest.er1 >conftest.err
19624 rm -f conftest.er1
19625 cat conftest.err >&5
19626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627 (exit $ac_status); } &&
19628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19629 { (case "(($ac_try" in
19630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19631 *) ac_try_echo=$ac_try;;
19632esac
19633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19634 (eval "$ac_try") 2>&5
19635 ac_status=$?
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); }; } &&
19638 { ac_try='test -s conftest$ac_exeext'
19639 { (case "(($ac_try" in
19640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19641 *) ac_try_echo=$ac_try;;
19642esac
19643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19644 (eval "$ac_try") 2>&5
19645 ac_status=$?
19646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647 (exit $ac_status); }; }; then
19648 eval "$as_ac_var=yes"
19649else
19650 echo "$as_me: failed program was:" >&5
19651sed 's/^/| /' conftest.$ac_ext >&5
19652
19653 eval "$as_ac_var=no"
19654fi
19655
19656rm -f core conftest.err conftest.$ac_objext \
19657 conftest$ac_exeext conftest.$ac_ext
19658fi
19659ac_res=`eval echo '${'$as_ac_var'}'`
19660 { echo "$as_me:$LINENO: result: $ac_res" >&5
19661echo "${ECHO_T}$ac_res" >&6; }
19662if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019663 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019664#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000019665_ACEOF
19666
19667fi
19668done
19669
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019670{ echo "$as_me:$LINENO: checking for working mmap" >&5
19671echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19672if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19673 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019674else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019675 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019676 ac_cv_func_mmap_fixed_mapped=no
19677else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019678 cat >conftest.$ac_ext <<_ACEOF
19679/* confdefs.h. */
19680_ACEOF
19681cat confdefs.h >>conftest.$ac_ext
19682cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019683/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019684$ac_includes_default
19685/* malloc might have been renamed as rpl_malloc. */
19686#undef malloc
19687
19688/* Thanks to Mike Haertel and Jim Avera for this test.
19689 Here is a matrix of mmap possibilities:
19690 mmap private not fixed
19691 mmap private fixed at somewhere currently unmapped
19692 mmap private fixed at somewhere already mapped
19693 mmap shared not fixed
19694 mmap shared fixed at somewhere currently unmapped
19695 mmap shared fixed at somewhere already mapped
19696 For private mappings, we should verify that changes cannot be read()
19697 back from the file, nor mmap's back from the file at a different
19698 address. (There have been systems where private was not correctly
19699 implemented like the infamous i386 svr4.0, and systems where the
19700 VM page cache was not coherent with the file system buffer cache
19701 like early versions of FreeBSD and possibly contemporary NetBSD.)
19702 For shared mappings, we should conversely verify that changes get
19703 propagated back to all the places they're supposed to be.
19704
19705 Grep wants private fixed already mapped.
19706 The main things grep needs to know about mmap are:
19707 * does it exist and is it safe to write into the mmap'd area
19708 * how to use it (BSD variants) */
19709
19710#include <fcntl.h>
19711#include <sys/mman.h>
19712
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019713#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000019714char *malloc ();
19715#endif
19716
19717/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019718#if !HAVE_GETPAGESIZE
19719/* Assume that all systems that can run configure have sys/param.h. */
19720# if !HAVE_SYS_PARAM_H
19721# define HAVE_SYS_PARAM_H 1
19722# endif
19723
John Criswell7a73b802003-06-30 21:59:07 +000019724# ifdef _SC_PAGESIZE
19725# define getpagesize() sysconf(_SC_PAGESIZE)
19726# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019727# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000019728# include <sys/param.h>
19729# ifdef EXEC_PAGESIZE
19730# define getpagesize() EXEC_PAGESIZE
19731# else /* no EXEC_PAGESIZE */
19732# ifdef NBPG
19733# define getpagesize() NBPG * CLSIZE
19734# ifndef CLSIZE
19735# define CLSIZE 1
19736# endif /* no CLSIZE */
19737# else /* no NBPG */
19738# ifdef NBPC
19739# define getpagesize() NBPC
19740# else /* no NBPC */
19741# ifdef PAGESIZE
19742# define getpagesize() PAGESIZE
19743# endif /* PAGESIZE */
19744# endif /* no NBPC */
19745# endif /* no NBPG */
19746# endif /* no EXEC_PAGESIZE */
19747# else /* no HAVE_SYS_PARAM_H */
19748# define getpagesize() 8192 /* punt totally */
19749# endif /* no HAVE_SYS_PARAM_H */
19750# endif /* no _SC_PAGESIZE */
19751
19752#endif /* no HAVE_GETPAGESIZE */
19753
19754int
19755main ()
19756{
19757 char *data, *data2, *data3;
19758 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019759 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000019760
19761 pagesize = getpagesize ();
19762
19763 /* First, make a file with some known garbage in it. */
19764 data = (char *) malloc (pagesize);
19765 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000019766 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019767 for (i = 0; i < pagesize; ++i)
19768 *(data + i) = rand ();
19769 umask (0);
19770 fd = creat ("conftest.mmap", 0600);
19771 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019772 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019773 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019774 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019775 close (fd);
19776
19777 /* Next, try to mmap the file at a fixed address which already has
19778 something else allocated at it. If we can, also make sure that
19779 we see the same garbage. */
19780 fd = open ("conftest.mmap", O_RDWR);
19781 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019782 return 1;
19783 data2 = (char *) malloc (2 * pagesize);
19784 if (!data2)
19785 return 1;
19786 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000019787 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000019788 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019789 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019790 for (i = 0; i < pagesize; ++i)
19791 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019792 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019793
19794 /* Finally, make sure that changes to the mapped area do not
19795 percolate back to the file as seen by read(). (This is a bug on
19796 some variants of i386 svr4.0.) */
19797 for (i = 0; i < pagesize; ++i)
19798 *(data2 + i) = *(data2 + i) + 1;
19799 data3 = (char *) malloc (pagesize);
19800 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019801 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019802 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019803 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019804 for (i = 0; i < pagesize; ++i)
19805 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019806 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019807 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000019808 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000019809}
19810_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019811rm -f conftest$ac_exeext
19812if { (ac_try="$ac_link"
19813case "(($ac_try" in
19814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19815 *) ac_try_echo=$ac_try;;
19816esac
19817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19818 (eval "$ac_link") 2>&5
19819 ac_status=$?
19820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19822 { (case "(($ac_try" in
19823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19824 *) ac_try_echo=$ac_try;;
19825esac
19826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19827 (eval "$ac_try") 2>&5
19828 ac_status=$?
19829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019831 ac_cv_func_mmap_fixed_mapped=yes
19832else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019833 echo "$as_me: program exited with status $ac_status" >&5
19834echo "$as_me: failed program was:" >&5
19835sed 's/^/| /' conftest.$ac_ext >&5
19836
19837( exit $ac_status )
19838ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000019839fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019840rm -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 +000019841fi
Reid Spencera773bd52006-08-04 18:18:08 +000019842
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019843
John Criswell7a73b802003-06-30 21:59:07 +000019844fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019845{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19846echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000019847if test $ac_cv_func_mmap_fixed_mapped = yes; then
19848
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019849cat >>confdefs.h <<\_ACEOF
19850#define HAVE_MMAP 1
19851_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019852
19853fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019854rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000019855
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019856 { echo "$as_me:$LINENO: checking for mmap of files" >&5
19857echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
19858if test "${ac_cv_func_mmap_file+set}" = set; then
19859 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019860else
Reid Spencer2706f8c2004-09-19 23:53:36 +000019861 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000019862ac_cpp='$CPP $CPPFLAGS'
19863ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19864ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19865ac_compiler_gnu=$ac_cv_c_compiler_gnu
19866
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019867 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000019868 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000019869else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019870 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000019871
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019872 /* confdefs.h. */
19873_ACEOF
19874cat confdefs.h >>conftest.$ac_ext
19875cat >>conftest.$ac_ext <<_ACEOF
19876/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000019877
John Criswell7a73b802003-06-30 21:59:07 +000019878#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000019879#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000019880#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000019881
19882int
19883main ()
19884{
John Criswell7a73b802003-06-30 21:59:07 +000019885
19886 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000019887 fd = creat ("foo",0777);
19888 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
19889 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000019890 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000019891 ;
19892 return 0;
19893}
John Criswell7a73b802003-06-30 21:59:07 +000019894_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019895rm -f conftest$ac_exeext
19896if { (ac_try="$ac_link"
19897case "(($ac_try" in
19898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19899 *) ac_try_echo=$ac_try;;
19900esac
19901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19902 (eval "$ac_link") 2>&5
19903 ac_status=$?
19904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19906 { (case "(($ac_try" in
19907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19908 *) ac_try_echo=$ac_try;;
19909esac
19910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19911 (eval "$ac_try") 2>&5
19912 ac_status=$?
19913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019915 ac_cv_func_mmap_file=yes
19916else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019917 echo "$as_me: program exited with status $ac_status" >&5
19918echo "$as_me: failed program was:" >&5
19919sed 's/^/| /' conftest.$ac_ext >&5
19920
19921( exit $ac_status )
19922ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000019923fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019924rm -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 +000019925fi
Reid Spencera773bd52006-08-04 18:18:08 +000019926
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019927
John Criswell7a73b802003-06-30 21:59:07 +000019928 ac_ext=c
19929ac_cpp='$CPP $CPPFLAGS'
19930ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19931ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19932ac_compiler_gnu=$ac_cv_c_compiler_gnu
19933
19934
19935fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019936{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
19937echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000019938if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000019939
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019940cat >>confdefs.h <<\_ACEOF
19941#define HAVE_MMAP_FILE
19942_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019943
19944 MMAP_FILE=yes
19945
19946fi
19947
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019948 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
19949echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
19950if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
19951 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000019952else
Reid Spencer582a23c2004-12-29 07:07:57 +000019953 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000019954 ac_cv_need_dev_zero_for_mmap=yes
19955 else
19956 ac_cv_need_dev_zero_for_mmap=no
19957 fi
19958
19959fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019960{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
19961echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000019962if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
19963
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019964cat >>confdefs.h <<\_ACEOF
19965#define NEED_DEV_ZERO_FOR_MMAP 1
19966_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000019967
19968fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019969
Reid Spencer30fe5262007-01-20 07:48:49 +000019970 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
19971 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019972 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
19973echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000019974 fi
19975 if test "$ac_cv_func_mmap_file" = "no"
19976 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019977 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
19978echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000019979 fi
John Criswellb13092b2003-07-22 21:00:24 +000019980fi
John Criswell7a73b802003-06-30 21:59:07 +000019981
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019982{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
19983echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000019984ac_ext=cpp
19985ac_cpp='$CXXCPP $CPPFLAGS'
19986ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19987ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19988ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19989
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019990cat >conftest.$ac_ext <<_ACEOF
19991/* confdefs.h. */
19992_ACEOF
19993cat confdefs.h >>conftest.$ac_ext
19994cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000019995/* end confdefs.h. */
19996int main() {
Owen Andersona8603702009-05-19 22:18:56 +000019997 volatile unsigned long val = 1;
19998 __sync_synchronize();
19999 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000020000 __sync_add_and_fetch(&val, 1);
20001 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000020002 return 0;
20003 }
Owen Andersond4b272b2009-05-18 23:58:51 +000020004
20005_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020006rm -f conftest.$ac_objext conftest$ac_exeext
20007if { (ac_try="$ac_link"
20008case "(($ac_try" in
20009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20010 *) ac_try_echo=$ac_try;;
20011esac
20012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20013 (eval "$ac_link") 2>conftest.er1
20014 ac_status=$?
20015 grep -v '^ *+' conftest.er1 >conftest.err
20016 rm -f conftest.er1
20017 cat conftest.err >&5
20018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20019 (exit $ac_status); } &&
20020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20021 { (case "(($ac_try" in
20022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20023 *) ac_try_echo=$ac_try;;
20024esac
20025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20026 (eval "$ac_try") 2>&5
20027 ac_status=$?
20028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029 (exit $ac_status); }; } &&
20030 { ac_try='test -s conftest$ac_exeext'
20031 { (case "(($ac_try" in
20032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20033 *) ac_try_echo=$ac_try;;
20034esac
20035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20036 (eval "$ac_try") 2>&5
20037 ac_status=$?
20038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000020040 ac_ext=c
20041ac_cpp='$CPP $CPPFLAGS'
20042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20044ac_compiler_gnu=$ac_cv_c_compiler_gnu
20045
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020046 { echo "$as_me:$LINENO: result: yes" >&5
20047echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000020048
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020049cat >>confdefs.h <<\_ACEOF
20050#define LLVM_MULTITHREADED 1
20051_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000020052
Owen Andersond4b272b2009-05-18 23:58:51 +000020053else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020054 echo "$as_me: failed program was:" >&5
20055sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000020056
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020057 { echo "$as_me:$LINENO: result: no" >&5
20058echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000020059
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020060cat >>confdefs.h <<\_ACEOF
20061#define LLVM_MULTITHREADED 0
20062_ACEOF
20063
20064 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20065echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000020066fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020067
Owen Andersond4b272b2009-05-18 23:58:51 +000020068rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020069 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000020070
John Criswell7a73b802003-06-30 21:59:07 +000020071
Nick Lewycky4372e692009-09-29 06:18:23 +000020072if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020073 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20074echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20075if test "${llvm_cv_linux_mixed+set}" = set; then
20076 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000020077else
20078 ac_ext=c
20079ac_cpp='$CPP $CPPFLAGS'
20080ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20081ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20082ac_compiler_gnu=$ac_cv_c_compiler_gnu
20083
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020084 cat >conftest.$ac_ext <<_ACEOF
20085/* confdefs.h. */
20086_ACEOF
20087cat confdefs.h >>conftest.$ac_ext
20088cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000020089/* end confdefs.h. */
20090#ifndef __x86_64__
20091 error: Not x86-64 even if uname says so!
20092 #endif
20093
20094int
20095main ()
20096{
20097
20098 ;
20099 return 0;
20100}
20101_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020102rm -f conftest.$ac_objext
20103if { (ac_try="$ac_compile"
20104case "(($ac_try" in
20105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20106 *) ac_try_echo=$ac_try;;
20107esac
20108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20109 (eval "$ac_compile") 2>conftest.er1
20110 ac_status=$?
20111 grep -v '^ *+' conftest.er1 >conftest.err
20112 rm -f conftest.er1
20113 cat conftest.err >&5
20114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115 (exit $ac_status); } &&
20116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20117 { (case "(($ac_try" in
20118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20119 *) ac_try_echo=$ac_try;;
20120esac
20121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20122 (eval "$ac_try") 2>&5
20123 ac_status=$?
20124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125 (exit $ac_status); }; } &&
20126 { ac_try='test -s conftest.$ac_objext'
20127 { (case "(($ac_try" in
20128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20129 *) ac_try_echo=$ac_try;;
20130esac
20131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20132 (eval "$ac_try") 2>&5
20133 ac_status=$?
20134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20135 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000020136 llvm_cv_linux_mixed=no
20137else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020138 echo "$as_me: failed program was:" >&5
20139sed 's/^/| /' conftest.$ac_ext >&5
20140
20141 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000020142fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020143
Nick Lewycky4372e692009-09-29 06:18:23 +000020144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20145 ac_ext=c
20146ac_cpp='$CPP $CPPFLAGS'
20147ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20148ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20149ac_compiler_gnu=$ac_cv_c_compiler_gnu
20150
20151
20152fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020153{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20154echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000020155
20156 if test "$llvm_cv_linux_mixed" = "yes"; then
20157 llvm_cv_target_arch="x86"
20158 ARCH="x86"
20159 fi
20160fi
20161
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020162
Reid Spencer9372f152007-07-30 20:13:24 +000020163for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020164do
20165as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20166{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20167echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20168if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20169 echo $ECHO_N "(cached) $ECHO_C" >&6
20170else
20171 cat >conftest.$ac_ext <<_ACEOF
20172/* confdefs.h. */
20173_ACEOF
20174cat confdefs.h >>conftest.$ac_ext
20175cat >>conftest.$ac_ext <<_ACEOF
20176/* end confdefs.h. */
20177/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20178 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20179#define $ac_func innocuous_$ac_func
20180
20181/* System header to define __stub macros and hopefully few prototypes,
20182 which can conflict with char $ac_func (); below.
20183 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20184 <limits.h> exists even on freestanding compilers. */
20185
20186#ifdef __STDC__
20187# include <limits.h>
20188#else
20189# include <assert.h>
20190#endif
20191
20192#undef $ac_func
20193
20194/* Override any GCC internal prototype to avoid an error.
20195 Use char because int might match the return type of a GCC
20196 builtin and then its argument prototype would still apply. */
20197#ifdef __cplusplus
20198extern "C"
20199#endif
20200char $ac_func ();
20201/* The GNU C library defines this for functions which it implements
20202 to always fail with ENOSYS. Some functions are actually named
20203 something starting with __ and the normal name is an alias. */
20204#if defined __stub_$ac_func || defined __stub___$ac_func
20205choke me
20206#endif
20207
20208int
20209main ()
20210{
20211return $ac_func ();
20212 ;
20213 return 0;
20214}
20215_ACEOF
20216rm -f conftest.$ac_objext conftest$ac_exeext
20217if { (ac_try="$ac_link"
20218case "(($ac_try" in
20219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20220 *) ac_try_echo=$ac_try;;
20221esac
20222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20223 (eval "$ac_link") 2>conftest.er1
20224 ac_status=$?
20225 grep -v '^ *+' conftest.er1 >conftest.err
20226 rm -f conftest.er1
20227 cat conftest.err >&5
20228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229 (exit $ac_status); } &&
20230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20231 { (case "(($ac_try" in
20232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20233 *) ac_try_echo=$ac_try;;
20234esac
20235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20236 (eval "$ac_try") 2>&5
20237 ac_status=$?
20238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239 (exit $ac_status); }; } &&
20240 { ac_try='test -s conftest$ac_exeext'
20241 { (case "(($ac_try" in
20242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20243 *) ac_try_echo=$ac_try;;
20244esac
20245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20246 (eval "$ac_try") 2>&5
20247 ac_status=$?
20248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20249 (exit $ac_status); }; }; then
20250 eval "$as_ac_var=yes"
20251else
20252 echo "$as_me: failed program was:" >&5
20253sed 's/^/| /' conftest.$ac_ext >&5
20254
20255 eval "$as_ac_var=no"
20256fi
20257
20258rm -f core conftest.err conftest.$ac_objext \
20259 conftest$ac_exeext conftest.$ac_ext
20260fi
20261ac_res=`eval echo '${'$as_ac_var'}'`
20262 { echo "$as_me:$LINENO: result: $ac_res" >&5
20263echo "${ECHO_T}$ac_res" >&6; }
20264if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000020265 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020266#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000020267_ACEOF
20268
20269fi
20270done
20271
20272
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020273{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
20274echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
20275if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
20276 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020277else
20278 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000020279if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020280 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000020281 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
20282 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020283 if test $? -eq 0 ; then
20284 llvm_cv_llvmgcc_sanity="yes"
20285 fi
20286 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000020287fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020288fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020289{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
20290echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020291
20292if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020293 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
20294echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000020295 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020296 LLVMCC1=$llvmcc1path
20297
Reid Spencer502935f2004-12-22 05:56:56 +000020298 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020299 LLVMCC1PLUS=$llvmcc1pluspath
20300
Reid Spencer502935f2004-12-22 05:56:56 +000020301 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
20302 LLVMGCCDIR=$llvmgccdir
20303
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000020304 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000020305 LLVMGCC_LANGS=$llvmgcclangs
20306
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020307 { echo "$as_me:$LINENO: result: ok" >&5
20308echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000020309fi
20310
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020311SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000020312
20313
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000020314SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20315
20316
Reid Spencere9de0912004-08-20 09:03:57 +000020317# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020318# information into substitutions that will end up in Makefile.config.in
20319# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000020320if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000020321 prefix="/usr/local"
20322fi
Reid Spencere9de0912004-08-20 09:03:57 +000020323eval LLVM_PREFIX="${prefix}";
20324eval LLVM_BINDIR="${prefix}/bin";
20325eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000020326eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000020327eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000020328eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000020329eval LLVM_INCLUDEDIR="${prefix}/include";
20330eval LLVM_INFODIR="${prefix}/info";
20331eval LLVM_MANDIR="${prefix}/man";
20332LLVM_CONFIGTIME=`date`
20333
20334
20335
20336
20337
20338
20339
20340
20341
20342
20343
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020344# Place the various directores into the config.h file as #defines so that we
20345# can know about the installation paths within LLVM.
20346
Reid Spencere9de0912004-08-20 09:03:57 +000020347cat >>confdefs.h <<_ACEOF
20348#define LLVM_PREFIX "$LLVM_PREFIX"
20349_ACEOF
20350
20351
20352cat >>confdefs.h <<_ACEOF
20353#define LLVM_BINDIR "$LLVM_BINDIR"
20354_ACEOF
20355
20356
20357cat >>confdefs.h <<_ACEOF
20358#define LLVM_LIBDIR "$LLVM_LIBDIR"
20359_ACEOF
20360
20361
20362cat >>confdefs.h <<_ACEOF
20363#define LLVM_DATADIR "$LLVM_DATADIR"
20364_ACEOF
20365
20366
20367cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000020368#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020369_ACEOF
20370
20371
20372cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000020373#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020374_ACEOF
20375
20376
20377cat >>confdefs.h <<_ACEOF
20378#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20379_ACEOF
20380
20381
20382cat >>confdefs.h <<_ACEOF
20383#define LLVM_INFODIR "$LLVM_INFODIR"
20384_ACEOF
20385
20386
20387cat >>confdefs.h <<_ACEOF
20388#define LLVM_MANDIR "$LLVM_MANDIR"
20389_ACEOF
20390
20391
20392cat >>confdefs.h <<_ACEOF
20393#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20394_ACEOF
20395
20396
Eric Christopher790e11c2007-12-01 00:34:39 +000020397cat >>confdefs.h <<_ACEOF
20398#define LLVM_HOSTTRIPLE "$host"
20399_ACEOF
20400
20401
Gordon Henriksenc0efff82007-10-02 09:50:32 +000020402# Determine which bindings to build.
20403if test "$BINDINGS_TO_BUILD" = auto ; then
20404 BINDINGS_TO_BUILD=""
20405 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20406 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20407 fi
20408fi
20409BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20410
20411
20412# This isn't really configurey, but it avoids having to repeat the list in
20413# other files.
20414ALL_BINDINGS=ocaml
20415
20416
Gordon Henriksenf0915682007-10-02 16:42:22 +000020417# Do any work necessary to ensure that bindings have what they need.
20418binding_prereqs_failed=0
20419for a_binding in $BINDINGS_TO_BUILD ; do
20420 case "$a_binding" in
20421 ocaml)
20422 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020423 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20424echo "$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 +000020425 binding_prereqs_failed=1
20426 fi
20427 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020428 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20429echo "$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 +000020430 binding_prereqs_failed=1
20431 fi
20432 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020433 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20434echo "$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 +000020435 fi
20436 if test "x$with_ocaml_libdir" != xauto ; then
20437 OCAML_LIBDIR=$with_ocaml_libdir
20438
20439 else
20440 ocaml_stdlib="`"$OCAMLC" -where`"
20441 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20442 then
20443 # ocaml stdlib is beneath our prefix; use stdlib
20444 OCAML_LIBDIR=$ocaml_stdlib
20445
20446 else
20447 # ocaml stdlib is outside our prefix; use libdir/ocaml
20448 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20449
20450 fi
20451 fi
20452 ;;
20453 esac
20454done
20455if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020456 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20457echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20458 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000020459fi
20460
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020461{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20462echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20463if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20464 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020465else
20466 ac_ext=cpp
20467ac_cpp='$CXXCPP $CPPFLAGS'
20468ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20469ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20470ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20471
20472 oldcxxflags="$CXXFLAGS"
20473 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020474 cat >conftest.$ac_ext <<_ACEOF
20475/* confdefs.h. */
20476_ACEOF
20477cat confdefs.h >>conftest.$ac_ext
20478cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020479/* end confdefs.h. */
20480
20481int
20482main ()
20483{
20484
20485 ;
20486 return 0;
20487}
20488_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020489rm -f conftest.$ac_objext
20490if { (ac_try="$ac_compile"
20491case "(($ac_try" in
20492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20493 *) ac_try_echo=$ac_try;;
20494esac
20495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20496 (eval "$ac_compile") 2>conftest.er1
20497 ac_status=$?
20498 grep -v '^ *+' conftest.er1 >conftest.err
20499 rm -f conftest.er1
20500 cat conftest.err >&5
20501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502 (exit $ac_status); } &&
20503 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20504 { (case "(($ac_try" in
20505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20506 *) ac_try_echo=$ac_try;;
20507esac
20508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20509 (eval "$ac_try") 2>&5
20510 ac_status=$?
20511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20512 (exit $ac_status); }; } &&
20513 { ac_try='test -s conftest.$ac_objext'
20514 { (case "(($ac_try" in
20515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20516 *) ac_try_echo=$ac_try;;
20517esac
20518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20519 (eval "$ac_try") 2>&5
20520 ac_status=$?
20521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20522 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020523 llvm_cv_cxx_visibility_inlines_hidden=yes
20524else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020525 echo "$as_me: failed program was:" >&5
20526sed 's/^/| /' conftest.$ac_ext >&5
20527
20528 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020529fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020530
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20532 CXXFLAGS="$oldcxxflags"
20533 ac_ext=c
20534ac_cpp='$CPP $CPPFLAGS'
20535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20537ac_compiler_gnu=$ac_cv_c_compiler_gnu
20538
20539
20540fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020541{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20542echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020543if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20544 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20545
20546else
20547 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20548
20549fi
20550
Gordon Henriksenf0915682007-10-02 16:42:22 +000020551
Nick Lewycky731c6ab2009-03-05 08:20:44 +000020552if test "$llvm_cv_link_use_r" = "yes" ; then
20553 RPATH="-Wl,-R"
20554else
20555 RPATH="-Wl,-rpath"
20556fi
20557
20558
20559if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20560 RDYNAMIC="-Wl,-export-dynamic"
20561else
20562 RDYNAMIC=""
20563fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000020564
20565
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020566
Eric Christophera1cba682010-08-08 02:44:25 +000020567ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020568
Eric Christopher21d3eeb2010-08-08 09:20:39 +000020569
20570
20571
20572
20573
Douglas Gregor1555a232009-06-16 20:12:29 +000020574ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20575
20576ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20577
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000020578ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20579
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000020580ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20581
Chandler Carruth8b67f772009-10-26 01:35:46 +000020582ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020583
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020584
Reid Spencera773bd52006-08-04 18:18:08 +000020585ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020586
20587
Reid Spencerea949cf2006-08-16 00:45:38 +000020588ac_config_files="$ac_config_files llvm.spec"
20589
20590
Mikhail Glushenkov4b643c02010-08-15 07:07:17 +000020591ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000020592
20593
Reid Spencera773bd52006-08-04 18:18:08 +000020594ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000020595
20596
Reid Spencera773bd52006-08-04 18:18:08 +000020597ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000020598
Reid Spencera773bd52006-08-04 18:18:08 +000020599ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020600
20601
Reid Spencera773bd52006-08-04 18:18:08 +000020602ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020603
20604
Reid Spencera773bd52006-08-04 18:18:08 +000020605ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020606
20607
Reid Spencera773bd52006-08-04 18:18:08 +000020608ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020609
20610
Reid Spencer8b2e1412006-11-17 03:32:33 +000020611ac_config_commands="$ac_config_commands runtime/Makefile"
20612
20613
Reid Spencera773bd52006-08-04 18:18:08 +000020614ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020615
20616
Reid Spencera773bd52006-08-04 18:18:08 +000020617ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020618
20619
Bill Wendlingf24eb392009-01-04 23:12:30 +000020620ac_config_commands="$ac_config_commands unittests/Makefile"
20621
20622
Reid Spencera773bd52006-08-04 18:18:08 +000020623ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020624
20625
Reid Spencera773bd52006-08-04 18:18:08 +000020626ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020627
20628
Reid Spencera773bd52006-08-04 18:18:08 +000020629ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020630
20631
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000020632ac_config_commands="$ac_config_commands bindings/Makefile"
20633
20634
20635ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20636
20637
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020638
John Criswell7a73b802003-06-30 21:59:07 +000020639cat >confcache <<\_ACEOF
20640# This file is a shell script that caches the results of configure
20641# tests run on this system so they can be shared between configure
20642# scripts and configure runs, see configure's option --config-cache.
20643# It is not useful on other systems. If it contains results you don't
20644# want to keep, you may remove or edit it.
20645#
20646# config.status only pays attention to the cache file if you give it
20647# the --recheck option to rerun configure.
20648#
John Criswell0c38eaf2003-09-10 15:17:25 +000020649# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000020650# loading this file, other *unset* `ac_cv_foo' will be assigned the
20651# following values.
20652
20653_ACEOF
20654
20655# The following way of writing the cache mishandles newlines in values,
20656# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000020657# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000020658# Ultrix sh set writes to stderr and can't be redirected directly,
20659# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000020660(
20661 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20662 eval ac_val=\$$ac_var
20663 case $ac_val in #(
20664 *${as_nl}*)
20665 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020666 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20667echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020668 esac
20669 case $ac_var in #(
20670 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020671 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020672 esac ;;
20673 esac
20674 done
20675
John Criswell7a73b802003-06-30 21:59:07 +000020676 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000020677 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20678 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020679 # `set' does not quote correctly, so add quotes (double-quote
20680 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000020681 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000020682 "s/'/'\\\\''/g;
20683 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000020684 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000020685 *)
20686 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000020687 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000020688 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020689 esac |
20690 sort
20691) |
John Criswell7a73b802003-06-30 21:59:07 +000020692 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000020693 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000020694 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000020695 :clear
John Criswell7a73b802003-06-30 21:59:07 +000020696 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20697 t end
Reid Spencera773bd52006-08-04 18:18:08 +000020698 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20699 :end' >>confcache
20700if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20701 if test -w "$cache_file"; then
20702 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020703 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20704echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000020705 cat confcache >$cache_file
20706 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020707 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20708echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000020709 fi
20710fi
20711rm -f confcache
20712
20713test "x$prefix" = xNONE && prefix=$ac_default_prefix
20714# Let make expand exec_prefix.
20715test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20716
John Criswell7a73b802003-06-30 21:59:07 +000020717DEFS=-DHAVE_CONFIG_H
20718
John Criswell0c38eaf2003-09-10 15:17:25 +000020719ac_libobjs=
20720ac_ltlibobjs=
20721for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20722 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000020723 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020724 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000020725 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20726 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020727 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20728 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000020729done
20730LIBOBJS=$ac_libobjs
20731
20732LTLIBOBJS=$ac_ltlibobjs
20733
20734
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020735if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020736 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20737Usually this means the macro was only invoked conditionally." >&5
20738echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20739Usually this means the macro was only invoked conditionally." >&2;}
20740 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020741fi
20742if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020743 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20744Usually this means the macro was only invoked conditionally." >&5
20745echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20746Usually this means the macro was only invoked conditionally." >&2;}
20747 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020748fi
John Criswell7a73b802003-06-30 21:59:07 +000020749
20750: ${CONFIG_STATUS=./config.status}
20751ac_clean_files_save=$ac_clean_files
20752ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020753{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20754echo "$as_me: creating $CONFIG_STATUS" >&6;}
20755cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020756#! $SHELL
20757# Generated by $as_me.
20758# Run this file to recreate the current configuration.
20759# Compiler output produced by configure, useful for debugging
20760# configure, is in config.log if it exists.
20761
20762debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000020763ac_cs_recheck=false
20764ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000020765SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020766_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020767
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020768cat >>$CONFIG_STATUS <<\_ACEOF
20769## --------------------- ##
20770## M4sh Initialization. ##
20771## --------------------- ##
20772
20773# Be Bourne compatible
20774if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000020775 emulate sh
20776 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020777 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000020778 # is contrary to our usage. Disable this feature.
20779 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000020780 setopt NO_GLOB_SUBST
20781else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020782 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000020783fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020784BIN_SH=xpg4; export BIN_SH # for Tru64
20785DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000020786
John Criswell7a73b802003-06-30 21:59:07 +000020787
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020788# PATH needs CR
20789# Avoid depending upon Character Ranges.
20790as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20791as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20792as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20793as_cr_digits='0123456789'
20794as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000020795
20796# The user is always right.
20797if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020798 echo "#! /bin/sh" >conf$$.sh
20799 echo "exit 0" >>conf$$.sh
20800 chmod +x conf$$.sh
20801 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20802 PATH_SEPARATOR=';'
20803 else
20804 PATH_SEPARATOR=:
20805 fi
20806 rm -f conf$$.sh
20807fi
20808
20809# Support unset when possible.
20810if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20811 as_unset=unset
20812else
20813 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000020814fi
John Criswell7a73b802003-06-30 21:59:07 +000020815
Reid Spencera773bd52006-08-04 18:18:08 +000020816
20817# IFS
20818# We need space, tab and new line, in precisely that order. Quoting is
20819# there to prevent editors from complaining about space-tab.
20820# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20821# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020822as_nl='
20823'
Reid Spencera773bd52006-08-04 18:18:08 +000020824IFS=" "" $as_nl"
20825
20826# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020827case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000020828 *[\\/]* ) as_myself=$0 ;;
20829 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000020830for as_dir in $PATH
20831do
20832 IFS=$as_save_IFS
20833 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020834 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20835done
Reid Spencera773bd52006-08-04 18:18:08 +000020836IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000020837
Reid Spencera773bd52006-08-04 18:18:08 +000020838 ;;
20839esac
20840# We did not find ourselves, most probably we were run as `sh COMMAND'
20841# in which case we are not to be found in the path.
20842if test "x$as_myself" = x; then
20843 as_myself=$0
20844fi
20845if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020846 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20847 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000020848fi
20849
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020850# Work around bugs in pre-3.0 UWIN ksh.
20851for as_var in ENV MAIL MAILPATH
20852do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000020853done
20854PS1='$ '
20855PS2='> '
20856PS4='+ '
20857
20858# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020859for as_var in \
20860 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20861 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20862 LC_TELEPHONE LC_TIME
20863do
20864 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20865 eval $as_var=C; export $as_var
20866 else
20867 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000020868 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020869done
Torok Edwin871384f2010-01-26 08:50:50 +000020870
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020871# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000020872if expr a : '\(a\)' >/dev/null 2>&1 &&
20873 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20874 as_expr=expr
20875else
20876 as_expr=false
20877fi
20878
20879if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20880 as_basename=basename
20881else
20882 as_basename=false
20883fi
20884
20885
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020886# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000020887as_me=`$as_basename -- "$0" ||
20888$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20889 X"$0" : 'X\(//\)$' \| \
20890 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020891echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000020892 sed '/^.*\/\([^/][^/]*\)\/*$/{
20893 s//\1/
20894 q
20895 }
20896 /^X\/\(\/\/\)$/{
20897 s//\1/
20898 q
20899 }
20900 /^X\/\(\/\).*/{
20901 s//\1/
20902 q
20903 }
20904 s/.*/./; q'`
20905
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020906# CDPATH.
20907$as_unset CDPATH
20908
20909
20910
20911 as_lineno_1=$LINENO
20912 as_lineno_2=$LINENO
20913 test "x$as_lineno_1" != "x$as_lineno_2" &&
20914 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20915
20916 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20917 # uniformly replaced by the line number. The first 'sed' inserts a
20918 # line-number line after each line using $LINENO; the second 'sed'
20919 # does the real work. The second script uses 'N' to pair each
20920 # line-number line with the line containing $LINENO, and appends
20921 # trailing '-' during substitution so that $LINENO is not a special
20922 # case at line end.
20923 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20924 # scripts with optimization help from Paolo Bonzini. Blame Lee
20925 # E. McMahon (1931-1989) for sed's syntax. :-)
20926 sed -n '
20927 p
20928 /[$]LINENO/=
20929 ' <$as_myself |
20930 sed '
20931 s/[$]LINENO.*/&-/
20932 t lineno
20933 b
20934 :lineno
20935 N
20936 :loop
20937 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20938 t loop
20939 s/-\n.*//
20940 ' >$as_me.lineno &&
20941 chmod +x "$as_me.lineno" ||
20942 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20943 { (exit 1); exit 1; }; }
20944
20945 # Don't try to exec as it changes $[0], causing all sort of problems
20946 # (the dirname of $[0] is not the place where we might find the
20947 # original and so on. Autoconf is especially sensitive to this).
20948 . "./$as_me.lineno"
20949 # Exit status is that of the last command.
20950 exit
20951}
20952
20953
20954if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20955 as_dirname=dirname
20956else
20957 as_dirname=false
20958fi
Reid Spencera773bd52006-08-04 18:18:08 +000020959
20960ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020961case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000020962-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020963 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000020964 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020965 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000020966 esac;;
20967*)
20968 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000020969esac
20970
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020971if expr a : '\(a\)' >/dev/null 2>&1 &&
20972 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20973 as_expr=expr
20974else
20975 as_expr=false
20976fi
20977
John Criswell7a73b802003-06-30 21:59:07 +000020978rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000020979if test -d conf$$.dir; then
20980 rm -f conf$$.dir/conf$$.file
20981else
20982 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020983 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000020984fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020985echo >conf$$.file
20986if ln -s conf$$.file conf$$ 2>/dev/null; then
20987 as_ln_s='ln -s'
20988 # ... but there are two gotchas:
20989 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20990 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20991 # In both cases, we have to default to `cp -p'.
20992 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000020993 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020994elif ln conf$$.file conf$$ 2>/dev/null; then
20995 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000020996else
20997 as_ln_s='cp -p'
20998fi
Reid Spencera773bd52006-08-04 18:18:08 +000020999rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21000rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000021001
John Criswell0c38eaf2003-09-10 15:17:25 +000021002if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021003 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021004else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021005 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000021006 as_mkdir_p=false
21007fi
21008
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021009# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21010# systems may use methods other than mode bits to determine executability.
21011cat >conf$$.file <<_ASEOF
21012#! /bin/sh
21013exit 0
21014_ASEOF
21015chmod +x conf$$.file
21016if test -x conf$$.file >/dev/null 2>&1; then
21017 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000021018else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021019 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000021020fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021021rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000021022
21023# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021024as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021025
21026# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021027as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021028
21029
John Criswell7a73b802003-06-30 21:59:07 +000021030exec 6>&1
21031
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021032# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000021033# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000021034# values after options handling.
21035ac_log="
Tanya Lattnerdc29dff2010-03-19 21:22:13 +000021036This file was extended by llvm $as_me 2.8svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021037generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000021038
21039 CONFIG_FILES = $CONFIG_FILES
21040 CONFIG_HEADERS = $CONFIG_HEADERS
21041 CONFIG_LINKS = $CONFIG_LINKS
21042 CONFIG_COMMANDS = $CONFIG_COMMANDS
21043 $ $0 $@
21044
Reid Spencera773bd52006-08-04 18:18:08 +000021045on `(hostname || uname -n) 2>/dev/null | sed 1q`
21046"
21047
John Criswell7a73b802003-06-30 21:59:07 +000021048_ACEOF
21049
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021050cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021051# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000021052config_files="$ac_config_files"
21053config_headers="$ac_config_headers"
21054config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000021055
Reid Spencera773bd52006-08-04 18:18:08 +000021056_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021057
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021058cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021059ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021060\`$as_me' instantiates files from templates according to the
21061current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000021062
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021063Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000021064
21065 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021066 -V, --version print version number, then exit
21067 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000021068 -d, --debug don't remove temporary files
21069 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021070 --file=FILE[:TEMPLATE]
21071 instantiate the configuration file FILE
21072 --header=FILE[:TEMPLATE]
21073 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000021074
21075Configuration files:
21076$config_files
21077
21078Configuration headers:
21079$config_headers
21080
John Criswellc764fbc2003-09-06 15:17:13 +000021081Configuration commands:
21082$config_commands
21083
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021084Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000021085
Reid Spencera773bd52006-08-04 18:18:08 +000021086_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021087cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021088ac_cs_version="\\
Tanya Lattnerdc29dff2010-03-19 21:22:13 +000021089llvm config.status 2.8svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021090configured by $0, generated by GNU Autoconf 2.60,
21091 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000021092
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021093Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000021094This config.status script is free software; the Free Software Foundation
21095gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000021096
21097ac_pwd='$ac_pwd'
21098srcdir='$srcdir'
21099INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000021100_ACEOF
21101
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021102cat >>$CONFIG_STATUS <<\_ACEOF
21103# If no file are specified by the user, then we need to provide default
21104# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000021105ac_need_defaults=:
21106while test $# != 0
21107do
21108 case $1 in
21109 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000021110 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21111 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000021112 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000021113 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021114 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000021115 ac_option=$1
21116 ac_optarg=$2
21117 ac_shift=shift
21118 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021119 esac
21120
John Criswell0c38eaf2003-09-10 15:17:25 +000021121 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000021122 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000021123 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21124 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021125 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021126 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021127 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000021128 debug=: ;;
21129 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000021130 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021131 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021132 ac_need_defaults=false;;
21133 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000021134 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021135 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021136 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000021137 --he | --h)
21138 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021139 { echo "$as_me: error: ambiguous option: $1
21140Try \`$0 --help' for more information." >&2
21141 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021142 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021143 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000021144 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21145 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21146 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000021147
21148 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021149 -*) { echo "$as_me: error: unrecognized option: $1
21150Try \`$0 --help' for more information." >&2
21151 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000021152
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021153 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000021154 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000021155
21156 esac
21157 shift
21158done
21159
John Criswell0c38eaf2003-09-10 15:17:25 +000021160ac_configure_extra_args=
21161
21162if $ac_cs_silent; then
21163 exec 6>/dev/null
21164 ac_configure_extra_args="$ac_configure_extra_args --silent"
21165fi
21166
21167_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021168cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021169if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021170 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21171 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000021172 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021173 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000021174fi
21175
John Criswell7a73b802003-06-30 21:59:07 +000021176_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021177cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021178exec 5>>config.log
21179{
21180 echo
21181 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21182## Running $as_me. ##
21183_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021184 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000021185} >&5
John Criswell7a73b802003-06-30 21:59:07 +000021186
Reid Spencera773bd52006-08-04 18:18:08 +000021187_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021188cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000021189#
Reid Spencera773bd52006-08-04 18:18:08 +000021190# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000021191#
Reid Spencerc0682832005-02-24 19:05:19 +000021192llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000021193
21194_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021195
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021196cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021197
21198# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000021199for ac_config_target in $ac_config_targets
21200do
Reid Spencera773bd52006-08-04 18:18:08 +000021201 case $ac_config_target in
21202 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000021203 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000021204 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21205 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021206 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021207 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Chandler Carruth8b67f772009-10-26 01:35:46 +000021208 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021209 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000021210 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Mikhail Glushenkov4b643c02010-08-15 07:07:17 +000021211 "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021212 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21213 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21214 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21215 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21216 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21217 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021218 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021219 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21220 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021221 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021222 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21223 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21224 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021225 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21226 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021227
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021228 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21229echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21230 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000021231 esac
21232done
21233
Reid Spencera773bd52006-08-04 18:18:08 +000021234
John Criswell7a73b802003-06-30 21:59:07 +000021235# If the user did not use the arguments to specify the items to instantiate,
21236# then the envvar interface is used. Set only those that are not.
21237# We use the long form for the default assignment because of an extremely
21238# bizarre bug on SunOS 4.1.3.
21239if $ac_need_defaults; then
21240 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21241 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000021242 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000021243fi
21244
John Criswell0c38eaf2003-09-10 15:17:25 +000021245# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000021246# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000021247# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000021248# Hook for its removal unless debugging.
21249# Note that there is a small window in which the directory will not be cleaned:
21250# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000021251$debug ||
21252{
Reid Spencera773bd52006-08-04 18:18:08 +000021253 tmp=
21254 trap 'exit_status=$?
21255 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21256' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021257 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000021258}
John Criswell7a73b802003-06-30 21:59:07 +000021259# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000021260
John Criswell7a73b802003-06-30 21:59:07 +000021261{
Reid Spencera773bd52006-08-04 18:18:08 +000021262 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000021263 test -n "$tmp" && test -d "$tmp"
21264} ||
21265{
Reid Spencera773bd52006-08-04 18:18:08 +000021266 tmp=./conf$$-$RANDOM
21267 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021268} ||
21269{
21270 echo "$me: cannot create a temporary directory in ." >&2
21271 { (exit 1); exit 1; }
21272}
John Criswell7a73b802003-06-30 21:59:07 +000021273
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021274#
21275# Set up the sed scripts for CONFIG_FILES section.
21276#
21277
21278# No need to generate the scripts if there are no CONFIG_FILES.
21279# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000021280if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000021281
21282_ACEOF
21283
Reid Spencera773bd52006-08-04 18:18:08 +000021284
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021285
Reid Spencera773bd52006-08-04 18:18:08 +000021286ac_delim='%!_!# '
21287for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021288 cat >conf$$subs.sed <<_ACEOF
21289SHELL!$SHELL$ac_delim
21290PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21291PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21292PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21293PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21294PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21295PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21296exec_prefix!$exec_prefix$ac_delim
21297prefix!$prefix$ac_delim
21298program_transform_name!$program_transform_name$ac_delim
21299bindir!$bindir$ac_delim
21300sbindir!$sbindir$ac_delim
21301libexecdir!$libexecdir$ac_delim
21302datarootdir!$datarootdir$ac_delim
21303datadir!$datadir$ac_delim
21304sysconfdir!$sysconfdir$ac_delim
21305sharedstatedir!$sharedstatedir$ac_delim
21306localstatedir!$localstatedir$ac_delim
21307includedir!$includedir$ac_delim
21308oldincludedir!$oldincludedir$ac_delim
21309docdir!$docdir$ac_delim
21310infodir!$infodir$ac_delim
21311htmldir!$htmldir$ac_delim
21312dvidir!$dvidir$ac_delim
21313pdfdir!$pdfdir$ac_delim
21314psdir!$psdir$ac_delim
21315libdir!$libdir$ac_delim
21316localedir!$localedir$ac_delim
21317mandir!$mandir$ac_delim
21318DEFS!$DEFS$ac_delim
21319ECHO_C!$ECHO_C$ac_delim
21320ECHO_N!$ECHO_N$ac_delim
21321ECHO_T!$ECHO_T$ac_delim
21322LIBS!$LIBS$ac_delim
21323build_alias!$build_alias$ac_delim
21324host_alias!$host_alias$ac_delim
21325target_alias!$target_alias$ac_delim
21326LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21327subdirs!$subdirs$ac_delim
21328build!$build$ac_delim
21329build_cpu!$build_cpu$ac_delim
21330build_vendor!$build_vendor$ac_delim
21331build_os!$build_os$ac_delim
21332host!$host$ac_delim
21333host_cpu!$host_cpu$ac_delim
21334host_vendor!$host_vendor$ac_delim
21335host_os!$host_os$ac_delim
21336target!$target$ac_delim
21337target_cpu!$target_cpu$ac_delim
21338target_vendor!$target_vendor$ac_delim
21339target_os!$target_os$ac_delim
21340OS!$OS$ac_delim
21341HOST_OS!$HOST_OS$ac_delim
21342TARGET_OS!$TARGET_OS$ac_delim
21343LINKALL!$LINKALL$ac_delim
21344NOLINKALL!$NOLINKALL$ac_delim
21345LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21346LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21347ARCH!$ARCH$ac_delim
21348ENDIAN!$ENDIAN$ac_delim
21349CC!$CC$ac_delim
21350CFLAGS!$CFLAGS$ac_delim
21351LDFLAGS!$LDFLAGS$ac_delim
21352CPPFLAGS!$CPPFLAGS$ac_delim
21353ac_ct_CC!$ac_ct_CC$ac_delim
21354EXEEXT!$EXEEXT$ac_delim
21355OBJEXT!$OBJEXT$ac_delim
21356CPP!$CPP$ac_delim
21357GREP!$GREP$ac_delim
21358EGREP!$EGREP$ac_delim
21359LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21360BUILD_CC!$BUILD_CC$ac_delim
21361BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21362BUILD_CXX!$BUILD_CXX$ac_delim
21363CVSBUILD!$CVSBUILD$ac_delim
21364ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21365ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21366DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21367ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21368EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21369DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21370DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21371JIT!$JIT$ac_delim
21372TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21373ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21374ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21375ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021376ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Daniel Dunbardd464df2010-05-10 20:11:56 +000021377ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021378TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21379LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21380LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21381LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21382LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21383ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021384CLANGPATH!$CLANGPATH$ac_delim
21385CLANGXXPATH!$CLANGXXPATH$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021386_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021387
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021388 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000021389 break
21390 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021391 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21392echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21393 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000021394 else
21395 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000021396 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021397done
21398
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021399ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21400if test -n "$ac_eof"; then
21401 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21402 ac_eof=`expr $ac_eof + 1`
21403fi
21404
21405cat >>$CONFIG_STATUS <<_ACEOF
21406cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21407/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000021408_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021409sed '
21410s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21411s/^/s,@/; s/!/@,|#_!!_#|/
21412:n
21413t n
21414s/'"$ac_delim"'$/,g/; t
21415s/$/\\/; p
21416N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21417' >>$CONFIG_STATUS <conf$$subs.sed
21418rm -f conf$$subs.sed
21419cat >>$CONFIG_STATUS <<_ACEOF
21420CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000021421_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021422
21423
21424ac_delim='%!_!# '
21425for ac_last_try in false false false false false :; do
21426 cat >conf$$subs.sed <<_ACEOF
Daniel Dunbardd464df2010-05-10 20:11:56 +000021427ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021428OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021429EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21430BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021431CXX!$CXX$ac_delim
21432CXXFLAGS!$CXXFLAGS$ac_delim
21433ac_ct_CXX!$ac_ct_CXX$ac_delim
21434NM!$NM$ac_delim
21435ifGNUmake!$ifGNUmake$ac_delim
21436LN_S!$LN_S$ac_delim
21437CMP!$CMP$ac_delim
21438CP!$CP$ac_delim
21439DATE!$DATE$ac_delim
21440FIND!$FIND$ac_delim
21441MKDIR!$MKDIR$ac_delim
21442MV!$MV$ac_delim
21443RANLIB!$RANLIB$ac_delim
21444AR!$AR$ac_delim
21445RM!$RM$ac_delim
21446SED!$SED$ac_delim
21447TAR!$TAR$ac_delim
21448BINPWD!$BINPWD$ac_delim
21449GRAPHVIZ!$GRAPHVIZ$ac_delim
21450DOT!$DOT$ac_delim
21451FDP!$FDP$ac_delim
21452NEATO!$NEATO$ac_delim
21453TWOPI!$TWOPI$ac_delim
21454CIRCO!$CIRCO$ac_delim
21455GV!$GV$ac_delim
21456DOTTY!$DOTTY$ac_delim
21457PERL!$PERL$ac_delim
21458HAVE_PERL!$HAVE_PERL$ac_delim
21459INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21460INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21461INSTALL_DATA!$INSTALL_DATA$ac_delim
21462BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021463CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021464DOXYGEN!$DOXYGEN$ac_delim
21465GROFF!$GROFF$ac_delim
21466GZIP!$GZIP$ac_delim
21467POD2HTML!$POD2HTML$ac_delim
21468POD2MAN!$POD2MAN$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021469PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021470RUNTEST!$RUNTEST$ac_delim
21471TCLSH!$TCLSH$ac_delim
21472ZIP!$ZIP$ac_delim
21473OCAMLC!$OCAMLC$ac_delim
21474OCAMLOPT!$OCAMLOPT$ac_delim
21475OCAMLDEP!$OCAMLDEP$ac_delim
21476OCAMLDOC!$OCAMLDOC$ac_delim
21477GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000021478HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021479INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21480INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21481CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21482CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21483LIBADD_DL!$LIBADD_DL$ac_delim
21484LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21485LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21486LLVMGCC!$LLVMGCC$ac_delim
21487LLVMGXX!$LLVMGXX$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021488LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021489NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21490NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21491USE_UDIS86!$USE_UDIS86$ac_delim
21492USE_OPROFILE!$USE_OPROFILE$ac_delim
21493HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21494HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21495MMAP_FILE!$MMAP_FILE$ac_delim
21496LLVMCC1!$LLVMCC1$ac_delim
21497LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21498LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021499LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21500SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021501SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021502LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21503LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21504LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21505LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21506LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21507LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21508LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21509LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21510LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21511LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21512BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21513ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21514OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21515ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21516RPATH!$RPATH$ac_delim
21517RDYNAMIC!$RDYNAMIC$ac_delim
21518LIBOBJS!$LIBOBJS$ac_delim
21519LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000021520_ACEOF
21521
Mikhail Glushenkov4b643c02010-08-15 07:07:17 +000021522 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 93; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021523 break
21524 elif $ac_last_try; then
21525 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21526echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21527 { (exit 1); exit 1; }; }
21528 else
21529 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21530 fi
21531done
21532
21533ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21534if test -n "$ac_eof"; then
21535 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21536 ac_eof=`expr $ac_eof + 1`
21537fi
21538
21539cat >>$CONFIG_STATUS <<_ACEOF
21540cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21541/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21542_ACEOF
21543sed '
21544s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21545s/^/s,@/; s/!/@,|#_!!_#|/
21546:n
21547t n
21548s/'"$ac_delim"'$/,g/; t
21549s/$/\\/; p
21550N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21551' >>$CONFIG_STATUS <conf$$subs.sed
21552rm -f conf$$subs.sed
21553cat >>$CONFIG_STATUS <<_ACEOF
21554:end
21555s/|#_!!_#|//g
21556CEOF$ac_eof
21557_ACEOF
21558
21559
Reid Spencera773bd52006-08-04 18:18:08 +000021560# VPATH may cause trouble with some makes, so we remove $(srcdir),
21561# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21562# trailing colons and then remove the whole line if VPATH becomes empty
21563# (actually we leave an empty line to preserve line numbers).
21564if test "x$srcdir" = x.; then
21565 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21566s/:*\$(srcdir):*/:/
21567s/:*\${srcdir}:*/:/
21568s/:*@srcdir@:*/:/
21569s/^\([^=]*=[ ]*\):*/\1/
21570s/:*$//
21571s/^[^=]*=[ ]*$//
21572}'
21573fi
21574
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021575cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021576fi # test -n "$CONFIG_FILES"
21577
Reid Spencera773bd52006-08-04 18:18:08 +000021578
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021579for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000021580do
21581 case $ac_tag in
21582 :[FHLC]) ac_mode=$ac_tag; continue;;
21583 esac
21584 case $ac_mode$ac_tag in
21585 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021586 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21587echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21588 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021589 :[FH]-) ac_tag=-:-;;
21590 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21591 esac
21592 ac_save_IFS=$IFS
21593 IFS=:
21594 set x $ac_tag
21595 IFS=$ac_save_IFS
21596 shift
21597 ac_file=$1
21598 shift
21599
21600 case $ac_mode in
21601 :L) ac_source=$1;;
21602 :[FH])
21603 ac_file_inputs=
21604 for ac_f
21605 do
21606 case $ac_f in
21607 -) ac_f="$tmp/stdin";;
21608 *) # Look for the file first in the build tree, then in the source tree
21609 # (if the path is not absolute). The absolute path cannot be DOS-style,
21610 # because $ac_f cannot contain `:'.
21611 test -f "$ac_f" ||
21612 case $ac_f in
21613 [\\/$]*) false;;
21614 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21615 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021616 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21617echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21618 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021619 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021620 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000021621 done
21622
21623 # Let's still pretend it is `configure' which instantiates (i.e., don't
21624 # use $as_me), people would be surprised to read:
21625 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021626 configure_input="Generated from "`IFS=:
21627 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000021628 if test x"$ac_file" != x-; then
21629 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021630 { echo "$as_me:$LINENO: creating $ac_file" >&5
21631echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000021632 fi
21633
21634 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021635 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000021636 esac
21637 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021638 esac
21639
Reid Spencera773bd52006-08-04 18:18:08 +000021640 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000021641$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021642 X"$ac_file" : 'X\(//\)[^/]' \| \
21643 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000021644 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021645echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000021646 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21647 s//\1/
21648 q
21649 }
21650 /^X\(\/\/\)[^/].*/{
21651 s//\1/
21652 q
21653 }
21654 /^X\(\/\/\)$/{
21655 s//\1/
21656 q
21657 }
21658 /^X\(\/\).*/{
21659 s//\1/
21660 q
21661 }
21662 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021663 { as_dir="$ac_dir"
21664 case $as_dir in #(
21665 -*) as_dir=./$as_dir;;
21666 esac
21667 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21668 as_dirs=
21669 while :; do
21670 case $as_dir in #(
21671 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21672 *) as_qdir=$as_dir;;
21673 esac
21674 as_dirs="'$as_qdir' $as_dirs"
21675 as_dir=`$as_dirname -- "$as_dir" ||
21676$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21677 X"$as_dir" : 'X\(//\)[^/]' \| \
21678 X"$as_dir" : 'X\(//\)$' \| \
21679 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21680echo X"$as_dir" |
21681 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21682 s//\1/
21683 q
21684 }
21685 /^X\(\/\/\)[^/].*/{
21686 s//\1/
21687 q
21688 }
21689 /^X\(\/\/\)$/{
21690 s//\1/
21691 q
21692 }
21693 /^X\(\/\).*/{
21694 s//\1/
21695 q
21696 }
21697 s/.*/./; q'`
21698 test -d "$as_dir" && break
21699 done
21700 test -z "$as_dirs" || eval "mkdir $as_dirs"
21701 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21702echo "$as_me: error: cannot create directory $as_dir" >&2;}
21703 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000021704 ac_builddir=.
21705
Reid Spencera773bd52006-08-04 18:18:08 +000021706case "$ac_dir" in
21707.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21708*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021709 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021710 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021711 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021712 case $ac_top_builddir_sub in
21713 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21714 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21715 esac ;;
21716esac
21717ac_abs_top_builddir=$ac_pwd
21718ac_abs_builddir=$ac_pwd$ac_dir_suffix
21719# for backward compatibility:
21720ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000021721
21722case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000021723 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000021724 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000021725 ac_top_srcdir=$ac_top_builddir_sub
21726 ac_abs_top_srcdir=$ac_pwd ;;
21727 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000021728 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000021729 ac_top_srcdir=$srcdir
21730 ac_abs_top_srcdir=$srcdir ;;
21731 *) # Relative name.
21732 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21733 ac_top_srcdir=$ac_top_build_prefix$srcdir
21734 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000021735esac
Reid Spencera773bd52006-08-04 18:18:08 +000021736ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000021737
John Criswell7a73b802003-06-30 21:59:07 +000021738
Reid Spencera773bd52006-08-04 18:18:08 +000021739 case $ac_mode in
21740 :F)
21741 #
21742 # CONFIG_FILE
21743 #
John Criswell7a73b802003-06-30 21:59:07 +000021744
21745 case $INSTALL in
21746 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021747 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000021748 esac
John Criswell7a73b802003-06-30 21:59:07 +000021749_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021750
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021751cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021752# If the template does not know about datarootdir, expand it.
21753# FIXME: This hack should be removed a few years after 2.60.
21754ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021755
21756case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000021757 p
21758 q
21759}
21760/@datadir@/p
21761/@docdir@/p
21762/@infodir@/p
21763/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021764/@mandir@/p
21765' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000021766*datarootdir*) ac_datarootdir_seen=yes;;
21767*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021768 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21769echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000021770_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021771cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021772 ac_datarootdir_hack='
21773 s&@datadir@&$datadir&g
21774 s&@docdir@&$docdir&g
21775 s&@infodir@&$infodir&g
21776 s&@localedir@&$localedir&g
21777 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021778 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021779esac
21780_ACEOF
21781
21782# Neutralize VPATH when `$srcdir' = `.'.
21783# Shell code in configure.ac might set extrasub.
21784# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021785cat >>$CONFIG_STATUS <<_ACEOF
21786 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000021787$extrasub
21788_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021789cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021790:t
21791/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021792s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000021793s&@top_builddir@&$ac_top_builddir_sub&;t t
21794s&@srcdir@&$ac_srcdir&;t t
21795s&@abs_srcdir@&$ac_abs_srcdir&;t t
21796s&@top_srcdir@&$ac_top_srcdir&;t t
21797s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21798s&@builddir@&$ac_builddir&;t t
21799s&@abs_builddir@&$ac_abs_builddir&;t t
21800s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21801s&@INSTALL@&$ac_INSTALL&;t t
21802$ac_datarootdir_hack
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021803" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000021804
Reid Spencera773bd52006-08-04 18:18:08 +000021805test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21806 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21807 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021808 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000021809which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021810echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000021811which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000021812
Reid Spencera773bd52006-08-04 18:18:08 +000021813 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000021814 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021815 -) cat "$tmp/out"; rm -f "$tmp/out";;
21816 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21817 esac
Reid Spencera773bd52006-08-04 18:18:08 +000021818 ;;
21819 :H)
21820 #
21821 # CONFIG_HEADER
21822 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021823_ACEOF
21824
21825# Transform confdefs.h into a sed script `conftest.defines', that
21826# substitutes the proper values into config.h.in to produce config.h.
21827rm -f conftest.defines conftest.tail
21828# First, append a space to every undef/define line, to ease matching.
21829echo 's/$/ /' >conftest.defines
21830# Then, protect against being on the right side of a sed subst, or in
21831# an unquoted here document, in config.status. If some macros were
21832# called several times there might be several #defines for the same
21833# symbol, which is useless. But do not sort them, since the last
21834# AC_DEFINE must be honored.
21835ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21836# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21837# NAME is the cpp macro being defined, VALUE is the value it is being given.
21838# PARAMS is the parameter list in the macro definition--in most cases, it's
21839# just an empty string.
21840ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21841ac_dB='\\)[ (].*,\\1define\\2'
21842ac_dC=' '
21843ac_dD=' ,'
21844
21845uniq confdefs.h |
21846 sed -n '
21847 t rset
21848 :rset
21849 s/^[ ]*#[ ]*define[ ][ ]*//
21850 t ok
21851 d
21852 :ok
21853 s/[\\&,]/\\&/g
21854 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21855 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21856 ' >>conftest.defines
21857
21858# Remove the space that was appended to ease matching.
21859# Then replace #undef with comments. This is necessary, for
21860# example, in the case of _POSIX_SOURCE, which is predefined and required
21861# on some systems where configure will not decide to define it.
21862# (The regexp can be short, since the line contains either #define or #undef.)
21863echo 's/ $//
21864s,^[ #]*u.*,/* & */,' >>conftest.defines
21865
21866# Break up conftest.defines:
21867ac_max_sed_lines=50
21868
21869# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21870# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21871# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21872# et cetera.
21873ac_in='$ac_file_inputs'
21874ac_out='"$tmp/out1"'
21875ac_nxt='"$tmp/out2"'
21876
21877while :
21878do
21879 # Write a here document:
21880 cat >>$CONFIG_STATUS <<_ACEOF
21881 # First, check the format of the line:
21882 cat >"\$tmp/defines.sed" <<\\CEOF
21883/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21884/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21885b
21886:def
21887_ACEOF
21888 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21889 echo 'CEOF
21890 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21891 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21892 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21893 grep . conftest.tail >/dev/null || break
21894 rm -f conftest.defines
21895 mv conftest.tail conftest.defines
21896done
21897rm -f conftest.defines conftest.tail
21898
21899echo "ac_result=$ac_in" >>$CONFIG_STATUS
21900cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021901 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021902 echo "/* $configure_input */" >"$tmp/config.h"
21903 cat "$ac_result" >>"$tmp/config.h"
21904 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21905 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21906echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021907 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021908 rm -f $ac_file
21909 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000021910 fi
21911 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021912 echo "/* $configure_input */"
21913 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000021914 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021915 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000021916 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000021917
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021918 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21919echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000021920 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000021921 esac
John Criswell7a73b802003-06-30 21:59:07 +000021922
Reid Spencera773bd52006-08-04 18:18:08 +000021923
21924 case $ac_file$ac_mode in
21925 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021926 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021927 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000021928 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021929 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021930 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021931 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021932 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021933 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021934 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021935 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021936 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021937 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000021938 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021939 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021940 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021941 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021942 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021943 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021944 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021945 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021946 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021947 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021948 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021949 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000021950 ${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 +000021951
21952 esac
21953done # for ac_tag
21954
John Criswell7a73b802003-06-30 21:59:07 +000021955
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021956{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000021957_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021958chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000021959ac_clean_files=$ac_clean_files_save
21960
21961
21962# configure is writing to config.log, and then calls config.status.
21963# config.status does its own redirection, appending to config.log.
21964# Unfortunately, on DOS this fails, as config.log is still kept open
21965# by configure, so config.status won't be able to write to it; its
21966# output is simply discarded. So we exec the FD to /dev/null,
21967# effectively closing config.log, so it can be properly (re)opened and
21968# appended to by config.status. When coming back to configure, we
21969# need to make the FD available again.
21970if test "$no_create" != yes; then
21971 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021972 ac_config_status_args=
21973 test "$silent" = yes &&
21974 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000021975 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000021976 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000021977 exec 5>>config.log
21978 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21979 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021980 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000021981fi
21982
John Criswell12399a12003-09-30 15:55:44 +000021983#
21984# CONFIG_SUBDIRS section.
21985#
21986if test "$no_recursion" != yes; then
21987
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021988 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000021989 ac_sub_configure_args=
21990 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000021991 eval "set x $ac_configure_args"
21992 shift
21993 for ac_arg
21994 do
John Criswell12399a12003-09-30 15:55:44 +000021995 if test -n "$ac_prev"; then
21996 ac_prev=
21997 continue
21998 fi
21999 case $ac_arg in
22000 -cache-file | --cache-file | --cache-fil | --cache-fi \
22001 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22002 ac_prev=cache_file ;;
22003 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22004 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22005 | --c=*)
22006 ;;
22007 --config-cache | -C)
22008 ;;
22009 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22010 ac_prev=srcdir ;;
22011 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22012 ;;
22013 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22014 ac_prev=prefix ;;
22015 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22016 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022017 *)
22018 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022019 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022020 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022021 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000022022 esac
22023 done
22024
22025 # Always prepend --prefix to ensure using the same prefix
22026 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000022027 ac_arg="--prefix=$prefix"
22028 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022029 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022030 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022031 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000022032
22033 ac_popdir=`pwd`
22034 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22035
22036 # Do not complain, so a configure script can configure whichever
22037 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000022038 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000022039
Reid Spencera773bd52006-08-04 18:18:08 +000022040 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022041 echo "$as_me:$LINENO: $ac_msg" >&5
22042 echo "$ac_msg" >&6
22043 { as_dir="$ac_dir"
22044 case $as_dir in #(
22045 -*) as_dir=./$as_dir;;
22046 esac
22047 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22048 as_dirs=
22049 while :; do
22050 case $as_dir in #(
22051 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22052 *) as_qdir=$as_dir;;
22053 esac
22054 as_dirs="'$as_qdir' $as_dirs"
22055 as_dir=`$as_dirname -- "$as_dir" ||
22056$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22057 X"$as_dir" : 'X\(//\)[^/]' \| \
22058 X"$as_dir" : 'X\(//\)$' \| \
22059 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22060echo X"$as_dir" |
22061 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22062 s//\1/
22063 q
22064 }
22065 /^X\(\/\/\)[^/].*/{
22066 s//\1/
22067 q
22068 }
22069 /^X\(\/\/\)$/{
22070 s//\1/
22071 q
22072 }
22073 /^X\(\/\).*/{
22074 s//\1/
22075 q
22076 }
22077 s/.*/./; q'`
22078 test -d "$as_dir" && break
22079 done
22080 test -z "$as_dirs" || eval "mkdir $as_dirs"
22081 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22082echo "$as_me: error: cannot create directory $as_dir" >&2;}
22083 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000022084 ac_builddir=.
22085
Reid Spencera773bd52006-08-04 18:18:08 +000022086case "$ac_dir" in
22087.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22088*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022089 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022090 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022091 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022092 case $ac_top_builddir_sub in
22093 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22094 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22095 esac ;;
22096esac
22097ac_abs_top_builddir=$ac_pwd
22098ac_abs_builddir=$ac_pwd$ac_dir_suffix
22099# for backward compatibility:
22100ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000022101
22102case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022103 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000022104 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022105 ac_top_srcdir=$ac_top_builddir_sub
22106 ac_abs_top_srcdir=$ac_pwd ;;
22107 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000022108 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022109 ac_top_srcdir=$srcdir
22110 ac_abs_top_srcdir=$srcdir ;;
22111 *) # Relative name.
22112 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22113 ac_top_srcdir=$ac_top_build_prefix$srcdir
22114 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000022115esac
Reid Spencera773bd52006-08-04 18:18:08 +000022116ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000022117
22118
Reid Spencera773bd52006-08-04 18:18:08 +000022119 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000022120
22121 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000022122 if test -f "$ac_srcdir/configure.gnu"; then
22123 ac_sub_configure=$ac_srcdir/configure.gnu
22124 elif test -f "$ac_srcdir/configure"; then
22125 ac_sub_configure=$ac_srcdir/configure
22126 elif test -f "$ac_srcdir/configure.in"; then
22127 # This should be Cygnus configure.
22128 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000022129 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022130 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22131echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000022132 ac_sub_configure=
22133 fi
22134
22135 # The recursion is here.
22136 if test -n "$ac_sub_configure"; then
22137 # Make the cache file name correct relative to the subdirectory.
22138 case $cache_file in
22139 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022140 *) # Relative name.
22141 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000022142 esac
22143
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022144 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22145echo "$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 +000022146 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000022147 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22148 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022149 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22150echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22151 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000022152 fi
22153
Reid Spencera773bd52006-08-04 18:18:08 +000022154 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000022155 done
22156fi
22157